Rename blog* to article* (breaking change!)
Since these styles and templates can be used not only for blogs but for anything, more correct naming makes sense, at cost of a breaking change...
This commit is contained in:
51
sass/_article-list.scss
Normal file
51
sass/_article-list.scss
Normal file
@ -0,0 +1,51 @@
|
||||
#article-list {
|
||||
article {
|
||||
position: relative;
|
||||
|
||||
&.draft {
|
||||
scale: 0.95;
|
||||
opacity: 0.6;
|
||||
transition: var(--transition);
|
||||
outline: 2px dashed var(--fg-muted-2);
|
||||
outline-offset: 1rem;
|
||||
border-radius: 1rem;
|
||||
|
||||
&:hover {
|
||||
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;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user