forked from Cambly/syntax
-
Notifications
You must be signed in to change notification settings - Fork 0
/
IconButton.module.css
119 lines (102 loc) · 2.83 KB
/
IconButton.module.css
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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
.iconButton {
align-items: center;
justify-content: center;
display: flex;
border-radius: 50%;
}
.iconButtonNoBorder {
border: none;
}
.iconButton:hover {
background-image: linear-gradient(
to bottom,
rgba(0, 0, 0, 0.1) 0%,
rgba(0, 0, 0, 0.1) 100%
);
transition-duration: 0.2s;
cursor: pointer;
}
.iconButton:focus-visible {
background-image: linear-gradient(
to bottom,
rgba(0, 0, 0, 0.2) 0%,
rgba(0, 0, 0, 0.2) 100%
);
box-shadow: 0 0 0 4px #000;
outline: solid 2px #fff;
}
.iconButton:active {
background-image: linear-gradient(
to bottom,
rgba(0, 0, 0, 0.2) 0%,
rgba(0, 0, 0, 0.2) 100%
);
transform: scale(0.97);
transition-duration: 0.2s;
}
.iconButton:disabled {
filter: opacity(50%);
background-image: none;
transform: none;
cursor: auto;
}
.sm {
height: 32px;
width: 32px;
}
.md {
height: 40px;
width: 40px;
}
.lg {
height: 48px;
width: 48px;
}
.smCambio {
height: 32px;
width: 32px;
}
.mdCambio {
height: 48px;
width: 48px;
}
.lgCambio {
height: 64px;
width: 64px;
}
.smIcon {
/* stylelint-disable-next-line declaration-no-important -- Need to use !important to override MUI icon sizes */
height: 16px !important;
/* stylelint-disable-next-line declaration-no-important -- Need to use !important to override MUI icon sizes */
width: 16px !important;
}
.mdIcon {
/* stylelint-disable-next-line declaration-no-important -- Need to use !important to override MUI icon sizes */
height: 20px !important;
/* stylelint-disable-next-line declaration-no-important -- Need to use !important to override MUI icon sizes */
width: 20px !important;
}
.lgIcon {
/* stylelint-disable-next-line declaration-no-important -- Need to use !important to override MUI icon sizes */
height: 24px !important;
/* stylelint-disable-next-line declaration-no-important -- Need to use !important to override MUI icon sizes */
width: 24px !important;
}
.smIconCambio {
/* stylelint-disable-next-line declaration-no-important -- Need to use !important to override MUI icon sizes */
height: 20px !important;
/* stylelint-disable-next-line declaration-no-important -- Need to use !important to override MUI icon sizes */
width: 20px !important;
}
.mdIconCambio {
/* stylelint-disable-next-line declaration-no-important -- Need to use !important to override MUI icon sizes */
height: 24px !important;
/* stylelint-disable-next-line declaration-no-important -- Need to use !important to override MUI icon sizes */
width: 24px !important;
}
.lgIconCambio {
/* stylelint-disable-next-line declaration-no-important -- Need to use !important to override MUI icon sizes */
height: 32px !important;
/* stylelint-disable-next-line declaration-no-important -- Need to use !important to override MUI icon sizes */
width: 32px !important;
}