editor-style.css 11 KB

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