0
0
mirror of https://github.com/wagtail/wagtail.git synced 2024-11-29 09:33:54 +01:00
wagtail/client/scss/components/_summary.scss

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

65 lines
1.3 KiB
SCSS
Raw Normal View History

.w-summary {
@include nice-padding();
// set up responsive font size for icon and number as local custom property
--w-summary-item-font-size: clamp(
theme('fontSize.30') * 1.5,
6.5vw,
calc(theme('fontSize.30') * 3)
);
color: theme('colors.secondary.DEFAULT');
margin-bottom: theme('spacing.8');
padding-top: theme('spacing.8');
.w-summary__list {
@include unlist();
display: flex;
flex-wrap: wrap;
justify-content: space-evenly;
width: 100%;
}
/* Summary item */
li {
display: flex;
align-items: center;
flex: 1 1 auto;
flex-wrap: nowrap;
margin-bottom: theme('spacing.6');
}
/* Summary icon */
.icon {
font-size: var(--w-summary-item-font-size);
height: 1em;
margin-inline-end: 0.15em;
width: 1em;
}
/* Summary label (a link, use parent colours ) */
a {
color: inherit;
text-align: start;
/* Summary big number */
> span {
display: block;
font-size: calc(var(--w-summary-item-font-size) * 0.6);
font-weight: theme('fontWeight.bold');
line-height: 0.9em; // label underneath to come in tight against the number
}
}
}
// Media for Windows High Contrast Mode
@media (forced-colors: $media-forced-colours) {
.w-summary {
.icon {
color: $system-color-link-text;
opacity: 1;
}
}
}