Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Define breakpoints and font sizes #198

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/css/_about.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@use "colors";
@use "theme/colors";

dd {
margin-bottom: 10px;
Expand Down
2 changes: 1 addition & 1 deletion src/css/_header.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@use "colors";
@use "theme/colors";

header {
width: 100%;
Expand Down
2 changes: 1 addition & 1 deletion src/css/_scorecard.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@use "colors";
@use "theme/colors";

.popup-fixed {
position: fixed;
Expand Down
30 changes: 30 additions & 0 deletions src/css/theme/_breakpoints.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
// Inspired by https://dev.to/alberto/defining-responsive-breakpoints-made-easy-with-sass-mixins-26p0.

$sm-width: "640px";
$md-width: "768px";
$lg-width: "1024px";
$xl-width: "1280px";

@mixin gt-xs() {
@media screen and (min-width: $sm-width) {
@content();
}
}

@mixin gt-sm() {
@media screen and (min-width: $md-width) {
@content();
}
}

@mixin gt-md() {
@media screen and (min-width: $lg-width) {
@content();
}
}

@mixin gt-lg() {
@media screen and (min-width: $xl-width) {
@content();
}
}
File renamed without changes.
7 changes: 7 additions & 0 deletions src/css/theme/_typography.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
$font-size-xs: 12px;
$font-size-sm: 14px;
$font-size-base: 16px;
$font-size-md: 18px;
$font-size-lg: 20px;
$font-size-xl: 24px;
$font-size-2xl: 30px;
Loading