Skip to content

Commit 14dc889

Browse files
committed
feat (body): add base body.scss
1 parent 85adc0a commit 14dc889

File tree

2 files changed

+29
-0
lines changed

2 files changed

+29
-0
lines changed

src/scss/03-base/_body.scss

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
html {
2+
/* Set automatic RTL direction depending on lang attribute */
3+
@include set-rtl-direction;
4+
5+
/* Apply border-box across the entire page. */
6+
box-sizing: border-box;
7+
8+
// HTML resets
9+
font-family: $font-family-primary;
10+
line-height: $line-height-base;
11+
12+
// Scroll resets
13+
-webkit-overflow-scrolling: touch;
14+
scroll-behavior: smooth;
15+
16+
// Fonts resets
17+
-webkit-font-smoothing: antialiased;
18+
-moz-osx-font-smoothing: grayscale;
19+
text-rendering: auto;
20+
}
21+
22+
body {
23+
font-family: $font-family-primary;
24+
font-size: $font-size-base;
25+
font-weight: normal;
26+
color: $color-text;
27+
background-color: $color-light;
28+
}

src/scss/03-base/base.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
@import "./fonts";
66
@import "./variables-css";
77
@import "./normalize";
8+
@import "./body";
89
@import "./svg-icons";
910
@import "./forms";
1011
@import "./links";

0 commit comments

Comments
 (0)