This repository has been archived by the owner on Sep 18, 2019. It is now read-only.
/
style.styl
159 lines (139 loc) · 2.89 KB
/
style.styl
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
@import "nib"
$darkGray = #888
$textColor = #444
$offWhite = #fcfcfc
$lightBlue = #a3a3f9
$lightYellow = #f3de88
$lightGreen = #ccfecc
*
margin 0
padding 0
body
text-align center
background-color $darkGray
font 16px Helvetica, Arial, sans-serif
color $textColor
-webkit-font-smoothing antialiased
width 100%
height 100%
a
color $textColor
&:visited { color: $textColor }
#container
max-width 500px
margin 0 auto
#header
background-color $lightBlue
padding 5px 10px
.loginName
padding-top 12px
float left
#title
font 36px Garamond, "Time New Roman", serif
font-variant small-caps
text-shadow -1px -1px 0px lighten($lightBlue, 20%)
.logout
padding-top 12px
float right
#container
div.section
background-color $offWhite
padding 5px 10px
margin-bottom 10px
box-shadow 0px 3px 0px darken($darkGray, 40%)
#loginBox
padding 10px
form
margin 10px 0px
input, button
font-size 16px
padding 5px
input
border 2px solid $darkGray
outline 0
#newRoom
form
margin 10px 0px
input, button
font-size 16px
padding 5px
input
border 2px solid $darkGray
outline 0
#roomList
ul
text-align center
margin-top 5px
list-style-type none
li
margin 5px auto
padding 5px
background-color $lightBlue
width 75%
border-radius(5px)
h4
font-size 22px
font-weight bold
text-align center
#roomHeader { text-align: center }
#backLink
padding-top 8px
float left
#roomName
font 28px Garamond, "Time New Roman", serif
font-variant small-caps
#reset
padding-top 8px
float right
#choices
text-align center
margin 5px
button
font-size 16px
height 30px
width 30px
border-radius 5px
border 1px solid lighten($darkGray, 20%)
box-shadow 0px 1px 1px lighten($darkGray, 50%)
background linear-gradient(top, lighten($lightBlue, 50%), $lightBlue)
text-shadow -1px -1px 0px lighten($lightBlue, 30%)
&:active
background linear-gradient(top, $lightBlue, lighten($lightBlue, 50%))
box-shadow none
.metaText
margin 5px
text-align center
font-style italic
#currentVotes
text-align center
table
border-collapse separate
border-spacing 0px 5px
margin 5px auto
width 75%
td { padding: 5px }
td.user
text-align left
border-radius: left 5px
td.vote
width 30px
text-align center
border-radius: right 5px
tr.hidden
background-color $lightGreen
td.vote { font-style: italic }
tr.notVoted { background-color: $lightYellow }
tr.currentUser { font-weight: bold }
#voteHistory
min-height 100px
#result
margin-top 5px
table
width 100%
border-collapse collapse
td { padding: 0 5px }
td.metric
width 50%
text-align right
border-right 1px solid black
td.value { text-align: left }