style-rtl.css 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392
  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-gallery:not(.has-nested-images),
  78. .blocks-gallery-grid:not(.has-nested-images) {
  79. display: flex;
  80. flex-wrap: wrap;
  81. list-style-type: none;
  82. padding: 0;
  83. margin: 0;
  84. }
  85. .wp-block-gallery:not(.has-nested-images) .blocks-gallery-image,
  86. .wp-block-gallery:not(.has-nested-images) .blocks-gallery-item,
  87. .blocks-gallery-grid:not(.has-nested-images) .blocks-gallery-image,
  88. .blocks-gallery-grid:not(.has-nested-images) .blocks-gallery-item {
  89. margin: 0 0 1em 1em;
  90. display: flex;
  91. flex-grow: 1;
  92. flex-direction: column;
  93. justify-content: center;
  94. position: relative;
  95. width: calc(50% - 1em);
  96. }
  97. .wp-block-gallery:not(.has-nested-images) .blocks-gallery-image:nth-of-type(even),
  98. .wp-block-gallery:not(.has-nested-images) .blocks-gallery-item:nth-of-type(even),
  99. .blocks-gallery-grid:not(.has-nested-images) .blocks-gallery-image:nth-of-type(even),
  100. .blocks-gallery-grid:not(.has-nested-images) .blocks-gallery-item:nth-of-type(even) {
  101. margin-left: 0;
  102. }
  103. .wp-block-gallery:not(.has-nested-images) .blocks-gallery-image figure,
  104. .wp-block-gallery:not(.has-nested-images) .blocks-gallery-item figure,
  105. .blocks-gallery-grid:not(.has-nested-images) .blocks-gallery-image figure,
  106. .blocks-gallery-grid:not(.has-nested-images) .blocks-gallery-item figure {
  107. margin: 0;
  108. height: 100%;
  109. display: flex;
  110. align-items: flex-end;
  111. justify-content: flex-start;
  112. }
  113. .wp-block-gallery:not(.has-nested-images) .blocks-gallery-image img,
  114. .wp-block-gallery:not(.has-nested-images) .blocks-gallery-item img,
  115. .blocks-gallery-grid:not(.has-nested-images) .blocks-gallery-image img,
  116. .blocks-gallery-grid:not(.has-nested-images) .blocks-gallery-item img {
  117. display: block;
  118. max-width: 100%;
  119. height: auto;
  120. width: auto;
  121. }
  122. .wp-block-gallery:not(.has-nested-images) .blocks-gallery-image figcaption,
  123. .wp-block-gallery:not(.has-nested-images) .blocks-gallery-item figcaption,
  124. .blocks-gallery-grid:not(.has-nested-images) .blocks-gallery-image figcaption,
  125. .blocks-gallery-grid:not(.has-nested-images) .blocks-gallery-item figcaption {
  126. position: absolute;
  127. bottom: 0;
  128. width: 100%;
  129. max-height: 100%;
  130. overflow: auto;
  131. padding: 3em 0.77em 0.7em;
  132. color: #fff;
  133. text-align: center;
  134. font-size: 0.8em;
  135. background: linear-gradient(0deg, rgba(0, 0, 0, 0.7) 0, rgba(0, 0, 0, 0.3) 70%, transparent);
  136. box-sizing: border-box;
  137. margin: 0;
  138. z-index: 2;
  139. }
  140. .wp-block-gallery:not(.has-nested-images) .blocks-gallery-image figcaption img,
  141. .wp-block-gallery:not(.has-nested-images) .blocks-gallery-item figcaption img,
  142. .blocks-gallery-grid:not(.has-nested-images) .blocks-gallery-image figcaption img,
  143. .blocks-gallery-grid:not(.has-nested-images) .blocks-gallery-item figcaption img {
  144. display: inline;
  145. }
  146. .wp-block-gallery:not(.has-nested-images) figcaption,
  147. .blocks-gallery-grid:not(.has-nested-images) figcaption {
  148. flex-grow: 1;
  149. }
  150. .wp-block-gallery:not(.has-nested-images).is-cropped .blocks-gallery-image a,
  151. .wp-block-gallery:not(.has-nested-images).is-cropped .blocks-gallery-image img, .wp-block-gallery:not(.has-nested-images).is-cropped .blocks-gallery-item a,
  152. .wp-block-gallery:not(.has-nested-images).is-cropped .blocks-gallery-item img,
  153. .blocks-gallery-grid:not(.has-nested-images).is-cropped .blocks-gallery-image a,
  154. .blocks-gallery-grid:not(.has-nested-images).is-cropped .blocks-gallery-image img,
  155. .blocks-gallery-grid:not(.has-nested-images).is-cropped .blocks-gallery-item a,
  156. .blocks-gallery-grid:not(.has-nested-images).is-cropped .blocks-gallery-item img {
  157. width: 100%;
  158. height: 100%;
  159. flex: 1;
  160. -o-object-fit: cover;
  161. object-fit: cover;
  162. }
  163. .wp-block-gallery:not(.has-nested-images).columns-1 .blocks-gallery-image, .wp-block-gallery:not(.has-nested-images).columns-1 .blocks-gallery-item,
  164. .blocks-gallery-grid:not(.has-nested-images).columns-1 .blocks-gallery-image,
  165. .blocks-gallery-grid:not(.has-nested-images).columns-1 .blocks-gallery-item {
  166. width: 100%;
  167. margin-left: 0;
  168. }
  169. @media (min-width: 600px) {
  170. .wp-block-gallery:not(.has-nested-images).columns-3 .blocks-gallery-image, .wp-block-gallery:not(.has-nested-images).columns-3 .blocks-gallery-item,
  171. .blocks-gallery-grid:not(.has-nested-images).columns-3 .blocks-gallery-image,
  172. .blocks-gallery-grid:not(.has-nested-images).columns-3 .blocks-gallery-item {
  173. width: calc(33.3333333333% - 0.6666666667em);
  174. margin-left: 1em;
  175. }
  176. .wp-block-gallery:not(.has-nested-images).columns-4 .blocks-gallery-image, .wp-block-gallery:not(.has-nested-images).columns-4 .blocks-gallery-item,
  177. .blocks-gallery-grid:not(.has-nested-images).columns-4 .blocks-gallery-image,
  178. .blocks-gallery-grid:not(.has-nested-images).columns-4 .blocks-gallery-item {
  179. width: calc(25% - 0.75em);
  180. margin-left: 1em;
  181. }
  182. .wp-block-gallery:not(.has-nested-images).columns-5 .blocks-gallery-image, .wp-block-gallery:not(.has-nested-images).columns-5 .blocks-gallery-item,
  183. .blocks-gallery-grid:not(.has-nested-images).columns-5 .blocks-gallery-image,
  184. .blocks-gallery-grid:not(.has-nested-images).columns-5 .blocks-gallery-item {
  185. width: calc(20% - 0.8em);
  186. margin-left: 1em;
  187. }
  188. .wp-block-gallery:not(.has-nested-images).columns-6 .blocks-gallery-image, .wp-block-gallery:not(.has-nested-images).columns-6 .blocks-gallery-item,
  189. .blocks-gallery-grid:not(.has-nested-images).columns-6 .blocks-gallery-image,
  190. .blocks-gallery-grid:not(.has-nested-images).columns-6 .blocks-gallery-item {
  191. width: calc(16.6666666667% - 0.8333333333em);
  192. margin-left: 1em;
  193. }
  194. .wp-block-gallery:not(.has-nested-images).columns-7 .blocks-gallery-image, .wp-block-gallery:not(.has-nested-images).columns-7 .blocks-gallery-item,
  195. .blocks-gallery-grid:not(.has-nested-images).columns-7 .blocks-gallery-image,
  196. .blocks-gallery-grid:not(.has-nested-images).columns-7 .blocks-gallery-item {
  197. width: calc(14.2857142857% - 0.8571428571em);
  198. margin-left: 1em;
  199. }
  200. .wp-block-gallery:not(.has-nested-images).columns-8 .blocks-gallery-image, .wp-block-gallery:not(.has-nested-images).columns-8 .blocks-gallery-item,
  201. .blocks-gallery-grid:not(.has-nested-images).columns-8 .blocks-gallery-image,
  202. .blocks-gallery-grid:not(.has-nested-images).columns-8 .blocks-gallery-item {
  203. width: calc(12.5% - 0.875em);
  204. margin-left: 1em;
  205. }
  206. .wp-block-gallery:not(.has-nested-images).columns-1 .blocks-gallery-image:nth-of-type(1n), .wp-block-gallery:not(.has-nested-images).columns-1 .blocks-gallery-item:nth-of-type(1n),
  207. .blocks-gallery-grid:not(.has-nested-images).columns-1 .blocks-gallery-image:nth-of-type(1n),
  208. .blocks-gallery-grid:not(.has-nested-images).columns-1 .blocks-gallery-item:nth-of-type(1n) {
  209. margin-left: 0;
  210. }
  211. .wp-block-gallery:not(.has-nested-images).columns-2 .blocks-gallery-image:nth-of-type(2n), .wp-block-gallery:not(.has-nested-images).columns-2 .blocks-gallery-item:nth-of-type(2n),
  212. .blocks-gallery-grid:not(.has-nested-images).columns-2 .blocks-gallery-image:nth-of-type(2n),
  213. .blocks-gallery-grid:not(.has-nested-images).columns-2 .blocks-gallery-item:nth-of-type(2n) {
  214. margin-left: 0;
  215. }
  216. .wp-block-gallery:not(.has-nested-images).columns-3 .blocks-gallery-image:nth-of-type(3n), .wp-block-gallery:not(.has-nested-images).columns-3 .blocks-gallery-item:nth-of-type(3n),
  217. .blocks-gallery-grid:not(.has-nested-images).columns-3 .blocks-gallery-image:nth-of-type(3n),
  218. .blocks-gallery-grid:not(.has-nested-images).columns-3 .blocks-gallery-item:nth-of-type(3n) {
  219. margin-left: 0;
  220. }
  221. .wp-block-gallery:not(.has-nested-images).columns-4 .blocks-gallery-image:nth-of-type(4n), .wp-block-gallery:not(.has-nested-images).columns-4 .blocks-gallery-item:nth-of-type(4n),
  222. .blocks-gallery-grid:not(.has-nested-images).columns-4 .blocks-gallery-image:nth-of-type(4n),
  223. .blocks-gallery-grid:not(.has-nested-images).columns-4 .blocks-gallery-item:nth-of-type(4n) {
  224. margin-left: 0;
  225. }
  226. .wp-block-gallery:not(.has-nested-images).columns-5 .blocks-gallery-image:nth-of-type(5n), .wp-block-gallery:not(.has-nested-images).columns-5 .blocks-gallery-item:nth-of-type(5n),
  227. .blocks-gallery-grid:not(.has-nested-images).columns-5 .blocks-gallery-image:nth-of-type(5n),
  228. .blocks-gallery-grid:not(.has-nested-images).columns-5 .blocks-gallery-item:nth-of-type(5n) {
  229. margin-left: 0;
  230. }
  231. .wp-block-gallery:not(.has-nested-images).columns-6 .blocks-gallery-image:nth-of-type(6n), .wp-block-gallery:not(.has-nested-images).columns-6 .blocks-gallery-item:nth-of-type(6n),
  232. .blocks-gallery-grid:not(.has-nested-images).columns-6 .blocks-gallery-image:nth-of-type(6n),
  233. .blocks-gallery-grid:not(.has-nested-images).columns-6 .blocks-gallery-item:nth-of-type(6n) {
  234. margin-left: 0;
  235. }
  236. .wp-block-gallery:not(.has-nested-images).columns-7 .blocks-gallery-image:nth-of-type(7n), .wp-block-gallery:not(.has-nested-images).columns-7 .blocks-gallery-item:nth-of-type(7n),
  237. .blocks-gallery-grid:not(.has-nested-images).columns-7 .blocks-gallery-image:nth-of-type(7n),
  238. .blocks-gallery-grid:not(.has-nested-images).columns-7 .blocks-gallery-item:nth-of-type(7n) {
  239. margin-left: 0;
  240. }
  241. .wp-block-gallery:not(.has-nested-images).columns-8 .blocks-gallery-image:nth-of-type(8n), .wp-block-gallery:not(.has-nested-images).columns-8 .blocks-gallery-item:nth-of-type(8n),
  242. .blocks-gallery-grid:not(.has-nested-images).columns-8 .blocks-gallery-image:nth-of-type(8n),
  243. .blocks-gallery-grid:not(.has-nested-images).columns-8 .blocks-gallery-item:nth-of-type(8n) {
  244. margin-left: 0;
  245. }
  246. }
  247. .wp-block-gallery:not(.has-nested-images) .blocks-gallery-image:last-child,
  248. .wp-block-gallery:not(.has-nested-images) .blocks-gallery-item:last-child,
  249. .blocks-gallery-grid:not(.has-nested-images) .blocks-gallery-image:last-child,
  250. .blocks-gallery-grid:not(.has-nested-images) .blocks-gallery-item:last-child {
  251. margin-left: 0;
  252. }
  253. .wp-block-gallery:not(.has-nested-images).alignleft, .wp-block-gallery:not(.has-nested-images).alignright,
  254. .blocks-gallery-grid:not(.has-nested-images).alignleft,
  255. .blocks-gallery-grid:not(.has-nested-images).alignright {
  256. max-width: 420px;
  257. width: 100%;
  258. }
  259. .wp-block-gallery:not(.has-nested-images).aligncenter .blocks-gallery-item figure,
  260. .blocks-gallery-grid:not(.has-nested-images).aligncenter .blocks-gallery-item figure {
  261. justify-content: center;
  262. }
  263. .wp-block-gallery:not(.is-cropped) .blocks-gallery-item {
  264. align-self: flex-start;
  265. }
  266. figure.wp-block-gallery.has-nested-images {
  267. align-items: normal;
  268. }
  269. .wp-block-gallery.has-nested-images figure.wp-block-image:not(#individual-image) {
  270. width: calc(50% - (var(--wp--style--unstable-gallery-gap, 16px) / 2));
  271. margin: 0;
  272. }
  273. .wp-block-gallery.has-nested-images figure.wp-block-image {
  274. display: flex;
  275. flex-grow: 1;
  276. justify-content: center;
  277. position: relative;
  278. flex-direction: column;
  279. max-width: 100%;
  280. }
  281. .wp-block-gallery.has-nested-images figure.wp-block-image > div,
  282. .wp-block-gallery.has-nested-images figure.wp-block-image > a {
  283. margin: 0;
  284. flex-direction: column;
  285. flex-grow: 1;
  286. }
  287. .wp-block-gallery.has-nested-images figure.wp-block-image img {
  288. display: block;
  289. height: auto;
  290. max-width: 100% !important;
  291. width: auto;
  292. }
  293. .wp-block-gallery.has-nested-images figure.wp-block-image figcaption {
  294. background: linear-gradient(0deg, rgba(0, 0, 0, 0.7) 0, rgba(0, 0, 0, 0.3) 70%, transparent);
  295. bottom: 0;
  296. color: #fff;
  297. font-size: 13px;
  298. right: 0;
  299. margin-bottom: 0;
  300. max-height: 60%;
  301. overflow: auto;
  302. padding: 0 8px 8px;
  303. position: absolute;
  304. text-align: center;
  305. width: 100%;
  306. box-sizing: border-box;
  307. }
  308. .wp-block-gallery.has-nested-images figure.wp-block-image figcaption img {
  309. display: inline;
  310. }
  311. .wp-block-gallery.has-nested-images figure.wp-block-image figcaption a {
  312. color: inherit;
  313. }
  314. .wp-block-gallery.has-nested-images figure.wp-block-image.is-style-rounded > div,
  315. .wp-block-gallery.has-nested-images figure.wp-block-image.is-style-rounded > a {
  316. flex: 1 1 auto;
  317. }
  318. .wp-block-gallery.has-nested-images figure.wp-block-image.is-style-rounded figcaption {
  319. flex: initial;
  320. background: none;
  321. color: inherit;
  322. margin: 0;
  323. padding: 10px 10px 9px;
  324. position: relative;
  325. }
  326. .wp-block-gallery.has-nested-images figcaption {
  327. flex-grow: 1;
  328. flex-basis: 100%;
  329. text-align: center;
  330. }
  331. .wp-block-gallery.has-nested-images:not(.is-cropped) figure.wp-block-image:not(#individual-image) {
  332. margin-top: 0;
  333. margin-bottom: auto;
  334. }
  335. .wp-block-gallery.has-nested-images.is-cropped figure.wp-block-image:not(#individual-image) {
  336. align-self: inherit;
  337. }
  338. .wp-block-gallery.has-nested-images.is-cropped figure.wp-block-image:not(#individual-image) > div:not(.components-drop-zone),
  339. .wp-block-gallery.has-nested-images.is-cropped figure.wp-block-image:not(#individual-image) > a {
  340. display: flex;
  341. }
  342. .wp-block-gallery.has-nested-images.is-cropped figure.wp-block-image:not(#individual-image) a,
  343. .wp-block-gallery.has-nested-images.is-cropped figure.wp-block-image:not(#individual-image) img {
  344. width: 100%;
  345. flex: 1 0 0%;
  346. height: 100%;
  347. -o-object-fit: cover;
  348. object-fit: cover;
  349. }
  350. .wp-block-gallery.has-nested-images.columns-1 figure.wp-block-image:not(#individual-image) {
  351. width: 100%;
  352. }
  353. @media (min-width: 600px) {
  354. .wp-block-gallery.has-nested-images.columns-3 figure.wp-block-image:not(#individual-image) {
  355. width: calc(33.3333333333% - (var(--wp--style--unstable-gallery-gap, 16px) * 0.6666666667));
  356. }
  357. .wp-block-gallery.has-nested-images.columns-4 figure.wp-block-image:not(#individual-image) {
  358. width: calc(25% - (var(--wp--style--unstable-gallery-gap, 16px) * 0.75));
  359. }
  360. .wp-block-gallery.has-nested-images.columns-5 figure.wp-block-image:not(#individual-image) {
  361. width: calc(20% - (var(--wp--style--unstable-gallery-gap, 16px) * 0.8));
  362. }
  363. .wp-block-gallery.has-nested-images.columns-6 figure.wp-block-image:not(#individual-image) {
  364. width: calc(16.6666666667% - (var(--wp--style--unstable-gallery-gap, 16px) * 0.8333333333));
  365. }
  366. .wp-block-gallery.has-nested-images.columns-7 figure.wp-block-image:not(#individual-image) {
  367. width: calc(14.2857142857% - (var(--wp--style--unstable-gallery-gap, 16px) * 0.8571428571));
  368. }
  369. .wp-block-gallery.has-nested-images.columns-8 figure.wp-block-image:not(#individual-image) {
  370. width: calc(12.5% - (var(--wp--style--unstable-gallery-gap, 16px) * 0.875));
  371. }
  372. .wp-block-gallery.has-nested-images.columns-default figure.wp-block-image:not(#individual-image) {
  373. width: calc(33.33% - (var(--wp--style--unstable-gallery-gap, 16px) * 0.6666666667));
  374. }
  375. .wp-block-gallery.has-nested-images.columns-default figure.wp-block-image:not(#individual-image):first-child:nth-last-child(2),
  376. .wp-block-gallery.has-nested-images.columns-default figure.wp-block-image:not(#individual-image):first-child:nth-last-child(2) ~ figure.wp-block-image:not(#individual-image) {
  377. width: calc(50% - (var(--wp--style--unstable-gallery-gap, 16px) * 0.5));
  378. }
  379. .wp-block-gallery.has-nested-images.columns-default figure.wp-block-image:not(#individual-image):first-child:nth-last-child(1) {
  380. width: 100%;
  381. }
  382. }
  383. .wp-block-gallery.has-nested-images.alignleft, .wp-block-gallery.has-nested-images.alignright {
  384. max-width: 420px;
  385. width: 100%;
  386. }
  387. .wp-block-gallery.has-nested-images.aligncenter {
  388. justify-content: center;
  389. }