editor-style.css 6.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546
  1. /*
  2. Theme Name: Twenty Sixteen
  3. Description: Used to style the TinyMCE editor.
  4. */
  5. /**
  6. * Table of Contents:
  7. *
  8. * 1.0 - Body
  9. * 2.0 - Typography
  10. * 3.0 - Elements
  11. * 4.0 - Alignment
  12. * 5.0 - Caption
  13. * 6.0 - Galleries
  14. * 7.0 - Audio / Video
  15. * 8.0 - RTL
  16. */
  17. /**
  18. * 1.0 - Body
  19. */
  20. body {
  21. color: #1a1a1a;
  22. font-family: Merriweather, Georgia, serif;
  23. font-size: 16px;
  24. font-weight: 400;
  25. line-height: 1.75;
  26. margin: 20px 40px;
  27. max-width: 600px;
  28. vertical-align: baseline;
  29. }
  30. body.post-type-page {
  31. max-width: 840px;
  32. }
  33. /**
  34. * 2.0 - Typography
  35. */
  36. h1,
  37. h2,
  38. h3,
  39. h4,
  40. h5,
  41. h6 {
  42. clear: both;
  43. font-weight: 900;
  44. margin: 56px 0 28px;
  45. }
  46. h1 {
  47. font-size: 33px;
  48. line-height: 1.2727272727;
  49. }
  50. h2 {
  51. font-size: 28px;
  52. line-height: 1.25;
  53. }
  54. h3 {
  55. font-size: 23px;
  56. line-height: 1.2173913043;
  57. }
  58. h4,
  59. h5,
  60. h6 {
  61. font-size: 19px;
  62. line-height: 1.1052631579;
  63. }
  64. h4 {
  65. letter-spacing: 0.13333em;
  66. text-transform: uppercase;
  67. }
  68. h6 {
  69. font-style: italic;
  70. }
  71. h1:first-child,
  72. h2:first-child,
  73. h3:first-child,
  74. h4:first-child,
  75. h5:first-child,
  76. h6:first-child {
  77. margin-top: 0;
  78. }
  79. p {
  80. margin: 0 0 28px;
  81. }
  82. b,
  83. strong {
  84. font-weight: 700;
  85. }
  86. dfn,
  87. cite,
  88. em,
  89. i {
  90. font-style: italic;
  91. }
  92. blockquote {
  93. border-left: 4px solid #1a1a1a;
  94. color: #686868;
  95. font-size: 19px;
  96. font-style: italic;
  97. line-height: 1.4736842105;
  98. margin-bottom: 28px;
  99. padding: 0 0 0 24px;
  100. }
  101. blockquote:not(.alignleft):not(.alignright) {
  102. margin-left: -28px;
  103. }
  104. blockquote blockquote:not(.alignleft):not(.alignright) {
  105. margin-left: 0;
  106. }
  107. blockquote:before,
  108. blockquote:after {
  109. content: "";
  110. display: table;
  111. }
  112. blockquote:after {
  113. clear: both;
  114. }
  115. blockquote > :last-child {
  116. margin-bottom: 0;
  117. }
  118. blockquote cite,
  119. blockquote small {
  120. color: #1a1a1a;
  121. font-size: 16px;
  122. line-height: 1.75;
  123. }
  124. blockquote em,
  125. blockquote i,
  126. blockquote cite {
  127. font-style: normal;
  128. }
  129. blockquote strong,
  130. blockquote b {
  131. font-weight: 400;
  132. }
  133. blockquote.alignleft,
  134. blockquote.alignright {
  135. border: 0 solid #1a1a1a;
  136. border-top-width: 4px;
  137. padding: 18px 0 0;
  138. width: -webkit-calc(50% - 14px);
  139. width: calc(50% - 14px);
  140. }
  141. address {
  142. font-style: italic;
  143. margin: 0 0 28px;
  144. }
  145. code,
  146. kbd,
  147. tt,
  148. var,
  149. samp,
  150. pre {
  151. font-family: Inconsolata, monospace;
  152. }
  153. pre {
  154. border: 1px solid #d1d1d1;
  155. font-size: 16px;
  156. line-height: 1.3125;
  157. margin: 0 0 28px;
  158. max-width: 100%;
  159. overflow: auto;
  160. padding: 14px;
  161. white-space: pre;
  162. white-space: pre-wrap;
  163. word-wrap: break-word;
  164. }
  165. code {
  166. background-color: #d1d1d1;
  167. padding: 2px 4px;
  168. }
  169. abbr[title] {
  170. border-bottom: 1px dotted #d1d1d1;
  171. cursor: help;
  172. }
  173. mark,
  174. ins {
  175. background: #007acc;
  176. color: #fff;
  177. padding: 2px 4px;
  178. text-decoration: none;
  179. }
  180. sup,
  181. sub {
  182. font-size: 75%;
  183. height: 0;
  184. line-height: 0;
  185. position: relative;
  186. vertical-align: baseline;
  187. }
  188. sub {
  189. top: -6px;
  190. }
  191. sup {
  192. bottom: -3px;
  193. }
  194. small {
  195. font-size: 80%;
  196. }
  197. big {
  198. font-size: 125%;
  199. }
  200. /**
  201. * 3.0 - Elements
  202. */
  203. hr {
  204. background-color: #d1d1d1;
  205. border: 0;
  206. height: 1px;
  207. margin-bottom: 28px;
  208. }
  209. ul,
  210. ol {
  211. margin: 0 0 28px 0;
  212. padding: 0;
  213. }
  214. ul {
  215. list-style: disc;
  216. }
  217. ol {
  218. list-style: decimal;
  219. }
  220. li > ul,
  221. li > ol {
  222. margin-bottom: 0;
  223. }
  224. li > ul,
  225. blockquote > ul {
  226. margin-left: 20px;
  227. }
  228. li > ol,
  229. blockquote > ol {
  230. margin-left: 24px;
  231. }
  232. dl {
  233. margin: 0 0 28px;
  234. }
  235. dt {
  236. font-weight: bold;
  237. }
  238. dd {
  239. margin: 0 0 28px;
  240. }
  241. table,
  242. th,
  243. td,
  244. .mce-item-table,
  245. .mce-item-table th,
  246. .mce-item-table td {
  247. border: 1px solid #d1d1d1;
  248. }
  249. table a {
  250. color: #007acc;
  251. }
  252. table,
  253. .mce-item-table {
  254. border-collapse: separate;
  255. border-spacing: 0;
  256. border-width: 1px 0 0 1px;
  257. margin: 0 0 28px;
  258. width: 100%;
  259. }
  260. table th,
  261. .mce-item-table th,
  262. table caption {
  263. border-width: 0 1px 1px 0;
  264. font-size: 16px;
  265. font-weight: 700;
  266. padding: 7px;
  267. text-align: left;
  268. vertical-align: baseline;
  269. }
  270. table td,
  271. .mce-item-table td {
  272. border-width: 0 1px 1px 0;
  273. font-size: 16px;
  274. padding: 7px;
  275. vertical-align: baseline;
  276. }
  277. img {
  278. border: 0;
  279. height: auto;
  280. max-width: 100%;
  281. vertical-align: middle;
  282. }
  283. a img {
  284. display: block;
  285. }
  286. figure {
  287. margin: 0;
  288. }
  289. del {
  290. opacity: 0.8;
  291. }
  292. a {
  293. box-shadow: 0 1px 0 0 currentColor;
  294. color: #007acc;
  295. text-decoration: none;
  296. }
  297. fieldset {
  298. border: 1px solid #d1d1d1;
  299. margin: 0 0 28px;
  300. padding: 14px;
  301. }
  302. /**
  303. * 4.0 - Alignment
  304. */
  305. .alignleft {
  306. float: left;
  307. margin: 6px 28px 28px 0;
  308. }
  309. .alignright {
  310. float: right;
  311. margin: 6px 0 28px 28px;
  312. }
  313. .aligncenter {
  314. clear: both;
  315. display: block;
  316. margin: 0 auto 28px;
  317. }
  318. /**
  319. * 5.0 - Caption
  320. */
  321. .wp-caption {
  322. background: transparent;
  323. border: none;
  324. margin-bottom: 28px;
  325. max-width: 100%;
  326. padding: 0;
  327. text-align: inherit;
  328. }
  329. .wp-caption-text,
  330. .wp-caption-dd {
  331. color: #686868;
  332. font-size: 13px;
  333. font-style: italic;
  334. line-height: 1.6153846154;
  335. padding-top: 7px;
  336. }
  337. /**
  338. * 6.0 - Galleries
  339. */
  340. .mce-content-body .wpview-wrap {
  341. margin-bottom: 28px;
  342. }
  343. .gallery {
  344. margin: 0 -1.1666667%;
  345. padding: 0;
  346. }
  347. .gallery .gallery-item {
  348. display: inline-block;
  349. max-width: 33.33%;
  350. padding: 0 1.1400652% 2.2801304%;
  351. text-align: center;
  352. vertical-align: top;
  353. width: 100%;
  354. }
  355. .gallery-columns-1 .gallery-item {
  356. max-width: 100%;
  357. }
  358. .gallery-columns-2 .gallery-item {
  359. max-width: 50%;
  360. }
  361. .gallery-columns-4 .gallery-item {
  362. max-width: 25%;
  363. }
  364. .gallery-columns-5 .gallery-item {
  365. max-width: 20%;
  366. }
  367. .gallery-columns-6 .gallery-item {
  368. max-width: 16.66%;
  369. }
  370. .gallery-columns-7 .gallery-item {
  371. max-width: 14.28%;
  372. }
  373. .gallery-columns-8 .gallery-item {
  374. max-width: 12.5%;
  375. }
  376. .gallery-columns-9 .gallery-item {
  377. max-width: 11.11%;
  378. }
  379. .gallery .gallery-caption {
  380. font-size: 13px;
  381. margin: 0;
  382. }
  383. .gallery-columns-6 .gallery-caption,
  384. .gallery-columns-7 .gallery-caption,
  385. .gallery-columns-8 .gallery-caption,
  386. .gallery-columns-9 .gallery-caption {
  387. display: none;
  388. }
  389. /**
  390. * 7.0 - Audio / Video
  391. */
  392. .wp-audio-shortcode a,
  393. .wp-playlist a {
  394. box-shadow: none;
  395. }
  396. .mce-content-body .wp-audio-playlist {
  397. margin: 0;
  398. padding-bottom: 0;
  399. }
  400. .mce-content-body .wp-playlist-tracks {
  401. margin-top: 0;
  402. }
  403. .mce-content-body .wp-playlist-item {
  404. padding: 10px 0;
  405. }
  406. .mce-content-body .wp-playlist-item-length {
  407. top: 10px;
  408. }
  409. /**
  410. * 8.0 - RTL
  411. */
  412. .rtl blockquote {
  413. border: 0 solid #1a1a1a;
  414. border-right-width: 4px;
  415. }
  416. .rtl blockquote.alignleft,
  417. .rtl blockquote.alignright {
  418. border: 0 solid #1a1a1a;
  419. border-top-width: 4px;
  420. }
  421. .rtl blockquote:not(.alignleft):not(.alignright) {
  422. margin-right: -28px;
  423. padding: 0 24px 0 0;
  424. }
  425. .rtl blockquote blockquote:not(.alignleft):not(.alignright) {
  426. margin-right: 0;
  427. margin-left: auto;
  428. }
  429. .rtl li > ul,
  430. .rtl blockquote > ul {
  431. margin-right: 20px;
  432. margin-left: auto;
  433. }
  434. .rtl li > ol,
  435. .rtl blockquote > ol {
  436. margin-right: 24px;
  437. margin-left: auto;
  438. }
  439. .rtl table th,
  440. .rtl .mce-item-table th,
  441. .rtl table caption {
  442. text-align: right;
  443. }