-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathstyle.css
More file actions
196 lines (168 loc) · 3.25 KB
/
style.css
File metadata and controls
196 lines (168 loc) · 3.25 KB
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
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
/*Set variables (allows for easy control of colors and such)*/
:root {
--white: #ddd;
--dark: #222;
--medium: #333;
--light: #444;
--accent: #EA7200;
--light-accent: #FB8200;
--shadow: 0em .5em 1em 0em rgba(0,0,0,0.2);
}
/*Nav menu*/
.topnav {
background-color: var(--medium);
overflow: hidden;
}
/*links in nav menu*/
.topnav a {
float: left;
color: var(--white);
text-align: center;
padding: .875em 1em;
text-decoration: none;
font-size: 1.0625em;
}
.topnav a:hover {
background-color: var(--light);
color: var(--white);
}
.topnav a.active {
background-color: #EA7200;
color: var(--white);
}
.topnav a:hover.active {
background-color: #FB8200;
}
/*Hide bars icon*/
.topnav i.fa-bars {
display: none;
}
/*Dropdown styling*/
.dropdown {
float: left;
overflow: hidden;
}
.dropdown .dropbtn {
font-size: 1em;
border: none;
outline: none;
color: var(--white);;
padding: .875em 1em;
background-color: inherit;
font-family: inherit;
margin: 0;
}
.dropdown-content {
display: none;
position: absolute;
background-color: var(--medium);
min-width: 10em;
box-shadow: var(--shadow);
z-index: 1;
}
.dropdown:hover .dropdown-content {
display: block;
}
.active-dropbtn {
background-color: var(--accent);
font-size: 1em;
border: none;
outline: none;
color: var(--white);
padding: .875em 1em;
font-family: inherit;
margin: 0;
}
/*links in the dropdowns*/
.dropdown-content a {
float: none;
color: var(--white);
padding: .875em 1em;
text-decoration: none;
display: block;
text-align: left;
}
.dropdown-content a:hover {
background-color: var(--light);
color: var(--white);;
}
/*body*/
body {
background-color: var(--dark);
color: var(--white);
}
/*links*/
a.plain {
color: var(--light-accent);
}
/*table styling*/
table {
border-collapse: collapse;
width: 100%;
}
th, td {
text-align: left;
padding: .5px;
}
/*add alternatingly colored rows to tables*/
tr:nth-child(even) {
background-color: var(--medium);
}
input[type="text"], textarea {
background-color: var(--medium);
color: var(--white);
max-width: 95%;
}
/*show that disabled textareas/buttons are disabled to the user*/
textarea:disabled{
cursor: not-allowed;
}
/*button styling*/
button.plain, input[type="submit"].plain{
background-color: var(--medium);
border: .0625em solid var(--white);
color: var(--white);
padding: .9375em 2em;
text-align: center;
text-decoration: none;
display: inline-block;
font-size: 1em;
}
button.plain:hover, input[type="submit"].plain:hover {
background-color: var(--light);
cursor: pointer;
}
/*blockquote styling*/
blockquote {
border-left: .625em solid var(--medium);
margin: 1.5em .625em;
padding: .5em .625em;
}
blockquote p {
display: inline;
}
/*clicky-like dropdown styling*/
details {
border: .0625em solid var(--white);
border-radius: .25em;
padding: .5em .5em 0;
background-color: var(--medium);
color: var(--white);
}
summary {
font-weight: bold;
margin: -.5em -.5em 0;
padding: .5em;
}
/*open click-like dropdown styling*/
details[open] {
padding: .5em;
}
details[open] summary {
border-bottom: .0625em solid var(--white);
margin-bottom: .5em;
}
code {
background-color: var(--medium);
color: #440000
}