editor-style.css 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714
  1. /*
  2. Theme Name: Twenty Fourteen
  3. Description: Used to style the TinyMCE editor.
  4. */
  5. /**
  6. * Table of Contents:
  7. *
  8. * 1.0 - Body
  9. * 2.0 - Headings
  10. * 3.0 - Text Elements
  11. * 4.0 - Links
  12. * 5.0 - Alignment
  13. * 6.0 - Tables
  14. * 7.0 - Images
  15. * 8.0 - Galleries
  16. * 9.0 - Audio/Video
  17. * 10.0 - RTL
  18. * ----------------------------------------------------------------------------
  19. */
  20. /**
  21. * 1.0 Body
  22. * ----------------------------------------------------------------------------
  23. */
  24. html .mceContentBody {
  25. font-size: 100%;
  26. max-width: 100%;
  27. }
  28. body {
  29. color: #2b2b2b;
  30. font-family: "Libre Baskerville", Baskerville, "Book Antiqua", Georgia, Times, serif;
  31. font-weight: 400;
  32. line-height: 2.4;
  33. vertical-align: baseline;
  34. }
  35. /**
  36. * 2.0 Headings
  37. * ----------------------------------------------------------------------------
  38. */
  39. h1,
  40. h2,
  41. h3,
  42. h4,
  43. h5,
  44. h6 {
  45. clear: both;
  46. line-height: 1.6;
  47. }
  48. h1 {
  49. color: #a09a92;
  50. font-family: "Playfair Display", Georgia, serif;
  51. font-size: 32px;
  52. font-size: 3.2rem;
  53. font-style: italic;
  54. margin: 0.5em 0 0.25em;
  55. }
  56. h2 {
  57. border-bottom: 1px solid #787065;
  58. color: #787065;
  59. font-family: Montserrat, "Helvetica Neue", Helvetica, Arial, sans-serif;
  60. font-size: 18px;
  61. font-size: 1.8rem;
  62. letter-spacing: 1px;
  63. margin: 1.5em 0 0.75em;
  64. padding-bottom: 0.25em;
  65. text-transform: uppercase;
  66. }
  67. h3 {
  68. color: #a09a92;
  69. font-size: 21px;
  70. font-size: 2.1rem;
  71. font-style: italic;
  72. margin: 1em 0 0.5em;
  73. }
  74. h4 {
  75. color: #787065;
  76. font-family: Montserrat, "Helvetica Neue", Helvetica, Arial, sans-serif;
  77. font-size: 14px;
  78. font-size: 1.4rem;
  79. letter-spacing: 1px;
  80. margin: 1.5em 0 0.75em;
  81. text-transform: uppercase;
  82. }
  83. h5 {
  84. color: #a09a92;
  85. font-size: 21px;
  86. font-size: 2.1rem;
  87. font-style: italic;
  88. margin: 1.5em 0 0.75em;
  89. }
  90. h6 {
  91. color: #787065;
  92. font-family: Montserrat, "Helvetica Neue", Helvetica, Arial, sans-serif;
  93. font-size: 12px;
  94. font-size: 1.2rem;
  95. letter-spacing: 1px;
  96. margin: 0.75em 0 0.25em;
  97. text-transform: uppercase;
  98. }
  99. p {
  100. margin-bottom: 1.5em;
  101. }
  102. h1:first-child,
  103. h2:first-child,
  104. h3:first-child,
  105. h4:first-child,
  106. h5:first-child,
  107. h6:first-child {
  108. margin-top: 0;
  109. }
  110. /**
  111. * 3.0 Text Elements
  112. * ----------------------------------------------------------------------------
  113. */
  114. p {
  115. margin: 0 0 0.75em;
  116. }
  117. b,
  118. strong {
  119. font-weight: bold;
  120. }
  121. dfn,
  122. cite,
  123. em,
  124. i {
  125. font-style: italic;
  126. }
  127. blockquote {
  128. color: #a09a92;
  129. font-family: "Playfair Display", Georgia, serif;
  130. font-size: 24px;
  131. font-size: 2.4rem;
  132. font-style: italic;
  133. line-height: 1.4;
  134. position: relative;
  135. }
  136. blockquote:before {
  137. color: #d9d6d0;
  138. content: '\201C';
  139. display: block;
  140. font-size: 61px;
  141. font-size: 6.1rem;
  142. font-style: normal;
  143. left: -40px;
  144. line-height: 1;
  145. position: absolute;
  146. top: -8px;
  147. }
  148. blockquote cite {
  149. color: #787065;
  150. float: right;
  151. font-family: Montserrat, "Helvetica Neue", Helvetica, Arial, sans-serif;
  152. font-size: 12px;
  153. font-size: 1.2rem;
  154. font-style: normal;
  155. letter-spacing: 1px;
  156. margin-top: 1em;
  157. text-transform: uppercase;
  158. }
  159. blockquote cite:before {
  160. content: '\2013';
  161. display: inline;
  162. }
  163. address {
  164. margin: 0 0 1.5em;
  165. }
  166. pre {
  167. background: #d9d6d0;
  168. font-family: "Droid Sans Mono", "Andale Mono", Consolas, "DejaVu Sans Mono", monospace;
  169. font-size: 10px;
  170. font-size: 1.0rem;
  171. line-height: 1.6;
  172. margin-bottom: 1.6em;
  173. padding: 1.6em;
  174. max-width: 100%;
  175. white-space: pre;
  176. white-space: pre-wrap;
  177. }
  178. code, kbd, tt, var {
  179. font-family: "Droid Sans Mono", "Andale Mono", Consolas, "DejaVu Sans Mono", monospace;
  180. font-size: 10px;
  181. font-size: 1.0rem;
  182. }
  183. abbr,
  184. acronym {
  185. border-bottom: 1px dotted #a09a92;
  186. cursor: help;
  187. }
  188. mark,
  189. ins {
  190. background: #faf9f5;
  191. text-decoration: none;
  192. }
  193. sup,
  194. sub {
  195. font-size: 75%;
  196. height: 0;
  197. line-height: 0;
  198. position: relative;
  199. vertical-align: baseline;
  200. }
  201. sup {
  202. bottom: 1ex;
  203. }
  204. sub {
  205. top: .5ex;
  206. }
  207. small {
  208. font-size: 75%;
  209. }
  210. big {
  211. font-size: 125%;
  212. }
  213. strong em,
  214. em strong,
  215. b i,
  216. i b,
  217. b em,
  218. em b,
  219. strong i,
  220. i strong,
  221. .wp-caption strong {
  222. background: #faf9f5;
  223. color: #a09a92;
  224. font-size: .8em;
  225. font-style: normal;
  226. font-weight: bold;
  227. letter-spacing: 1px;
  228. padding: 2px 0;
  229. text-transform: uppercase;
  230. }
  231. em code,
  232. strong code,
  233. i code,
  234. b code {
  235. font-style: normal;
  236. font-weight: normal;
  237. }
  238. /**
  239. * 4.0 Links
  240. * ----------------------------------------------------------------------------
  241. */
  242. a {
  243. color: #932817;
  244. text-decoration: none;
  245. }
  246. a:visited {
  247. color: #943526;
  248. }
  249. a:focus {
  250. outline: thin dotted;
  251. }
  252. a:hover,
  253. a:focus,
  254. a:active {
  255. color: #712012;
  256. outline: 0;
  257. }
  258. /**
  259. * 5.0 Alignment
  260. * ----------------------------------------------------------------------------
  261. */
  262. .alignleft {
  263. display: inline;
  264. float: left;
  265. margin: 0 1.5em 0.5em 0;
  266. }
  267. .alignright {
  268. display: inline;
  269. float: right;
  270. margin: 0 0 0.5em 1.5em;
  271. }
  272. .aligncenter {
  273. clear: both;
  274. display: block;
  275. margin: 0 auto;
  276. }
  277. /**
  278. * 6.0 Tables
  279. * ----------------------------------------------------------------------------
  280. */
  281. .mceItemTable,
  282. .mce-item-table {
  283. font-size: 0.85em;
  284. line-height: 1.4;
  285. margin: 0.5em 0 1.5em;
  286. width: 100%;
  287. }
  288. .mceItemTable tr:nth-of-type(odd) {
  289. background: rgba(255, 255, 255, 0.5);
  290. }
  291. .mceItemTable th,
  292. .mceItemTable td {
  293. border-bottom: 1px solid #d9d6d0;
  294. padding: 0.8em 1em;
  295. }
  296. .mceItemTable th {
  297. font-style: italic;
  298. }
  299. .mceItemTable thead:nth-of-type(odd) tr {
  300. background: none;
  301. }
  302. .mceItemTable thead th {
  303. border-width: 2px;
  304. color: #a09a92;
  305. font-style: normal;
  306. font-weight: bold;
  307. padding: 0.4em 1em;
  308. }
  309. /**
  310. * 7.0 Images
  311. * ----------------------------------------------------------------------------
  312. */
  313. img {
  314. height: auto;
  315. max-width: 474px;
  316. vertical-align: middle;
  317. }
  318. .wp-caption {
  319. background: transparent;
  320. border: none;
  321. color: #767676;
  322. margin: 0 0 24px 0;
  323. max-width: 474px;
  324. padding: 0;
  325. text-align: left;
  326. }
  327. .html5-captions .wp-caption {
  328. padding: 0;
  329. }
  330. .wp-caption.alignleft {
  331. margin: 7px 14px 7px 0;
  332. }
  333. .html5-captions .wp-caption.alignleft {
  334. margin-right: 24px;
  335. }
  336. .wp-caption.alignright {
  337. margin: 7px 0 7px 14px;
  338. }
  339. .wp-caption.alignright img,
  340. .wp-caption.alignright .wp-caption-dd {
  341. padding-left: 10px;
  342. }
  343. .html5-captions .wp-caption.alignright {
  344. margin-left: 24px;
  345. }
  346. .html5-captions .wp-caption.alignright img,
  347. .html5-captions .wp-caption.alignright .wp-caption-dd {
  348. padding: 0;
  349. }
  350. .wp-caption.aligncenter {
  351. margin: 7px auto;
  352. }
  353. .wp-caption-dt {
  354. margin: 0;
  355. }
  356. .wp-caption .wp-caption-text,
  357. .wp-caption-dd {
  358. -webkit-box-sizing: border-box;
  359. -moz-box-sizing: border-box;
  360. box-sizing: border-box;
  361. font-size: 12px;
  362. font-style: italic;
  363. line-height: 1.5;
  364. margin: 9px 0;
  365. padding: 0 10px 0 0; /* Avoid the caption to overflow the width of the image because wp-caption has 10px wider width */
  366. text-align: left;
  367. }
  368. .mceTemp + ul,
  369. .mceTemp + ol {
  370. list-style-position: inside;
  371. }
  372. /**
  373. * 8.0 Gallery
  374. * -----------------------------------------------------------------------------
  375. */
  376. .gallery .gallery-item {
  377. float: left;
  378. margin: 0 4px 4px 0;
  379. overflow: hidden;
  380. padding: 0;
  381. position: relative;
  382. }
  383. .gallery-columns-1 .gallery-item {
  384. max-width: 100%;
  385. width: auto;
  386. }
  387. .gallery-columns-2 .gallery-item {
  388. max-width: 48%;
  389. max-width: -webkit-calc(50% - 14px);
  390. max-width: calc(50% - 14px);
  391. width: auto;
  392. }
  393. .gallery-columns-3 .gallery-item {
  394. max-width: 32%;
  395. max-width: -webkit-calc(33.3% - 11px);
  396. max-width: calc(33.3% - 11px);
  397. width: auto;
  398. }
  399. .gallery-columns-4 .gallery-item {
  400. max-width: 23%;
  401. max-width: -webkit-calc(25% - 9px);
  402. max-width: calc(25% - 9px);
  403. width: auto;
  404. }
  405. .gallery-columns-5 .gallery-item {
  406. max-width: 19%;
  407. max-width: -webkit-calc(20% - 8px);
  408. max-width: calc(20% - 8px);
  409. width: auto;
  410. }
  411. .gallery-columns-6 .gallery-item {
  412. max-width: 15%;
  413. max-width: -webkit-calc(16.7% - 7px);
  414. max-width: calc(16.7% - 7px);
  415. width: auto;
  416. }
  417. .gallery-columns-7 .gallery-item {
  418. max-width: 13%;
  419. max-width: -webkit-calc(14.28% - 7px);
  420. max-width: calc(14.28% - 7px);
  421. width: auto;
  422. }
  423. .gallery-columns-8 .gallery-item {
  424. max-width: 11%;
  425. max-width: -webkit-calc(12.5% - 6px);
  426. max-width: calc(12.5% - 6px);
  427. width: auto;
  428. }
  429. .gallery-columns-9 .gallery-item {
  430. max-width: 9%;
  431. max-width: -webkit-calc(11.1% - 6px);
  432. max-width: calc(11.1% - 6px);
  433. width: auto;
  434. }
  435. .gallery-columns-1 .gallery-item:nth-of-type(1n),
  436. .gallery-columns-2 .gallery-item:nth-of-type(2n),
  437. .gallery-columns-3 .gallery-item:nth-of-type(3n),
  438. .gallery-columns-4 .gallery-item:nth-of-type(4n),
  439. .gallery-columns-5 .gallery-item:nth-of-type(5n),
  440. .gallery-columns-6 .gallery-item:nth-of-type(6n),
  441. .gallery-columns-7 .gallery-item:nth-of-type(7n),
  442. .gallery-columns-8 .gallery-item:nth-of-type(8n),
  443. .gallery-columns-9 .gallery-item:nth-of-type(9n) {
  444. margin-right: 0;
  445. }
  446. .gallery-columns-1 .gallery-item:nth-of-type(1n),
  447. .gallery-columns-2 .gallery-item:nth-of-type(2n - 1),
  448. .gallery-columns-3 .gallery-item:nth-of-type(3n - 2),
  449. .gallery-columns-4 .gallery-item:nth-of-type(4n - 3),
  450. .gallery-columns-5 .gallery-item:nth-of-type(5n - 4),
  451. .gallery-columns-6 .gallery-item:nth-of-type(6n - 5),
  452. .gallery-columns-7 .gallery-item:nth-of-type(7n - 6),
  453. .gallery-columns-8 .gallery-item:nth-of-type(8n - 7),
  454. .gallery-columns-9 .gallery-item:nth-of-type(9n - 8) {
  455. margin-left: 12px; /* Compensate for the default negative margin on .gallery, which can't be changed. */
  456. }
  457. .gallery .gallery-caption {
  458. background-color: rgba(0, 0, 0, 0.7);
  459. -webkit-box-sizing: border-box;
  460. -moz-box-sizing: border-box;
  461. box-sizing: border-box;
  462. color: #fff;
  463. font-size: 12px;
  464. line-height: 1.5;
  465. margin: 0;
  466. max-height: 50%;
  467. opacity: 0;
  468. padding: 6px 8px;
  469. position: absolute;
  470. bottom: 0;
  471. left: 0;
  472. text-align: left;
  473. width: 100%;
  474. }
  475. .gallery .gallery-caption:before {
  476. content: "";
  477. height: 100%;
  478. min-height: 49px;
  479. position: absolute;
  480. top: 0;
  481. left: 0;
  482. width: 100%;
  483. }
  484. .gallery-item:hover .gallery-caption {
  485. opacity: 1;
  486. }
  487. .gallery-columns-7 .gallery-caption,
  488. .gallery-columns-8 .gallery-caption,
  489. .gallery-columns-9 .gallery-caption {
  490. display: none;
  491. }
  492. /**
  493. * 9.0 Audio/Video
  494. * ----------------------------------------------------------------------------
  495. */
  496. .mejs-mediaelement,
  497. .mejs-container .mejs-controls {
  498. background: #000;
  499. }
  500. .mejs-controls .mejs-time-rail .mejs-time-loaded,
  501. .mejs-controls .mejs-horizontal-volume-slider .mejs-horizontal-volume-current {
  502. background: #fff;
  503. }
  504. .mejs-controls .mejs-time-rail .mejs-time-current {
  505. background: #24890d;
  506. }
  507. .mejs-controls .mejs-time-rail .mejs-time-total,
  508. .mejs-controls .mejs-horizontal-volume-slider .mejs-horizontal-volume-total {
  509. background: rgba(255, 255, 255, .33);
  510. }
  511. .mejs-controls .mejs-time-rail span,
  512. .mejs-controls .mejs-horizontal-volume-slider .mejs-horizontal-volume-total,
  513. .mejs-controls .mejs-horizontal-volume-slider .mejs-horizontal-volume-current {
  514. border-radius: 0;
  515. }
  516. .mejs-overlay-loading {
  517. background: transparent;
  518. }
  519. .mejs-overlay-button {
  520. background-color: #fff;
  521. background-image: none;
  522. border-radius: 2px;
  523. box-shadow: 1px 1px 1px rgba(0,0,0,.8);
  524. color: #000;
  525. height: 36px;
  526. margin-left: -24px;
  527. width: 48px;
  528. }
  529. .mejs-overlay-button:before {
  530. -webkit-font-smoothing: antialiased;
  531. content: '\f452';
  532. display: inline-block;
  533. font: normal 32px/1.125 Genericons;
  534. position: absolute;
  535. top: 1px;
  536. left: 10px;
  537. }
  538. .mejs-controls .mejs-button button:focus {
  539. outline: none;
  540. }
  541. .mejs-controls .mejs-button button {
  542. -webkit-font-smoothing: antialiased;
  543. background: none;
  544. color: #fff;
  545. display: inline-block;
  546. font: normal 16px/1 Genericons;
  547. }
  548. .mejs-playpause-button.mejs-play button:before {
  549. content: '\f452';
  550. }
  551. .mejs-playpause-button.mejs-pause button:before {
  552. content: '\f448';
  553. }
  554. .mejs-volume-button.mejs-mute button:before {
  555. content: '\f109';
  556. font-size: 20px;
  557. position: absolute;
  558. top: -2px;
  559. left: 0;
  560. }
  561. .mejs-volume-button.mejs-unmute button:before {
  562. content: '\f109';
  563. left: 0;
  564. position: absolute;
  565. top: 0;
  566. }
  567. .mejs-fullscreen-button button:before {
  568. content: '\f474';
  569. }
  570. .mejs-fullscreen-button.mejs-unfullscreen button:before {
  571. content: '\f406';
  572. }
  573. .mejs-overlay:hover .mejs-overlay-button {
  574. background-color: #24890d;
  575. color: #fff;
  576. }
  577. .mejs-controls .mejs-button button:hover {
  578. color: #41a62a;
  579. }
  580. /**
  581. * 10.0 RTL
  582. * ----------------------------------------------------------------------------
  583. */
  584. html .mceContentBody.rtl {
  585. direction: rtl;
  586. unicode-bidi: embed;
  587. }
  588. .rtl ol,
  589. .rtl ul {
  590. margin-left: 0;
  591. margin-right: 24px;
  592. }
  593. .rtl .wp-caption,
  594. .rtl tr th {
  595. text-align: right;
  596. }
  597. .rtl td {
  598. text-align: right;
  599. }