-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
92 lines (81 loc) · 1.64 KB
/
style.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
* {
box-sizing: border-box;
}
.btn {
--background-hue: 0;
--background-saturation: 0%;
--initial-background-lightness: 90%;
--background-lightness: var(--initial-background-lightness);
--border-lightness: calc(var(--background-lightness) - 20%);
background-color: hsl(
var(--background-hue),
var(--background-saturation),
var(--background-lightness)
);
border: 1px solid
hsl(
var(--background-hue),
var(--background-saturation),
var(--border-lightness)
);
outline: none;
cursor: pointer;
padding: 0.5em 1em;
border-radius: 0.3em;
}
.btn:hover,
.btn:focus {
--background-lightness: calc(var(--initial-background-lightness) - 10%);
box-shadow: 0 0 5px 0
hsl(
var(--background-hue),
var(--background-saturation),
var(--border-lightness)
);
}
.btn-primary {
--background-hue: 271;
--background-saturation: 70%;
--initial-background-lightness: 50%;
color: white;
}
.btn-accent {
--background-hue: 200;
--background-saturation: 100%;
--initial-background-lightness: 40%;
color: white;
}
.btn-danger {
--background-hue: 0;
--background-saturation: 60%;
--initial-background-lightness: 50%;
color: white;
}
.btn-large {
font-size: 1.25rem;
}
.btn-small {
font-size: 0.5rem;
}
.btn-pill {
border-radius: 999px;
}
.btn-custom {
background: linear-gradient(
to right,
hsl(271, 70%, 50%),
hsl(200, 100%, 40%)
);
color: white;
border-color: #222;
}
.btn-custom:hover,
.btn-custom:focus {
background: linear-gradient(
to right,
hsl(271, 70%, 40%),
hsl(200, 100%, 30%)
);
border-color: black;
box-shadow: 0 0 5px 0 black;
}