summaryrefslogtreecommitdiff
path: root/app/assets/stylesheets/scaffolds.less
blob: bbdd9896ba97c4ca40ebe83dff6102874f07a841 (plain)
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
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
/* Copyright (C) 2014 Andrew Murrell
 * Copyright (C) 2014 Davis Webb
 * Copyright (C) 2014 Guntas Grewal
 * Copyright (C) 2014 Luke Shumaker
 * Copyright (C) 2014 Nathaniel Foy
 * Copyright (C) 2014 Tomer Kimia
 *
 * This file is part of Leaguer.
 *
 * Leaguer is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Affero General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * Leaguer is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU Affero General Public License for more details.
 *
 * You should have received a copy of the Affero GNU General Public License
 * along with Leaguer.  If not, see <http://www.gnu.org/licenses/>.
 */

/* Mixins ***********************************************************/
/* These are just here for other things to @extend. */
/* Ok, they're really classes, but we don't use them like it. */

/* More elegant version of .input-group, which is over-complicated
   because it supports all kind of things we don't always need to.
   This is useful because it doesn't require extra HTML elements,
   where .input-group does. */
.simple-input-group {
	white-space: nowrap;
	display: table;
	span {
		display: table-cell;
	}
	.btn, .form-control {
		display: table-cell !important;
		/* .simple-input-group .btn:not(:last-child),
		 * .simple-input-group .form-control:not(:last-child) { ... } */
		&:not(:last-child) {
			@include border-right-radius(0);
		}
		&:not(:first-child) {
			@include border-left-radius(0);
			border-left: 0;
		}
	}
}

/* IDs **************************************************************/
/* Specific page elements */

#notice {
	&:extend(.alert-success);
	&:extend(.container);
	text-align: center;
}

#alerts-ajax {
	display: none;
}


form#search {
	&:extend(.navbar-left);
	div {
		&:extend(.simple-input-group);
	}
}

#user-actions {
	&:extend(.navbar-btn);
	&:extend(.navbar-right);
	&:extend(.simple-input-group);
	span {
		padding-right: .25em;
	}
}

#error_explanation ul {
	list-style: disc outside none;
}

#players-needed {
	text-align: center;
	font-style: italic;
}

#tournament-side-params {
	background: none repeat scroll 0 0 rgba(0,0,0,0.5);
	border-radius: 5px;
	float: right;
	font-size: 7px;
	padding: 10px;

	p {
		font-size: 10px;
		margin-bottom: 5px;
	}

}

#peer_review_boxes li {
    cursor: move;
    position: relative;
    float: left;
    margin: 5px;
    width: 180px;
    height: 240px;
    border: 1px solid rgb(0, 0, 0);
    text-align: center;
    padding-top: 10px;
    background-color: rgb(238, 238, 255);
}

// Nothing uses this one right now
#peer_review_numeric li {
    cursor: move;
    position: relative;
    float: left;
    margin: 5px;
    width: 180px;
    height: 240px;
    border: 1px solid rgb(0, 0, 0);
    text-align: center;
    padding-top: 10px;
    background-color: rgb(238, 238, 255);
}

/**** INDEX PAGE - TABLE AND GRAPH ****/
#matches-table {
    &:extend(.table);
    color: #FFF;

    form {
        color: #333;
    }
}

/* Classes **********************************************************/

/*
.btn {
	&.user:extend(.btn-info) {}
	&.signup:extend(.btn-success) {}
	&.signin:extend(.btn-warning) {}
	&.signout:extend(.btn-danger) {}
	&.server:extend(.btn-warning) {}
	&.create-alert {
		color: white;
		background-color: rgb(255, 69, 0);
		border-color: rgb(255, 69, 0);
	}
	&.alerts {
		color: white;
		background-color: hsl(0, 69%, 22%);
	}
}
*/

form.button_to, form.button_to div {
	display: inline;
}

div.field span.help-block {
	float: right;
	margin-top: 0;
	margin-bottom: 0;
}

/* Elements *********************************************************/

footer {
	&:extend(.container);
	margin-top: 1em;
	border-top: solid 1px $hr-border;
	text-align: center;
}

fieldset {
	border: solid 1px $legend-border-color;
	border-radius: .5em;
	padding: 1em;
	margin: 1em 0;
	legend {
		display: block;
		margin: 0;
		padding: .25em .5em;
		width: auto;
		border: solid 1px $legend-border-color;
		border-radius: .5em;
	}
}

form ul {
	list-style: none;
}

pre {
	text-align: left;
}

/* Misc *************************************************************/

.tournament-listing {
	margin: 10px 0px;
	border-radius: 5px;
	box-shadow: 0px 0px 3px #B8B8B8;
	background-color: rgba(0, 0, 0, 0.6);
	border: 1px solid #AAAAAA;
	min-height: 100px;
	padding: 8px 4px;

	div.row {
		margin-left: 2%;
	}
	p.message {
		margin-top: 10px;
	}

	/* AKA the listing title */
	h3 {
		margin-top: 0px;
		color: #F0AD4E;
		font-weight: bold;
	}

	h3:hover {
		color: #D09D3E;
	}

	/* host of the tournament */
	.host {
		font-weight: bold;
		color: #FFF;
	}

	.col-md-8 {
		padding: 0;
		a {
			padding: 5px 0 0 0;
		}
	}

	.t-game{
		font-weight: bold;
		text-align: center;
	}

	.t-image{
		display: block;
		margin:auto;
	}
}


.user-listing {
	margin: 10px 0px;
	border-radius: 5px;
	box-shadow: 0px 0px 3px #B8B8B8;
	background-color: rgba(0, 0, 0, 0.6);
	border: 1px solid #AAAAAA;
	min-height: 100px;
	padding: 8px 4px;
	display: inline-table;

	/* AKA the listing title */
	h3 {
		margin-top: 0px;
		color: #F0AD4E;
		font-weight: bold;
	}

	h3:hover {
		color: #D09D3E;
	}

	.things {
		padding: 0px 10px;
	}

	p {
		margin: 0;
	}
	div.row {
		margin-left: 2%;
	}
}

// Limitation: Only one box can be expanded at a time
.collapsible {
	.collapsed { display: block; }
	.expanded { display: none; }
	&:target {
		.collapsed { display: none; }
		.expanded { display: block; }
	}
}

.simple_captcha {
	background-color: rgba(255, 255, 255, 0.7);
	margin: 10px 0px;
}