style-rtl.css 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482
  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-cover-image,
  78. .wp-block-cover {
  79. position: relative;
  80. background-size: cover;
  81. background-position: center center;
  82. min-height: 430px;
  83. width: 100%;
  84. display: flex;
  85. justify-content: center;
  86. align-items: center;
  87. padding: 1em;
  88. box-sizing: border-box;
  89. /**
  90. * Set a default background color for has-background-dim _unless_ it includes another
  91. * background-color class (e.g. has-green-background-color). The presence of another
  92. * background-color class implies that another style will provide the background color
  93. * for the overlay.
  94. *
  95. * See:
  96. * - Issue with background color specificity: https://github.com/WordPress/gutenberg/issues/26545
  97. * - Issue with alternative fix: https://github.com/WordPress/gutenberg/issues/26545
  98. */
  99. }
  100. .wp-block-cover-image.has-parallax,
  101. .wp-block-cover.has-parallax {
  102. background-attachment: fixed;
  103. }
  104. @supports (-webkit-touch-callout: inherit) {
  105. .wp-block-cover-image.has-parallax,
  106. .wp-block-cover.has-parallax {
  107. background-attachment: scroll;
  108. }
  109. }
  110. @media (prefers-reduced-motion: reduce) {
  111. .wp-block-cover-image.has-parallax,
  112. .wp-block-cover.has-parallax {
  113. background-attachment: scroll;
  114. }
  115. }
  116. .wp-block-cover-image.is-repeated,
  117. .wp-block-cover.is-repeated {
  118. background-repeat: repeat;
  119. background-size: auto;
  120. }
  121. .wp-block-cover-image.has-background-dim:not([class*=-background-color]),
  122. .wp-block-cover-image .has-background-dim:not([class*=-background-color]),
  123. .wp-block-cover.has-background-dim:not([class*=-background-color]),
  124. .wp-block-cover .has-background-dim:not([class*=-background-color]) {
  125. background-color: #000;
  126. }
  127. .wp-block-cover-image .has-background-dim.has-background-gradient,
  128. .wp-block-cover .has-background-dim.has-background-gradient {
  129. background-color: transparent;
  130. }
  131. .wp-block-cover-image.has-background-dim::before,
  132. .wp-block-cover.has-background-dim::before {
  133. content: "";
  134. background-color: inherit;
  135. }
  136. .wp-block-cover-image.has-background-dim:not(.has-background-gradient)::before,
  137. .wp-block-cover-image .wp-block-cover__background,
  138. .wp-block-cover-image .wp-block-cover__gradient-background,
  139. .wp-block-cover.has-background-dim:not(.has-background-gradient)::before,
  140. .wp-block-cover .wp-block-cover__background,
  141. .wp-block-cover .wp-block-cover__gradient-background {
  142. position: absolute;
  143. top: 0;
  144. right: 0;
  145. bottom: 0;
  146. left: 0;
  147. z-index: 1;
  148. opacity: 0.5;
  149. }
  150. .wp-block-cover-image.has-background-dim.has-background-dim-10:not(.has-background-gradient)::before,
  151. .wp-block-cover-image.has-background-dim.has-background-dim-10 .wp-block-cover__background,
  152. .wp-block-cover-image.has-background-dim.has-background-dim-10 .wp-block-cover__gradient-background,
  153. .wp-block-cover.has-background-dim.has-background-dim-10:not(.has-background-gradient)::before,
  154. .wp-block-cover.has-background-dim.has-background-dim-10 .wp-block-cover__background,
  155. .wp-block-cover.has-background-dim.has-background-dim-10 .wp-block-cover__gradient-background {
  156. opacity: 0.1;
  157. }
  158. .wp-block-cover-image.has-background-dim.has-background-dim-20:not(.has-background-gradient)::before,
  159. .wp-block-cover-image.has-background-dim.has-background-dim-20 .wp-block-cover__background,
  160. .wp-block-cover-image.has-background-dim.has-background-dim-20 .wp-block-cover__gradient-background,
  161. .wp-block-cover.has-background-dim.has-background-dim-20:not(.has-background-gradient)::before,
  162. .wp-block-cover.has-background-dim.has-background-dim-20 .wp-block-cover__background,
  163. .wp-block-cover.has-background-dim.has-background-dim-20 .wp-block-cover__gradient-background {
  164. opacity: 0.2;
  165. }
  166. .wp-block-cover-image.has-background-dim.has-background-dim-30:not(.has-background-gradient)::before,
  167. .wp-block-cover-image.has-background-dim.has-background-dim-30 .wp-block-cover__background,
  168. .wp-block-cover-image.has-background-dim.has-background-dim-30 .wp-block-cover__gradient-background,
  169. .wp-block-cover.has-background-dim.has-background-dim-30:not(.has-background-gradient)::before,
  170. .wp-block-cover.has-background-dim.has-background-dim-30 .wp-block-cover__background,
  171. .wp-block-cover.has-background-dim.has-background-dim-30 .wp-block-cover__gradient-background {
  172. opacity: 0.3;
  173. }
  174. .wp-block-cover-image.has-background-dim.has-background-dim-40:not(.has-background-gradient)::before,
  175. .wp-block-cover-image.has-background-dim.has-background-dim-40 .wp-block-cover__background,
  176. .wp-block-cover-image.has-background-dim.has-background-dim-40 .wp-block-cover__gradient-background,
  177. .wp-block-cover.has-background-dim.has-background-dim-40:not(.has-background-gradient)::before,
  178. .wp-block-cover.has-background-dim.has-background-dim-40 .wp-block-cover__background,
  179. .wp-block-cover.has-background-dim.has-background-dim-40 .wp-block-cover__gradient-background {
  180. opacity: 0.4;
  181. }
  182. .wp-block-cover-image.has-background-dim.has-background-dim-50:not(.has-background-gradient)::before,
  183. .wp-block-cover-image.has-background-dim.has-background-dim-50 .wp-block-cover__background,
  184. .wp-block-cover-image.has-background-dim.has-background-dim-50 .wp-block-cover__gradient-background,
  185. .wp-block-cover.has-background-dim.has-background-dim-50:not(.has-background-gradient)::before,
  186. .wp-block-cover.has-background-dim.has-background-dim-50 .wp-block-cover__background,
  187. .wp-block-cover.has-background-dim.has-background-dim-50 .wp-block-cover__gradient-background {
  188. opacity: 0.5;
  189. }
  190. .wp-block-cover-image.has-background-dim.has-background-dim-60:not(.has-background-gradient)::before,
  191. .wp-block-cover-image.has-background-dim.has-background-dim-60 .wp-block-cover__background,
  192. .wp-block-cover-image.has-background-dim.has-background-dim-60 .wp-block-cover__gradient-background,
  193. .wp-block-cover.has-background-dim.has-background-dim-60:not(.has-background-gradient)::before,
  194. .wp-block-cover.has-background-dim.has-background-dim-60 .wp-block-cover__background,
  195. .wp-block-cover.has-background-dim.has-background-dim-60 .wp-block-cover__gradient-background {
  196. opacity: 0.6;
  197. }
  198. .wp-block-cover-image.has-background-dim.has-background-dim-70:not(.has-background-gradient)::before,
  199. .wp-block-cover-image.has-background-dim.has-background-dim-70 .wp-block-cover__background,
  200. .wp-block-cover-image.has-background-dim.has-background-dim-70 .wp-block-cover__gradient-background,
  201. .wp-block-cover.has-background-dim.has-background-dim-70:not(.has-background-gradient)::before,
  202. .wp-block-cover.has-background-dim.has-background-dim-70 .wp-block-cover__background,
  203. .wp-block-cover.has-background-dim.has-background-dim-70 .wp-block-cover__gradient-background {
  204. opacity: 0.7;
  205. }
  206. .wp-block-cover-image.has-background-dim.has-background-dim-80:not(.has-background-gradient)::before,
  207. .wp-block-cover-image.has-background-dim.has-background-dim-80 .wp-block-cover__background,
  208. .wp-block-cover-image.has-background-dim.has-background-dim-80 .wp-block-cover__gradient-background,
  209. .wp-block-cover.has-background-dim.has-background-dim-80:not(.has-background-gradient)::before,
  210. .wp-block-cover.has-background-dim.has-background-dim-80 .wp-block-cover__background,
  211. .wp-block-cover.has-background-dim.has-background-dim-80 .wp-block-cover__gradient-background {
  212. opacity: 0.8;
  213. }
  214. .wp-block-cover-image.has-background-dim.has-background-dim-90:not(.has-background-gradient)::before,
  215. .wp-block-cover-image.has-background-dim.has-background-dim-90 .wp-block-cover__background,
  216. .wp-block-cover-image.has-background-dim.has-background-dim-90 .wp-block-cover__gradient-background,
  217. .wp-block-cover.has-background-dim.has-background-dim-90:not(.has-background-gradient)::before,
  218. .wp-block-cover.has-background-dim.has-background-dim-90 .wp-block-cover__background,
  219. .wp-block-cover.has-background-dim.has-background-dim-90 .wp-block-cover__gradient-background {
  220. opacity: 0.9;
  221. }
  222. .wp-block-cover-image.has-background-dim.has-background-dim-100:not(.has-background-gradient)::before,
  223. .wp-block-cover-image.has-background-dim.has-background-dim-100 .wp-block-cover__background,
  224. .wp-block-cover-image.has-background-dim.has-background-dim-100 .wp-block-cover__gradient-background,
  225. .wp-block-cover.has-background-dim.has-background-dim-100:not(.has-background-gradient)::before,
  226. .wp-block-cover.has-background-dim.has-background-dim-100 .wp-block-cover__background,
  227. .wp-block-cover.has-background-dim.has-background-dim-100 .wp-block-cover__gradient-background {
  228. opacity: 1;
  229. }
  230. .wp-block-cover-image .wp-block-cover__gradient-background.has-background-dim.has-background-dim-0,
  231. .wp-block-cover-image .wp-block-cover__background.has-background-dim.has-background-dim-0,
  232. .wp-block-cover .wp-block-cover__gradient-background.has-background-dim.has-background-dim-0,
  233. .wp-block-cover .wp-block-cover__background.has-background-dim.has-background-dim-0 {
  234. opacity: 0;
  235. }
  236. .wp-block-cover-image .wp-block-cover__gradient-background.has-background-dim.has-background-dim-10,
  237. .wp-block-cover-image .wp-block-cover__background.has-background-dim.has-background-dim-10,
  238. .wp-block-cover .wp-block-cover__gradient-background.has-background-dim.has-background-dim-10,
  239. .wp-block-cover .wp-block-cover__background.has-background-dim.has-background-dim-10 {
  240. opacity: 0.1;
  241. }
  242. .wp-block-cover-image .wp-block-cover__gradient-background.has-background-dim.has-background-dim-20,
  243. .wp-block-cover-image .wp-block-cover__background.has-background-dim.has-background-dim-20,
  244. .wp-block-cover .wp-block-cover__gradient-background.has-background-dim.has-background-dim-20,
  245. .wp-block-cover .wp-block-cover__background.has-background-dim.has-background-dim-20 {
  246. opacity: 0.2;
  247. }
  248. .wp-block-cover-image .wp-block-cover__gradient-background.has-background-dim.has-background-dim-30,
  249. .wp-block-cover-image .wp-block-cover__background.has-background-dim.has-background-dim-30,
  250. .wp-block-cover .wp-block-cover__gradient-background.has-background-dim.has-background-dim-30,
  251. .wp-block-cover .wp-block-cover__background.has-background-dim.has-background-dim-30 {
  252. opacity: 0.3;
  253. }
  254. .wp-block-cover-image .wp-block-cover__gradient-background.has-background-dim.has-background-dim-40,
  255. .wp-block-cover-image .wp-block-cover__background.has-background-dim.has-background-dim-40,
  256. .wp-block-cover .wp-block-cover__gradient-background.has-background-dim.has-background-dim-40,
  257. .wp-block-cover .wp-block-cover__background.has-background-dim.has-background-dim-40 {
  258. opacity: 0.4;
  259. }
  260. .wp-block-cover-image .wp-block-cover__gradient-background.has-background-dim.has-background-dim-50,
  261. .wp-block-cover-image .wp-block-cover__background.has-background-dim.has-background-dim-50,
  262. .wp-block-cover .wp-block-cover__gradient-background.has-background-dim.has-background-dim-50,
  263. .wp-block-cover .wp-block-cover__background.has-background-dim.has-background-dim-50 {
  264. opacity: 0.5;
  265. }
  266. .wp-block-cover-image .wp-block-cover__gradient-background.has-background-dim.has-background-dim-60,
  267. .wp-block-cover-image .wp-block-cover__background.has-background-dim.has-background-dim-60,
  268. .wp-block-cover .wp-block-cover__gradient-background.has-background-dim.has-background-dim-60,
  269. .wp-block-cover .wp-block-cover__background.has-background-dim.has-background-dim-60 {
  270. opacity: 0.6;
  271. }
  272. .wp-block-cover-image .wp-block-cover__gradient-background.has-background-dim.has-background-dim-70,
  273. .wp-block-cover-image .wp-block-cover__background.has-background-dim.has-background-dim-70,
  274. .wp-block-cover .wp-block-cover__gradient-background.has-background-dim.has-background-dim-70,
  275. .wp-block-cover .wp-block-cover__background.has-background-dim.has-background-dim-70 {
  276. opacity: 0.7;
  277. }
  278. .wp-block-cover-image .wp-block-cover__gradient-background.has-background-dim.has-background-dim-80,
  279. .wp-block-cover-image .wp-block-cover__background.has-background-dim.has-background-dim-80,
  280. .wp-block-cover .wp-block-cover__gradient-background.has-background-dim.has-background-dim-80,
  281. .wp-block-cover .wp-block-cover__background.has-background-dim.has-background-dim-80 {
  282. opacity: 0.8;
  283. }
  284. .wp-block-cover-image .wp-block-cover__gradient-background.has-background-dim.has-background-dim-90,
  285. .wp-block-cover-image .wp-block-cover__background.has-background-dim.has-background-dim-90,
  286. .wp-block-cover .wp-block-cover__gradient-background.has-background-dim.has-background-dim-90,
  287. .wp-block-cover .wp-block-cover__background.has-background-dim.has-background-dim-90 {
  288. opacity: 0.9;
  289. }
  290. .wp-block-cover-image .wp-block-cover__gradient-background.has-background-dim.has-background-dim-100,
  291. .wp-block-cover-image .wp-block-cover__background.has-background-dim.has-background-dim-100,
  292. .wp-block-cover .wp-block-cover__gradient-background.has-background-dim.has-background-dim-100,
  293. .wp-block-cover .wp-block-cover__background.has-background-dim.has-background-dim-100 {
  294. opacity: 1;
  295. }
  296. .wp-block-cover-image .block-library-cover__padding-visualizer,
  297. .wp-block-cover .block-library-cover__padding-visualizer {
  298. z-index: 2;
  299. }
  300. .wp-block-cover-image.alignleft, .wp-block-cover-image.alignright,
  301. .wp-block-cover.alignleft,
  302. .wp-block-cover.alignright {
  303. max-width: 420px;
  304. width: 100%;
  305. }
  306. .wp-block-cover-image::after,
  307. .wp-block-cover::after {
  308. display: block;
  309. content: "";
  310. font-size: 0;
  311. min-height: inherit;
  312. }
  313. @supports (position: sticky) {
  314. .wp-block-cover-image::after,
  315. .wp-block-cover::after {
  316. content: none;
  317. }
  318. }
  319. .wp-block-cover-image.aligncenter, .wp-block-cover-image.alignleft, .wp-block-cover-image.alignright,
  320. .wp-block-cover.aligncenter,
  321. .wp-block-cover.alignleft,
  322. .wp-block-cover.alignright {
  323. display: flex;
  324. }
  325. .wp-block-cover-image .wp-block-cover__inner-container,
  326. .wp-block-cover .wp-block-cover__inner-container {
  327. width: 100%;
  328. z-index: 1;
  329. color: #fff;
  330. }
  331. .wp-block-cover-image.is-light .wp-block-cover__inner-container,
  332. .wp-block-cover.is-light .wp-block-cover__inner-container {
  333. color: #000;
  334. }
  335. .wp-block-cover-image p:not(.has-text-color),
  336. .wp-block-cover-image h1:not(.has-text-color),
  337. .wp-block-cover-image h2:not(.has-text-color),
  338. .wp-block-cover-image h3:not(.has-text-color),
  339. .wp-block-cover-image h4:not(.has-text-color),
  340. .wp-block-cover-image h5:not(.has-text-color),
  341. .wp-block-cover-image h6:not(.has-text-color),
  342. .wp-block-cover p:not(.has-text-color),
  343. .wp-block-cover h1:not(.has-text-color),
  344. .wp-block-cover h2:not(.has-text-color),
  345. .wp-block-cover h3:not(.has-text-color),
  346. .wp-block-cover h4:not(.has-text-color),
  347. .wp-block-cover h5:not(.has-text-color),
  348. .wp-block-cover h6:not(.has-text-color) {
  349. color: inherit;
  350. }
  351. .wp-block-cover-image.is-position-top-left,
  352. .wp-block-cover.is-position-top-left {
  353. align-items: flex-start;
  354. justify-content: flex-start;
  355. }
  356. .wp-block-cover-image.is-position-top-center,
  357. .wp-block-cover.is-position-top-center {
  358. align-items: flex-start;
  359. justify-content: center;
  360. }
  361. .wp-block-cover-image.is-position-top-right,
  362. .wp-block-cover.is-position-top-right {
  363. align-items: flex-start;
  364. justify-content: flex-end;
  365. }
  366. .wp-block-cover-image.is-position-center-left,
  367. .wp-block-cover.is-position-center-left {
  368. align-items: center;
  369. justify-content: flex-start;
  370. }
  371. .wp-block-cover-image.is-position-center-center,
  372. .wp-block-cover.is-position-center-center {
  373. align-items: center;
  374. justify-content: center;
  375. }
  376. .wp-block-cover-image.is-position-center-right,
  377. .wp-block-cover.is-position-center-right {
  378. align-items: center;
  379. justify-content: flex-end;
  380. }
  381. .wp-block-cover-image.is-position-bottom-left,
  382. .wp-block-cover.is-position-bottom-left {
  383. align-items: flex-end;
  384. justify-content: flex-start;
  385. }
  386. .wp-block-cover-image.is-position-bottom-center,
  387. .wp-block-cover.is-position-bottom-center {
  388. align-items: flex-end;
  389. justify-content: center;
  390. }
  391. .wp-block-cover-image.is-position-bottom-right,
  392. .wp-block-cover.is-position-bottom-right {
  393. align-items: flex-end;
  394. justify-content: flex-end;
  395. }
  396. .wp-block-cover-image.has-custom-content-position.has-custom-content-position .wp-block-cover__inner-container,
  397. .wp-block-cover.has-custom-content-position.has-custom-content-position .wp-block-cover__inner-container {
  398. margin: 0;
  399. width: auto;
  400. }
  401. .wp-block-cover-image img.wp-block-cover__image-background,
  402. .wp-block-cover-image video.wp-block-cover__video-background,
  403. .wp-block-cover img.wp-block-cover__image-background,
  404. .wp-block-cover video.wp-block-cover__video-background {
  405. position: absolute;
  406. top: 0;
  407. right: 0;
  408. left: 0;
  409. bottom: 0;
  410. margin: 0;
  411. padding: 0;
  412. width: 100%;
  413. height: 100%;
  414. max-width: none;
  415. max-height: none;
  416. -o-object-fit: cover;
  417. object-fit: cover;
  418. outline: none;
  419. border: none;
  420. box-shadow: none;
  421. }
  422. .wp-block-cover__video-background {
  423. z-index: 0;
  424. }
  425. .wp-block-cover__image-background {
  426. z-index: 0;
  427. }
  428. section.wp-block-cover-image h2,
  429. .wp-block-cover-image-text,
  430. .wp-block-cover-text {
  431. color: #fff;
  432. }
  433. section.wp-block-cover-image h2 a,
  434. section.wp-block-cover-image h2 a:hover,
  435. section.wp-block-cover-image h2 a:focus,
  436. section.wp-block-cover-image h2 a:active,
  437. .wp-block-cover-image-text a,
  438. .wp-block-cover-image-text a:hover,
  439. .wp-block-cover-image-text a:focus,
  440. .wp-block-cover-image-text a:active,
  441. .wp-block-cover-text a,
  442. .wp-block-cover-text a:hover,
  443. .wp-block-cover-text a:focus,
  444. .wp-block-cover-text a:active {
  445. color: #fff;
  446. }
  447. .wp-block-cover-image .wp-block-cover.has-left-content {
  448. justify-content: flex-start;
  449. }
  450. .wp-block-cover-image .wp-block-cover.has-right-content {
  451. justify-content: flex-end;
  452. }
  453. section.wp-block-cover-image.has-left-content > h2,
  454. .wp-block-cover-image.has-left-content .wp-block-cover-image-text,
  455. .wp-block-cover.has-left-content .wp-block-cover-text {
  456. margin-right: 0;
  457. text-align: right;
  458. }
  459. section.wp-block-cover-image.has-right-content > h2,
  460. .wp-block-cover-image.has-right-content .wp-block-cover-image-text,
  461. .wp-block-cover.has-right-content .wp-block-cover-text {
  462. margin-left: 0;
  463. text-align: left;
  464. }
  465. section.wp-block-cover-image > h2,
  466. .wp-block-cover-image .wp-block-cover-image-text,
  467. .wp-block-cover .wp-block-cover-text {
  468. font-size: 2em;
  469. line-height: 1.25;
  470. z-index: 1;
  471. margin-bottom: 0;
  472. max-width: 840px;
  473. padding: 0.44em;
  474. text-align: center;
  475. }