2021-05-11 11:43:08 +02:00
|
|
|
/**
|
|
|
|
* Colors
|
|
|
|
*/
|
|
|
|
/**
|
|
|
|
* Breakpoints & Media Queries
|
|
|
|
*/
|
|
|
|
/**
|
|
|
|
* SCSS Variables.
|
|
|
|
*
|
|
|
|
* Please use variables from this sheet to ensure consistency across the UI.
|
|
|
|
* Don't add to this sheet unless you're pretty sure the value will be reused in many places.
|
|
|
|
* For example, don't add rules to this sheet that affect block visuals. It's purely for UI.
|
|
|
|
*/
|
|
|
|
/**
|
|
|
|
* Colors
|
|
|
|
*/
|
|
|
|
/**
|
|
|
|
* Fonts & basic variables.
|
|
|
|
*/
|
|
|
|
/**
|
|
|
|
* Grid System.
|
|
|
|
* https://make.wordpress.org/design/2019/10/31/proposal-a-consistent-spacing-system-for-wordpress/
|
|
|
|
*/
|
|
|
|
/**
|
|
|
|
* Dimensions.
|
|
|
|
*/
|
|
|
|
/**
|
|
|
|
* Shadows.
|
|
|
|
*/
|
|
|
|
/**
|
|
|
|
* Editor widths.
|
|
|
|
*/
|
|
|
|
/**
|
|
|
|
* Block & Editor UI.
|
|
|
|
*/
|
|
|
|
/**
|
|
|
|
* Block paddings.
|
|
|
|
*/
|
|
|
|
/**
|
|
|
|
* React Native specific.
|
|
|
|
* These variables do not appear to be used anywhere else.
|
|
|
|
*/
|
2021-11-08 15:29:21 +01:00
|
|
|
/**
|
|
|
|
* Converts a hex value into the rgb equivalent.
|
|
|
|
*
|
|
|
|
* @param {string} hex - the hexadecimal value to convert
|
|
|
|
* @return {string} comma separated rgb values
|
|
|
|
*/
|
2021-05-11 11:43:08 +02:00
|
|
|
/**
|
|
|
|
* Breakpoint mixins
|
|
|
|
*/
|
|
|
|
/**
|
|
|
|
* Long content fade mixin
|
|
|
|
*
|
|
|
|
* Creates a fading overlay to signify that the content is longer
|
|
|
|
* than the space allows.
|
|
|
|
*/
|
|
|
|
/**
|
|
|
|
* Focus styles.
|
|
|
|
*/
|
|
|
|
/**
|
|
|
|
* Applies editor left position to the selector passed as argument
|
|
|
|
*/
|
|
|
|
/**
|
|
|
|
* Styles that are reused verbatim in a few places
|
|
|
|
*/
|
|
|
|
/**
|
|
|
|
* Allows users to opt-out of animations via OS-level preferences.
|
|
|
|
*/
|
|
|
|
/**
|
|
|
|
* Reset default styles for JavaScript UI based pages.
|
|
|
|
* This is a WP-admin agnostic reset
|
|
|
|
*/
|
|
|
|
/**
|
|
|
|
* Reset the WP Admin page styles for Gutenberg-like pages.
|
|
|
|
*/
|
2022-04-12 17:12:47 +02:00
|
|
|
.wp-block-gallery:not(.has-nested-images),
|
|
|
|
.blocks-gallery-grid:not(.has-nested-images) {
|
2021-05-11 11:43:08 +02:00
|
|
|
display: flex;
|
|
|
|
flex-wrap: wrap;
|
|
|
|
list-style-type: none;
|
|
|
|
padding: 0;
|
|
|
|
margin: 0;
|
|
|
|
}
|
2022-04-12 17:12:47 +02:00
|
|
|
.wp-block-gallery:not(.has-nested-images) .blocks-gallery-image,
|
|
|
|
.wp-block-gallery:not(.has-nested-images) .blocks-gallery-item,
|
|
|
|
.blocks-gallery-grid:not(.has-nested-images) .blocks-gallery-image,
|
|
|
|
.blocks-gallery-grid:not(.has-nested-images) .blocks-gallery-item {
|
2021-05-11 11:43:08 +02:00
|
|
|
margin: 0 1em 1em 0;
|
|
|
|
display: flex;
|
|
|
|
flex-grow: 1;
|
|
|
|
flex-direction: column;
|
|
|
|
justify-content: center;
|
|
|
|
position: relative;
|
|
|
|
width: calc(50% - 1em);
|
|
|
|
}
|
2022-04-12 17:12:47 +02:00
|
|
|
.wp-block-gallery:not(.has-nested-images) .blocks-gallery-image:nth-of-type(even),
|
|
|
|
.wp-block-gallery:not(.has-nested-images) .blocks-gallery-item:nth-of-type(even),
|
|
|
|
.blocks-gallery-grid:not(.has-nested-images) .blocks-gallery-image:nth-of-type(even),
|
|
|
|
.blocks-gallery-grid:not(.has-nested-images) .blocks-gallery-item:nth-of-type(even) {
|
2021-05-11 11:43:08 +02:00
|
|
|
margin-right: 0;
|
|
|
|
}
|
2022-04-12 17:12:47 +02:00
|
|
|
.wp-block-gallery:not(.has-nested-images) .blocks-gallery-image figure,
|
|
|
|
.wp-block-gallery:not(.has-nested-images) .blocks-gallery-item figure,
|
|
|
|
.blocks-gallery-grid:not(.has-nested-images) .blocks-gallery-image figure,
|
|
|
|
.blocks-gallery-grid:not(.has-nested-images) .blocks-gallery-item figure {
|
2021-05-11 11:43:08 +02:00
|
|
|
margin: 0;
|
|
|
|
height: 100%;
|
2021-11-08 15:29:21 +01:00
|
|
|
display: flex;
|
|
|
|
align-items: flex-end;
|
|
|
|
justify-content: flex-start;
|
2021-05-11 11:43:08 +02:00
|
|
|
}
|
2022-04-12 17:12:47 +02:00
|
|
|
.wp-block-gallery:not(.has-nested-images) .blocks-gallery-image img,
|
|
|
|
.wp-block-gallery:not(.has-nested-images) .blocks-gallery-item img,
|
|
|
|
.blocks-gallery-grid:not(.has-nested-images) .blocks-gallery-image img,
|
|
|
|
.blocks-gallery-grid:not(.has-nested-images) .blocks-gallery-item img {
|
2021-05-11 11:43:08 +02:00
|
|
|
display: block;
|
|
|
|
max-width: 100%;
|
|
|
|
height: auto;
|
2021-11-08 15:29:21 +01:00
|
|
|
width: auto;
|
2021-05-11 11:43:08 +02:00
|
|
|
}
|
2022-04-12 17:12:47 +02:00
|
|
|
.wp-block-gallery:not(.has-nested-images) .blocks-gallery-image figcaption,
|
|
|
|
.wp-block-gallery:not(.has-nested-images) .blocks-gallery-item figcaption,
|
|
|
|
.blocks-gallery-grid:not(.has-nested-images) .blocks-gallery-image figcaption,
|
|
|
|
.blocks-gallery-grid:not(.has-nested-images) .blocks-gallery-item figcaption {
|
2021-05-11 11:43:08 +02:00
|
|
|
position: absolute;
|
|
|
|
bottom: 0;
|
|
|
|
width: 100%;
|
|
|
|
max-height: 100%;
|
|
|
|
overflow: auto;
|
|
|
|
padding: 3em 0.77em 0.7em;
|
|
|
|
color: #fff;
|
|
|
|
text-align: center;
|
|
|
|
font-size: 0.8em;
|
|
|
|
background: linear-gradient(0deg, rgba(0, 0, 0, 0.7) 0, rgba(0, 0, 0, 0.3) 70%, transparent);
|
|
|
|
box-sizing: border-box;
|
|
|
|
margin: 0;
|
2021-11-08 15:29:21 +01:00
|
|
|
z-index: 2;
|
2021-05-11 11:43:08 +02:00
|
|
|
}
|
2022-04-12 17:12:47 +02:00
|
|
|
.wp-block-gallery:not(.has-nested-images) .blocks-gallery-image figcaption img,
|
|
|
|
.wp-block-gallery:not(.has-nested-images) .blocks-gallery-item figcaption img,
|
|
|
|
.blocks-gallery-grid:not(.has-nested-images) .blocks-gallery-image figcaption img,
|
|
|
|
.blocks-gallery-grid:not(.has-nested-images) .blocks-gallery-item figcaption img {
|
2021-05-11 11:43:08 +02:00
|
|
|
display: inline;
|
|
|
|
}
|
2022-04-12 17:12:47 +02:00
|
|
|
.wp-block-gallery:not(.has-nested-images) figcaption,
|
|
|
|
.blocks-gallery-grid:not(.has-nested-images) figcaption {
|
2021-05-11 11:43:08 +02:00
|
|
|
flex-grow: 1;
|
|
|
|
}
|
2022-04-12 17:12:47 +02:00
|
|
|
.wp-block-gallery:not(.has-nested-images).is-cropped .blocks-gallery-image a,
|
|
|
|
.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,
|
|
|
|
.wp-block-gallery:not(.has-nested-images).is-cropped .blocks-gallery-item img,
|
|
|
|
.blocks-gallery-grid:not(.has-nested-images).is-cropped .blocks-gallery-image a,
|
|
|
|
.blocks-gallery-grid:not(.has-nested-images).is-cropped .blocks-gallery-image img,
|
|
|
|
.blocks-gallery-grid:not(.has-nested-images).is-cropped .blocks-gallery-item a,
|
|
|
|
.blocks-gallery-grid:not(.has-nested-images).is-cropped .blocks-gallery-item img {
|
2021-05-11 11:43:08 +02:00
|
|
|
width: 100%;
|
2021-11-08 15:29:21 +01:00
|
|
|
height: 100%;
|
|
|
|
flex: 1;
|
|
|
|
-o-object-fit: cover;
|
|
|
|
object-fit: cover;
|
2021-05-11 11:43:08 +02:00
|
|
|
}
|
2022-04-12 17:12:47 +02:00
|
|
|
.wp-block-gallery:not(.has-nested-images).columns-1 .blocks-gallery-image, .wp-block-gallery:not(.has-nested-images).columns-1 .blocks-gallery-item,
|
|
|
|
.blocks-gallery-grid:not(.has-nested-images).columns-1 .blocks-gallery-image,
|
|
|
|
.blocks-gallery-grid:not(.has-nested-images).columns-1 .blocks-gallery-item {
|
2021-05-11 11:43:08 +02:00
|
|
|
width: 100%;
|
|
|
|
margin-right: 0;
|
|
|
|
}
|
|
|
|
@media (min-width: 600px) {
|
2022-04-12 17:12:47 +02:00
|
|
|
.wp-block-gallery:not(.has-nested-images).columns-3 .blocks-gallery-image, .wp-block-gallery:not(.has-nested-images).columns-3 .blocks-gallery-item,
|
|
|
|
.blocks-gallery-grid:not(.has-nested-images).columns-3 .blocks-gallery-image,
|
|
|
|
.blocks-gallery-grid:not(.has-nested-images).columns-3 .blocks-gallery-item {
|
2021-05-11 11:43:08 +02:00
|
|
|
width: calc(33.3333333333% - 0.6666666667em);
|
|
|
|
margin-right: 1em;
|
|
|
|
}
|
2022-04-12 17:12:47 +02:00
|
|
|
.wp-block-gallery:not(.has-nested-images).columns-4 .blocks-gallery-image, .wp-block-gallery:not(.has-nested-images).columns-4 .blocks-gallery-item,
|
|
|
|
.blocks-gallery-grid:not(.has-nested-images).columns-4 .blocks-gallery-image,
|
|
|
|
.blocks-gallery-grid:not(.has-nested-images).columns-4 .blocks-gallery-item {
|
2021-05-11 11:43:08 +02:00
|
|
|
width: calc(25% - 0.75em);
|
|
|
|
margin-right: 1em;
|
|
|
|
}
|
2022-04-12 17:12:47 +02:00
|
|
|
.wp-block-gallery:not(.has-nested-images).columns-5 .blocks-gallery-image, .wp-block-gallery:not(.has-nested-images).columns-5 .blocks-gallery-item,
|
|
|
|
.blocks-gallery-grid:not(.has-nested-images).columns-5 .blocks-gallery-image,
|
|
|
|
.blocks-gallery-grid:not(.has-nested-images).columns-5 .blocks-gallery-item {
|
2021-05-11 11:43:08 +02:00
|
|
|
width: calc(20% - 0.8em);
|
|
|
|
margin-right: 1em;
|
|
|
|
}
|
2022-04-12 17:12:47 +02:00
|
|
|
.wp-block-gallery:not(.has-nested-images).columns-6 .blocks-gallery-image, .wp-block-gallery:not(.has-nested-images).columns-6 .blocks-gallery-item,
|
|
|
|
.blocks-gallery-grid:not(.has-nested-images).columns-6 .blocks-gallery-image,
|
|
|
|
.blocks-gallery-grid:not(.has-nested-images).columns-6 .blocks-gallery-item {
|
2021-05-11 11:43:08 +02:00
|
|
|
width: calc(16.6666666667% - 0.8333333333em);
|
|
|
|
margin-right: 1em;
|
|
|
|
}
|
2022-04-12 17:12:47 +02:00
|
|
|
.wp-block-gallery:not(.has-nested-images).columns-7 .blocks-gallery-image, .wp-block-gallery:not(.has-nested-images).columns-7 .blocks-gallery-item,
|
|
|
|
.blocks-gallery-grid:not(.has-nested-images).columns-7 .blocks-gallery-image,
|
|
|
|
.blocks-gallery-grid:not(.has-nested-images).columns-7 .blocks-gallery-item {
|
2021-05-11 11:43:08 +02:00
|
|
|
width: calc(14.2857142857% - 0.8571428571em);
|
|
|
|
margin-right: 1em;
|
|
|
|
}
|
2022-04-12 17:12:47 +02:00
|
|
|
.wp-block-gallery:not(.has-nested-images).columns-8 .blocks-gallery-image, .wp-block-gallery:not(.has-nested-images).columns-8 .blocks-gallery-item,
|
|
|
|
.blocks-gallery-grid:not(.has-nested-images).columns-8 .blocks-gallery-image,
|
|
|
|
.blocks-gallery-grid:not(.has-nested-images).columns-8 .blocks-gallery-item {
|
2021-05-11 11:43:08 +02:00
|
|
|
width: calc(12.5% - 0.875em);
|
|
|
|
margin-right: 1em;
|
|
|
|
}
|
2022-04-12 17:12:47 +02:00
|
|
|
.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),
|
|
|
|
.blocks-gallery-grid:not(.has-nested-images).columns-1 .blocks-gallery-image:nth-of-type(1n),
|
|
|
|
.blocks-gallery-grid:not(.has-nested-images).columns-1 .blocks-gallery-item:nth-of-type(1n) {
|
2021-05-11 11:43:08 +02:00
|
|
|
margin-right: 0;
|
|
|
|
}
|
2022-04-12 17:12:47 +02:00
|
|
|
.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),
|
|
|
|
.blocks-gallery-grid:not(.has-nested-images).columns-2 .blocks-gallery-image:nth-of-type(2n),
|
|
|
|
.blocks-gallery-grid:not(.has-nested-images).columns-2 .blocks-gallery-item:nth-of-type(2n) {
|
2021-05-11 11:43:08 +02:00
|
|
|
margin-right: 0;
|
|
|
|
}
|
2022-04-12 17:12:47 +02:00
|
|
|
.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),
|
|
|
|
.blocks-gallery-grid:not(.has-nested-images).columns-3 .blocks-gallery-image:nth-of-type(3n),
|
|
|
|
.blocks-gallery-grid:not(.has-nested-images).columns-3 .blocks-gallery-item:nth-of-type(3n) {
|
2021-05-11 11:43:08 +02:00
|
|
|
margin-right: 0;
|
|
|
|
}
|
2022-04-12 17:12:47 +02:00
|
|
|
.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),
|
|
|
|
.blocks-gallery-grid:not(.has-nested-images).columns-4 .blocks-gallery-image:nth-of-type(4n),
|
|
|
|
.blocks-gallery-grid:not(.has-nested-images).columns-4 .blocks-gallery-item:nth-of-type(4n) {
|
2021-05-11 11:43:08 +02:00
|
|
|
margin-right: 0;
|
|
|
|
}
|
2022-04-12 17:12:47 +02:00
|
|
|
.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),
|
|
|
|
.blocks-gallery-grid:not(.has-nested-images).columns-5 .blocks-gallery-image:nth-of-type(5n),
|
|
|
|
.blocks-gallery-grid:not(.has-nested-images).columns-5 .blocks-gallery-item:nth-of-type(5n) {
|
2021-05-11 11:43:08 +02:00
|
|
|
margin-right: 0;
|
|
|
|
}
|
2022-04-12 17:12:47 +02:00
|
|
|
.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),
|
|
|
|
.blocks-gallery-grid:not(.has-nested-images).columns-6 .blocks-gallery-image:nth-of-type(6n),
|
|
|
|
.blocks-gallery-grid:not(.has-nested-images).columns-6 .blocks-gallery-item:nth-of-type(6n) {
|
2021-05-11 11:43:08 +02:00
|
|
|
margin-right: 0;
|
|
|
|
}
|
2022-04-12 17:12:47 +02:00
|
|
|
.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),
|
|
|
|
.blocks-gallery-grid:not(.has-nested-images).columns-7 .blocks-gallery-image:nth-of-type(7n),
|
|
|
|
.blocks-gallery-grid:not(.has-nested-images).columns-7 .blocks-gallery-item:nth-of-type(7n) {
|
2021-05-11 11:43:08 +02:00
|
|
|
margin-right: 0;
|
|
|
|
}
|
2022-04-12 17:12:47 +02:00
|
|
|
.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),
|
|
|
|
.blocks-gallery-grid:not(.has-nested-images).columns-8 .blocks-gallery-image:nth-of-type(8n),
|
|
|
|
.blocks-gallery-grid:not(.has-nested-images).columns-8 .blocks-gallery-item:nth-of-type(8n) {
|
2021-05-11 11:43:08 +02:00
|
|
|
margin-right: 0;
|
|
|
|
}
|
|
|
|
}
|
2022-04-12 17:12:47 +02:00
|
|
|
.wp-block-gallery:not(.has-nested-images) .blocks-gallery-image:last-child,
|
|
|
|
.wp-block-gallery:not(.has-nested-images) .blocks-gallery-item:last-child,
|
|
|
|
.blocks-gallery-grid:not(.has-nested-images) .blocks-gallery-image:last-child,
|
|
|
|
.blocks-gallery-grid:not(.has-nested-images) .blocks-gallery-item:last-child {
|
2021-05-11 11:43:08 +02:00
|
|
|
margin-right: 0;
|
|
|
|
}
|
2022-04-12 17:12:47 +02:00
|
|
|
.wp-block-gallery:not(.has-nested-images).alignleft, .wp-block-gallery:not(.has-nested-images).alignright,
|
|
|
|
.blocks-gallery-grid:not(.has-nested-images).alignleft,
|
|
|
|
.blocks-gallery-grid:not(.has-nested-images).alignright {
|
2021-05-11 11:43:08 +02:00
|
|
|
max-width: 420px;
|
|
|
|
width: 100%;
|
|
|
|
}
|
2022-04-12 17:12:47 +02:00
|
|
|
.wp-block-gallery:not(.has-nested-images).aligncenter .blocks-gallery-item figure,
|
|
|
|
.blocks-gallery-grid:not(.has-nested-images).aligncenter .blocks-gallery-item figure {
|
2021-05-11 11:43:08 +02:00
|
|
|
justify-content: center;
|
2021-11-08 15:29:21 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
.wp-block-gallery:not(.is-cropped) .blocks-gallery-item {
|
|
|
|
align-self: flex-start;
|
|
|
|
}
|
|
|
|
|
2022-04-12 17:12:47 +02:00
|
|
|
figure.wp-block-gallery.has-nested-images {
|
|
|
|
align-items: normal;
|
2021-11-08 15:29:21 +01:00
|
|
|
}
|
2022-04-12 17:12:47 +02:00
|
|
|
|
2021-11-08 15:29:21 +01:00
|
|
|
.wp-block-gallery.has-nested-images figure.wp-block-image:not(#individual-image) {
|
2022-04-12 17:12:47 +02:00
|
|
|
width: calc(50% - (var(--wp--style--unstable-gallery-gap, 16px) / 2));
|
|
|
|
margin: 0;
|
2021-11-08 15:29:21 +01:00
|
|
|
}
|
|
|
|
.wp-block-gallery.has-nested-images figure.wp-block-image {
|
|
|
|
display: flex;
|
|
|
|
flex-grow: 1;
|
|
|
|
justify-content: center;
|
|
|
|
position: relative;
|
|
|
|
flex-direction: column;
|
2022-02-17 20:18:25 +01:00
|
|
|
max-width: 100%;
|
2021-11-08 15:29:21 +01:00
|
|
|
}
|
|
|
|
.wp-block-gallery.has-nested-images figure.wp-block-image > div,
|
|
|
|
.wp-block-gallery.has-nested-images figure.wp-block-image > a {
|
|
|
|
margin: 0;
|
|
|
|
flex-direction: column;
|
|
|
|
flex-grow: 1;
|
|
|
|
}
|
|
|
|
.wp-block-gallery.has-nested-images figure.wp-block-image img {
|
|
|
|
display: block;
|
|
|
|
height: auto;
|
2022-02-17 20:18:25 +01:00
|
|
|
max-width: 100% !important;
|
2021-11-08 15:29:21 +01:00
|
|
|
width: auto;
|
|
|
|
}
|
|
|
|
.wp-block-gallery.has-nested-images figure.wp-block-image figcaption {
|
|
|
|
background: linear-gradient(0deg, rgba(0, 0, 0, 0.7) 0, rgba(0, 0, 0, 0.3) 70%, transparent);
|
|
|
|
bottom: 0;
|
|
|
|
color: #fff;
|
|
|
|
font-size: 13px;
|
|
|
|
left: 0;
|
|
|
|
margin-bottom: 0;
|
|
|
|
max-height: 60%;
|
|
|
|
overflow: auto;
|
|
|
|
padding: 0 8px 8px;
|
|
|
|
position: absolute;
|
|
|
|
text-align: center;
|
|
|
|
width: 100%;
|
|
|
|
box-sizing: border-box;
|
|
|
|
}
|
|
|
|
.wp-block-gallery.has-nested-images figure.wp-block-image figcaption img {
|
|
|
|
display: inline;
|
|
|
|
}
|
2022-04-12 17:12:47 +02:00
|
|
|
.wp-block-gallery.has-nested-images figure.wp-block-image figcaption a {
|
|
|
|
color: inherit;
|
|
|
|
}
|
2021-11-08 15:29:21 +01:00
|
|
|
.wp-block-gallery.has-nested-images figure.wp-block-image.is-style-rounded > div,
|
|
|
|
.wp-block-gallery.has-nested-images figure.wp-block-image.is-style-rounded > a {
|
|
|
|
flex: 1 1 auto;
|
|
|
|
}
|
|
|
|
.wp-block-gallery.has-nested-images figure.wp-block-image.is-style-rounded figcaption {
|
|
|
|
flex: initial;
|
|
|
|
background: none;
|
|
|
|
color: inherit;
|
|
|
|
margin: 0;
|
|
|
|
padding: 10px 10px 9px;
|
|
|
|
position: relative;
|
|
|
|
}
|
|
|
|
.wp-block-gallery.has-nested-images figcaption {
|
|
|
|
flex-grow: 1;
|
|
|
|
flex-basis: 100%;
|
|
|
|
text-align: center;
|
|
|
|
}
|
|
|
|
.wp-block-gallery.has-nested-images:not(.is-cropped) figure.wp-block-image:not(#individual-image) {
|
|
|
|
margin-top: 0;
|
|
|
|
margin-bottom: auto;
|
|
|
|
}
|
|
|
|
.wp-block-gallery.has-nested-images.is-cropped figure.wp-block-image:not(#individual-image) {
|
|
|
|
align-self: inherit;
|
|
|
|
}
|
|
|
|
.wp-block-gallery.has-nested-images.is-cropped figure.wp-block-image:not(#individual-image) > div:not(.components-drop-zone),
|
|
|
|
.wp-block-gallery.has-nested-images.is-cropped figure.wp-block-image:not(#individual-image) > a {
|
|
|
|
display: flex;
|
|
|
|
}
|
|
|
|
.wp-block-gallery.has-nested-images.is-cropped figure.wp-block-image:not(#individual-image) a,
|
|
|
|
.wp-block-gallery.has-nested-images.is-cropped figure.wp-block-image:not(#individual-image) img {
|
|
|
|
width: 100%;
|
|
|
|
flex: 1 0 0%;
|
|
|
|
height: 100%;
|
|
|
|
-o-object-fit: cover;
|
|
|
|
object-fit: cover;
|
|
|
|
}
|
|
|
|
.wp-block-gallery.has-nested-images.columns-1 figure.wp-block-image:not(#individual-image) {
|
|
|
|
width: 100%;
|
|
|
|
}
|
|
|
|
@media (min-width: 600px) {
|
|
|
|
.wp-block-gallery.has-nested-images.columns-3 figure.wp-block-image:not(#individual-image) {
|
2022-04-12 17:12:47 +02:00
|
|
|
width: calc(33.3333333333% - (var(--wp--style--unstable-gallery-gap, 16px) * 0.6666666667));
|
2021-11-08 15:29:21 +01:00
|
|
|
}
|
|
|
|
.wp-block-gallery.has-nested-images.columns-4 figure.wp-block-image:not(#individual-image) {
|
2022-04-12 17:12:47 +02:00
|
|
|
width: calc(25% - (var(--wp--style--unstable-gallery-gap, 16px) * 0.75));
|
2021-11-08 15:29:21 +01:00
|
|
|
}
|
|
|
|
.wp-block-gallery.has-nested-images.columns-5 figure.wp-block-image:not(#individual-image) {
|
2022-04-12 17:12:47 +02:00
|
|
|
width: calc(20% - (var(--wp--style--unstable-gallery-gap, 16px) * 0.8));
|
2021-11-08 15:29:21 +01:00
|
|
|
}
|
|
|
|
.wp-block-gallery.has-nested-images.columns-6 figure.wp-block-image:not(#individual-image) {
|
2022-04-12 17:12:47 +02:00
|
|
|
width: calc(16.6666666667% - (var(--wp--style--unstable-gallery-gap, 16px) * 0.8333333333));
|
2021-11-08 15:29:21 +01:00
|
|
|
}
|
|
|
|
.wp-block-gallery.has-nested-images.columns-7 figure.wp-block-image:not(#individual-image) {
|
2022-04-12 17:12:47 +02:00
|
|
|
width: calc(14.2857142857% - (var(--wp--style--unstable-gallery-gap, 16px) * 0.8571428571));
|
2021-11-08 15:29:21 +01:00
|
|
|
}
|
|
|
|
.wp-block-gallery.has-nested-images.columns-8 figure.wp-block-image:not(#individual-image) {
|
2022-04-12 17:12:47 +02:00
|
|
|
width: calc(12.5% - (var(--wp--style--unstable-gallery-gap, 16px) * 0.875));
|
2021-11-08 15:29:21 +01:00
|
|
|
}
|
|
|
|
.wp-block-gallery.has-nested-images.columns-default figure.wp-block-image:not(#individual-image) {
|
2022-04-12 17:12:47 +02:00
|
|
|
width: calc(33.33% - (var(--wp--style--unstable-gallery-gap, 16px) * 0.6666666667));
|
2021-11-08 15:29:21 +01:00
|
|
|
}
|
|
|
|
.wp-block-gallery.has-nested-images.columns-default figure.wp-block-image:not(#individual-image):first-child:nth-last-child(2),
|
|
|
|
.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) {
|
2022-04-12 17:12:47 +02:00
|
|
|
width: calc(50% - (var(--wp--style--unstable-gallery-gap, 16px) * 0.5));
|
2021-11-08 15:29:21 +01:00
|
|
|
}
|
|
|
|
.wp-block-gallery.has-nested-images.columns-default figure.wp-block-image:not(#individual-image):first-child:nth-last-child(1) {
|
|
|
|
width: 100%;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
.wp-block-gallery.has-nested-images.alignleft, .wp-block-gallery.has-nested-images.alignright {
|
|
|
|
max-width: 420px;
|
|
|
|
width: 100%;
|
|
|
|
}
|
|
|
|
.wp-block-gallery.has-nested-images.aligncenter {
|
|
|
|
justify-content: center;
|
2021-05-11 11:43:08 +02:00
|
|
|
}
|