|
| 1 | +@use "sass:math"; |
| 2 | + |
1 | 3 | %toolbar-button {
|
2 | 4 | @include themify() {
|
3 | 5 | display: inline-block;
|
4 |
| - height: #{44 / $base-font-size}rem; |
5 |
| - width: #{44 / $base-font-size}rem; |
| 6 | + height: #{math.div(44, $base-font-size)}rem; |
| 7 | + width: #{math.div(44, $base-font-size)}rem; |
6 | 8 | text-align: center;
|
7 | 9 | border-radius: 100%;
|
8 | 10 | cursor: pointer;
|
|
81 | 83 | cursor: pointer;
|
82 | 84 | border: 2px solid getThemifyVariable('button-border-color');
|
83 | 85 | border-radius: 2px;
|
84 |
| - padding: #{10 / $base-font-size}rem #{30 / $base-font-size}rem; |
| 86 | + padding: #{math.div(10, $base-font-size)}rem #{math.div(30, $base-font-size)}rem; |
85 | 87 | & g, & path {
|
86 | 88 | fill: getThemifyVariable('button-color');
|
87 | 89 | opacity: 1;
|
|
111 | 113 | color: getThemifyVariable('primary-text-color');
|
112 | 114 | background-color: getThemifyVariable('preferences-button-background-color');
|
113 | 115 | padding: 0;
|
114 |
| - margin-bottom: #{28 / $base-font-size}rem; |
115 |
| - line-height: #{50 / $base-font-size}rem; |
| 116 | + margin-bottom: #{math.div(28, $base-font-size)}rem; |
| 117 | + line-height: #{math.div(50, $base-font-size)}rem; |
116 | 118 | & g, & path {
|
117 | 119 | fill: getThemifyVariable('modal-button-color');
|
118 | 120 | }
|
|
138 | 140 | color: getThemifyVariable('heavy-text-color');
|
139 | 141 | }
|
140 | 142 | }
|
141 |
| - font-size: #{12 / $base-font-size}rem; |
| 143 | + font-size: #{math.div(12, $base-font-size)}rem; |
142 | 144 | cursor: pointer;
|
143 | 145 | text-align: left;
|
144 | 146 | padding: 0;
|
145 |
| - margin-bottom: #{5 / $base-font-size}rem; |
146 |
| - padding-right: #{5 / $base-font-size}rem; |
| 147 | + margin-bottom: #{math.div(5, $base-font-size)}rem; |
| 148 | + padding-right: #{math.div(5, $base-font-size)}rem; |
147 | 149 | border: 0;
|
148 | 150 | list-style-type: none;
|
149 | 151 | }
|
|
194 | 196 | color: getThemifyVariable('primary-text-color');
|
195 | 197 | }
|
196 | 198 | text-align: left;
|
197 |
| - width: #{180 / $base-font-size}rem; |
| 199 | + width: #{math.div(180, $base-font-size)}rem; |
198 | 200 | display: flex;
|
199 | 201 | position: absolute;
|
200 | 202 | flex-direction: column;
|
201 | 203 | top: 95%;
|
202 | 204 | height: auto;
|
203 | 205 | z-index: 9999;
|
204 |
| - border-radius: #{6 / $base-font-size}rem; |
| 206 | + border-radius: #{math.div(6, $base-font-size)}rem; |
205 | 207 | & li:first-child {
|
206 |
| - border-radius: #{5 / $base-font-size}rem #{5 / $base-font-size}rem 0 0; |
| 208 | + border-radius: #{math.div(5, $base-font-size)}rem #{math.div(5, $base-font-size)}rem 0 0; |
207 | 209 | }
|
208 | 210 | & li:last-child {
|
209 |
| - border-radius: 0 0 #{5 / $base-font-size}rem #{5 / $base-font-size}rem; |
| 211 | + border-radius: 0 0 #{math.div(5, $base-font-size)}rem #{math.div(5, $base-font-size)}rem; |
210 | 212 | }
|
211 | 213 | & li {
|
212 | 214 | & button,
|
|
216 | 218 | }
|
217 | 219 | width: 100%;
|
218 | 220 | text-align: left;
|
219 |
| - padding: #{8 / $base-font-size}rem #{16 / $base-font-size}rem; |
| 221 | + padding: #{math.div(8, $base-font-size)}rem #{math.div(16, $base-font-size)}rem; |
220 | 222 | }
|
221 |
| - height: #{35 / $base-font-size}rem; |
| 223 | + height: #{math.div(35, $base-font-size)}rem; |
222 | 224 | cursor: pointer;
|
223 | 225 | display: flex;
|
224 | 226 | align-items: center;
|
|
0 commit comments