editor-style.css 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737
  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. * 11.0 - Media Queries
  19. * ----------------------------------------------------------------------------
  20. */
  21. /**
  22. * 1.0 Body
  23. * ----------------------------------------------------------------------------
  24. */
  25. html .mceContentBody {
  26. font-size: 100%;
  27. max-width: 474px;
  28. }
  29. body {
  30. color: #2b2b2b;
  31. font-family: Lato, sans-serif;
  32. font-weight: 400;
  33. line-height: 1.5;
  34. vertical-align: baseline;
  35. }
  36. /**
  37. * 2.0 Headings
  38. * ----------------------------------------------------------------------------
  39. */
  40. h1,
  41. h2,
  42. h3,
  43. h4,
  44. h5,
  45. h6 {
  46. clear: both;
  47. font-weight: 700;
  48. margin: 36px 0 12px;
  49. }
  50. h1 {
  51. font-size: 26px;
  52. line-height: 1.3846153846;
  53. }
  54. h2 {
  55. font-size: 24px;
  56. line-height: 1;
  57. }
  58. h3 {
  59. font-size: 22px;
  60. line-height: 1.0909090909;
  61. }
  62. h4 {
  63. font-size: 20px;
  64. line-height: 1.2;
  65. }
  66. h5 {
  67. font-size: 18px;
  68. line-height: 1.3333333333;
  69. }
  70. h6 {
  71. font-size: 16px;
  72. line-height: 1.5;
  73. }
  74. h1:first-child,
  75. h2:first-child,
  76. h3:first-child,
  77. h4:first-child,
  78. h5:first-child,
  79. h6:first-child {
  80. margin-top: 0;
  81. }
  82. /**
  83. * 3.0 Text Elements
  84. * ----------------------------------------------------------------------------
  85. */
  86. address {
  87. font-style: italic;
  88. margin-bottom: 24px;
  89. }
  90. abbr[title] {
  91. border-bottom: 1px dotted #2b2b2b;
  92. cursor: help;
  93. }
  94. b,
  95. strong {
  96. font-weight: 700;
  97. }
  98. cite {
  99. border: 0;
  100. }
  101. cite,
  102. dfn,
  103. em,
  104. i {
  105. font-style: italic;
  106. }
  107. mark,
  108. ins {
  109. background: #fff9c0;
  110. border: 0;
  111. color: inherit;
  112. text-decoration: none;
  113. }
  114. p {
  115. margin: 0 0 24px;
  116. }
  117. code,
  118. kbd,
  119. tt,
  120. var,
  121. samp,
  122. pre {
  123. font-family: monospace, serif;
  124. font-size: 15px;
  125. line-height: 1.6;
  126. }
  127. pre {
  128. border: 1px solid rgba(0, 0, 0, 0.1);
  129. margin-bottom: 24px;
  130. max-width: 100%;
  131. overflow: auto;
  132. padding: 12px;
  133. white-space: pre;
  134. white-space: pre-wrap;
  135. word-wrap: break-word;
  136. }
  137. blockquote,
  138. q {
  139. quotes: none;
  140. }
  141. blockquote:before,
  142. blockquote:after,
  143. q:before,
  144. q:after {
  145. content: "";
  146. content: none;
  147. }
  148. blockquote {
  149. color: #767676;
  150. font-size: 19px;
  151. font-style: italic;
  152. font-weight: 300;
  153. line-height: 1.2631578947;
  154. margin: 0 0 24px;
  155. }
  156. blockquote cite,
  157. blockquote small {
  158. color: #2b2b2b;
  159. font-size: 16px;
  160. font-weight: 400;
  161. line-height: 1.5;
  162. }
  163. blockquote em,
  164. blockquote i,
  165. blockquote cite {
  166. font-style: normal;
  167. }
  168. blockquote strong,
  169. blockquote b {
  170. font-weight: 400;
  171. }
  172. small {
  173. font-size: smaller;
  174. }
  175. big {
  176. font-size: 125%;
  177. }
  178. sup,
  179. sub {
  180. font-size: 75%;
  181. height: 0;
  182. line-height: 0;
  183. position: relative;
  184. vertical-align: baseline;
  185. }
  186. sup {
  187. bottom: 1ex;
  188. }
  189. sub {
  190. top: .5ex;
  191. }
  192. dl {
  193. margin: 0 0 24px;
  194. }
  195. dt {
  196. font-weight: bold;
  197. }
  198. dd {
  199. margin: 0 0 24px;
  200. }
  201. ul,
  202. ol {
  203. list-style: none;
  204. margin: 0 0 24px 20px;
  205. padding-left: 0;
  206. }
  207. ul {
  208. list-style: disc;
  209. }
  210. ol {
  211. list-style: decimal;
  212. }
  213. li > ul,
  214. li > ol {
  215. margin: 0 0 0 20px;
  216. }
  217. del {
  218. color: #767676;
  219. }
  220. hr {
  221. background-color: rgba(0, 0, 0, 0.1);
  222. border: 0;
  223. height: 1px;
  224. margin-bottom: 23px;
  225. }
  226. /**
  227. * 4.0 Links
  228. * ----------------------------------------------------------------------------
  229. */
  230. a {
  231. color: #24890d;
  232. text-decoration: none;
  233. }
  234. a:visited {
  235. color: #24890d;
  236. }
  237. a:focus {
  238. outline: thin dotted;
  239. }
  240. a:active,
  241. a:hover {
  242. color: #41a62a;
  243. outline: 0;
  244. }
  245. /**
  246. * 5.0 Alignment
  247. * ----------------------------------------------------------------------------
  248. */
  249. .alignleft {
  250. float: left;
  251. margin: 7px 24px 7px 0;
  252. }
  253. .alignright {
  254. float: right;
  255. margin: 7px 0 7px 24px;
  256. }
  257. .aligncenter {
  258. clear: both;
  259. display: block;
  260. margin: 7px auto;
  261. }
  262. blockquote.alignleft,
  263. blockquote.alignright {
  264. border-top: 1px solid rgba(0, 0, 0, 0.1);
  265. border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  266. padding-top: 17px;
  267. width: 50%;
  268. }
  269. blockquote.alignleft p,
  270. blockquote.alignright p {
  271. margin-bottom: 17px;
  272. }
  273. /**
  274. * 6.0 Tables
  275. * ----------------------------------------------------------------------------
  276. */
  277. .mceItemTable,
  278. .mce-item-table {
  279. border: 1px solid rgba(0, 0, 0, 0.1);
  280. border-width: 1px 0 0 1px;
  281. border-collapse: separate;
  282. border-spacing: 0;
  283. font-size: 14px;
  284. line-height: 1.2857142857;
  285. margin-bottom: 24px;
  286. width: 100%;
  287. }
  288. .mceItemTable th,
  289. .mceItemTable caption,
  290. .mce-item-table th,
  291. .mce-item-table caption {
  292. border: 1px solid rgba(0, 0, 0, 0.1);
  293. border-width: 0 1px 1px 0;
  294. font-weight: 700;
  295. padding: 8px;
  296. text-align: left;
  297. text-transform: uppercase;
  298. vertical-align: baseline;
  299. }
  300. .mceItemTable td,
  301. .mce-item-table td {
  302. border: 1px solid rgba(0, 0, 0, 0.1);
  303. border-width: 0 1px 1px 0;
  304. font-family: Lato, sans-serif;
  305. font-size: 14px;
  306. padding: 8px;
  307. vertical-align: baseline;
  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. }
  600. /**
  601. * 11.0 Media Queries
  602. */
  603. @media screen and (max-width: 494px) {
  604. body, img, .wp-caption {
  605. max-width: 100%;
  606. }
  607. img, .wp-caption {
  608. width: auto !important;
  609. }
  610. }