Files
blog/sass/_article-list.scss
David Lapshin 21bad0a764 Add active state to the footer socials
And use "transform" for transforms since e.g setting scale directly is not widely supported by browsers (baseline 2022)
2024-05-02 23:42:16 +03:00

52 lines
869 B
SCSS

#article-list {
article {
position: relative;
&.draft {
transform: scale(0.95);
opacity: 0.6;
transition: var(--transition-longer);
outline: 2px dashed var(--fg-muted-2);
outline-offset: 1rem;
border-radius: 1rem;
&:hover {
transform: scale(1);
opacity: 1;
outline: 2px dashed transparent;
outline-offset: 0;
}
}
.draft-badge,
.archive-badge {
position: absolute;
top: 0;
right: 0;
transition: var(--transition);
box-shadow: var(--edge-highlight);
border-radius: 999px;
padding: 0.25rem 0.75rem;
font-weight: bold;
svg {
vertical-align: -0.125em;
}
}
.draft-badge {
background-color: var(--fg-muted-1);
color: var(--fg-muted-4);
}
.archive-badge {
background-color: var(--purple-bg);
color: var(--purple-fg);
}
}
hr:last-of-type {
display: none;
}
}