This is consistent with the `body-colors` mixin and with other mixins we're about to add, like `anchor-color`.
67 lines
1.2 KiB
SCSS
67 lines
1.2 KiB
SCSS
.public .groups-and-headings {
|
|
$spacing: $line-height / 2;
|
|
|
|
.headings-list {
|
|
@include flex-with-gap($spacing);
|
|
flex-wrap: wrap;
|
|
list-style: none;
|
|
}
|
|
|
|
.heading {
|
|
@include brand-color;
|
|
border: 2px solid $border;
|
|
border-radius: rem-calc(6);
|
|
box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.1);
|
|
margin-bottom: $line-height / 2;
|
|
margin-top: $line-height / 4;
|
|
padding: $line-height / 2;
|
|
position: relative;
|
|
width: 100%;
|
|
|
|
@include breakpoint(medium) {
|
|
width: calc(100% / 3 - #{$spacing});
|
|
}
|
|
|
|
@include breakpoint(large) {
|
|
width: calc(100% / 6 - #{$spacing});
|
|
}
|
|
|
|
&:focus-within {
|
|
outline: $outline-focus;
|
|
|
|
a:focus {
|
|
outline: none;
|
|
}
|
|
}
|
|
|
|
a {
|
|
font-weight: bold;
|
|
|
|
&::after,
|
|
&::before {
|
|
bottom: 0;
|
|
content: "";
|
|
left: 0;
|
|
position: absolute;
|
|
right: 0;
|
|
top: 0;
|
|
}
|
|
|
|
&:hover {
|
|
text-decoration: none;
|
|
}
|
|
|
|
&:hover::before {
|
|
background: $light;
|
|
z-index: -1;
|
|
}
|
|
}
|
|
|
|
span {
|
|
display: block;
|
|
font-size: $small-font-size;
|
|
padding-top: $line-height / 2;
|
|
}
|
|
}
|
|
}
|