Files
blog/sass/_buttons.scss
daudix 592a486148 Glassmorphism!
Or however it's called, basically all semi-transparent elements are now blurred, see https://daudix.codeberg.page to see why I did this (if this change is still live ofc)
2024-02-15 23:02:46 +03:00

46 lines
1008 B
SCSS

.dialog-buttons {
display: flex;
flex-direction: row;
align-items: baseline;
justify-content: space-between;
margin-top: 6rem;
}
.inline-button {
-webkit-backdrop-filter: var(--blur);
backdrop-filter: var(--blur);
background-color: var(--fg-muted-1);
border-radius: var(--rounded-corner);
box-shadow: var(--edge-highlight);
color: var(--fg-color);
display: inline-block;
font-size: 0.9rem;
padding: 0.5rem 1rem;
text-decoration: none;
transition: var(--transition);
&:hover {
background-color: var(--fg-muted-2);
text-decoration: none;
}
&:active {
transform: scale(var(--active));
}
&.colored {
-webkit-backdrop-filter: unset;
backdrop-filter: unset;
background-color: transparent;
box-shadow: none;
color: var(--primary-color);
&:hover {
-webkit-backdrop-filter: var(--blur);
backdrop-filter: var(--blur);
background-color: var(--primary-color-alpha);
box-shadow: var(--edge-highlight);
}
}
}