editor-style.css 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717
  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. border: 1px solid rgba(0, 0, 0, 0.1);
  278. border-width: 1px 0 0 1px;
  279. border-collapse: separate;
  280. border-spacing: 0;
  281. font-size: 14px;
  282. line-height: 1.2857142857;
  283. margin-bottom: 24px;
  284. width: 100%;
  285. }
  286. .mceItemTable th,
  287. .mceItemTable caption {
  288. border: 1px solid rgba(0, 0, 0, 0.1);
  289. border-width: 0 1px 1px 0;
  290. font-weight: 700;
  291. padding: 8px;
  292. text-align: left;
  293. text-transform: uppercase;
  294. vertical-align: baseline;
  295. }
  296. .mceItemTable td {
  297. border: 1px solid rgba(0, 0, 0, 0.1);
  298. border-width: 0 1px 1px 0;
  299. font-family: Lato, sans-serif;
  300. font-size: 14px;
  301. padding: 8px;
  302. vertical-align: baseline;
  303. }
  304. /**
  305. * 7.0 Images
  306. * ----------------------------------------------------------------------------
  307. */
  308. img {
  309. height: auto;
  310. max-width: 474px;
  311. vertical-align: middle;
  312. }
  313. .wp-caption {
  314. background: transparent;
  315. border: none;
  316. color: #767676;
  317. margin: 0 0 24px 0;
  318. max-width: 474px;
  319. padding: 0;
  320. text-align: left;
  321. }
  322. .html5-captions .wp-caption {
  323. padding: 0;
  324. }
  325. .wp-caption.alignleft {
  326. margin: 7px 14px 7px 0;
  327. }
  328. .html5-captions .wp-caption.alignleft {
  329. margin-right: 24px;
  330. }
  331. .wp-caption.alignright {
  332. margin: 7px 0 7px 14px;
  333. }
  334. .wp-caption.alignright img,
  335. .wp-caption.alignright .wp-caption-dd {
  336. padding-left: 10px;
  337. }
  338. .html5-captions .wp-caption.alignright {
  339. margin-left: 24px;
  340. }
  341. .html5-captions .wp-caption.alignright img,
  342. .html5-captions .wp-caption.alignright .wp-caption-dd {
  343. padding: 0;
  344. }
  345. .wp-caption.aligncenter {
  346. margin: 7px auto;
  347. }
  348. .wp-caption-dt {
  349. margin: 0;
  350. }
  351. .wp-caption .wp-caption-text,
  352. .wp-caption-dd {
  353. -webkit-box-sizing: border-box;
  354. -moz-box-sizing: border-box;
  355. box-sizing: border-box;
  356. font-size: 12px;
  357. font-style: italic;
  358. line-height: 1.5;
  359. margin: 9px 0;
  360. padding: 0 10px 0 0; /* Avoid the caption to overflow the width of the image because wp-caption has 10px wider width */
  361. text-align: left;
  362. }
  363. .mceTemp + ul,
  364. .mceTemp + ol {
  365. list-style-position: inside;
  366. }
  367. /**
  368. * 8.0 Gallery
  369. * -----------------------------------------------------------------------------
  370. */
  371. .gallery .gallery-item {
  372. float: left;
  373. margin: 0 4px 4px 0;
  374. overflow: hidden;
  375. padding: 0;
  376. position: relative;
  377. }
  378. .gallery-columns-1 .gallery-item {
  379. max-width: 100%;
  380. width: auto;
  381. }
  382. .gallery-columns-2 .gallery-item {
  383. max-width: 48%;
  384. max-width: -webkit-calc(50% - 14px);
  385. max-width: calc(50% - 14px);
  386. width: auto;
  387. }
  388. .gallery-columns-3 .gallery-item {
  389. max-width: 32%;
  390. max-width: -webkit-calc(33.3% - 11px);
  391. max-width: calc(33.3% - 11px);
  392. width: auto;
  393. }
  394. .gallery-columns-4 .gallery-item {
  395. max-width: 23%;
  396. max-width: -webkit-calc(25% - 9px);
  397. max-width: calc(25% - 9px);
  398. width: auto;
  399. }
  400. .gallery-columns-5 .gallery-item {
  401. max-width: 19%;
  402. max-width: -webkit-calc(20% - 8px);
  403. max-width: calc(20% - 8px);
  404. width: auto;
  405. }
  406. .gallery-columns-6 .gallery-item {
  407. max-width: 15%;
  408. max-width: -webkit-calc(16.7% - 7px);
  409. max-width: calc(16.7% - 7px);
  410. width: auto;
  411. }
  412. .gallery-columns-7 .gallery-item {
  413. max-width: 13%;
  414. max-width: -webkit-calc(14.28% - 7px);
  415. max-width: calc(14.28% - 7px);
  416. width: auto;
  417. }
  418. .gallery-columns-8 .gallery-item {
  419. max-width: 11%;
  420. max-width: -webkit-calc(12.5% - 6px);
  421. max-width: calc(12.5% - 6px);
  422. width: auto;
  423. }
  424. .gallery-columns-9 .gallery-item {
  425. max-width: 9%;
  426. max-width: -webkit-calc(11.1% - 6px);
  427. max-width: calc(11.1% - 6px);
  428. width: auto;
  429. }
  430. .gallery-columns-1 .gallery-item:nth-of-type(1n),
  431. .gallery-columns-2 .gallery-item:nth-of-type(2n),
  432. .gallery-columns-3 .gallery-item:nth-of-type(3n),
  433. .gallery-columns-4 .gallery-item:nth-of-type(4n),
  434. .gallery-columns-5 .gallery-item:nth-of-type(5n),
  435. .gallery-columns-6 .gallery-item:nth-of-type(6n),
  436. .gallery-columns-7 .gallery-item:nth-of-type(7n),
  437. .gallery-columns-8 .gallery-item:nth-of-type(8n),
  438. .gallery-columns-9 .gallery-item:nth-of-type(9n) {
  439. margin-right: 0;
  440. }
  441. .gallery-columns-1 .gallery-item:nth-of-type(1n),
  442. .gallery-columns-2 .gallery-item:nth-of-type(2n - 1),
  443. .gallery-columns-3 .gallery-item:nth-of-type(3n - 2),
  444. .gallery-columns-4 .gallery-item:nth-of-type(4n - 3),
  445. .gallery-columns-5 .gallery-item:nth-of-type(5n - 4),
  446. .gallery-columns-6 .gallery-item:nth-of-type(6n - 5),
  447. .gallery-columns-7 .gallery-item:nth-of-type(7n - 6),
  448. .gallery-columns-8 .gallery-item:nth-of-type(8n - 7),
  449. .gallery-columns-9 .gallery-item:nth-of-type(9n - 8) {
  450. margin-left: 12px; /* Compensate for the default negative margin on .gallery, which can't be changed. */
  451. }
  452. .gallery .gallery-caption {
  453. background-color: rgba(0, 0, 0, 0.7);
  454. -webkit-box-sizing: border-box;
  455. -moz-box-sizing: border-box;
  456. box-sizing: border-box;
  457. color: #fff;
  458. font-size: 12px;
  459. line-height: 1.5;
  460. margin: 0;
  461. max-height: 50%;
  462. opacity: 0;
  463. padding: 6px 8px;
  464. position: absolute;
  465. bottom: 0;
  466. left: 0;
  467. text-align: left;
  468. width: 100%;
  469. }
  470. .gallery .gallery-caption:before {
  471. content: "";
  472. height: 100%;
  473. min-height: 49px;
  474. position: absolute;
  475. top: 0;
  476. left: 0;
  477. width: 100%;
  478. }
  479. .gallery-item:hover .gallery-caption {
  480. opacity: 1;
  481. }
  482. .gallery-columns-7 .gallery-caption,
  483. .gallery-columns-8 .gallery-caption,
  484. .gallery-columns-9 .gallery-caption {
  485. display: none;
  486. }
  487. /**
  488. * 9.0 Audio/Video
  489. * ----------------------------------------------------------------------------
  490. */
  491. .mejs-mediaelement,
  492. .mejs-container .mejs-controls {
  493. background: #000;
  494. }
  495. .mejs-controls .mejs-time-rail .mejs-time-loaded,
  496. .mejs-controls .mejs-horizontal-volume-slider .mejs-horizontal-volume-current {
  497. background: #fff;
  498. }
  499. .mejs-controls .mejs-time-rail .mejs-time-current {
  500. background: #24890d;
  501. }
  502. .mejs-controls .mejs-time-rail .mejs-time-total,
  503. .mejs-controls .mejs-horizontal-volume-slider .mejs-horizontal-volume-total {
  504. background: rgba(255, 255, 255, .33);
  505. }
  506. .mejs-controls .mejs-time-rail span,
  507. .mejs-controls .mejs-horizontal-volume-slider .mejs-horizontal-volume-total,
  508. .mejs-controls .mejs-horizontal-volume-slider .mejs-horizontal-volume-current {
  509. border-radius: 0;
  510. }
  511. .mejs-overlay-loading {
  512. background: transparent;
  513. }
  514. .mejs-overlay-button {
  515. background-color: #fff;
  516. background-image: none;
  517. border-radius: 2px;
  518. box-shadow: 1px 1px 1px rgba(0,0,0,.8);
  519. color: #000;
  520. height: 36px;
  521. margin-left: -24px;
  522. width: 48px;
  523. }
  524. .mejs-overlay-button:before {
  525. -webkit-font-smoothing: antialiased;
  526. content: '\f452';
  527. display: inline-block;
  528. font: normal 32px/1.125 Genericons;
  529. position: absolute;
  530. top: 1px;
  531. left: 10px;
  532. }
  533. .mejs-controls .mejs-button button:focus {
  534. outline: none;
  535. }
  536. .mejs-controls .mejs-button button {
  537. -webkit-font-smoothing: antialiased;
  538. background: none;
  539. color: #fff;
  540. display: inline-block;
  541. font: normal 16px/1 Genericons;
  542. }
  543. .mejs-playpause-button.mejs-play button:before {
  544. content: '\f452';
  545. }
  546. .mejs-playpause-button.mejs-pause button:before {
  547. content: '\f448';
  548. }
  549. .mejs-volume-button.mejs-mute button:before {
  550. content: '\f109';
  551. font-size: 20px;
  552. position: absolute;
  553. top: -2px;
  554. left: 0;
  555. }
  556. .mejs-volume-button.mejs-unmute button:before {
  557. content: '\f109';
  558. left: 0;
  559. position: absolute;
  560. top: 0;
  561. }
  562. .mejs-fullscreen-button button:before {
  563. content: '\f474';
  564. }
  565. .mejs-fullscreen-button.mejs-unfullscreen button:before {
  566. content: '\f406';
  567. }
  568. .mejs-overlay:hover .mejs-overlay-button {
  569. background-color: #24890d;
  570. color: #fff;
  571. }
  572. .mejs-controls .mejs-button button:hover {
  573. color: #41a62a;
  574. }
  575. /**
  576. * 10.0 RTL
  577. * ----------------------------------------------------------------------------
  578. */
  579. html .mceContentBody.rtl {
  580. direction: rtl;
  581. unicode-bidi: embed;
  582. }
  583. .rtl ol,
  584. .rtl ul {
  585. margin-left: 0;
  586. margin-right: 24px;
  587. }
  588. .rtl .wp-caption,
  589. .rtl tr th {
  590. text-align: right;
  591. }
  592. .rtl td {
  593. text-align: right;
  594. }