public inbox archive for pandoc-discuss@googlegroups.com
 help / color / mirror / Atom feed
* change css cause lost of all contents when making epub
@ 2020-08-17  8:34 kent sin
       [not found] ` <b9d60c59-059e-4c37-b394-f7390885ceb3n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
  0 siblings, 1 reply; 2+ messages in thread
From: kent sin @ 2020-08-17  8:34 UTC (permalink / raw)
  To: pandoc-discuss


[-- Attachment #1.1: Type: text/plain, Size: 755 bytes --]


I have make a few sample of the same epub. Then I want to change the style 
a little bit so I change the command line from

pandoc -o intro.epub title.md intro.md

to 

pandoc -o intro.epub -css=markdownhere.css title.md intro.md

I can see the tiltle page color have changed. But the content of intro.md 
was not included.

What I did wrong?

-- 
You received this message because you are subscribed to the Google Groups "pandoc-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/b9d60c59-059e-4c37-b394-f7390885ceb3n%40googlegroups.com.

[-- Attachment #1.2: Type: text/html, Size: 1180 bytes --]

[-- Attachment #2: markdownhere.css --]
[-- Type: text/css, Size: 2298 bytes --]

.markdown-here-wrapper {
  font-size: 16px;
  line-height: 1.8em;
  letter-spacing: 0.1em;
}


pre, code {
  font-size: 14px;
  font-family: Roboto, 'Courier New', Consolas, Inconsolata, Courier, monospace;
  margin: auto 5px;
}

code {
  white-space: pre-wrap;
  border-radius: 2px;
  display: inline;
}

pre {
  font-size: 15px;
  line-height: 1.4em;
  display: block; !important;
}

pre code {
  white-space: pre;
  overflow: auto;
  border-radius: 3px;
  padding: 1px 1px;
  display: block !important;
}

strong, b{
  color: #BF360C;
}

em, i {
  color: #009688;
}

hr {
  border: 1px solid #BF360C;
  margin: 1.5em auto;
}

p {
  margin: 1.5em 5px !important;
}

table, pre, dl, blockquote, q, ul, ol {
  margin: 10px 5px;
}

ul, ol {
  padding-left: 15px;
}

li {
  margin: 10px;
}

li p {
  margin: 10px 0 !important;
}

ul ul, ul ol, ol ul, ol ol {
  margin: 0;
  padding-left: 10px;
}

ul {
  list-style-type: circle;
}

dl {
  padding: 0;
}

dl dt {
  font-size: 1em;
  font-weight: bold;
  font-style: italic;
}

dl dd {
  margin: 0 0 10px;
  padding: 0 10px;
}

blockquote, q {
  border-left: 2px solid #009688;
  padding: 0 10px;
  color: #777;
  quotes: none;
  margin-left: 1em;
}

blockquote::before, blockquote::after, q::before, q::after {
  content: none;
}

h1, h2, h3, h4, h5, h6 {
  margin: 20px 0 10px;
  padding: 0;
  font-style: bold !important;
  color: #009688 !important;
  text-align: center !important;
  margin: 1.5em 5px !important;
  padding: 0.5em 1em !important;
}

h1 {
  font-size: 24px !important;
  border-bottom: 1px solid #ddd !important;
}

h2 {
  font-size: 20px !important;
  border-bottom: 1px solid #eee !important;
}

h3 {
  font-size: 18px;
}

h4 {
  font-size: 16px;
}


table {
  padding: 0;
  border-collapse: collapse;
  border-spacing: 0;
  font-size: 1em;
  font: inherit;
  border: 0;
  margin: 0 auto;
}

tbody {
  margin: 0;
  padding: 0;
  border: 0;
}

table tr {
  border: 0;
  border-top: 1px solid #CCC;
  background-color: white;
  margin: 0;
  padding: 0;
}

table tr:nth-child(2n) {
  background-color: #F8F8F8;
}

table tr th, table tr td {
  font-size: 16px;
  border: 1px solid #CCC;
  margin: 0;
  padding: 5px 10px;
}

table tr th {
  font-weight: bold;
  color: #eee;
  border: 1px solid #009688;
  background-color: #009688;
}

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: change css cause lost of all contents when making epub
       [not found] ` <b9d60c59-059e-4c37-b394-f7390885ceb3n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
@ 2020-08-17 21:11   ` John MacFarlane
  0 siblings, 0 replies; 2+ messages in thread
From: John MacFarlane @ 2020-08-17 21:11 UTC (permalink / raw)
  To: kent sin, pandoc-discuss


It should be --css= not -css=

kent sin <kentsin-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> writes:

> I have make a few sample of the same epub. Then I want to change the style 
> a little bit so I change the command line from
>
> pandoc -o intro.epub title.md intro.md
>
> to 
>
> pandoc -o intro.epub -css=markdownhere.css title.md intro.md
>
> I can see the tiltle page color have changed. But the content of intro.md 
> was not included.
>
> What I did wrong?
>
> -- 
> You received this message because you are subscribed to the Google Groups "pandoc-discuss" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
> To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/b9d60c59-059e-4c37-b394-f7390885ceb3n%40googlegroups.com.
> .markdown-here-wrapper {
>   font-size: 16px;
>   line-height: 1.8em;
>   letter-spacing: 0.1em;
> }
>
>
> pre, code {
>   font-size: 14px;
>   font-family: Roboto, 'Courier New', Consolas, Inconsolata, Courier, monospace;
>   margin: auto 5px;
> }
>
> code {
>   white-space: pre-wrap;
>   border-radius: 2px;
>   display: inline;
> }
>
> pre {
>   font-size: 15px;
>   line-height: 1.4em;
>   display: block; !important;
> }
>
> pre code {
>   white-space: pre;
>   overflow: auto;
>   border-radius: 3px;
>   padding: 1px 1px;
>   display: block !important;
> }
>
> strong, b{
>   color: #BF360C;
> }
>
> em, i {
>   color: #009688;
> }
>
> hr {
>   border: 1px solid #BF360C;
>   margin: 1.5em auto;
> }
>
> p {
>   margin: 1.5em 5px !important;
> }
>
> table, pre, dl, blockquote, q, ul, ol {
>   margin: 10px 5px;
> }
>
> ul, ol {
>   padding-left: 15px;
> }
>
> li {
>   margin: 10px;
> }
>
> li p {
>   margin: 10px 0 !important;
> }
>
> ul ul, ul ol, ol ul, ol ol {
>   margin: 0;
>   padding-left: 10px;
> }
>
> ul {
>   list-style-type: circle;
> }
>
> dl {
>   padding: 0;
> }
>
> dl dt {
>   font-size: 1em;
>   font-weight: bold;
>   font-style: italic;
> }
>
> dl dd {
>   margin: 0 0 10px;
>   padding: 0 10px;
> }
>
> blockquote, q {
>   border-left: 2px solid #009688;
>   padding: 0 10px;
>   color: #777;
>   quotes: none;
>   margin-left: 1em;
> }
>
> blockquote::before, blockquote::after, q::before, q::after {
>   content: none;
> }
>
> h1, h2, h3, h4, h5, h6 {
>   margin: 20px 0 10px;
>   padding: 0;
>   font-style: bold !important;
>   color: #009688 !important;
>   text-align: center !important;
>   margin: 1.5em 5px !important;
>   padding: 0.5em 1em !important;
> }
>
> h1 {
>   font-size: 24px !important;
>   border-bottom: 1px solid #ddd !important;
> }
>
> h2 {
>   font-size: 20px !important;
>   border-bottom: 1px solid #eee !important;
> }
>
> h3 {
>   font-size: 18px;
> }
>
> h4 {
>   font-size: 16px;
> }
>
>
> table {
>   padding: 0;
>   border-collapse: collapse;
>   border-spacing: 0;
>   font-size: 1em;
>   font: inherit;
>   border: 0;
>   margin: 0 auto;
> }
>
> tbody {
>   margin: 0;
>   padding: 0;
>   border: 0;
> }
>
> table tr {
>   border: 0;
>   border-top: 1px solid #CCC;
>   background-color: white;
>   margin: 0;
>   padding: 0;
> }
>
> table tr:nth-child(2n) {
>   background-color: #F8F8F8;
> }
>
> table tr th, table tr td {
>   font-size: 16px;
>   border: 1px solid #CCC;
>   margin: 0;
>   padding: 5px 10px;
> }
>
> table tr th {
>   font-weight: bold;
>   color: #eee;
>   border: 1px solid #009688;
>   background-color: #009688;
> }


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2020-08-17 21:11 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-08-17  8:34 change css cause lost of all contents when making epub kent sin
     [not found] ` <b9d60c59-059e-4c37-b394-f7390885ceb3n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2020-08-17 21:11   ` John MacFarlane

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).