-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathstyles.css
124 lines (107 loc) · 2.25 KB
/
styles.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
120
121
122
123
124
*, *::before, *::after {
box-sizing: border-box;
}
body {
margin: 0;
font-family: 'Source Sans Pro', sans-serif;
background-color: #666;
color: white;
font-size: 16px;
text-align: center;
}
.main-header {
margin-top: .5rem;
font-size: 2.75rem;
}
.warning {
font-size: 1.75rem;
margin: 0;
color: red;
}
.link {
color: #e3e3ff;
text-decoration: none;
}
.results {
font-size: 1.25rem;
margin-top: 1rem;
padding: 1rem 0;
}
.form-label {
float:left;
width: 5em;
text-align: right;
margin-right: 0.5em;
}
.form-input {
margin-top: 1rem;
}
.form-items {
margin-top: 2.5rem;
font-size: 1.5rem;
display: flex;
align-items: center;
justify-content: center;
}
.btn.btn-submit {
margin-top: 1.5rem;
font-size: 1.25rem;
}
.btn {
--background-hue: 0;
--background-saturation: 0%;
--initial-background-lightness: 90%;
--background-lightness: var(--initial-background-lightness);
--border-lightness: calc(var(--initial-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: .25em 1em;
border-radius: .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)
);
}
.input {
--input-hue: 0;
--input-saturation: 0%;
--initial-input-lightness: 100%;
--input-lightness: var(--initial-input-lightness);
--input-lightness: calc(var(--initial-input-lightness) - 20%);
background-color: hsl(
var(--input-hue),
var(--input-saturation),
var(--input-lightness)
);
border: 1px solid hsl(
var(--input-hue),
var(--input-saturation),
var(--input-lightness)
);
border-radius: .3em;
outline: none;
padding: .5rem;
font-size: 1.25rem;
}
.input:focus {
--input-lightness: calc(var(--initial-input-lightness) - 10%);
box-shadow: 0 0 5px 0 hsl(
var(--input-hue),
var(--input-saturation),
var(--input-lightness)
);
}