clone of olivero for island lives
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.

139 lines
2.9 KiB

1 year ago
/*
* DO NOT EDIT THIS FILE.
* See the following change record for more information,
* https://www.drupal.org/node/3084859
* @preserve
*/
/**
* @file
* Node Teaser specific styles.
*/
.node--view-mode-teaser {
position: relative; /* Anchor after pseudo-element. */
1 year ago
margin-block-end: var(--sp1-5);
1 year ago
}
.node--view-mode-teaser::after {
1 year ago
position: absolute;
inset-block-end: 0;
width: var(--sp3);
height: 0;
content: "";
/* Intentionally not using CSS logical properties. */
border-top: solid 2px var(--color--gray-95);
}
1 year ago
.node--view-mode-teaser .node__meta {
1 year ago
margin-block-end: var(--sp);
}
1 year ago
.node--view-mode-teaser .node__meta a {
1 year ago
color: var(--color-text-primary-medium);
font-weight: bold;
}
1 year ago
.node--view-mode-teaser .node__top-wrapper {
1 year ago
display: flex;
flex-wrap: wrap;
align-items: center;
margin: 0;
}
1 year ago
@media (min-width: 62.5rem) {
1 year ago
.node--view-mode-teaser .node__top-wrapper {
position: relative; /* Anchor the image */
1 year ago
}
}
.node--view-mode-teaser .primary-image {
1 year ago
flex-shrink: 0;
margin: 0;
margin-block-end: var(--sp1);
margin-inline-end: var(--sp1);
1 year ago
1 year ago
/* Ensure title does not wrap under image until necessary. */
}
1 year ago
1 year ago
:is(.node--view-mode-teaser .primary-image) + .node__title {
flex-basis: calc(100% - calc(4.5 * var(--sp)));
}
1 year ago
@media (min-width: 62.5rem) {
1 year ago
:is(.node--view-mode-teaser .primary-image) + .node__title {
flex-basis: auto;
}
}
1 year ago
.node--view-mode-teaser .primary-image a {
1 year ago
display: block;
}
1 year ago
.node--view-mode-teaser .primary-image img {
1 year ago
width: calc(3.5 * var(--sp));
height: calc(3.5 * var(--sp));
object-fit: cover;
border-radius: 50%;
}
1 year ago
@media (min-width: 62.5rem) {
1 year ago
.node--view-mode-teaser .primary-image img {
width: var(--grid-col-width);
height: var(--grid-col-width);
1 year ago
}
1 year ago
}
1 year ago
@media (min-width: 62.5rem) {
1 year ago
.node--view-mode-teaser .primary-image {
position: absolute;
inset-block-start: 0;
inset-inline-start: calc(-1 * ((var(--grid-col-width) + var(--grid-gap))));
margin: 0;
1 year ago
}
}
1 year ago
.node--view-mode-teaser .node__title {
margin: 0;
margin-block-end: var(--sp1);
color: var(--color-text-neutral-loud);
font-size: 1.5rem;
line-height: var(--line-height-base);
1 year ago
}
1 year ago
@media (min-width: 62.5rem) {
.node--view-mode-teaser .node__title {
/*font-size: var(--sp2);*/
font-size: 2rem;
line-height: 1.4;
/*line-height: var(--sp3);*/
1 year ago
}
1 year ago
}
.node--view-mode-teaser .field--tag-ref {
1 year ago
margin-block-start: var(--sp1);
margin-block-end: 0;
margin-inline-start: 0;
margin-inline-end: 0;
padding-block: 0;
padding-inline-start: 0;
padding-inline-end: 0;
background-color: transparent;
}
1 year ago
1 year ago
@media (min-width: 62.5rem) {
1 year ago
.node--view-mode-teaser .field--tag-ref {
margin-block-start: var(--sp2);
1 year ago
}
1 year ago
}
1 year ago
@media (min-width: 62.5rem) {
1 year ago
.node--view-mode-teaser {
margin-block-end: var(--sp3);
1 year ago
}
1 year ago
}
1 year ago
.views-row:last-child .node--view-mode-teaser {
1 year ago
margin-block-end: 0;
1 year ago
}