|
1 |
| -/* |
2 |
| -* Mainly scss modules, only imported to `assets/css/main.scss` |
3 |
| -*/ |
4 |
| - |
5 |
| -/* ---------- scss placeholder --------- */ |
| 1 | +@use 'variables' as v; |
| 2 | +@use 'mixins' as mx; |
6 | 3 |
|
7 | 4 | %heading {
|
8 | 5 | color: var(--heading-color);
|
9 | 6 | font-weight: 400;
|
10 |
| - font-family: $font-family-heading; |
| 7 | + font-family: v.$font-family-heading; |
11 | 8 | scroll-margin-top: 3.5rem;
|
12 | 9 | }
|
13 | 10 |
|
|
82 | 79 | }
|
83 | 80 |
|
84 | 81 | %rounded {
|
85 |
| - border-radius: $radius-lg; |
| 82 | + border-radius: v.$radius-lg; |
86 | 83 | }
|
87 | 84 |
|
88 | 85 | %img-caption {
|
|
112 | 109 | -webkit-box-orient: vertical;
|
113 | 110 | }
|
114 | 111 |
|
115 |
| -@mixin text-ellipsis { |
116 |
| - overflow: hidden; |
117 |
| - text-overflow: ellipsis; |
118 |
| - white-space: nowrap; |
119 |
| -} |
120 |
| - |
121 | 112 | %text-ellipsis {
|
122 |
| - @include text-ellipsis; |
| 113 | + @include mx.text-ellipsis; |
123 | 114 | }
|
124 | 115 |
|
125 | 116 | %text-highlight {
|
|
151 | 142 | }
|
152 | 143 | }
|
153 | 144 |
|
154 |
| -/* ---------- scss mixin --------- */ |
155 |
| - |
156 |
| -@mixin mt-mb($value) { |
157 |
| - margin-top: $value; |
158 |
| - margin-bottom: $value; |
| 145 | +%code-snippet-bg { |
| 146 | + background-color: var(--highlight-bg-color); |
159 | 147 | }
|
160 | 148 |
|
161 |
| -@mixin ml-mr($value) { |
162 |
| - margin-left: $value; |
163 |
| - margin-right: $value; |
| 149 | +%code-snippet-padding { |
| 150 | + padding-left: 1rem; |
| 151 | + padding-right: 1.5rem; |
164 | 152 | }
|
165 | 153 |
|
166 |
| -@mixin pt-pb($val) { |
167 |
| - padding-top: $val; |
168 |
| - padding-bottom: $val; |
169 |
| -} |
170 |
| - |
171 |
| -@mixin pl-pr($val, $important: false) { |
172 |
| - @if $important { |
173 |
| - padding-left: $val !important; |
174 |
| - padding-right: $val !important; |
175 |
| - } @else { |
176 |
| - padding-left: $val; |
177 |
| - padding-right: $val; |
178 |
| - } |
179 |
| -} |
180 |
| - |
181 |
| -@mixin placeholder { |
182 |
| - color: var(--text-muted-color) !important; |
183 |
| -} |
184 |
| - |
185 |
| -@mixin placeholder-focus { |
186 |
| - opacity: 0.6; |
187 |
| -} |
188 |
| - |
189 |
| -@mixin label($font-size: 1rem, $font-weight: 600, $color: var(--label-color)) { |
190 |
| - color: $color; |
191 |
| - font-size: $font-size; |
192 |
| - font-weight: $font-weight; |
193 |
| -} |
194 |
| - |
195 |
| -@mixin align-center { |
196 |
| - position: relative; |
197 |
| - left: 50%; |
198 |
| - transform: translateX(-50%); |
199 |
| -} |
200 |
| - |
201 |
| -@mixin prompt($type, $fa-content, $fa-style: 'solid', $rotate: 0) { |
202 |
| - &.prompt-#{$type} { |
203 |
| - background-color: var(--prompt-#{$type}-bg); |
204 |
| - |
205 |
| - &::before { |
206 |
| - content: $fa-content; |
207 |
| - color: var(--prompt-#{$type}-icon-color); |
208 |
| - font: var(--fa-font-#{$fa-style}); |
209 |
| - |
210 |
| - @if $rotate != 0 { |
211 |
| - transform: rotate(#{$rotate}deg); |
212 |
| - } |
213 |
| - } |
214 |
| - } |
| 154 | +%max-w-100 { |
| 155 | + max-width: 100%; |
215 | 156 | }
|
0 commit comments