-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcvh.css
290 lines (244 loc) · 4.7 KB
/
cvh.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
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
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
/*
Document : cvh
Created on : Aug 2, 2012, 8:37:44 PM
Author : MaxMahem
Description:
Purpose of the stylesheet follows.
Stylesheet for Cards vs Humans
*/
/* CSS RESET */
* {
margin:0;
padding:0;
}
/* a RESET */
a {
font: inherit;
color: inherit;
text-decoration: inherit;
}
/* clear floats. Technicaly we should be able to do without this,
but this is an easy way to handle it */
.clear {
clear: both;
}
body {
font: normal bold x-large helvetica;
}
header,
footer {
background-color: black;
color: white;
padding: .5em 1em;
}
/* we do not want to display most of the h1's, they are for
* outline/accessability only */
h2, h3 {
display: none;
}
header {
height: 2.1em;
}
header h1 {
display: block;
float: left;
font: bold xx-large helvetica;
}
header .NSFW {
float: left;
padding-left: .5em;
}
nav {
clear: left;
font-size: medium;
}
nav a:hover {
color: grey;
}
nav li,
nav ul {
display: inline;
}
nav ul li {
float: left;
width: 5em;
padding: .1em .2em;
background: black;
}
nav ul li ul {
display: none;
}
nav ul li:hover ul {
display: block;
}
#main {
padding: .5em;
}
/* NSFW is a h2 or H4 element, so we need to ensure it's displayed */
.NSFW {
color: red;
font: bold medium helvetica;
display: block;
}
.SFW {
color: white;
}
.cardbox {
/* float: left; */
}
.questions .arrow {
fill: black;
}
.answers .arrow {
fill: white;
}
.arrow {
stroke: black;
float: left;
height: 11.2em;
width: 3em;
padding: 1em 0;
margin: .5em;
font-size: x-large;
stroke-width: .75px;
}
.arrow svg {
height: inherit;
}
.arrow:hover {
fill: grey;
}
li {
display: block;
}
.card {
width: 8em;
height: 11.2em;
padding: 1em;
margin: .5em;
border-radius: .5em;
border: solid 2px black;
position: relative;
float: left;
}
/* style the NSFW tag for the cards */
.card .NSFW {
top: .75em;
right: .75em;
position: absolute;
z-index: 1;
}
.card address {
font-size: medium;
font-style: normal;
position: absolute;
bottom: 1em;
left: 1em;
width: 13em;
z-index: 1;
}
/* styling for logos embeded in address */
address img {
height: 2em;
width: 2em;
vertical-align: text-bottom;
padding-right: .2em;
border: 0;
}
/* there is currently a bug in IE which causes background color not to inherit
* properly, so we set it transparent instead */
.card input {
font: inherit;
color: inherit;
background: transparent;
border: 0px;
}
.card textarea {
font: inherit;
color: inherit;
background: transparent;
border: 0;
width: 9em;
height: 10em;
resize: none;
/* IE again. If we don't set this, it displays scroll bars by default */
overflow: auto;
}
.card select {
font-size: medium;
color: inherit;
background: transparent;
border: 0;
}
/* border is there to ensure exact spacing */
.instructions {
font: bold x-large helvetica;
float: left;
text-align: center;
width: 22em;
border-left: 4px solid white;
border-right: 4px solid white;
}
.instructions p {
padding: 1em 2em 0 2em;
margin: .5em;
}
/* votes section 6x normal size */
.votes {
font-size: 6em;
}
.question {
color: white;
background-color: black;
}
/* Answers float left */
.answer {
color: black;
background-color: white;
}
/* This anchor tag is absolutely positioned on top of the containing div
it is designed to sit on the bottom layer so that the source link can
which is also absolutely positioned can sit on top of it, allowing the
to links to effectively be nested, which is normally not allowed */
.cardlink {
position: absolute;
left: 0;
top: 0;
width: 8em;
height: 11.2em;
padding: 1em;
z-index: 0;
}
/* vote cards actually do a javascript powered submit. We need to indicate the
div is clickable */
.vote {
cursor: pointer;
}
/* turn grey on hover to indicate it's a link */
.link:hover,
.vote:hover {
background-color: grey;
}
/* prevents our text from turning gray when we hover though */
.link:hover a {
color: black;
}
/* prevent details from flooding over */
details {
width: 100%;
clear: left;
}
input[type=submit] {
width: 10em;
padding: 0 1em;
margin: 0 .5em;
border-radius: .5em;
float: left;
font-size: x-large;
}
footer {
clear: both;
font-size: medium;
/*height: 1em;*/
/*margin-top: -2em;*/
}