2022-09-26 20:37:26 +00:00
|
|
|
@mixin defaultDecoration($border-colour) {
|
2022-08-12 16:54:35 +00:00
|
|
|
background-color: $bg;
|
|
|
|
color: $fg;
|
2022-08-11 18:28:52 +00:00
|
|
|
|
2022-08-12 16:54:35 +00:00
|
|
|
border-radius: $rad;
|
2022-09-26 20:37:26 +00:00
|
|
|
border: $border-colour $border-thickness solid;
|
2022-08-11 18:28:52 +00:00
|
|
|
|
2022-08-12 16:54:35 +00:00
|
|
|
box-shadow: $shadow;
|
2022-09-24 10:18:00 +00:00
|
|
|
}
|
2022-08-12 11:28:19 +00:00
|
|
|
|
2022-09-24 10:18:00 +00:00
|
|
|
@mixin defaultSpacing() {
|
|
|
|
margin-bottom: 1rem;
|
|
|
|
padding: 0.5rem 0.5rem 0 0.5rem;
|
2022-09-13 15:03:09 +00:00
|
|
|
|
2022-09-24 10:18:00 +00:00
|
|
|
width: calc(100% - 1.4rem);
|
2022-09-13 15:03:09 +00:00
|
|
|
|
2022-08-12 16:54:35 +00:00
|
|
|
>* {
|
|
|
|
margin-top: 0;
|
|
|
|
margin-bottom: 0.5rem;
|
|
|
|
}
|
2022-08-12 11:28:19 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
@mixin defaultFont() {
|
|
|
|
|
2022-08-12 16:54:35 +00:00
|
|
|
h1,
|
|
|
|
h2,
|
|
|
|
h3,
|
|
|
|
h4,
|
|
|
|
h5 {
|
|
|
|
font-family: $font-header;
|
2022-09-21 20:29:03 +00:00
|
|
|
text-rendering: optimizeLegibility;
|
2022-08-12 16:54:35 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
p,
|
|
|
|
a,
|
|
|
|
button,
|
|
|
|
input {
|
|
|
|
font-family: $font-body;
|
2022-09-21 20:29:03 +00:00
|
|
|
text-rendering: optimizeLegibility;
|
2022-08-12 16:54:35 +00:00
|
|
|
}
|
2022-08-11 18:28:52 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
@mixin flexDown($justify) {
|
2022-08-12 16:54:35 +00:00
|
|
|
display: flex;
|
2022-08-11 18:28:52 +00:00
|
|
|
|
2022-08-12 16:54:35 +00:00
|
|
|
flex-direction: column;
|
2022-08-11 18:28:52 +00:00
|
|
|
|
2022-08-12 16:54:35 +00:00
|
|
|
justify-content: $justify;
|
2022-08-11 18:28:52 +00:00
|
|
|
}
|
2022-08-12 16:54:35 +00:00
|
|
|
|
2022-08-11 18:28:52 +00:00
|
|
|
@mixin flexLeft($justify) {
|
2022-08-12 16:54:35 +00:00
|
|
|
display: flex;
|
2022-08-11 18:28:52 +00:00
|
|
|
|
2022-08-12 16:54:35 +00:00
|
|
|
flex-direction: row;
|
2022-08-11 18:28:52 +00:00
|
|
|
|
2022-08-12 16:54:35 +00:00
|
|
|
flex-wrap: wrap;
|
2022-08-11 18:28:52 +00:00
|
|
|
|
2022-08-12 16:54:35 +00:00
|
|
|
justify-content: $justify;
|
2022-08-11 18:28:52 +00:00
|
|
|
}
|