Skip to content

Commit

Permalink
aligned font sizes
Browse files Browse the repository at this point in the history
for several device sizes
  • Loading branch information
davidenke committed May 5, 2023
1 parent 899c58a commit 2b0e3cb
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 3 deletions.
13 changes: 11 additions & 2 deletions src/components/root/root.component.scss
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
@use 'sass:map';
@use 'sass:math';
@use '@/styles/utils' as utils;

// prettier-ignore
Expand Down Expand Up @@ -50,16 +52,23 @@

background-color: var(---wcp-root-background);
color: var(---wcp-root-color);

font-family: var(--wcp-font-family);
font-feature-settings: normal;
font-size: 15px;
line-height: 1.3;


@include utils.breakpoint(sm) {
font-size: 13px;
}

@include utils.breakpoint(md) {
font-size: 15px;
}

@include utils.breakpoint(lg) {
font-size: 17px;
}
}

:host(:not([inline])) {
Expand Down
4 changes: 3 additions & 1 deletion src/styles/mixins/breakpoint.mixin.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,10 @@
// use scss variables for media queries
$breakpoints: (
xs: 480px,
// unsued yet
sm: 768px,
md: 992px,
lg: 1200px,
xl: 1600px,
);

@mixin breakpoint($name) {
Expand Down

0 comments on commit 2b0e3cb

Please sign in to comment.