forked from teijo/jquery-bracket
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathjquery.bracket.sass
249 lines (206 loc) · 4.32 KB
/
jquery.bracket.sass
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
/**
* jQuery Bracket
*
* Copyright (c) 2011-2012, Teijo Laine,
* http://aropupu.fi/bracket/
*
* Licenced under the MIT licence
*/
$winColor: #DA0
$loseColor: #CCC
$thirdColor: #963
$fourthColor: #678
$connectorColor: #666
div.jQBracket
font-family: "Arial"
font-size: 14px
float: left
clear: both
position: relative
background-color: #333
background: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#222), to(#333))
background: -moz-linear-gradient(-90deg, #222, #333)
.tools
position: absolute
top: 0px
color: #FFF
.tools span
cursor: pointer
margin: 5px
display: block
text-align: center
width: 18px
height: 18px
background-color: #666
.tools span:hover
background-color: #999
.finals
float: right
right: 0px
clear: right
position: relative
.bracket
float: right
height: 400px
clear: left
.loserBracket
float: right
height: 200px
clear: left
position: relative
.round
position: relative
width: 100px
margin-right: 40px
float: left
.match
position: relative
float: left
display: block
width: 100%
.team
position: relative
z-index: 1
float: left
background-color: #666
color: #FFF
width: 100px
height: 16px
border-radius: 5px
margin: 1px 0px
cursor: default
box-shadow: 1px 1px 2px rgba(0,0,0,0.4)
b
font-weight: normal
padding-left: 3px
cursor: pointer
height: inherit
position: absolute
width: 70px
&[disabled]
cursor: default
input
font-size: 10px
padding: 0px
width: 60px
height: 16px
position: absolute
span
font-weight: bold
float: right
cursor: pointer
padding: 0px
padding-right: 5px
background-color: rgba(255,255,255,0.3)
border-radius: 0px 3px 3px 0px
text-align: right
width: 20px
&[disabled]
color: #999
cursor: default
input
font-size: 10px
padding: 0px
width: inherit
height: 16px
b input.error,
span input.error
background-color: #FCC
&.np
background-color: #666
color: #EEE
&.na
background-color: #999
color: #CCC
&.win
color: #EEE
&.win span
color: #060
&.lose span
color: #900
&.lose
background-color: #666
color: #333
&.tie span
color: #00F
&.highlight
background-color: #3C0
color: #000
&.highlightWinner
background-color: $winColor
color: #000
&.highlightLoser
background-color: $loseColor
color: #000
.teamContainer
position: relative
float: left
display: block
.connector
border: 2px solid $connectorColor
border-left: none
position: absolute
display: block
z-index: 1
div.connector
border: none
border-bottom: 2px solid $connectorColor
height: 0px
position: absolute
display: block
&.highlight,
div.connector.highlight
border-color: #0C0
&.highlightWinner,
div.connector.highlightWinner
border-color: $winColor
&.highlightLoser,
div.connector.highlightLoser
border-color: $loseColor
.np .connector,
.np .connector div.connector
border-color: #222
.bubble
display: block
width: 30px
right: -35px
position: absolute
text-align: center
font-size: 11px
height: 16px
&.third
background-color: $thirdColor
color: #310
&.fourth
background-color: $fourthColor
color: #CCD
&:after
content: ''
display: block
position: absolute
top: 3px
width: 0
height: 0
border-top: 5px solid transparent
border-left: 5px solid transparent
border-right: 5px solid transparent
border-bottom: 5px solid transparent
&:after
left: -5px
border-left: 0
&.third:after
border-right: 6px solid $thirdColor
&.fourth:after
border-right: 6px solid $fourthColor
.highlightWinner
.bubble
background-color: $winColor
color: #960
&:after
border-right-color: $winColor
.highlightLoser
.bubble
background-color: $loseColor
color: #333
&:after
border-right-color: $loseColor