editor-style.scss 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221
  1. /******************************************************************
  2. Site Name:
  3. Author:
  4. Stylesheet: TinyMCE Editor
  5. This stylesheet is loaded automatically by Wordpress when compiled
  6. and placed in the root theme directory folder as editor-style.css
  7. For more info, check out the codex:
  8. http://codex.wordpress.org/Editor_Style
  9. ******************************************************************/
  10. /* Wrap the entire post style inside the TinyMCE selector, as suggested
  11. here http://codex.wordpress.org/Function_Reference/add_editor_style */
  12. body#tinymce.wp-editor {
  13. // normalize: http://necolas.github.io/normalize.css/
  14. @import "partials/normalize";
  15. // Sass variables
  16. @import "partials/variables";
  17. // typography
  18. @import "partials/typography";
  19. // Sass functions
  20. @import "partials/functions";
  21. // import mixins
  22. @import "partials/mixins";
  23. width: 731px;
  24. font-family: $lato;
  25. font-size: 100%;
  26. line-height: 1.5;
  27. color: $text-color;
  28. -webkit-font-smoothing: antialiased;
  29. /*********************
  30. LINK STYLES
  31. *********************/
  32. a, a:visited {
  33. color: $link-color;
  34. /* on hover */
  35. &:hover, &:focus {
  36. color: $link-hover;
  37. }
  38. /* on click */
  39. &:active {
  40. }
  41. &:link {
  42. -webkit-tap-highlight-color : rgba( 0, 0, 0, 0.3 );
  43. }
  44. }
  45. /******************************************************************
  46. H1, H2, H3, H4, H5 STYLES
  47. ******************************************************************/
  48. h1, .h1, h2, .h2, h3, .h3, h4, .h4, h5, .h5 {
  49. text-rendering: optimizelegibility;
  50. font-weight: 500;
  51. a {
  52. text-decoration: none;
  53. }
  54. }
  55. h1, .h1 {
  56. font-size: 2.5em;
  57. line-height: 1.333em;
  58. }
  59. h2, .h2 {
  60. font-size: 1.75em;
  61. line-height: 1.4em;
  62. margin-bottom: 0.375em;
  63. }
  64. h3, .h3 {
  65. font-size: 1.125em;
  66. }
  67. h4, .h4 {
  68. font-size: 1.1em;
  69. font-weight: 700;
  70. }
  71. h5, .h5 {
  72. font-size: 0.846em;
  73. line-height: 2.09em;
  74. text-transform: uppercase;
  75. letter-spacing: 2px;
  76. }
  77. padding: 1.5em 1.5em 0;
  78. p {
  79. margin: 0 0 1.5em;
  80. }
  81. table {
  82. width: 100%;
  83. border: 1px solid $gray;
  84. margin-bottom: 1.5em;
  85. caption {
  86. margin: 0 0 7px;
  87. font-size: 0.75em;
  88. color: $meta-gray;
  89. text-transform: uppercase;
  90. letter-spacing: 1px;
  91. }
  92. }
  93. tr {
  94. border-bottom: 1px solid $gray;
  95. &:nth-child(even) {
  96. background-color: $light-gray;
  97. }
  98. }
  99. td {
  100. padding: 7px;
  101. border-right: 1px solid $gray;
  102. &:last-child {
  103. border-right: 0;
  104. }
  105. }
  106. th {
  107. background-color: $light-gray;
  108. border-bottom: 1px solid $gray;
  109. border-right: 1px solid $gray;
  110. &:last-child {
  111. border-right: 0;
  112. }
  113. }
  114. blockquote {
  115. margin: 0 0 1.5em 0.75em;
  116. padding: 0 0 0 0.75em;
  117. border-left: 3px solid $blue;
  118. font-style: italic;
  119. color: $meta-gray;
  120. &:before {}
  121. }
  122. dd {
  123. margin-left: 0;
  124. font-size: 0.9em;
  125. color: #787878;
  126. margin-bottom: 1.5em;
  127. }
  128. img {
  129. margin: 0 0 1.5em 0;
  130. max-width: 100%;
  131. height: auto;
  132. }
  133. .size-auto,
  134. .size-full,
  135. .size-large,
  136. .size-medium,
  137. .size-thumbnail {
  138. max-width: 100%;
  139. height: auto;
  140. }
  141. pre {
  142. background: $black;
  143. color: $light-gray;
  144. font-size: 0.9em;
  145. padding: 1.5em;
  146. margin: 0 0 1.5em;
  147. border-radius: 3px;
  148. }
  149. /*********************
  150. LARGER MOBILE DEVICES
  151. This is for devices like the Galaxy Note or something that's
  152. larger than an iPhone but smaller than a tablet. Let's call them
  153. tweeners.
  154. *********************/
  155. @media only screen and (min-width: 481px) {
  156. /* at this larger size, we can start to align images */
  157. .alignleft, img.alignleft {
  158. margin-right: 1.5em;
  159. display: inline;
  160. float: left;
  161. }
  162. .alignright, img.alignright {
  163. margin-left: 1.5em;
  164. display: inline;
  165. float: right;
  166. }
  167. .aligncenter, img.aligncenter {
  168. margin-right: auto;
  169. margin-left: auto;
  170. display: block;
  171. clear: both;
  172. }
  173. }
  174. }