button mixin

This commit is contained in:
YK 2025-09-12 10:20:17 +03:00
parent ec1bc78fdf
commit 474f3c33af
2 changed files with 14 additions and 8 deletions

View File

@ -53,13 +53,12 @@ header {
align-items: flex-end;
button {
background: #ccc;
padding: 3px 5px;
text-transform: lowercase;
font-size: 0.66em;
line-height: 1em;
margin: 2px 5px;
@include mixins.heading;
@include mixins.button;
}
}
@ -70,19 +69,14 @@ header {
width: 120px;
}
.adjust {
color: white;
font-family: "Proxima Nova";
font-weight: 900;
margin: 0 1px;
width: 20px;
text-align: center;
&:hover {
transform: scale(1.4);
transition: transform .2s;
cursor: pointer;
}
@include mixins.button;
}
}

View File

@ -5,3 +5,15 @@
@mixin text {
font-family: "Noto Serif";
}
@mixin button {
@include heading;
font-weight: 900;
background: crimson;
text-align: center;
color: white;
&:hover {
filter: hue-rotate(40deg);
transition: filter .2s;
}
}