wp-content.css 8.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500
  1. /* Additional default styles for the editor */
  2. html {
  3. cursor: text;
  4. }
  5. html.ios {
  6. width: 100px;
  7. min-width: 100%;
  8. }
  9. body {
  10. font-family: Georgia, "Times New Roman", "Bitstream Charter", Times, serif;
  11. font-size: 16px;
  12. line-height: 1.5;
  13. color: #333;
  14. margin: 9px 10px;
  15. max-width: 100%;
  16. -webkit-font-smoothing: antialiased !important;
  17. overflow-wrap: break-word;
  18. word-wrap: break-word; /* Old syntax */
  19. }
  20. body.rtl {
  21. font-family: Tahoma, "Times New Roman", "Bitstream Charter", Times, serif;
  22. }
  23. body.locale-he-il,
  24. body.locale-vi {
  25. font-family: Arial, "Times New Roman", "Bitstream Charter", Times, serif;
  26. }
  27. body.wp-autoresize {
  28. overflow: visible !important;
  29. /* The padding ensures margins of the children are contained in the body. */
  30. padding-top: 1px !important;
  31. padding-bottom: 1px !important;
  32. padding-left: 0 !important;
  33. padding-right: 0 !important;
  34. }
  35. /* When font-weight is different than the default browser style,
  36. Chrome and Safari replace <strong> and <b> with spans with inline styles on pasting?! */
  37. body.webkit strong,
  38. body.webkit b {
  39. font-weight: bold !important;
  40. }
  41. pre {
  42. font-family: Consolas, Monaco, monospace;
  43. }
  44. td,
  45. th {
  46. font-family: inherit;
  47. font-size: inherit;
  48. }
  49. /* For emoji replacement images */
  50. img.emoji {
  51. display: inline !important;
  52. border: none !important;
  53. height: 1em !important;
  54. width: 1em !important;
  55. margin: 0 .07em !important;
  56. vertical-align: -0.1em !important;
  57. background: none !important;
  58. padding: 0 !important;
  59. -webkit-box-shadow: none !important;
  60. box-shadow: none !important;
  61. }
  62. .mceIEcenter {
  63. text-align: center;
  64. }
  65. img {
  66. height: auto;
  67. max-width: 100%;
  68. }
  69. .wp-caption {
  70. margin: 0; /* browser reset */
  71. max-width: 100%;
  72. }
  73. /* iOS does not obey max-width if width is set. */
  74. .ios .wp-caption {
  75. width: auto !important;
  76. }
  77. dl.wp-caption dt.wp-caption-dt img {
  78. display: inline-block;
  79. margin-bottom: -1ex;
  80. }
  81. div.mceTemp {
  82. -ms-user-select: element;
  83. }
  84. dl.wp-caption,
  85. dl.wp-caption * {
  86. -webkit-user-drag: none;
  87. }
  88. .wp-caption-dd {
  89. font-size: 14px;
  90. padding-top: 0.5em;
  91. margin: 0; /* browser reset */
  92. }
  93. .aligncenter {
  94. display: block;
  95. margin-left: auto;
  96. margin-right: auto;
  97. }
  98. .alignleft {
  99. float: left;
  100. margin: 0.5em 1em 0.5em 0;
  101. }
  102. .alignright {
  103. float: right;
  104. margin: 0.5em 0 0.5em 1em;
  105. }
  106. /* Remove blue highlighting of selected images in WebKit */
  107. img[data-mce-selected]::selection {
  108. background-color: transparent;
  109. }
  110. /* Styles for the WordPress plugins */
  111. .mce-content-body img[data-mce-placeholder] {
  112. border-radius: 0;
  113. padding: 0;
  114. }
  115. .mce-content-body img[data-wp-more] {
  116. border: 0;
  117. -webkit-box-shadow: none;
  118. box-shadow: none;
  119. width: 96%;
  120. height: 16px;
  121. display: block;
  122. margin: 15px auto 0;
  123. outline: 0;
  124. cursor: default;
  125. }
  126. .mce-content-body img[data-mce-placeholder][data-mce-selected] {
  127. outline: 1px dotted #888;
  128. }
  129. .mce-content-body img[data-wp-more="more"] {
  130. background: transparent url( images/more.png ) repeat-y scroll center center;
  131. }
  132. .mce-content-body img[data-wp-more="nextpage"] {
  133. background: transparent url( images/pagebreak.png ) repeat-y scroll center center;
  134. }
  135. /* Styles for formatting the boundaries of anchors and code elements */
  136. .mce-content-body a[data-mce-selected] {
  137. padding: 0 2px;
  138. margin: 0 -2px;
  139. border-radius: 2px;
  140. box-shadow: 0 0 0 1px #bfe6ff;
  141. background: #bfe6ff;
  142. }
  143. .mce-content-body .wp-caption-dt a[data-mce-selected] {
  144. outline: none;
  145. padding: 0;
  146. margin: 0;
  147. box-shadow: none;
  148. background: transparent;
  149. }
  150. .mce-content-body code {
  151. padding: 2px 4px;
  152. margin: 0;
  153. border-radius: 2px;
  154. color: #222;
  155. background: #f2f4f5;
  156. }
  157. .mce-content-body code[data-mce-selected] {
  158. background: #e9ebec;
  159. }
  160. /* Gallery, audio, video placeholders */
  161. .mce-content-body img.wp-media {
  162. border: 1px solid #aaa;
  163. background-color: #f2f2f2;
  164. background-repeat: no-repeat;
  165. background-position: center center;
  166. width: 99%;
  167. height: 250px;
  168. outline: 0;
  169. cursor: pointer;
  170. }
  171. .mce-content-body img.wp-media:hover {
  172. background-color: #ededed;
  173. border-color: #72777c;
  174. }
  175. .mce-content-body img.wp-media.wp-media-selected {
  176. background-color: #d8d8d8;
  177. border-color: #72777c;
  178. }
  179. .mce-content-body img.wp-media.wp-gallery {
  180. background-image: url(images/gallery.png);
  181. }
  182. /* Image resize handles */
  183. .mce-content-body div.mce-resizehandle {
  184. border-color: #72777c;
  185. width: 7px;
  186. height: 7px;
  187. }
  188. .mce-content-body img[data-mce-selected] {
  189. outline: 1px solid #72777c;
  190. }
  191. .mce-content-body img[data-mce-resize="false"] {
  192. outline: 0;
  193. }
  194. audio,
  195. video,
  196. embed {
  197. display: -moz-inline-stack;
  198. display: inline-block;
  199. }
  200. audio {
  201. visibility: hidden;
  202. }
  203. /* Fix for proprietary Mozilla display attribute, see #38757 */
  204. [_moz_abspos] {
  205. outline: none;
  206. }
  207. a[data-wplink-url-error],
  208. a[data-wplink-url-error]:hover,
  209. a[data-wplink-url-error]:focus {
  210. outline: 2px dotted #dc3232;
  211. position: relative;
  212. }
  213. a[data-wplink-url-error]:before {
  214. content: "";
  215. display: block;
  216. position: absolute;
  217. top: -2px;
  218. right: -2px;
  219. bottom: -2px;
  220. left: -2px;
  221. outline: 2px dotted #fff;
  222. z-index: -1;
  223. }
  224. /* Special styling for the suggestes policy text tutorial sections after they have been pasted in the editor. */
  225. p.wp-policy-help {
  226. background-color: #ff0;
  227. }
  228. /**
  229. * WP Views
  230. */
  231. .wpview {
  232. width: 99.99%; /* All IE need hasLayout, incl. 11 (ugh, not again!!) */
  233. position: relative;
  234. clear: both;
  235. margin-bottom: 16px;
  236. border: 1px solid transparent;
  237. }
  238. .mce-shim {
  239. position: absolute;
  240. top: 0;
  241. right: 0;
  242. bottom: 0;
  243. left: 0;
  244. }
  245. .wpview[data-mce-selected="2"] .mce-shim {
  246. display: none;
  247. }
  248. .wpview .loading-placeholder {
  249. border: 1px dashed #ccc;
  250. padding: 10px;
  251. }
  252. .wpview[data-mce-selected] .loading-placeholder {
  253. border-color: transparent;
  254. }
  255. /* A little "loading" animation, not showing in IE < 10 */
  256. .wpview .wpview-loading {
  257. width: 60px;
  258. height: 5px;
  259. overflow: hidden;
  260. background-color: transparent;
  261. margin: 10px auto 0;
  262. }
  263. .wpview .wpview-loading ins {
  264. background-color: #333;
  265. margin: 0 0 0 -60px;
  266. width: 36px;
  267. height: 5px;
  268. display: block;
  269. -webkit-animation: wpview-loading 1.3s infinite 1s steps(36);
  270. animation: wpview-loading 1.3s infinite 1s steps(36);
  271. }
  272. @-webkit-keyframes wpview-loading {
  273. 0% {
  274. margin-left: -60px;
  275. }
  276. 100% {
  277. margin-left: 60px;
  278. }
  279. }
  280. @keyframes wpview-loading {
  281. 0% {
  282. margin-left: -60px;
  283. }
  284. 100% {
  285. margin-left: 60px;
  286. }
  287. }
  288. .wpview .wpview-content > iframe {
  289. max-width: 100%;
  290. background: transparent;
  291. }
  292. .wpview-error {
  293. border: 1px solid #ddd;
  294. padding: 1em 0;
  295. margin: 0;
  296. word-wrap: break-word;
  297. }
  298. .wpview[data-mce-selected] .wpview-error {
  299. border-color: transparent;
  300. }
  301. .wpview-error .dashicons,
  302. .loading-placeholder .dashicons {
  303. display: block;
  304. margin: 0 auto;
  305. width: 32px;
  306. height: 32px;
  307. font-size: 32px;
  308. }
  309. .wpview-error p {
  310. margin: 0;
  311. text-align: center;
  312. font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
  313. }
  314. .wpview-type-gallery:after {
  315. content: "";
  316. display: table;
  317. clear: both;
  318. }
  319. .gallery img[data-mce-selected]:focus {
  320. outline: none;
  321. }
  322. .gallery a {
  323. cursor: default;
  324. }
  325. .gallery {
  326. margin: auto -6px;
  327. padding: 6px 0;
  328. line-height: 1;
  329. overflow-x: hidden;
  330. }
  331. .ie7 .gallery,
  332. .ie8 .gallery {
  333. margin: auto;
  334. }
  335. .gallery .gallery-item {
  336. float: left;
  337. margin: 0;
  338. text-align: center;
  339. padding: 6px;
  340. -webkit-box-sizing: border-box;
  341. -moz-box-sizing: border-box;
  342. box-sizing: border-box;
  343. }
  344. .ie7 .gallery .gallery-item,
  345. .ie8 .gallery .gallery-item {
  346. padding: 6px 0;
  347. }
  348. .gallery .gallery-caption,
  349. .gallery .gallery-icon {
  350. margin: 0;
  351. }
  352. .gallery .gallery-caption {
  353. font-size: 13px;
  354. margin: 4px 0;
  355. }
  356. .gallery-columns-1 .gallery-item {
  357. width: 100%;
  358. }
  359. .gallery-columns-2 .gallery-item {
  360. width: 50%;
  361. }
  362. .gallery-columns-3 .gallery-item {
  363. width: 33.333%;
  364. }
  365. .ie8 .gallery-columns-3 .gallery-item,
  366. .ie7 .gallery-columns-3 .gallery-item {
  367. width: 33%;
  368. }
  369. .gallery-columns-4 .gallery-item {
  370. width: 25%;
  371. }
  372. .gallery-columns-5 .gallery-item {
  373. width: 20%;
  374. }
  375. .gallery-columns-6 .gallery-item {
  376. width: 16.665%;
  377. }
  378. .gallery-columns-7 .gallery-item {
  379. width: 14.285%;
  380. }
  381. .gallery-columns-8 .gallery-item {
  382. width: 12.5%;
  383. }
  384. .gallery-columns-9 .gallery-item {
  385. width: 11.111%;
  386. }
  387. .gallery img {
  388. max-width: 100%;
  389. height: auto;
  390. border: none;
  391. padding: 0;
  392. }
  393. img.wp-oembed {
  394. border: 1px dashed #888;
  395. background: #f7f5f2 url(images/embedded.png) no-repeat scroll center center;
  396. width: 300px;
  397. height: 250px;
  398. outline: 0;
  399. }
  400. /* rtl */
  401. .rtl .gallery .gallery-item {
  402. float: right;
  403. }
  404. @media print,
  405. (-o-min-device-pixel-ratio: 5/4),
  406. (-webkit-min-device-pixel-ratio: 1.25),
  407. (min-resolution: 120dpi) {
  408. .mce-content-body img.mce-wp-more {
  409. background-image: url( images/more-2x.png );
  410. background-size: 1900px 20px;
  411. }
  412. .mce-content-body img.mce-wp-nextpage {
  413. background-image: url( images/pagebreak-2x.png );
  414. background-size: 1900px 20px;
  415. }
  416. }