editor-rtl.css 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399
  1. /**
  2. * Colors
  3. */
  4. /**
  5. * Breakpoints & Media Queries
  6. */
  7. /**
  8. * SCSS Variables.
  9. *
  10. * Please use variables from this sheet to ensure consistency across the UI.
  11. * Don't add to this sheet unless you're pretty sure the value will be reused in many places.
  12. * For example, don't add rules to this sheet that affect block visuals. It's purely for UI.
  13. */
  14. /**
  15. * Colors
  16. */
  17. /**
  18. * Fonts & basic variables.
  19. */
  20. /**
  21. * Grid System.
  22. * https://make.wordpress.org/design/2019/10/31/proposal-a-consistent-spacing-system-for-wordpress/
  23. */
  24. /**
  25. * Dimensions.
  26. */
  27. /**
  28. * Shadows.
  29. */
  30. /**
  31. * Editor widths.
  32. */
  33. /**
  34. * Block & Editor UI.
  35. */
  36. /**
  37. * Block paddings.
  38. */
  39. /**
  40. * React Native specific.
  41. * These variables do not appear to be used anywhere else.
  42. */
  43. /**
  44. * Converts a hex value into the rgb equivalent.
  45. *
  46. * @param {string} hex - the hexadecimal value to convert
  47. * @return {string} comma separated rgb values
  48. */
  49. /**
  50. * Breakpoint mixins
  51. */
  52. /**
  53. * Long content fade mixin
  54. *
  55. * Creates a fading overlay to signify that the content is longer
  56. * than the space allows.
  57. */
  58. /**
  59. * Focus styles.
  60. */
  61. /**
  62. * Applies editor left position to the selector passed as argument
  63. */
  64. /**
  65. * Styles that are reused verbatim in a few places
  66. */
  67. /**
  68. * Allows users to opt-out of animations via OS-level preferences.
  69. */
  70. /**
  71. * Reset default styles for JavaScript UI based pages.
  72. * This is a WP-admin agnostic reset
  73. */
  74. /**
  75. * Reset the WP Admin page styles for Gutenberg-like pages.
  76. */
  77. .wp-block-freeform.block-library-rich-text__tinymce {
  78. height: auto;
  79. /* Allow height of embed iframes to be calculated properly */
  80. /* Remove blue highlighting of selected images in WebKit */
  81. /* Image captions */
  82. /* WP Views */
  83. }
  84. .wp-block-freeform.block-library-rich-text__tinymce p,
  85. .wp-block-freeform.block-library-rich-text__tinymce li {
  86. line-height: 1.8;
  87. }
  88. .wp-block-freeform.block-library-rich-text__tinymce ul,
  89. .wp-block-freeform.block-library-rich-text__tinymce ol {
  90. padding-right: 2.5em;
  91. margin-right: 0;
  92. }
  93. .wp-block-freeform.block-library-rich-text__tinymce blockquote {
  94. margin: 0;
  95. box-shadow: inset 0 0 0 0 #ddd;
  96. border-right: 4px solid #000;
  97. padding-right: 1em;
  98. }
  99. .wp-block-freeform.block-library-rich-text__tinymce pre {
  100. white-space: pre-wrap;
  101. font-family: Menlo, Consolas, monaco, monospace;
  102. font-size: 15px;
  103. color: #1e1e1e;
  104. }
  105. .wp-block-freeform.block-library-rich-text__tinymce > *:first-child {
  106. margin-top: 0;
  107. }
  108. .wp-block-freeform.block-library-rich-text__tinymce > *:last-child {
  109. margin-bottom: 0;
  110. }
  111. .wp-block-freeform.block-library-rich-text__tinymce.mce-edit-focus {
  112. outline: none;
  113. }
  114. .wp-block-freeform.block-library-rich-text__tinymce a {
  115. color: var(--wp-admin-theme-color);
  116. }
  117. .wp-block-freeform.block-library-rich-text__tinymce:focus a[data-mce-selected] {
  118. padding: 0 2px;
  119. margin: 0 -2px;
  120. border-radius: 2px;
  121. box-shadow: 0 0 0 1px #e5f5fa;
  122. background: #e5f5fa;
  123. }
  124. .wp-block-freeform.block-library-rich-text__tinymce code {
  125. padding: 2px;
  126. border-radius: 2px;
  127. color: #1e1e1e;
  128. background: #f0f0f0;
  129. font-family: Menlo, Consolas, monaco, monospace;
  130. font-size: 14px;
  131. }
  132. .wp-block-freeform.block-library-rich-text__tinymce:focus code[data-mce-selected] {
  133. background: #ddd;
  134. }
  135. .wp-block-freeform.block-library-rich-text__tinymce .alignright {
  136. float: right;
  137. margin: 0.5em 0 0.5em 1em;
  138. }
  139. .wp-block-freeform.block-library-rich-text__tinymce .alignleft {
  140. float: left;
  141. margin: 0.5em 1em 0.5em 0;
  142. }
  143. .wp-block-freeform.block-library-rich-text__tinymce .aligncenter {
  144. display: block;
  145. margin-right: auto;
  146. margin-left: auto;
  147. }
  148. .wp-block-freeform.block-library-rich-text__tinymce .wp-more-tag {
  149. width: 96%;
  150. height: 20px;
  151. display: block;
  152. margin: 15px auto;
  153. outline: 0;
  154. cursor: default;
  155. background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAADtgAAAAoBAMAAAA86gLBAAAAJFBMVEVMaXG7u7vBwcHDw8POzs68vLzGxsbMzMy+vr7AwMDQ0NDGxsYKLGzpAAAADHRSTlMA///zWf+/f///TMxNVGuqAAABwklEQVR4Ae3dMXLaQBTH4bfj8UCpx8hq0vgKvgFNemhT6Qo6gg6R+0ZahM2QLmyBJ99XWP9V5+o3jIUcLQEAAAAAAAAAAAAAAAAAAAAAAABQ8j0WL9lfTtlt18uNXAUA8O/KVtfa1tdcrOdSh9gCQAMlh1hMNbZZ1bsrsQWABsrhLRbz7z5in/32UbfUMUbkMQCAh5RfGYv82UdMdZ6HS2wjT2ILAI8r3XmM2B3WvM59vfO2xXYW2yYAENuPU8S+X/N67mKxzy225yaxBQCxLV392UdcvwV0jPVUj98ntkBWT7C7+9u2/V/vGtvXIWJ6/4rtbottWa6Ri0NUT/u72LYttrb97LHdvUXMxxrb8TO2W2TF1rYbbLG1bbGNjMi4+2Sbi1FsbbvNFlvbFtt5fDnE3d9sP1/XeIyV2Nr2U2/guZUuptNrH/dPI9eLB6SaAEBs6wPJf3/PNk9tYgsAYrv/8TFuzx/fvkFqGtrEFgDEdpcZUb7ejXy6ntrEFgDENvL6gsas4vbdyKt4DACI7TxElJv/Z7udpqFNbAFAbKduy2uU2trttM/x28UWAAAAAAAAAAAAAAAAAAAAAAAAAADgDyPwGmGTCZp7AAAAAElFTkSuQmCC);
  156. background-size: 1900px 20px;
  157. background-repeat: no-repeat;
  158. background-position: center;
  159. }
  160. .wp-block-freeform.block-library-rich-text__tinymce img::selection {
  161. background-color: transparent;
  162. }
  163. .wp-block-freeform.block-library-rich-text__tinymce div.mceTemp {
  164. -ms-user-select: element;
  165. }
  166. .wp-block-freeform.block-library-rich-text__tinymce dl.wp-caption {
  167. margin: 0;
  168. /* dl browser reset */
  169. max-width: 100%;
  170. }
  171. .wp-block-freeform.block-library-rich-text__tinymce dl.wp-caption a,
  172. .wp-block-freeform.block-library-rich-text__tinymce dl.wp-caption img {
  173. display: block;
  174. }
  175. .wp-block-freeform.block-library-rich-text__tinymce dl.wp-caption, .wp-block-freeform.block-library-rich-text__tinymce dl.wp-caption * {
  176. -webkit-user-drag: none;
  177. }
  178. .wp-block-freeform.block-library-rich-text__tinymce dl.wp-caption .wp-caption-dd {
  179. padding-top: 0.5em;
  180. margin: 0;
  181. /* browser dd reset */
  182. }
  183. .wp-block-freeform.block-library-rich-text__tinymce .wpview {
  184. width: 99.99%;
  185. /* All IE need hasLayout, incl. 11 (ugh, not again!!) */
  186. position: relative;
  187. clear: both;
  188. margin-bottom: 16px;
  189. border: 1px solid transparent;
  190. }
  191. .wp-block-freeform.block-library-rich-text__tinymce .wpview iframe {
  192. display: block;
  193. max-width: 100%;
  194. background: transparent;
  195. }
  196. .wp-block-freeform.block-library-rich-text__tinymce .wpview .mce-shim {
  197. position: absolute;
  198. top: 0;
  199. left: 0;
  200. bottom: 0;
  201. right: 0;
  202. }
  203. .wp-block-freeform.block-library-rich-text__tinymce .wpview[data-mce-selected="2"] .mce-shim {
  204. display: none;
  205. }
  206. .wp-block-freeform.block-library-rich-text__tinymce .wpview .loading-placeholder {
  207. border: 1px dashed #ddd;
  208. padding: 10px;
  209. }
  210. .wp-block-freeform.block-library-rich-text__tinymce .wpview .wpview-error {
  211. border: 1px solid #ddd;
  212. padding: 1em 0;
  213. margin: 0;
  214. word-wrap: break-word;
  215. }
  216. .wp-block-freeform.block-library-rich-text__tinymce .wpview .wpview-error p {
  217. margin: 0;
  218. text-align: center;
  219. }
  220. .wp-block-freeform.block-library-rich-text__tinymce .wpview[data-mce-selected] .loading-placeholder, .wp-block-freeform.block-library-rich-text__tinymce .wpview[data-mce-selected] .wpview-error {
  221. border-color: transparent;
  222. }
  223. .wp-block-freeform.block-library-rich-text__tinymce .wpview .dashicons {
  224. display: block;
  225. margin: 0 auto;
  226. width: 32px;
  227. height: 32px;
  228. font-size: 32px;
  229. }
  230. .wp-block-freeform.block-library-rich-text__tinymce .wpview.wpview-type-gallery::after {
  231. content: "";
  232. display: table;
  233. clear: both;
  234. }
  235. .wp-block-freeform.block-library-rich-text__tinymce .gallery img[data-mce-selected]:focus {
  236. outline: none;
  237. }
  238. .wp-block-freeform.block-library-rich-text__tinymce .gallery a {
  239. cursor: default;
  240. }
  241. .wp-block-freeform.block-library-rich-text__tinymce .gallery {
  242. margin: auto -6px;
  243. padding: 6px 0;
  244. line-height: 1;
  245. overflow-x: hidden;
  246. }
  247. .wp-block-freeform.block-library-rich-text__tinymce .gallery .gallery-item {
  248. float: right;
  249. margin: 0;
  250. text-align: center;
  251. padding: 6px;
  252. box-sizing: border-box;
  253. }
  254. .wp-block-freeform.block-library-rich-text__tinymce .gallery .gallery-caption,
  255. .wp-block-freeform.block-library-rich-text__tinymce .gallery .gallery-icon {
  256. margin: 0;
  257. }
  258. .wp-block-freeform.block-library-rich-text__tinymce .gallery .gallery-caption {
  259. font-size: 13px;
  260. margin: 4px 0;
  261. }
  262. .wp-block-freeform.block-library-rich-text__tinymce .gallery-columns-1 .gallery-item {
  263. width: 100%;
  264. }
  265. .wp-block-freeform.block-library-rich-text__tinymce .gallery-columns-2 .gallery-item {
  266. width: 50%;
  267. }
  268. .wp-block-freeform.block-library-rich-text__tinymce .gallery-columns-3 .gallery-item {
  269. width: 33.3333333333%;
  270. }
  271. .wp-block-freeform.block-library-rich-text__tinymce .gallery-columns-4 .gallery-item {
  272. width: 25%;
  273. }
  274. .wp-block-freeform.block-library-rich-text__tinymce .gallery-columns-5 .gallery-item {
  275. width: 20%;
  276. }
  277. .wp-block-freeform.block-library-rich-text__tinymce .gallery-columns-6 .gallery-item {
  278. width: 16.6666666667%;
  279. }
  280. .wp-block-freeform.block-library-rich-text__tinymce .gallery-columns-7 .gallery-item {
  281. width: 14.2857142857%;
  282. }
  283. .wp-block-freeform.block-library-rich-text__tinymce .gallery-columns-8 .gallery-item {
  284. width: 12.5%;
  285. }
  286. .wp-block-freeform.block-library-rich-text__tinymce .gallery-columns-9 .gallery-item {
  287. width: 11.1111111111%;
  288. }
  289. .wp-block-freeform.block-library-rich-text__tinymce .gallery img {
  290. max-width: 100%;
  291. height: auto;
  292. border: none;
  293. padding: 0;
  294. }
  295. div[data-type="core/freeform"]::before {
  296. transition: border-color 0.1s linear, box-shadow 0.1s linear;
  297. border: 1px solid #ddd;
  298. outline: 1px solid transparent;
  299. }
  300. @media (prefers-reduced-motion: reduce) {
  301. div[data-type="core/freeform"]::before {
  302. transition-duration: 0s;
  303. transition-delay: 0s;
  304. }
  305. }
  306. div[data-type="core/freeform"].is-selected::before {
  307. border-color: #1e1e1e;
  308. }
  309. div[data-type="core/freeform"] .block-editor-block-contextual-toolbar + div {
  310. margin-top: 0;
  311. padding-top: 0;
  312. }
  313. div[data-type="core/freeform"].is-selected .block-library-rich-text__tinymce::after {
  314. content: "";
  315. display: table;
  316. clear: both;
  317. }
  318. .mce-toolbar-grp .mce-btn.mce-active button,
  319. .mce-toolbar-grp .mce-btn.mce-active:hover button,
  320. .mce-toolbar-grp .mce-btn.mce-active i,
  321. .mce-toolbar-grp .mce-btn.mce-active:hover i {
  322. color: #1e1e1e;
  323. }
  324. .mce-toolbar-grp .mce-rtl .mce-flow-layout-item.mce-last {
  325. margin-left: 0;
  326. margin-right: 8px;
  327. }
  328. .mce-toolbar-grp .mce-btn i {
  329. font-style: normal;
  330. }
  331. .block-library-classic__toolbar {
  332. display: none;
  333. width: auto;
  334. margin: 0;
  335. position: sticky;
  336. z-index: 31;
  337. top: 0;
  338. border: 1px solid #ddd;
  339. border-bottom: none;
  340. border-radius: 2px;
  341. margin-bottom: 8px;
  342. padding: 0;
  343. }
  344. div[data-type="core/freeform"].is-selected .block-library-classic__toolbar {
  345. display: block;
  346. border-color: #1e1e1e;
  347. }
  348. .block-library-classic__toolbar .mce-tinymce {
  349. box-shadow: none;
  350. }
  351. @media (min-width: 600px) {
  352. .block-library-classic__toolbar {
  353. padding: 0;
  354. }
  355. }
  356. .block-library-classic__toolbar:empty {
  357. display: block;
  358. background: #f5f5f5;
  359. border-bottom: 1px solid #e2e4e7;
  360. }
  361. .block-library-classic__toolbar:empty::before {
  362. font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
  363. font-size: 13px;
  364. content: attr(data-placeholder);
  365. color: #555d66;
  366. line-height: 37px;
  367. padding: 14px;
  368. }
  369. .block-library-classic__toolbar div.mce-toolbar-grp {
  370. border-bottom: 1px solid #1e1e1e;
  371. }
  372. .block-library-classic__toolbar .mce-tinymce-inline,
  373. .block-library-classic__toolbar .mce-tinymce-inline > div,
  374. .block-library-classic__toolbar div.mce-toolbar-grp,
  375. .block-library-classic__toolbar div.mce-toolbar-grp > div,
  376. .block-library-classic__toolbar .mce-menubar,
  377. .block-library-classic__toolbar .mce-menubar > div {
  378. height: auto !important;
  379. width: 100% !important;
  380. }
  381. .block-library-classic__toolbar .mce-container-body.mce-abs-layout {
  382. overflow: visible;
  383. }
  384. .block-library-classic__toolbar .mce-menubar,
  385. .block-library-classic__toolbar div.mce-toolbar-grp {
  386. position: static;
  387. }
  388. .block-library-classic__toolbar .mce-toolbar-grp > div {
  389. padding: 1px 3px;
  390. }
  391. .block-library-classic__toolbar .mce-toolbar-grp .mce-toolbar:not(:first-child) {
  392. display: none;
  393. }
  394. .block-library-classic__toolbar.has-advanced-toolbar .mce-toolbar-grp .mce-toolbar {
  395. display: block;
  396. }