/
_styling.scss
46 lines (41 loc) · 966 Bytes
/
_styling.scss
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
// fluid content
// $basePxFor1rem = 16;
// $baseDesignWidthFromAdobeXD = 1920;
// $baseFontSize = 100 * $basePxFor1rem / $baseDesignWidthFromAdobeXD;
// Result: .833333333333333vw;
// Note: add class to <html class="scale-content">
.scale-content {
font-size: 4.26666667vw;
@media #{$breakpoint-not-small} {
font-size: 1vw;
}
}
// smooth scrolling
* {
scroll-behavior: smooth; // smooth scrollto
-webkit-overflow-scrolling: touch; // set overflow touch for ios
}
[id] {
scroll-margin-top: calc(var(--header-height) + #{$spacing-small});
}
// body
.page {
padding: $spacing-small;
padding-top: 0;
background-color: $white;
}
// coloring scrollbar
::-webkit-scrollbar {
width: 0.25rem;
height: 0.25rem;
}
::-webkit-scrollbar-track {
background: transparent;
}
::-webkit-scrollbar-thumb {
background-color: currentcolor;
}
* {
scrollbar-width: thin;
scrollbar-color: currentcolor transparent;
}