-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyles.module.css
86 lines (69 loc) · 1.2 KB
/
styles.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
.button {
position: relative;
border: none;
border-radius: 0.5rem;
margin: 0;
outline: none;
padding: 0.5rem;
display: inline-block;
appearance: none;
background: #000;
color: #fff;
opacity: 1;
text-align: center;
text-decoration: none;
overflow: hidden;
cursor: pointer;
user-select: none;
}
.button:hover:not(.disabled) {
opacity: 0.85;
}
@media (hover: none) {
.button:hover:not(.disabled) {
opacity: 1;
}
}
.button.disabled {
opacity: 0.5;
cursor: not-allowed;
}
.text {
background: #fff;
color: #000;
}
.button.text:hover:not(.disabled) {
background: #eee;
}
@media (hover: none) {
.button.text:hover:not(.disabled) {
background: #fff;
}
}
.bordered {
background: #fff;
color: #000;
border: 1px solid #000;
padding: calc(0.5rem - 1px);
}
.button.bordered:hover:not(.disabled) {
background: #eee;
}
@media (hover: none) {
.button.bordered:hover:not(.disabled) {
background: #fff;
}
}
.ripple {
position: absolute;
border-radius: 50%;
background: rgba(255, 255, 255, 0.5);
transform: scale(0);
animation: ripple-animation 300ms linear;
}
@keyframes ripple-animation {
to {
opacity: 0;
transform: scale(2);
}
}