mixins.scss
1.32 KB
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
@use "./variables" as *;
@mixin input-focus-effect {
border-color: $primary-color !important;
box-shadow: 0 0 0 3px rgb(102 126 234 / 10%) !important;
}
@mixin input-error-effect {
border-color: $error-color !important;
box-shadow: 0 0 0 3px rgb(255 77 79 / 10%) !important;
}
@mixin input-base {
height: $input-height;
padding: 0 $input-padding;
background: $bg-white !important;
border: 1px solid $border-color !important;
border-radius: $border-radius !important;
box-shadow: none !important;
transition: $transition;
}
@mixin suffix-icon($size: 14px) {
display: inline-flex;
flex-shrink: 0;
align-items: center;
justify-content: center;
width: $size;
min-width: $size;
height: $size;
min-height: $size;
margin-left: 0;
font-size: $size;
line-height: 1;
color: $text-placeholder;
cursor: pointer;
transition: color 0.3s;
&:hover {
color: $text-primary;
}
svg,
i {
display: block;
width: $size !important;
height: $size !important;
font-size: $size !important;
line-height: 1;
vertical-align: middle;
}
}
@mixin link-hover {
transition: color 0.3s;
&:hover {
color: $primary-hover;
}
}
@mixin button-hover {
box-shadow: 0 8px 20px rgb(102 126 234 / 30%) !important;
transform: translateY(-2px);
}
@mixin flex-center {
display: flex;
align-items: center;
justify-content: center;
}