2024-10-23 08:56:47 +02:00
|
|
|
@mixin font($font-size, $line-height, $font-weight, $letter-spacing: false) {
|
|
|
|
font-size: $font-size + px;
|
|
|
|
line-height: calc($line-height / $font-size);
|
|
|
|
font-weight: $font-weight;
|
|
|
|
@if $letter-spacing {
|
|
|
|
letter-spacing: $letter-spacing;
|
|
|
|
}
|
|
|
|
}
|
2024-10-24 13:54:50 +02:00
|
|
|
|
2024-11-13 17:29:11 +01:00
|
|
|
@mixin hide-input-field() {
|
2024-10-24 13:54:50 +02:00
|
|
|
width: 100%;
|
|
|
|
height: 100%;
|
|
|
|
position: absolute;
|
|
|
|
left: 0;
|
|
|
|
top: 0;
|
|
|
|
margin: 0;
|
|
|
|
opacity: 0;
|
|
|
|
border-radius: 0;
|
|
|
|
}
|
|
|
|
|
2024-11-13 17:29:11 +01:00
|
|
|
@mixin fake-input-field($border-radius:0) {
|
2024-10-24 13:54:50 +02:00
|
|
|
width: 20px;
|
|
|
|
height: 20px;
|
|
|
|
border: 1px solid $color-gray-600;
|
|
|
|
display: block;
|
|
|
|
pointer-events: none;
|
|
|
|
border-radius: $border-radius;
|
|
|
|
}
|
2024-11-11 14:02:49 +01:00
|
|
|
|
2024-11-13 17:29:11 +01:00
|
|
|
@mixin small-button {
|
2024-11-11 14:02:49 +01:00
|
|
|
border-radius: 2px;
|
|
|
|
padding: 6px 12px;
|
|
|
|
@include font(13, 20, 400);
|
|
|
|
}
|
2024-11-13 17:29:11 +01:00
|
|
|
|
|
|
|
@mixin vertical-layout-event-gap($gap:0) {
|
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
gap: $gap;
|
|
|
|
}
|
|
|
|
|
|
|
|
@mixin horizontal-layout-even-gap($gap:0) {
|
|
|
|
display: flex;
|
|
|
|
gap: $gap;
|
|
|
|
}
|