This repository has been archived by the owner on Jan 26, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
109 lines (102 loc) · 3.15 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
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
:root {
--off-white: #fbfbfb;
--placeholder: #a8a8bf;
--text: #25265e;
--sub-text: rgba(37, 38, 94, 0.7);
--text-dark: #f9fafc;
--sub-text-dark: #d3dce6;
--primary: #0556f3;
--primary-hover: #03338f;
--border: 1px solid #d3dce6;
--focus-border: 1px solid #0556f3;
--table-hover: rgba(211, 220, 230, 0.24);
--table-hover: rgba(211, 220, 230, 0.4);
--body-bg: #fafcff;
--shadow: 0 12px 24px rgba(2, 30, 84, 0.1);
}
/* resetting some browser defaults */
html { box-sizing: border-box; }
*, *:before, *:after { box-sizing: inherit; }
/* thanks css-tricks for this tip: https://css-tricks.com/inheriting-box-sizing-probably-slightly-better-best-practice/ */
body { min-width: 584px; background-color:var(--body-bg); }
/* basic table styles */
table, tr, td {
border: var(--border);
min-width: 100%;
}
table {
border-collapse: collapse;
text-align: center;
background-color: white;
}
tr:nth-child(even){ background-color: var(--off-white); }
tr:hover { background-color: var(--table-hover); }
tr { color: var(--sub-text); }
td h4 { color: var(--text); }
/* radio button styles */
input[type="radio"] {
visibility: hidden;
}
input[type="radio"]:after {
width: 100%;
height: 100%;
border-radius: 50%;
position: relative;
/* using multi-position color stops, with adjacent colors having the
same color stop value, creating a striped effect (sharp color boundaries) */
background: radial-gradient(transparent 0% 48%, var(--primary) 52%);
content: "";
display: inline-block;
visibility: visible;
}
input[type="radio"]:checked:after {
background: radial-gradient(transparent 24%, var(--primary) 24% 100%);
}
/* custom radio implementation ends; Other radio styles: */
input[type="radio"], input[type="radio"]+label {
cursor: pointer;
}
input[type="radio"]:checked+label {
color: var(--text);
}
/* dropdown and input text styles */
input[type="text"], select {
outline: none;
border: var(--border);
border-radius: 4px;
background-color: var(--off-white);
color: var(--sub-text);
}
input[type="text"] { color: var(--text); }
select { color: var(--text); }
input[type="text"]::placeholder { color: var(--placeholder); }
input[type="text"]:focus, select:focus { border: var(--focus-border); }
input[type="text"]:disabled, input[type="text"]:disabled::placeholder, select:disabled {
color: var(--sub-text-dark);
}
/* button styles */
#submit {
width: 84px;
cursor: pointer;
outline: none;
padding: 8px 20px;
margin: 4px 4px 4px 0;
border: var(--focus-border);
border-radius: 4px;
color: var(--text-dark);
background-color: var(--primary);
}
#submit:hover { background-color: var(--primary-hover); border-color: var(--primary-hover); }
#stop {
width: 84px;
cursor: pointer;
outline: none;
padding: 8px 20px;
margin: 4px 4px 4px 0;
border: var(--focus-border);
border-radius: 4px;
color: var(--primary);
background-color: transparent;
}
#stop:hover { border-color: var(--primary-hover); color: var(--primary-hover); font-weight: bold; }
#submit:active, #stop:active { border-radius: 6px; border-width: 2px;}