Reformat code
This commit is contained in:
parent
6e27539eca
commit
420cd788c4
94 changed files with 10592 additions and 2608 deletions
57
src/library/text.scss
Normal file
57
src/library/text.scss
Normal file
|
|
@ -0,0 +1,57 @@
|
|||
@import 'common-variables';
|
||||
|
||||
:root {
|
||||
--larger-font-size: 22px;
|
||||
--large-font-size: 18px;
|
||||
--medium-font-size: 16px;
|
||||
--small-font-size: 11px;
|
||||
|
||||
@media (max-width: $mobile-width) {
|
||||
--larger-font-size: 20px;
|
||||
--large-font-size: 16px;
|
||||
--medium-font-size: 14px;
|
||||
--small-font-size: 10px;
|
||||
}
|
||||
}
|
||||
|
||||
@mixin title-text {
|
||||
font-family: $title-font;
|
||||
color: $text-color;
|
||||
font-size: var(--larger-font-size);
|
||||
user-select: none;
|
||||
}
|
||||
|
||||
@mixin sub-title-text {
|
||||
font-family: $title-font;
|
||||
color: $text-color;
|
||||
font-size: var(--medium-font-size);
|
||||
user-select: none;
|
||||
}
|
||||
|
||||
@mixin normal-text {
|
||||
font-family: $normal-font;
|
||||
color: $text-color;
|
||||
font-size: var(--larger-font-size);
|
||||
}
|
||||
|
||||
@mixin medium-text {
|
||||
font-family: $normal-font;
|
||||
color: $text-color;
|
||||
font-size: var(--medium-font-size);
|
||||
}
|
||||
|
||||
@mixin small-text {
|
||||
font-family: $normal-font;
|
||||
color: $text-color;
|
||||
font-size: var(--small-font-size);
|
||||
}
|
||||
|
||||
h1,
|
||||
h2,
|
||||
h3 {
|
||||
@include title-text();
|
||||
}
|
||||
|
||||
p {
|
||||
@include normal-text();
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue