now/scss/tag.scss
2024-11-14 15:22:50 +01:00

45 lines
747 B
SCSS

@use "vars";
.tags {
display: grid;
grid-template-columns: 1fr 1fr;
margin-top: 1rem;
column-gap: 2rem;
row-gap: 1rem;
@media only screen and (max-width: vars.$bp-little) {
grid-template-columns: 1fr;
row-gap: 2rem;
}
& h4 {
@media only screen and (max-width: vars.$bp-little) {
margin-bottom: 0.5rem;
}
}
& p {
display: block;
margin-top: 0.5rem;
}
}
.tag {
cursor: pointer;
padding: 0.5rem;
border-radius: 16px;
@media only screen and (max-width: vars.$bp-little) {
cursor: auto;
}
&.active {
& h4 {
margin-bottom: 0.5rem;
}
& p {
display: block;
}
}
&:hover {
background: var(--tag-hover);
& h4 {
font-weight: bold;
}
}
}