12
12
border-radius : var (--btn-border-radius );
13
13
padding-left : var (--btn-padding );
14
14
padding-right : var (--btn-padding );
15
- font-size : ver (--btn-font-size );
15
+ font-size : var (--btn-font-size );
16
16
font-weight : 500 ;
17
17
text-decoration : none ;
18
18
display : inline-flex ;
29
29
.btn.icon-left , .btn.icon-right {
30
30
position : relative ;
31
31
}
32
+
32
33
.btn.icon-left {
33
34
padding-left : calc (var (--btn-padding-icon ) + var (--btn-font-size-icon ) + var (--btn-gap-icon ));
34
35
}
36
+
35
37
.btn.icon-right {
36
- padding-right : calc (var (--btn-padding-icon ) + var (--btn-font-size-icon ) + var (--btn-gap-icon ));
38
+ padding-right : calc (var (--btn-padding-icon ) + var (--btn-font-size-icon ) + var (--btn-gap-icon ));
37
39
}
40
+
38
41
.btn.icon-left i , .btn.icon-right i {
39
42
position : absolute ;
40
43
font-size : var (--btn-font-size-icon );
41
44
}
45
+
42
46
.btn.icon-left i {
43
47
left : var (--btn-padding-icon );
44
48
}
49
+
45
50
.btn.icon-right i {
46
51
right : var (--btn-padding-icon );
47
52
}
80
85
81
86
.btn.disabled , .btn-floating.disabled , .btn-large.disabled , .btn-small.disabled , .btn-flat.disabled ,
82
87
.btn :disabled , .btn-floating :disabled , .btn-large :disabled , .btn-small :disabled , .btn-flat :disabled ,
83
- .btn [disabled ], .btn-floating [disabled ], .btn-large [disabled ], .btn-small [disabled ], .btn-flat [disabled ]
84
- {
88
+ .btn [disabled ], .btn-floating [disabled ], .btn-large [disabled ], .btn-small [disabled ], .btn-flat [disabled ] {
85
89
@extend .z-depth-0 ;
86
90
color : color-mix (in srgb , transparent , var (--md-sys-color-on-surface ) 76% );
87
91
background-color : color-mix (in srgb , transparent , var (--md-sys-color-on-surface ) 24% );
88
-
89
92
pointer-events : none ;
90
93
box-shadow : none ;
91
94
cursor : default ;
158
161
& .elevated ,
159
162
& .tonal ,
160
163
& .outlined ,
161
- & .text
162
- {
164
+ & .text {
163
165
outline : 3px solid var (--md-sys-color-secondary );
164
166
outline-offset : 2px ;
165
167
}
190
192
@extend .z-depth-1-half ;
191
193
background-color : color-mix (in srgb , var (--md-sys-color-primary-container ), var (--md-sys-color-on-primary-container ) 16% );
192
194
}
195
+
193
196
& :focus {
194
197
background-color : $button-floating-background-focus ;
195
198
@extend .z-depth-1-half ;
196
199
}
200
+
197
201
& :before {
198
202
border-radius : 0 ;
199
203
}
202
206
& .halfway-fab {
203
207
bottom : -56px * 0.5 ;
204
208
}
209
+
205
210
width : 56px ;
206
211
height : 56px ;
207
212
padding : 0 ;
208
- // font-size:
213
+ // font-size:
209
214
// i {
210
215
// // line-height: 56px;
211
216
// }
212
217
}
213
218
214
219
& .btn-small {
215
220
--btn-small-height : calc (0.75 * var (--btn-height ));
221
+
216
222
& .halfway-fab {
217
223
bottom : calc (var (--btn-small-height ) * -0.5 );
218
224
}
219
- width : var (--btn-small-height )e;
225
+
226
+ width : var (--btn-small-height );
220
227
height : var (--btn-small-height );
221
228
// i {
222
229
// line-height: $button-floating-small-size;
228
235
right : auto ;
229
236
left : 24px ;
230
237
}
238
+
231
239
position : absolute ;
232
240
right : 24px ;
233
241
bottom : - $button-floating-size * 0.5 ;
234
242
}
243
+
235
244
// FIXES
236
245
// width: unset;
237
246
// padding: 16px !important;
262
271
text-align : center ;
263
272
}
264
273
}
274
+
265
275
// button fix
266
276
button .btn-floating {
267
277
border : none ;
268
278
}
279
+
269
280
// Fixed Action Button
270
281
.fixed-action-btn {
271
282
& .active {
272
283
ul {
273
284
visibility : visible ;
274
285
padding-left : 0 ;
275
- list-style-type : none ;
286
+ list-style-type : none ;
276
287
}
277
288
}
278
289
279
290
// Directions
280
291
& .direction-left ,
281
292
& .direction-right {
282
293
padding : 0 0 0 15px ;
294
+
283
295
ul {
284
296
text-align : right ;
285
297
right : 64px ;
@@ -289,55 +301,67 @@ button.btn-floating {
289
301
left : auto ;
290
302
/* width 100% only goes to width of button container */
291
303
width : 500px ;
304
+
292
305
li {
293
306
display : inline-block ;
294
307
margin : 7.5px 15px 0 0 ;
295
308
}
296
309
}
297
310
}
311
+
298
312
& .direction-right {
299
313
padding : 0 15px 0 0 ;
314
+
300
315
ul {
301
316
text-align : left ;
302
317
direction : rtl ;
303
318
left : 64px ;
304
319
right : auto ;
320
+
305
321
li {
306
322
margin : 7.5px 0 0 15px ;
307
323
}
308
324
}
309
325
}
326
+
310
327
& .direction-bottom {
311
328
padding : 0 0 15px 0 ;
329
+
312
330
ul {
313
331
top : 64px ;
314
332
bottom : auto ;
315
333
display : flex ;
316
334
flex-direction : column-reverse ;
335
+
317
336
li {
318
337
margin : 15px 0 0 0 ;
319
338
}
320
339
}
321
340
}
341
+
322
342
& .toolbar {
323
343
& .active {
324
- & > a i {
344
+ & > a i {
325
345
opacity : 0 ;
326
346
}
327
347
}
348
+
328
349
padding : 0 ;
329
350
height : 56px ;
351
+
330
352
ul {
331
353
display : flex ;
332
354
top : 0 ;
333
355
bottom : 0 ;
334
356
z-index : 1 ;
357
+
335
358
li {
336
359
flex : 1 ;
337
360
display : inline-block ;
338
361
margin : 0 ;
339
362
height : 100% ;
340
363
transition : none ;
364
+
341
365
a {
342
366
display : block ;
343
367
overflow : hidden ;
@@ -349,19 +373,22 @@ button.btn-floating {
349
373
color : $button-floating-color ;
350
374
line-height : 56px ;
351
375
z-index : 1 ;
376
+
352
377
i {
353
378
line-height : inherit ;
354
379
}
355
380
}
356
381
}
357
382
}
358
383
}
384
+
359
385
position : fixed ;
360
386
right : 23px ;
361
387
bottom : 23px ;
362
388
padding-top : 15px ;
363
389
margin-bottom : 0 ;
364
390
z-index : 997 ;
391
+
365
392
ul {
366
393
left : 0 ;
367
394
right : 0 ;
@@ -370,13 +397,16 @@ button.btn-floating {
370
397
bottom : 64px ;
371
398
margin : 0 ;
372
399
visibility : hidden ;
400
+
373
401
li {
374
402
margin-bottom : 15px ;
375
403
}
404
+
376
405
a .btn-floating {
377
406
opacity : 0 ;
378
407
}
379
408
}
409
+
380
410
.fab-backdrop {
381
411
position : absolute ;
382
412
top : 0 ;
@@ -398,6 +428,7 @@ button.btn-floating {
398
428
height : calc (1.5 * var (--btn-height ));
399
429
font-size : 18px ;
400
430
padding : 0 28px ;
431
+
401
432
i {
402
433
font-size : 1.6rem ;
403
434
}
@@ -408,6 +439,7 @@ button.btn-floating {
408
439
@extend .btn ;
409
440
height : calc (0.75 * var (--btn-height ));
410
441
font-size : 13px ;
442
+
411
443
i {
412
444
font-size : 1.2rem ;
413
445
}
@@ -420,4 +452,4 @@ button.btn-floating {
420
452
421
453
.btn.rounded {
422
454
border-radius : 99999px ;
423
- }
455
+ }
0 commit comments