forked from IvanGav/ConmansGameOfLife
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbutton.css
More file actions
37 lines (36 loc) · 788 Bytes
/
button.css
File metadata and controls
37 lines (36 loc) · 788 Bytes
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
:root {
--hue: 180;
--saturation: 15%;
}
.buttonContainer {
position: relative;
align-self: center;
width: fit-content;
height: fit-content;
border-radius: 4px;
cursor: pointer;
background-color: hsl(var(--hue), var(--saturation), 25%);
margin: 8px;
}
.button {
display: block;
align-self: center;
width: fit-content;
padding: 8px 16px;
background-color: hsl(var(--hue), var(--saturation), 50%);
color: white;
cursor: pointer;
border-radius: 4px;
transition:0.1s;
transform: translateY(-4px);
font-family: sans-serif;
font-weight: bold;
}
.button:hover {
transform: translateY(-6px);
filter: brightness(110%);
}
.button:active {
transform: translateY(0px);
filter: brightness(90%);
}