| 1 |
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@100;300;400;500;700;900&display=swap'); |
| 2 |
|
| 3 |
/* Box sizing rules */ |
| 4 |
*, |
| 5 |
*::before, |
| 6 |
*::after { |
| 7 |
box-sizing: border-box; |
| 8 |
} |
| 9 |
|
| 10 |
/* Remove default margin */ |
| 11 |
body, |
| 12 |
h1, |
| 13 |
h2, |
| 14 |
h3, |
| 15 |
h4, |
| 16 |
p, |
| 17 |
figure, |
| 18 |
blockquote, |
| 19 |
dl, |
| 20 |
dd { |
| 21 |
margin: 0; |
| 22 |
} |
| 23 |
|
| 24 |
/* Remove list styles on ul, ol elements with a list role, which suggests default styling will be removed */ |
| 25 |
ul[role='list']='list'], |
| 26 |
ol[role='list']='list'] { |
| 27 |
list-style: none; |
| 28 |
} |
| 29 |
|
| 30 |
/* Set core root defaults */ |
| 31 |
html:focus-within { |
| 32 |
scroll-behavior: smooth; |
| 33 |
} |
| 34 |
|
| 35 |
/* Set core body defaults */ |
| 36 |
body { |
| 37 |
@include body($global-font, $line-height: rem(25px)); |
| 38 |
} |
| 39 |
|
| 40 |
/* A elements that don't have a class get default styles */ |
| 41 |
a:not([class]) { |
| 42 |
text-decoration-skip-ink: auto; |
| 43 |
} |
| 44 |
|
| 45 |
/* Make images easier to work with */ |
| 46 |
img, |
| 47 |
picture { |
| 48 |
max-width: 100%; |
| 49 |
display: block; |
| 50 |
} |
| 51 |
|
| 52 |
/* Inherit fonts for inputs and buttons */ |
| 53 |
input, |
| 54 |
button, |
| 55 |
textarea, |
| 56 |
select { |
| 57 |
font: inherit; |
| 58 |
} |
| 59 |
|
| 60 |
button { |
| 61 |
border: none; |
| 62 |
background: transparent; |
| 63 |
outline: none; |
| 64 |
cursor: pointer; |
| 65 |
} |
| 66 |
|
| 67 |
.hr { |
| 68 |
@include hr(var(--clr-black-200), 100%, 1px); |
| 69 |
} |
| 70 |
|
| 71 |
/* Remove all animations, transitions and smooth scroll for people that prefer not to see them */ |
| 72 |
@media (prefers-reduced-motion: reduce) { |
| 73 |
html:focus-within { |
| 74 |
scroll-behavior: auto; |
| 75 |
} |
| 76 |
|
| 77 |
*, |
| 78 |
*::before, |
| 79 |
*::after { |
| 80 |
animation-duration: 0.01ms !important; |
| 81 |
animation-iteration-count: 1 !important; |
| 82 |
transition-duration: 0.01ms !important; |
| 83 |
scroll-behavior: auto !important; |
| 84 |
} |
| 85 |
} |
| 86 |
|
| 87 |
.fill-current { |
| 88 |
fill: currentColor; |
| 89 |
} |
| 90 |
|
| 91 |
.scrollToTop { |
| 92 |
width: 30px; |
| 93 |
height: 30px; |
| 94 |
line-height: 30px; |
| 95 |
text-align: center; |
| 96 |
color: $blue; |
| 97 |
font-size: 25px; |
| 98 |
background: transparent; |
| 99 |
position: fixed; |
| 100 |
right: 20px; |
| 101 |
bottom: 50px; |
| 102 |
display: none; |
| 103 |
z-index: 99999; |
| 104 |
border-radius: 50%; |
| 105 |
|
| 106 |
@include sm { |
| 107 |
width: 50px; |
| 108 |
height: 50px; |
| 109 |
line-height: 50px; |
| 110 |
} |
| 111 |
|
| 112 |
&:hover { |
| 113 |
color: $blue; |
| 114 |
} |
| 115 |
} |
| 116 |
|
| 117 |
.no-scroll-y { |
| 118 |
overflow-y: hidden; |
| 119 |
} |
| 120 |
|
| 121 |
.text-blue { |
| 122 |
color: var(--clr-blue); |
| 123 |
} |
| 124 |
|
| 125 |
.green { |
| 126 |
color: #27ae60; |
| 127 |
} |
| 128 |
|
| 129 |
.red { |
| 130 |
color: #e74c3c; |
| 131 |
} |