style.css 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254
  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. font-family: "HelveticaNeue-Light", "Helvetica Neue Light", "Helvetica Neue", Helvetica, Arial, "Lucida Grande", sans-serif;
  38. }
  39. img
  40. {
  41. max-width: 600px;
  42. }
  43. figure
  44. {
  45. margin: 0px auto;
  46. width: 600px;
  47. }
  48. figcaption
  49. {
  50. font-style: italic;
  51. }
  52. figcaption code
  53. {
  54. font-style: normal;
  55. }
  56. pre, code {
  57. font-size: 0.85em;
  58. font-family: Consolas, Inconsolata, Courier, monospace;
  59. }
  60. code {
  61. margin: 0 0.15em;
  62. padding: 0 0.3em;
  63. white-space: pre-wrap;
  64. border: 1px solid #EAEAEA;
  65. background-color: #F8F8F8;
  66. border-radius: 3px;
  67. display: inline; /* added to fix Yahoo block display of inline code */
  68. }
  69. pre {
  70. font-size: 1em;
  71. line-height: 1.2em;
  72. }
  73. pre code {
  74. white-space: pre;
  75. overflow: auto; /* fixes issue #70: Firefox/Thunderbird: Code blocks with horizontal scroll would have bad background colour */
  76. border-radius: 3px;
  77. border: 1px solid #CCC;
  78. padding: 0.5em 0.7em;
  79. display: block !important; /* added to counteract the Yahoo-specific `code` rule; without this, code blocks in Blogger are broken */
  80. }
  81. /* In edit mode, Wordpress uses a `* { font: ...;} rule+style that makes highlighted
  82. code look non-monospace. This rule will override it. */
  83. .markdown-here-wrapper[data-md-url*="wordpress."] code span {
  84. font: inherit;
  85. }
  86. /* Wordpress adds a grey background to `pre` elements that doesn't go well with
  87. our syntax highlighting. */
  88. .markdown-here-wrapper[data-md-url*="wordpress."] pre {
  89. background-color: transparent;
  90. }
  91. /* This spacing has been tweaked to closely match Gmail+Chrome "paragraph" (two line breaks) spacing. */
  92. p {
  93. /* !important is needed here because Hotmail/Outlook.com uses !important to
  94. kill the margin in <p>. We need this to win. */
  95. margin: 1.2em 0 !important;
  96. }
  97. table, pre, dl, blockquote, q, ul, ol {
  98. margin: 1.2em 0;
  99. }
  100. ul, ol {
  101. padding-left: 2em;
  102. }
  103. li {
  104. margin: 0.5em 0;
  105. }
  106. /* Space paragraphs in a list the same as the list itself. */
  107. li p {
  108. /* Needs !important to override rule above. */
  109. margin: 0.5em 0 !important;
  110. }
  111. /* Smaller spacing for sub-lists */
  112. ul ul, ul ol, ol ul, ol ol {
  113. margin: 0;
  114. padding-left: 1em;
  115. }
  116. dl {
  117. padding: 0;
  118. }
  119. dl dt {
  120. font-size: 1em;
  121. font-weight: bold;
  122. font-style: italic;
  123. }
  124. dl dd {
  125. margin: 0 0 1em;
  126. padding: 0 1em;
  127. }
  128. blockquote, q {
  129. border-left: 4px solid #DDD;
  130. padding: 0 1em;
  131. color: #777;
  132. quotes: none;
  133. }
  134. blockquote::before, blockquote::after, q::before, q::after {
  135. content: none;
  136. }
  137. h1, h2, h3, h4, h5, h6 {
  138. margin: 1.3em 0 1em;
  139. padding: 0;
  140. font-weight: bold;
  141. font-family: "HelveticaNeue-Light", "Helvetica Neue Light", "Helvetica Neue", Helvetica, Arial, "Lucida Grande", sans-serif;
  142. }
  143. h1 {
  144. font-size: 1.6em;
  145. border-bottom: 1px solid #ddd;
  146. }
  147. h2 {
  148. font-size: 1.3em;
  149. border-bottom: 1px solid #eee;
  150. }
  151. h3 {
  152. font-size: 1.2em;
  153. }
  154. h4 {
  155. font-size: 1.1em;
  156. }
  157. h5 {
  158. font-size: 1em;
  159. }
  160. h6 {
  161. font-size: 1em;
  162. color: #777;
  163. }
  164. table {
  165. padding: 0;
  166. border-collapse: collapse;
  167. border-spacing: 0;
  168. font-size: 1em;
  169. font: inherit;
  170. border: 0;
  171. }
  172. tbody {
  173. margin: 0;
  174. padding: 0;
  175. border: 0;
  176. }
  177. table tr {
  178. border: 0;
  179. border-top: 1px solid #CCC;
  180. background-color: white;
  181. margin: 0;
  182. padding: 0;
  183. }
  184. table tr:nth-child(2n) {
  185. background-color: #F8F8F8;
  186. }
  187. table tr th, table tr td {
  188. font-size: 1em;
  189. border: 1px solid #CCC;
  190. margin: 0;
  191. padding: 0.5em 1em;
  192. }
  193. table tr th {
  194. font-weight: bold;
  195. background-color: #F0F0F0;
  196. }
  197. h2 a
  198. {
  199. text-decoration: none;
  200. color: inherit;
  201. }
  202. h2 a:hover
  203. {
  204. color: blue;
  205. text-decoration: underline;
  206. }
  207. h3 a
  208. {
  209. text-decoration: none;
  210. color: inherit;
  211. }
  212. h3 a:hover
  213. {
  214. color: blue;
  215. text-decoration: underline;
  216. }