You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
43 lines
1.1 KiB
43 lines
1.1 KiB
1 year ago
|
/**
|
||
|
* @file
|
||
|
* Wide image component.
|
||
|
*/
|
||
|
|
||
|
@import "../base/media-queries.pcss.css";
|
||
|
|
||
|
.wide-image {
|
||
|
margin-block-start: var(--sp0-5);
|
||
|
margin-block-end: var(--sp2);
|
||
|
margin-inline-start: 0;
|
||
|
margin-inline-end: 0;
|
||
|
|
||
|
@media (--grid-md) {
|
||
|
width: calc(var(--grid-col-count) * var(--grid-col-width) + var(--grid-gap-count) * var(--grid-gap));
|
||
|
margin-block: var(--sp2) var(--sp4);
|
||
|
margin-inline-start: calc(-1 * ((var(--grid-col-width) + var(--grid-gap))));
|
||
|
}
|
||
|
|
||
|
@media (--lg) {
|
||
|
width: calc(12 * var(--grid-col-width) + 11 * var(--grid-gap));
|
||
|
margin-inline-start: calc(-1 * (var(--grid-col-width) + var(--grid-gap)));
|
||
|
}
|
||
|
}
|
||
|
|
||
|
/* Ensure that image doesn't overlap sidebar. */
|
||
|
.sidebar-grid .wide-image {
|
||
|
@media (--lg) {
|
||
|
width: calc(9 * var(--grid-col-width) + 8 * var(--grid-gap));
|
||
|
}
|
||
|
|
||
|
@media (--xl) {
|
||
|
width: calc(10 * var(--grid-col-width) + 9 * var(--grid-gap));
|
||
|
}
|
||
|
}
|
||
|
|
||
|
/* Ensure that image doesn't overlap layout builder sections when editing layouts. */
|
||
|
.layout-builder .wide-image {
|
||
|
max-width: 100%;
|
||
|
margin-inline-start: 0;
|
||
|
margin-inline-end: 0;
|
||
|
}
|