UNPKG

1.07 kBSCSSView Raw
1@use './variables.scss' as *;
2
3@mixin border-box() {
4 background-clip: border-box;
5
6 &,
7 & * {
8 box-sizing: border-box;
9 }
10
11 &:before,
12 & *:before,
13 &:after,
14 & *:after {
15 box-sizing: border-box;
16 }
17}
18
19@mixin unstyled-list() {
20 margin: 0;
21 padding: 0;
22 list-style: none;
23}
24
25@mixin focus-ring() {
26 z-index: 1;
27 box-shadow: $widget-focus-box-shadow;
28 transition: if($widget-focus-box-shadow, $widget-focus-transition, null);
29}
30
31@mixin focus() {
32 &:focus {
33 @include focus-ring();
34
35 [data-intent='mouse'] & {
36 z-index: auto;
37 box-shadow: none;
38 }
39 }
40}
41
42@mixin btn-input-reset {
43 padding: 0;
44 margin: 0;
45 border: none;
46 color: inherit;
47 box-shadow: none;
48 background: none;
49 font: inherit;
50 line-height: inherit;
51 -ms-touch-action: manipulation;
52 touch-action: manipulation;
53 outline: 0;
54}
55
56@mixin input-base {
57 caret-color: $input-caret-color;
58
59 &:disabled {
60 // For safari, which seems to ignore color on disabled inputs
61 // opacity for IOS
62 -webkit-text-fill-color: $input-disabled-color;
63 opacity: 1;
64 }
65}