style.css 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226
  1. /*
  2. * NOTE:
  3. * - The use of browser-specific styles (-moz-, -webkit-) should be avoided.
  4. * If used, they may not render correctly for people reading the email in
  5. * a different browser than the one from which the email was sent.
  6. * - The use of state-dependent styles (like a:hover) don't work because they
  7. * don't match at the time the styles are made explicit. (In email, styles
  8. * must be explicitly applied to all elements -- stylesheets get stripped.)
  9. */
  10. /* This is the overall wrapper, it should be treated as the `body` section. */
  11. .markdown-here-wrapper {
  12. }
  13. /* To add site specific rules, you can use the `data-md-url` attribute that we
  14. add to the wrapper element. Note that rules like this are used depending
  15. on the URL you're *sending* from, not the URL where the recipient views it.
  16. */
  17. /* .markdown-here-wrapper[data-md-url*="mail.yahoo."] ul { color: red; } */
  18. html
  19. {
  20. margin: 0px;
  21. padding: 0px;
  22. /*background-color: #bbb;*/
  23. background-image: url(images/background.gif);
  24. font-weight: 300;
  25. height: 100%;
  26. }
  27. body
  28. {
  29. font-size: 11pt;
  30. background-color: #fff;
  31. padding: 10px;
  32. margin:0px auto;
  33. border-left: 1px solid #888;
  34. border-right: 1px solid #888;
  35. width: 765px;
  36. text-align: left;
  37. }
  38. img
  39. {
  40. max-width: 600px;
  41. }
  42. figure
  43. {
  44. margin: 0px auto;
  45. width: 600px;
  46. }
  47. figcaption
  48. {
  49. font-style: italic;
  50. }
  51. pre, code {
  52. font-size: 0.85em;
  53. font-family: Consolas, Inconsolata, Courier, monospace;
  54. }
  55. code {
  56. margin: 0 0.15em;
  57. padding: 0 0.3em;
  58. white-space: pre-wrap;
  59. border: 1px solid #EAEAEA;
  60. background-color: #F8F8F8;
  61. border-radius: 3px;
  62. display: inline; /* added to fix Yahoo block display of inline code */
  63. }
  64. pre {
  65. font-size: 1em;
  66. line-height: 1.2em;
  67. }
  68. pre code {
  69. white-space: pre;
  70. overflow: auto; /* fixes issue #70: Firefox/Thunderbird: Code blocks with horizontal scroll would have bad background colour */
  71. border-radius: 3px;
  72. border: 1px solid #CCC;
  73. padding: 0.5em 0.7em;
  74. display: block !important; /* added to counteract the Yahoo-specific `code` rule; without this, code blocks in Blogger are broken */
  75. }
  76. /* In edit mode, Wordpress uses a `* { font: ...;} rule+style that makes highlighted
  77. code look non-monospace. This rule will override it. */
  78. .markdown-here-wrapper[data-md-url*="wordpress."] code span {
  79. font: inherit;
  80. }
  81. /* Wordpress adds a grey background to `pre` elements that doesn't go well with
  82. our syntax highlighting. */
  83. .markdown-here-wrapper[data-md-url*="wordpress."] pre {
  84. background-color: transparent;
  85. }
  86. /* This spacing has been tweaked to closely match Gmail+Chrome "paragraph" (two line breaks) spacing. */
  87. p {
  88. /* !important is needed here because Hotmail/Outlook.com uses !important to
  89. kill the margin in <p>. We need this to win. */
  90. margin: 1.2em 0 !important;
  91. }
  92. table, pre, dl, blockquote, q, ul, ol {
  93. margin: 1.2em 0;
  94. }
  95. ul, ol {
  96. padding-left: 2em;
  97. }
  98. li {
  99. margin: 0.5em 0;
  100. }
  101. /* Space paragraphs in a list the same as the list itself. */
  102. li p {
  103. /* Needs !important to override rule above. */
  104. margin: 0.5em 0 !important;
  105. }
  106. /* Smaller spacing for sub-lists */
  107. ul ul, ul ol, ol ul, ol ol {
  108. margin: 0;
  109. padding-left: 1em;
  110. }
  111. dl {
  112. padding: 0;
  113. }
  114. dl dt {
  115. font-size: 1em;
  116. font-weight: bold;
  117. font-style: italic;
  118. }
  119. dl dd {
  120. margin: 0 0 1em;
  121. padding: 0 1em;
  122. }
  123. blockquote, q {
  124. border-left: 4px solid #DDD;
  125. padding: 0 1em;
  126. color: #777;
  127. quotes: none;
  128. }
  129. blockquote::before, blockquote::after, q::before, q::after {
  130. content: none;
  131. }
  132. h1, h2, h3, h4, h5, h6 {
  133. margin: 1.3em 0 1em;
  134. padding: 0;
  135. font-weight: bold;
  136. font-family: "HelveticaNeue-Light", "Helvetica Neue Light", "Helvetica Neue", Helvetica, Arial, "Lucida Grande", sans-serif;
  137. }
  138. h1 {
  139. font-size: 1.6em;
  140. border-bottom: 1px solid #ddd;
  141. }
  142. h2 {
  143. font-size: 1.3em;
  144. border-bottom: 1px solid #eee;
  145. }
  146. h3 {
  147. font-size: 1.2em;
  148. }
  149. h4 {
  150. font-size: 1.1em;
  151. }
  152. h5 {
  153. font-size: 1em;
  154. }
  155. h6 {
  156. font-size: 1em;
  157. color: #777;
  158. }
  159. table {
  160. padding: 0;
  161. border-collapse: collapse;
  162. border-spacing: 0;
  163. font-size: 1em;
  164. font: inherit;
  165. border: 0;
  166. }
  167. tbody {
  168. margin: 0;
  169. padding: 0;
  170. border: 0;
  171. }
  172. table tr {
  173. border: 0;
  174. border-top: 1px solid #CCC;
  175. background-color: white;
  176. margin: 0;
  177. padding: 0;
  178. }
  179. table tr:nth-child(2n) {
  180. background-color: #F8F8F8;
  181. }
  182. table tr th, table tr td {
  183. font-size: 1em;
  184. border: 1px solid #CCC;
  185. margin: 0;
  186. padding: 0.5em 1em;
  187. }
  188. table tr th {
  189. font-weight: bold;
  190. background-color: #F0F0F0;
  191. }