editor-style.css 6.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503
  1. /*
  2. Theme Name: Affinity
  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: #1e1c1b;
  22. font-family: Lora, Baskerville, Georgia, Times, serif;
  23. font-size: 16px;
  24. font-size: 1rem;
  25. line-height: 1.6;
  26. }
  27. body.post-type-page {
  28. max-width: 716px;
  29. }
  30. /**
  31. * 2.0 - Typography
  32. */
  33. h1, h2, h3, h4, h5, h6 {
  34. clear: both;
  35. font-family: Lora, Baskerville, Georgia, Times, serif;
  36. font-style: italic;
  37. font-weight: normal;
  38. margin-top: 0.2em;
  39. margin-bottom: 0.2em;
  40. }
  41. h1 {
  42. font-size: 34px;
  43. font-size: 2.125rem;
  44. }
  45. h2 {
  46. font-size: 29.2px;
  47. font-size: 1.825rem;
  48. }
  49. h3 {
  50. font-size: 26px;
  51. font-size: 1.625rem;
  52. }
  53. h4 {
  54. font-size: 18px;
  55. font-size: 1.125rem;
  56. margin-top: 0.4em;
  57. margin-bottom: 0.4em;
  58. }
  59. h5 {
  60. font-size: 16px;
  61. font-size: 1rem;
  62. margin-top: 0.8em;
  63. margin-bottom: 0.8em;
  64. }
  65. h6 {
  66. font-size: 14px;
  67. font-size: 0.875rem;
  68. margin-top: 0.8em;
  69. margin-bottom: 0.8em;
  70. }
  71. @media screen and (min-width: 46em) {
  72. h1 {
  73. font-size: 47.12px;
  74. }
  75. h2 {
  76. font-size: 42px;
  77. }
  78. h3 {
  79. font-size: 29.2px;
  80. }
  81. h4 {
  82. font-size: 26px;
  83. }
  84. h5 {
  85. font-size: 18px;
  86. }
  87. h6 {
  88. font-size: 16px;
  89. }
  90. }
  91. p {
  92. margin-top: 0;
  93. margin-bottom: 1.6em;
  94. }
  95. b,
  96. strong {
  97. font-weight: 700;
  98. }
  99. dfn, cite, em, i {
  100. font-style: italic;
  101. }
  102. blockquote {
  103. border-left: 4px solid #1a1a1a;
  104. color: #686868;
  105. font-size: 19px;
  106. font-style: italic;
  107. line-height: 1.4736842105;
  108. margin-bottom: 28px;
  109. overflow: hidden;
  110. padding: 0 0 0 24px;
  111. }
  112. blockquote {
  113. color: #99908a;
  114. font-size: 18px;
  115. font-style: italic;
  116. margin: 0;
  117. border-top: 3px solid #e8e9ea;
  118. padding-top: .8em;
  119. border-bottom: 1px solid #e8e9ea;
  120. margin-bottom: .8em;
  121. padding-bottom: .8em;
  122. }
  123. blockquote.aligncenter {
  124. text-align: center;
  125. }
  126. blockquote p:last-of-type {
  127. margin-bottom: 0;
  128. }
  129. blockquote blockquote {
  130. border-top: 0;
  131. border-bottom: 0;
  132. padding-left: .8em;
  133. padding-bottom: 0;
  134. }
  135. blockquote cite {
  136. display: block;
  137. text-align: right;
  138. font-style: normal;
  139. font-size: 16px;
  140. font-size: 1rem;
  141. }
  142. blockquote, q {
  143. quotes: "" "";
  144. }
  145. blockquote:before, blockquote:after, q:before, q:after {
  146. content: "";
  147. }
  148. address {
  149. margin: 0 0 1.6em;
  150. }
  151. pre {
  152. background: #e8e9ea;
  153. font-family: "Courier 10 Pitch", Courier, monospace;
  154. font-size: 13.2px;
  155. font-size: 0.825rem;
  156. line-height: 1.6;
  157. margin-bottom: 1.6em;
  158. max-width: 100%;
  159. overflow: auto;
  160. padding: 1.6em;
  161. }
  162. code, kbd, tt, var {
  163. font-family: Monaco, Consolas, "Andale Mono", "DejaVu Sans Mono", monospace;
  164. font-size: 13.2px;
  165. font-size: 0.825rem;
  166. }
  167. abbr, acronym {
  168. border-bottom: 1px dotted #666666;
  169. cursor: help;
  170. }
  171. mark, ins {
  172. background: #fff9c0;
  173. text-decoration: none;
  174. }
  175. big {
  176. font-size: 125%;
  177. }
  178. abbr[title] {
  179. border-bottom: 1px dotted #d1d1d1;
  180. cursor: help;
  181. }
  182. mark {
  183. background: #ff0;
  184. color: #000;
  185. }
  186. small {
  187. font-size: 80%;
  188. }
  189. sub,
  190. sup {
  191. font-size: 75%;
  192. line-height: 0;
  193. position: relative;
  194. vertical-align: baseline;
  195. }
  196. sup {
  197. top: -0.5em;
  198. }
  199. sub {
  200. bottom: -0.25em;
  201. }
  202. /**
  203. * 3.0 - Elements
  204. */
  205. hr {
  206. background-color: #e8e9ea;
  207. border: 0;
  208. height: 1px;
  209. margin: 0.8em auto;
  210. max-width: 66%;
  211. }
  212. ul, ol {
  213. margin: 0 0 1.6em 3.2em;
  214. padding-left: 0;
  215. }
  216. ul {
  217. list-style: disc;
  218. }
  219. ol {
  220. list-style: decimal;
  221. }
  222. li > ul,
  223. li > ol {
  224. margin-bottom: 0;
  225. margin-left: 1.6em;
  226. padding-left: 0;
  227. }
  228. dt {
  229. font-weight: bold;
  230. }
  231. dd {
  232. margin: 0 1.6em 1.6em;
  233. }
  234. .mce-item-table,
  235. table {
  236. margin: 0 0 1.6em;
  237. width: 100%;
  238. }
  239. td,
  240. th
  241. .mce-item-table th,
  242. .mce-item-table td {
  243. padding: 0.4em 0.2em;
  244. border-bottom: 1px solid #e8e9ea;
  245. }
  246. th {
  247. font-weight: bold;
  248. border-bottom-width: 3px;
  249. text-align: left;
  250. }
  251. caption {
  252. font-style: italic;
  253. font-weight: bold;
  254. }
  255. img {
  256. border: 0;
  257. height: auto;
  258. max-width: 100%;
  259. vertical-align: middle;
  260. }
  261. a img {
  262. display: block;
  263. }
  264. figure {
  265. margin: 0;
  266. }
  267. del {
  268. opacity: 0.8;
  269. }
  270. a {
  271. color: #99908a;
  272. transition: 0.3s;
  273. }
  274. a:visited {
  275. color: #99908a;
  276. }
  277. a:hover, a:focus, a:active {
  278. color: #383e44;
  279. }
  280. a:focus {
  281. outline: thin dotted;
  282. }
  283. a:hover, a:active {
  284. outline: 0;
  285. }
  286. fieldset {
  287. border: 1px solid silver;
  288. margin: 0 2px;
  289. padding: 0.35em 0.625em 0.75em;
  290. }
  291. /**
  292. * 4.0 - Alignment
  293. */
  294. .alignleft {
  295. display: inline;
  296. float: left;
  297. margin: 0.4em 1.6em 0.4em 0;
  298. }
  299. .alignright {
  300. display: inline;
  301. float: right;
  302. margin: 0.4em 0 0.4em 1.6em;
  303. }
  304. .aligncenter {
  305. clear: both;
  306. display: block;
  307. margin-left: auto;
  308. margin-right: auto;
  309. }
  310. /**
  311. * 5.0 - Caption
  312. */
  313. .wp-caption {
  314. font-size: 13.2px;
  315. font-style: italic;
  316. margin-bottom: 1.6em;
  317. max-width: 100%;
  318. }
  319. .wp-caption img[class*="wp-image-"] {
  320. display: block;
  321. margin-left: auto;
  322. margin-right: auto;
  323. }
  324. .wp-caption-text,
  325. .wp-caption-dd {
  326. margin: 0.8em 0;
  327. text-align: center;
  328. }
  329. /**
  330. * 6.0 - Galleries
  331. */
  332. .mce-content-body .wpview-wrap {
  333. margin-bottom: 1.6em;
  334. }
  335. .gallery .gallery-item {
  336. display: inline-block;
  337. text-align: center;
  338. vertical-align: top;
  339. padding: .4em;
  340. width: 100%;
  341. }
  342. .gallery-columns-1 .gallery-item {
  343. max-width: 100%;
  344. }
  345. .gallery-columns-2 .gallery-item {
  346. max-width: 50%;
  347. }
  348. .gallery-columns-3 .gallery-item {
  349. max-width: 33.33%;
  350. }
  351. .gallery-columns-4 .gallery-item {
  352. max-width: 25%;
  353. }
  354. .gallery-columns-5 .gallery-item {
  355. max-width: 20%;
  356. }
  357. .gallery-columns-6 .gallery-item {
  358. max-width: 16.66%;
  359. }
  360. .gallery-columns-7 .gallery-item {
  361. max-width: 14.28%;
  362. }
  363. .gallery-columns-8 .gallery-item {
  364. max-width: 12.5%;
  365. }
  366. .gallery-columns-9 .gallery-item {
  367. max-width: 11.11%;
  368. }
  369. .gallery .gallery-caption {
  370. display: block;
  371. font-size: 13.2px;
  372. font-size: 0.825rem;
  373. }
  374. /**
  375. * 7.0 - Audio / Video
  376. */
  377. .wp-audio-shortcode a,
  378. .wp-playlist a {
  379. box-shadow: none;
  380. }
  381. .mce-content-body .wp-audio-playlist {
  382. margin: 0;
  383. padding-bottom: 0;
  384. }
  385. .mce-content-body .wp-playlist-tracks {
  386. margin-top: 0;
  387. }
  388. .mce-content-body .wp-playlist-item {
  389. padding: .8em 0;
  390. }
  391. .mce-content-body .wp-playlist-item-length {
  392. top: .8em;
  393. }
  394. /**
  395. * 8.0 - RTL
  396. */
  397. .rtl blockquote:not(.alignleft):not(.alignright) {
  398. padding: 0 1.6em 0 0;
  399. }
  400. .rtl blockquote blockquote:not(.alignleft):not(.alignright) {
  401. margin-right: 0;
  402. margin-left: auto;
  403. }
  404. .rtl li > ul,
  405. .rtl blockquote > ul {
  406. margin-right: 1.6em;
  407. margin-left: auto;
  408. }
  409. .rtl li > ol,
  410. .rtl blockquote > ol {
  411. margin-right: 1.6em;
  412. margin-left: auto;
  413. }
  414. .rtl table th,
  415. .rtl .mce-item-table th,
  416. .rtl table caption {
  417. text-align: right;
  418. }