style-rtl.css 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395
  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. object-fit: cover;
  161. }
  162. .wp-block-gallery:not(.has-nested-images).columns-1 .blocks-gallery-image, .wp-block-gallery:not(.has-nested-images).columns-1 .blocks-gallery-item,
  163. .blocks-gallery-grid:not(.has-nested-images).columns-1 .blocks-gallery-image,
  164. .blocks-gallery-grid:not(.has-nested-images).columns-1 .blocks-gallery-item {
  165. width: 100%;
  166. margin-left: 0;
  167. }
  168. @media (min-width: 600px) {
  169. .wp-block-gallery:not(.has-nested-images).columns-3 .blocks-gallery-image, .wp-block-gallery:not(.has-nested-images).columns-3 .blocks-gallery-item,
  170. .blocks-gallery-grid:not(.has-nested-images).columns-3 .blocks-gallery-image,
  171. .blocks-gallery-grid:not(.has-nested-images).columns-3 .blocks-gallery-item {
  172. width: calc(33.3333333333% - 0.6666666667em);
  173. margin-left: 1em;
  174. }
  175. .wp-block-gallery:not(.has-nested-images).columns-4 .blocks-gallery-image, .wp-block-gallery:not(.has-nested-images).columns-4 .blocks-gallery-item,
  176. .blocks-gallery-grid:not(.has-nested-images).columns-4 .blocks-gallery-image,
  177. .blocks-gallery-grid:not(.has-nested-images).columns-4 .blocks-gallery-item {
  178. width: calc(25% - 0.75em);
  179. margin-left: 1em;
  180. }
  181. .wp-block-gallery:not(.has-nested-images).columns-5 .blocks-gallery-image, .wp-block-gallery:not(.has-nested-images).columns-5 .blocks-gallery-item,
  182. .blocks-gallery-grid:not(.has-nested-images).columns-5 .blocks-gallery-image,
  183. .blocks-gallery-grid:not(.has-nested-images).columns-5 .blocks-gallery-item {
  184. width: calc(20% - 0.8em);
  185. margin-left: 1em;
  186. }
  187. .wp-block-gallery:not(.has-nested-images).columns-6 .blocks-gallery-image, .wp-block-gallery:not(.has-nested-images).columns-6 .blocks-gallery-item,
  188. .blocks-gallery-grid:not(.has-nested-images).columns-6 .blocks-gallery-image,
  189. .blocks-gallery-grid:not(.has-nested-images).columns-6 .blocks-gallery-item {
  190. width: calc(16.6666666667% - 0.8333333333em);
  191. margin-left: 1em;
  192. }
  193. .wp-block-gallery:not(.has-nested-images).columns-7 .blocks-gallery-image, .wp-block-gallery:not(.has-nested-images).columns-7 .blocks-gallery-item,
  194. .blocks-gallery-grid:not(.has-nested-images).columns-7 .blocks-gallery-image,
  195. .blocks-gallery-grid:not(.has-nested-images).columns-7 .blocks-gallery-item {
  196. width: calc(14.2857142857% - 0.8571428571em);
  197. margin-left: 1em;
  198. }
  199. .wp-block-gallery:not(.has-nested-images).columns-8 .blocks-gallery-image, .wp-block-gallery:not(.has-nested-images).columns-8 .blocks-gallery-item,
  200. .blocks-gallery-grid:not(.has-nested-images).columns-8 .blocks-gallery-image,
  201. .blocks-gallery-grid:not(.has-nested-images).columns-8 .blocks-gallery-item {
  202. width: calc(12.5% - 0.875em);
  203. margin-left: 1em;
  204. }
  205. .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),
  206. .blocks-gallery-grid:not(.has-nested-images).columns-1 .blocks-gallery-image:nth-of-type(1n),
  207. .blocks-gallery-grid:not(.has-nested-images).columns-1 .blocks-gallery-item:nth-of-type(1n) {
  208. margin-left: 0;
  209. }
  210. .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),
  211. .blocks-gallery-grid:not(.has-nested-images).columns-2 .blocks-gallery-image:nth-of-type(2n),
  212. .blocks-gallery-grid:not(.has-nested-images).columns-2 .blocks-gallery-item:nth-of-type(2n) {
  213. margin-left: 0;
  214. }
  215. .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),
  216. .blocks-gallery-grid:not(.has-nested-images).columns-3 .blocks-gallery-image:nth-of-type(3n),
  217. .blocks-gallery-grid:not(.has-nested-images).columns-3 .blocks-gallery-item:nth-of-type(3n) {
  218. margin-left: 0;
  219. }
  220. .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),
  221. .blocks-gallery-grid:not(.has-nested-images).columns-4 .blocks-gallery-image:nth-of-type(4n),
  222. .blocks-gallery-grid:not(.has-nested-images).columns-4 .blocks-gallery-item:nth-of-type(4n) {
  223. margin-left: 0;
  224. }
  225. .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),
  226. .blocks-gallery-grid:not(.has-nested-images).columns-5 .blocks-gallery-image:nth-of-type(5n),
  227. .blocks-gallery-grid:not(.has-nested-images).columns-5 .blocks-gallery-item:nth-of-type(5n) {
  228. margin-left: 0;
  229. }
  230. .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),
  231. .blocks-gallery-grid:not(.has-nested-images).columns-6 .blocks-gallery-image:nth-of-type(6n),
  232. .blocks-gallery-grid:not(.has-nested-images).columns-6 .blocks-gallery-item:nth-of-type(6n) {
  233. margin-left: 0;
  234. }
  235. .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),
  236. .blocks-gallery-grid:not(.has-nested-images).columns-7 .blocks-gallery-image:nth-of-type(7n),
  237. .blocks-gallery-grid:not(.has-nested-images).columns-7 .blocks-gallery-item:nth-of-type(7n) {
  238. margin-left: 0;
  239. }
  240. .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),
  241. .blocks-gallery-grid:not(.has-nested-images).columns-8 .blocks-gallery-image:nth-of-type(8n),
  242. .blocks-gallery-grid:not(.has-nested-images).columns-8 .blocks-gallery-item:nth-of-type(8n) {
  243. margin-left: 0;
  244. }
  245. }
  246. .wp-block-gallery:not(.has-nested-images) .blocks-gallery-image:last-child,
  247. .wp-block-gallery:not(.has-nested-images) .blocks-gallery-item:last-child,
  248. .blocks-gallery-grid:not(.has-nested-images) .blocks-gallery-image:last-child,
  249. .blocks-gallery-grid:not(.has-nested-images) .blocks-gallery-item:last-child {
  250. margin-left: 0;
  251. }
  252. .wp-block-gallery:not(.has-nested-images).alignleft, .wp-block-gallery:not(.has-nested-images).alignright,
  253. .blocks-gallery-grid:not(.has-nested-images).alignleft,
  254. .blocks-gallery-grid:not(.has-nested-images).alignright {
  255. max-width: 420px;
  256. width: 100%;
  257. }
  258. .wp-block-gallery:not(.has-nested-images).aligncenter .blocks-gallery-item figure,
  259. .blocks-gallery-grid:not(.has-nested-images).aligncenter .blocks-gallery-item figure {
  260. justify-content: center;
  261. }
  262. .wp-block-gallery:not(.is-cropped) .blocks-gallery-item {
  263. align-self: flex-start;
  264. }
  265. figure.wp-block-gallery.has-nested-images {
  266. align-items: normal;
  267. }
  268. .wp-block-gallery.has-nested-images figure.wp-block-image:not(#individual-image) {
  269. width: calc(50% - (var(--wp--style--unstable-gallery-gap, 16px) / 2));
  270. margin: 0;
  271. }
  272. .wp-block-gallery.has-nested-images figure.wp-block-image {
  273. display: flex;
  274. flex-grow: 1;
  275. justify-content: center;
  276. position: relative;
  277. flex-direction: column;
  278. max-width: 100%;
  279. box-sizing: border-box;
  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.has-custom-border img {
  315. box-sizing: border-box;
  316. }
  317. .wp-block-gallery.has-nested-images figure.wp-block-image.is-style-rounded > div,
  318. .wp-block-gallery.has-nested-images figure.wp-block-image.is-style-rounded > a, .wp-block-gallery.has-nested-images figure.wp-block-image.has-custom-border > div,
  319. .wp-block-gallery.has-nested-images figure.wp-block-image.has-custom-border > a {
  320. flex: 1 1 auto;
  321. }
  322. .wp-block-gallery.has-nested-images figure.wp-block-image.is-style-rounded figcaption, .wp-block-gallery.has-nested-images figure.wp-block-image.has-custom-border figcaption {
  323. flex: initial;
  324. background: none;
  325. color: inherit;
  326. margin: 0;
  327. padding: 10px 10px 9px;
  328. position: relative;
  329. }
  330. .wp-block-gallery.has-nested-images figcaption {
  331. flex-grow: 1;
  332. flex-basis: 100%;
  333. text-align: center;
  334. }
  335. .wp-block-gallery.has-nested-images:not(.is-cropped) figure.wp-block-image:not(#individual-image) {
  336. margin-top: 0;
  337. margin-bottom: auto;
  338. }
  339. .wp-block-gallery.has-nested-images.is-cropped figure.wp-block-image:not(#individual-image) {
  340. align-self: inherit;
  341. }
  342. .wp-block-gallery.has-nested-images.is-cropped figure.wp-block-image:not(#individual-image) > div:not(.components-drop-zone),
  343. .wp-block-gallery.has-nested-images.is-cropped figure.wp-block-image:not(#individual-image) > a {
  344. display: flex;
  345. }
  346. .wp-block-gallery.has-nested-images.is-cropped figure.wp-block-image:not(#individual-image) a,
  347. .wp-block-gallery.has-nested-images.is-cropped figure.wp-block-image:not(#individual-image) img {
  348. width: 100%;
  349. flex: 1 0 0%;
  350. height: 100%;
  351. object-fit: cover;
  352. }
  353. .wp-block-gallery.has-nested-images.columns-1 figure.wp-block-image:not(#individual-image) {
  354. width: 100%;
  355. }
  356. @media (min-width: 600px) {
  357. .wp-block-gallery.has-nested-images.columns-3 figure.wp-block-image:not(#individual-image) {
  358. width: calc(33.3333333333% - (var(--wp--style--unstable-gallery-gap, 16px) * 0.6666666667));
  359. }
  360. .wp-block-gallery.has-nested-images.columns-4 figure.wp-block-image:not(#individual-image) {
  361. width: calc(25% - (var(--wp--style--unstable-gallery-gap, 16px) * 0.75));
  362. }
  363. .wp-block-gallery.has-nested-images.columns-5 figure.wp-block-image:not(#individual-image) {
  364. width: calc(20% - (var(--wp--style--unstable-gallery-gap, 16px) * 0.8));
  365. }
  366. .wp-block-gallery.has-nested-images.columns-6 figure.wp-block-image:not(#individual-image) {
  367. width: calc(16.6666666667% - (var(--wp--style--unstable-gallery-gap, 16px) * 0.8333333333));
  368. }
  369. .wp-block-gallery.has-nested-images.columns-7 figure.wp-block-image:not(#individual-image) {
  370. width: calc(14.2857142857% - (var(--wp--style--unstable-gallery-gap, 16px) * 0.8571428571));
  371. }
  372. .wp-block-gallery.has-nested-images.columns-8 figure.wp-block-image:not(#individual-image) {
  373. width: calc(12.5% - (var(--wp--style--unstable-gallery-gap, 16px) * 0.875));
  374. }
  375. .wp-block-gallery.has-nested-images.columns-default figure.wp-block-image:not(#individual-image) {
  376. width: calc(33.33% - (var(--wp--style--unstable-gallery-gap, 16px) * 0.6666666667));
  377. }
  378. .wp-block-gallery.has-nested-images.columns-default figure.wp-block-image:not(#individual-image):first-child:nth-last-child(2),
  379. .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) {
  380. width: calc(50% - (var(--wp--style--unstable-gallery-gap, 16px) * 0.5));
  381. }
  382. .wp-block-gallery.has-nested-images.columns-default figure.wp-block-image:not(#individual-image):first-child:nth-last-child(1) {
  383. width: 100%;
  384. }
  385. }
  386. .wp-block-gallery.has-nested-images.alignleft, .wp-block-gallery.has-nested-images.alignright {
  387. max-width: 420px;
  388. width: 100%;
  389. }
  390. .wp-block-gallery.has-nested-images.aligncenter {
  391. justify-content: center;
  392. }