-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlocal.scss
71 lines (60 loc) · 1.37 KB
/
local.scss
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
@mixin clearbutton() {
appearance: none;
padding: 0;
border: 0;
background: none;
font-size: inherit;
line-height: inherit;
&:focus,
&:active {
outline: none;
}
}
@mixin transition($prop, $duration: 0.2s, $timing: ease-in-out) {
transition: $prop $duration $timing;
}
@mixin size($width, $height) {
min-width: $width;
min-height: $height;
width: $width;
height: $height;
max-width: $width;
max-height: $height;
}
@mixin hidescroll() {
scrollbar-width: none;
-ms-overflow-style: none;
&::-webkit-scrollbar,
&::-webkit-scrollbar-thumb {
display: none;
background: transparent;
width: 0;
height: 0;
-webkit-appearance: none;
}
}
@mixin clearinput() {
padding: 0;
border: 0;
border-radius: inherit;
background: none;
font-size: inherit;
line-height: inherit;
font-weight: inherit;
color: inherit;
caret-color: currentColor;
outline: none;
appearance: none;
word-break: keep-all;
text-align: left;
-webkit-text-fill-color: currentColor; // for Safari
&:-webkit-autofill,
&:-webkit-autofill:hover,
&:-webkit-autofill:focus {
border-radius: inherit;
-webkit-text-fill-color: inherit !important;
color: inherit !important;
background-color: transparent !important;
-webkit-box-shadow: 0 0 0 1000px var(--tok-text-color) 5c0 inset !important; // to overlay native background
}
}