##// END OF EJS Templates
fixed current pagination element and input different size than button
Liviu -
r3595:ca5c908c new-ui
parent child Browse files
Show More
@@ -1,320 +1,320 b''
1 1 // forms.less
2 2 // For use in RhodeCode applications;
3 3 // see style guide documentation for guidelines.
4 4
5 5 form.rcform {
6 6
7 7 // reset for ie
8 8 // using :not(#ie) prevents older browsers from applying these rules
9 9 input[type="radio"],
10 10 input[type="checkbox"] {
11 11 padding: 0;
12 12 border: none;
13 13 }
14 14 label { display: inline; border:none; padding:0; }
15 15 .label { display: none; }
16 16
17 17 max-width: 940px;
18 18 line-height: normal;
19 19 white-space: normal;
20 20 font-size: @basefontsize;
21 21 font-family: @text-light;
22 22 color: @form-textcolor;
23 23
24 24 fieldset,
25 25 .buttons {
26 26 clear: both;
27 27 position: relative;
28 28 display:block;
29 29 width: 100%;
30 30 min-height: 3em;
31 31 margin-bottom: @form-vertical-margin;
32 32 line-height: 1.2em;
33 33
34 34 &:after { //clearfix
35 35 content: "";
36 36 clear: both;
37 37 width: 100%;
38 38 height: 1em;
39 39 }
40 40
41 41 .label:not(#ie) {
42 42 display: inline;
43 43 margin: 0 1em 0 .5em;
44 44 line-height: 1em;
45 45 }
46 46 }
47 47
48 48 legend {
49 49 float: left;
50 50 display: block;
51 51 width: @legend-width;
52 52 margin: 0;
53 53 padding: 0 @padding 0 0;
54 54 }
55 55
56 56 .fields {
57 57 float: left;
58 58 display: block;
59 59 width: 100%;
60 60 max-width: 500px;
61 61 margin: 0 0 @padding -@legend-width;
62 62 padding: 0 0 0 @legend-width;
63 63
64 64 .btn {
65 65 display: inline-block;
66 66 margin: 0 1em @padding 0;
67 67 }
68 68 }
69 69
70 70 input,
71 71 textarea {
72 72 float: left;
73 73 .box-sizing(content-box);
74 74 padding: @input-padding;
75 75 border: @border-thickness-inputs solid @grey4;
76 76 }
77 77
78 78 input {
79 79 float: left;
80 80 margin: 0 @input-padding 0 0;
81 81 line-height: 1em;
82 82 }
83 83
84 84 input[type="text"],
85 85 input[type="password"],
86 86 textarea {
87 87 float: left;
88 88 min-width: 200px;
89 89 margin: 0 1em @padding 0;
90 90 color: @form-textcolor;
91 91 }
92 92
93 93 input[type="text"],
94 94 input[type="password"] {
95 95 height: 1em;
96 96 }
97 97
98 98 textarea {
99 99 width: 100%;
100 100 margin-top: -1em; //so it lines up with legend
101 101 overflow: auto;
102 102 }
103 103
104 104 label:not(#ie) {
105 105 cursor: pointer;
106 106 display: inline-block;
107 107 position: relative;
108 108 background: white;
109 109 border-radius: 4px;
110 110 box-shadow: none;
111 111
112 112 &:hover::after {
113 113 opacity: 0.5;
114 114 }
115 115 }
116 116
117 117 input[type="radio"]:not(#ie),
118 118 input[type="checkbox"]:not(#ie) {
119 119 // Hide the input, but have it still be clickable
120 120 opacity: 0;
121 121 float: left;
122 122 height: 0;
123 123 width: 0;
124 124 margin: 0;
125 125 padding: 0;
126 126 }
127 127 input[type='radio'] + label:not(#ie),
128 128 input[type='checkbox'] + label:not(#ie) {
129 129 margin: 0;
130 130 clear: none;
131 131 }
132 132
133 133 input[type='radio'] + label:not(#ie) {
134 134 .circle (@form-radio-width,white);
135 135 float: left;
136 136 display: inline-block;
137 137 height: @form-radio-width;
138 138 width: @form-radio-width;
139 139 margin: 2px 6px 2px 0;
140 140 border: 1px solid @grey4;
141 141 background-color: white;
142 142 box-shadow: none;
143 143 text-indent: -9999px;
144 144 transition: none;
145 145
146 146 & + .label {
147 147 float: left;
148 148 margin-top: 7px
149 149 }
150 150 }
151 151
152 152 input[type='radio']:checked + label:not(#ie) {
153 153 margin: 0 4px 0 -2px;
154 154 padding: 3px;
155 155 border-style: double;
156 156 border-color: white;
157 157 border-width: thick;
158 158 background-color: @rcblue;
159 159 box-shadow: none;
160 160 }
161 161
162 162 input[type='checkbox'] + label:not(#ie) {
163 163 float: left;
164 164 width: @form-check-width;
165 165 height: @form-check-width;
166 166 margin: 0 5px 1em 0;
167 167 border: 1px solid @grey3;
168 168 .border-radius(@border-radius);
169 169 background-color: white;
170 170 box-shadow: none;
171 171 text-indent: -9999px;
172 172 transition: none;
173 173
174 174 &:after {
175 175 content: '';
176 176 width: 9px;
177 177 height: 5px;
178 178 position: absolute;
179 179 top: 4px;
180 180 left: 4px;
181 181 border: 3px solid @grey3;
182 182 border-top: none;
183 183 border-right: none;
184 184 background: transparent;
185 185 opacity: 0;
186 186 transform: rotate(-45deg);
187 187 filter: progid:DXImageTransform.Microsoft.Matrix(sizingMethod='auto expand', M11=0.7071067811865476, M12=-0.7071067811865475, M21=0.7071067811865475, M22=0.7071067811865476); /* IE6,IE7 */
188 188
189 189 -ms-filter: "progid:DXImageTransform.Microsoft.Matrix(SizingMethod='auto expand', M11=0.7071067811865476, M12=-0.7071067811865475, M21=0.7071067811865475, M22=0.7071067811865476)"; /* IE8 */ }
190 190
191 191 & + .label {
192 192 float: left;
193 193 margin-top: 5px
194 194 }
195 195 }
196 196
197 197 input[type=checkbox]:not(#ie) {
198 198 visibility: hidden;
199 199 &:checked + label:after {
200 200 opacity: 1;
201 201 }
202 202 }
203 203
204 204 // center checkbox and label on a drop-down
205 205 .drop-menu + select + input[type='checkbox'] + label:not(#ie) {
206 206 margin-top:10px;
207 207
208 208 & + .label {
209 209 margin-top: 15px;
210 210 }
211 211 }
212 212
213 213 .formlist {
214 214 position: relative;
215 215 float: left;
216 216 margin: 0;
217 217 padding: 0;
218 218
219 219 li {
220 220 list-style-type: none;
221 221
222 222 &:after {
223 223 content: "";
224 224 float: left;
225 225 display: block;
226 226 height: @padding;
227 227 width: 100%;
228 228 }
229 229 }
230 230 }
231 231
232 232 .drop-menu {
233 233 float: left;
234 234 margin: 0 @input-padding 0 0;
235 235 }
236 236
237 237 .help-block,
238 238 .error-message {
239 239 display: block;
240 240 clear: both;
241 241 margin: @textmargin 0;
242 242 }
243 243
244 244 .error-message {
245 245 margin-top: 5px;
246 246 }
247 247
248 248 input[type=submit] {
249 249 &:extend(.btn-primary);
250 250
251 251 &:hover {
252 252 &:extend(.btn-primary:hover);
253 253 }
254 254 }
255 255
256 256 input[type=reset] {
257 257 &:extend(.btn-default);
258 258
259 259 &:hover {
260 260 &:extend(.btn-default:hover);
261 261 }
262 262 }
263 263
264 264 select,
265 265 option:checked {
266 266 background-color: @rclightblue;
267 267 }
268 268
269 269 }
270 270
271 271 .badged-field {
272 272 .user-badge {
273 273 line-height: 25px;
274 padding: .5em;
274 padding: .4em;
275 275 border-radius: @border-radius;
276 276 border-top: 1px solid @grey4;
277 277 border-left: 1px solid @grey4;
278 278 border-bottom: 1px solid @grey4;
279 279 font-size: 14px;
280 280 font-style: normal;
281 281 color: @text-light;
282 282 background: @grey7;
283 283 display: inline-block;
284 284 vertical-align: top;
285 285 cursor: default;
286 286 margin-right: -2px;
287 287 }
288 288 .badge-input-container {
289 289 display: flex;
290 290 position: relative;
291 291 }
292 292 .user-disabled {
293 293 text-decoration: line-through;
294 294 }
295 295 .badge-input-wrap {
296 296 display: inline-block;
297 297 }
298 298 }
299 299
300 300 // for situations where we wish to display the form value but not the form input
301 301 input.input-valuedisplay {
302 302 border: none;
303 303 }
304 304
305 305 // for forms which only display information
306 306 .infoform {
307 307 .fields {
308 308 .field {
309 309 label,
310 310 .label,
311 311 input,
312 312 .input {
313 313 margin-top: 0;
314 314 margin-bottom: 0;
315 315 padding-top: 0;
316 316 padding-bottom: 0;
317 317 }
318 318 }
319 319 }
320 320 }
@@ -1,746 +1,752 b''
1 1 // navigation.less
2 2 // For use in RhodeCode applications;
3 3 // see style guide documentation for guidelines.
4 4
5 5 // TOP MAIN DARK NAVIGATION
6 6
7 7 .header .main_nav.horizontal-list {
8 8 float: right;
9 9 color: @grey4;
10 10 > li {
11 11 a {
12 12 color: @grey4;
13 13 }
14 14 }
15 15 }
16 16
17 17 // HEADER NAVIGATION
18 18
19 19 .horizontal-list {
20 20 display: block;
21 21 margin: 0;
22 22 padding: 0;
23 23 -webkit-padding-start: 0;
24 24 text-align: left;
25 25 font-size: @navigation-fontsize;
26 26 color: @grey6;
27 27 z-index:10;
28 28
29 29 li {
30 30 line-height: 1em;
31 31 list-style-type: none;
32 32 margin: 0 20px 0 0;
33 33
34 34 a {
35 35 padding: 0 .5em;
36 36
37 37 &.menu_link_notifications {
38 38 .pill(7px,@rcblue);
39 39 display: inline;
40 40 margin: 0 7px 0 .7em;
41 41 font-size: @basefontsize;
42 42 color: white;
43 43
44 44 &.empty {
45 45 background-color: @grey4;
46 46 }
47 47
48 48 &:hover {
49 49 background-color: @rcdarkblue;
50 50 }
51 51 }
52 52 }
53 53 .pill_container {
54 54 margin: 1.25em 0px 0px 0px;
55 55 float: right;
56 56 }
57 57
58 58 &#quick_login_li {
59 59 &:hover {
60 60 color: @grey5;
61 61 }
62 62
63 63 a.menu_link_notifications {
64 64 color: white;
65 65 }
66 66
67 67 .user {
68 68 padding-bottom: 10px;
69 69 }
70 70 }
71 71
72 72 &:before { content: none; }
73 73
74 74 &:last-child {
75 75 .menulabel {
76 76 padding-right: 0;
77 77 border-right: none;
78 78
79 79 .show_more {
80 80 padding-right: 0;
81 81 }
82 82 }
83 83
84 84 &> a {
85 85 border-bottom: none;
86 86 }
87 87 }
88 88
89 89 &.open {
90 90
91 91 a {
92 92 color: white;
93 93 }
94 94 }
95 95
96 96 &:focus {
97 97 outline: none;
98 98 }
99 99
100 100 ul li {
101 101 display: block;
102 102
103 103 &:last-child> a {
104 104 border-bottom: none;
105 105 }
106 106
107 107 ul li:last-child a {
108 108 /* we don't expect more then 3 levels of submenu and the third
109 109 level can have different html structure */
110 110 border-bottom: none;
111 111 }
112 112 }
113 113 }
114 114
115 115 > li {
116 116 float: left;
117 117 display: block;
118 118 padding: 0;
119 119
120 120 > a,
121 121 &.has_select2 a {
122 122 display: block;
123 123 padding: 10px 0;
124 124 }
125 125
126 126 .menulabel {
127 127 line-height: 1em;
128 128 // for this specifically we do not use a variable
129 129 }
130 130
131 131 .pr_notifications {
132 132 padding-left: .5em;
133 133 }
134 134
135 135 .pr_notifications + .menulabel {
136 136 display:inline;
137 137 padding-left: 0;
138 138 }
139 139
140 140 &:hover,
141 141 &.open,
142 142 &.active {
143 143 a {
144 144 color: @rcblue;
145 145 }
146 146 }
147 147 }
148 148
149 149 pre {
150 150 margin: 0;
151 151 padding: 0;
152 152 }
153 153
154 154 .select2-container,
155 155 .menulink.childs {
156 156 position: relative;
157 157 }
158 158
159 159 #quick_login {
160 160
161 161 li a {
162 162 padding: .5em 0;
163 163 border-bottom: none;
164 164 color: @grey2;
165 165
166 166 &:hover { color: @grey1; }
167 167 }
168 168 }
169 169
170 170 #quick_login_link {
171 171 display: inline-block;
172 172
173 173 .gravatar {
174 174 border: 1px solid @grey5;
175 175 }
176 176
177 177 .gravatar-login {
178 178 height: 20px;
179 179 width: 20px;
180 180 margin: -8px 0;
181 181 padding: 0;
182 182 }
183 183
184 184 &:hover .user {
185 185 color: @grey6;
186 186 }
187 187 }
188 188 }
189 189 .header .horizontal-list {
190 190
191 191 li {
192 192
193 193 &#quick_login_li {
194 194 padding-left: .5em;
195 195
196 196 &:hover #quick_login_link {
197 197 color: inherit;
198 198 }
199 199
200 200 .menu_link_user {
201 201 padding: 0 2px;
202 202 }
203 203 }
204 204 list-style-type: none;
205 205 }
206 206
207 207 > li {
208 208
209 209 a {
210 210 padding: 18px 0 12px 0;
211 211 color: @nav-grey;
212 212
213 213 &.menu_link_notifications {
214 214 padding: 1px 8px;
215 215 }
216 216 }
217 217
218 218 &:hover,
219 219 &.open,
220 220 &.active {
221 221 .pill_container a {
222 222 // don't select text for the pill container, it has it' own
223 223 // hover behaviour
224 224 color: @nav-grey;
225 225 }
226 226 }
227 227
228 228 &:hover,
229 229 &.open,
230 230 &.active {
231 231 a {
232 232 color: @grey6;
233 233 }
234 234 }
235 235
236 236 .select2-dropdown-open a {
237 237 color: @grey6;
238 238 }
239 239
240 240 .repo-switcher {
241 241 padding-left: 0;
242 242
243 243 .menulabel {
244 244 padding-left: 0;
245 245 }
246 246 }
247 247 }
248 248
249 249 li ul li {
250 250 background-color:@grey2;
251 251
252 252 a {
253 253 padding: .5em 0;
254 254 border-bottom: @border-thickness solid @border-default-color;
255 255 color: @grey6;
256 256 }
257 257
258 258 &:last-child a, &.last a{
259 259 border-bottom: none;
260 260 }
261 261
262 262 &:hover {
263 263 background-color: @grey3;
264 264 }
265 265 }
266 266
267 267 .submenu {
268 268 margin-top: 5px;
269 269 }
270 270 }
271 271
272 272 // SUBMENUS
273 273 .navigation .submenu {
274 274 display: none;
275 275 }
276 276
277 277 .navigation li.open {
278 278 .submenu {
279 279 display: block;
280 280 }
281 281 }
282 282
283 283 .navigation li:last-child .submenu {
284 284 right: -20px;
285 285 left: auto;
286 286 }
287 287
288 288 .submenu {
289 289 position: absolute;
290 290 top: 100%;
291 291 left: 0;
292 292 min-width: 150px;
293 293 margin: 6px 0 0;
294 294 padding: 0;
295 295 text-align: left;
296 296 font-family: @text-light;
297 297 border-radius: @border-radius;
298 298 z-index: 20;
299 299
300 300 li {
301 301 display: block;
302 302 margin: 0;
303 303 padding: 0 .5em;
304 304 line-height: 1em;
305 305 color: @grey3;
306 306 background-color: @grey6;
307 307 list-style-type: none;
308 308
309 309 a {
310 310 display: block;
311 311 width: 100%;
312 312 padding: .5em 0;
313 313 border-right: none;
314 314 border-bottom: @border-thickness solid white;
315 315 color: @grey3;
316 316 }
317 317
318 318 ul {
319 319 display: none;
320 320 position: absolute;
321 321 top: 0;
322 322 right: 100%;
323 323 padding: 0;
324 324 z-index: 30;
325 325 }
326 326 &:hover {
327 327 background-color: @grey5;
328 328 -webkit-transition: background .3s;
329 329 -moz-transition: background .3s;
330 330 -o-transition: background .3s;
331 331 transition: background .3s;
332 332
333 333 ul {
334 334 display: block;
335 335 }
336 336 }
337 337 }
338 338
339 339 }
340 340
341 341
342 342
343 343
344 344 // repo dropdown
345 345 .quick_repo_menu {
346 346 width: 15px;
347 347 text-align: center;
348 348 position: relative;
349 349 cursor: pointer;
350 350
351 351 div {
352 352 overflow: visible !important;
353 353 }
354 354
355 355 &.sorting {
356 356 cursor: auto;
357 357 }
358 358
359 359 &:hover {
360 360 .menu_items_container {
361 361 position: absolute;
362 362 display: block;
363 363 }
364 364 .menu_items {
365 365 display: block;
366 366 }
367 367 }
368 368
369 369 i {
370 370 margin: 0;
371 371 color: @grey4;
372 372 }
373 373
374 374 .menu_items_container {
375 375 position: absolute;
376 376 top: 0;
377 377 left: 100%;
378 378 margin: 0;
379 379 padding: 0;
380 380 list-style: none;
381 381 background-color: @grey6;
382 382 z-index: 999;
383 383 text-align: left;
384 384
385 385 a {
386 386 color: @grey2;
387 387 }
388 388
389 389 ul.menu_items {
390 390 margin: 0;
391 391 padding: 0;
392 392 }
393 393
394 394 li {
395 395 margin: 0;
396 396 padding: 0;
397 397 line-height: 1em;
398 398 list-style-type: none;
399 399
400 400 a {
401 401 display: block;
402 402 height: 16px;
403 403 padding: 8px; //must add up to td height (28px)
404 404 width: 120px; // set width
405 405
406 406 &:hover {
407 407 background-color: @grey5;
408 408 -webkit-transition: background .3s;
409 409 -moz-transition: background .3s;
410 410 -o-transition: background .3s;
411 411 transition: background .3s;
412 412 }
413 413 }
414 414 }
415 415 }
416 416 }
417 417
418 418 // Header Repository Switcher
419 419 // Select2 Dropdown
420 420 #select2-drop.select2-drop.repo-switcher-dropdown {
421 421 width: auto !important;
422 422 margin-top: 5px;
423 423 padding: 1em 0;
424 424 text-align: left;
425 425 .border-radius-bottom(@border-radius);
426 426 border-color: transparent;
427 427 color: @grey6;
428 428 background-color: @grey2;
429 429
430 430 input {
431 431 min-width: 90%;
432 432 }
433 433
434 434 ul.select2-result-sub {
435 435
436 436 li {
437 437 line-height: 1em;
438 438
439 439 &:hover,
440 440 &.select2-highlighted {
441 441 background-color: @grey3;
442 442 }
443 443 }
444 444
445 445 &:before { content: none; }
446 446 }
447 447
448 448 ul.select2-results {
449 449 min-width: 200px;
450 450 margin: 0;
451 451 padding: 0;
452 452 list-style-type: none;
453 453 overflow-x: visible;
454 454 overflow-y: scroll;
455 455
456 456 li {
457 457 padding: 0 8px;
458 458 line-height: 1em;
459 459 color: @grey6;
460 460
461 461 &>.select2-result-label {
462 462 padding: 8px 0;
463 463 border-bottom: @border-thickness solid @grey3;
464 464 white-space: nowrap;
465 465 color: @grey5;
466 466 cursor: pointer;
467 467 }
468 468
469 469 &.select2-result-with-children {
470 470 margin: 0;
471 471 padding: 0;
472 472 }
473 473
474 474 &.select2-result-unselectable > .select2-result-label {
475 475 margin: 0 8px;
476 476 }
477 477
478 478 }
479 479 }
480 480
481 481 ul.select2-result-sub {
482 482 margin: 0;
483 483 padding: 0;
484 484
485 485 li {
486 486 display: block;
487 487 margin: 0;
488 488 border-right: none;
489 489 line-height: 1em;
490 490 font-family: @text-light;
491 491 color: @grey2;
492 492 list-style-type: none;
493 493
494 494 &:hover {
495 495 background-color: @grey3;
496 496 }
497 497 }
498 498 }
499 499 }
500 500
501 501
502 502 #context-bar {
503 503 display: block;
504 504 margin: 0 auto 20px 0;
505 505 padding: 0 @header-padding;
506 506 background-color: @grey7;
507 507
508 508 .clear {
509 509 clear: both;
510 510 }
511 511 }
512 512
513 513 ul#context-pages {
514 514 li {
515 515 list-style-type: none;
516 516
517 517 a {
518 518 color: @grey3;
519 519
520 520 &:hover {
521 521 color: @grey2;
522 522 }
523 523 }
524 524
525 525 &.active {
526 526 // special case, non-variable color
527 527 border-bottom: 2px solid @rcblue;
528 528
529 529 a {
530 530 color: @rcblue;
531 531 }
532 532 }
533 533 }
534 534 }
535 535
536 536 // PAGINATION
537 537
538 538 .pagination {
539 539 border: @border-thickness solid @grey5;
540 540 color: @grey2;
541 541 box-shadow: @button-shadow;
542 542
543 543 .current {
544 544 color: @grey4;
545 545 }
546 546 }
547 547
548 548 .dataTables_processing {
549 549 text-align: center;
550 550 font-size: 1.1em;
551 551 position: relative;
552 552 top: 95px;
553 553 }
554 554
555 555 .dataTables_paginate, .pagination-wh {
556 556 text-align: left;
557 557 display: inline-block;
558 558 border-left: 1px solid @grey5;
559 559 float: none;
560 560 overflow: hidden;
561 561 box-shadow: @button-shadow;
562 562
563 563 .paginate_button, .pager_curpage,
564 564 .pager_link, .pg-previous, .pg-next, .pager_dotdot {
565 565 display: inline-block;
566 566 padding: @menupadding/4 @menupadding;
567 567 border: 1px solid @grey5;
568 568 border-left: 0;
569 569 color: @grey2;
570 570 cursor: pointer;
571 571 float: left;
572 572
573 573 &:hover {
574 574 color: @rcdarkblue;
575 575 }
576 576 }
577 577
578 .pager_curpage, .pager_dotdot,
579 .paginate_button.current, .paginate_button.disabled,
578 .paginate_button.disabled,
580 579 .disabled {
581 580 color: @grey3;
582 581 cursor: default;
582 opacity: 0.5;
583 }
584
585 .paginate_button.current, .pager_curpage {
586 background: @rcblue;
587 border-color: @rcblue;
588 color: @white;
583 589 }
584 590
585 591 .ellipsis {
586 592 display: inline-block;
587 593 text-align: left;
588 594 padding: @menupadding/4 @menupadding;
589 595 border: 1px solid @grey5;
590 596 border-left: 0;
591 597 float: left;
592 598 }
593 599 }
594 600
595 601 // SIDEBAR
596 602
597 603 .sidebar {
598 604 .block-left;
599 605 clear: left;
600 606 max-width: @sidebar-width;
601 607 margin-right: @sidebarpadding;
602 608 padding-right: @sidebarpadding;
603 609 font-family: @text-regular;
604 610 color: @grey1;
605 611
606 612 &#graph_nodes {
607 613 clear:both;
608 614 width: auto;
609 615 margin-left: -100px;
610 616 padding: 0;
611 617 border: none;
612 618 }
613 619
614 620 .nav-pills {
615 621 margin: 0;
616 622 }
617 623
618 624 .nav {
619 625 list-style: none;
620 626 padding: 0;
621 627
622 628 li {
623 629 padding-bottom: @menupadding;
624 630 line-height: 1em;
625 631 color: @grey4;
626 632 list-style-type: none;
627 633
628 634 &.active a {
629 635 color: @grey2;
630 636 }
631 637
632 638 a {
633 639 color: @grey4;
634 640 }
635 641 }
636 642
637 643 }
638 644 }
639 645
640 646 .main_filter_help_box {
641 647 padding: 7px 7px;
642 648 display: inline-block;
643 649 vertical-align: top;
644 650 background: inherit;
645 651 position: absolute;
646 652 right: 0;
647 653 top: 9px;
648 654 }
649 655
650 656 .main_filter_input_box {
651 657 display: inline-block;
652 658
653 659 .searchItems {
654 660 display:flex;
655 661 background: @black;
656 662 padding: 0px;
657 663 border-radius: 3px;
658 664 border: 1px solid @black;
659 665
660 666 a {
661 667 border: none !important;
662 668 }
663 669 }
664 670
665 671 .searchTag {
666 672 line-height: 28px;
667 673 padding: 0 5px;
668 674
669 675 .tag {
670 676 color: @grey5;
671 677 border-color: @grey2;
672 678 background: @grey1;
673 679 }
674 680 }
675 681
676 682 .searchTagFilter {
677 683 background-color: @black !important;
678 684 margin-right: 0;
679 685 }
680 686
681 687 .searchTagHelp {
682 688 background-color: @grey1 !important;
683 689 margin: 0;
684 690 }
685 691 .searchTagHelp:hover {
686 692 background-color: @grey1 !important;
687 693 }
688 694 .searchTagInput {
689 695 background-color: @grey1 !important;
690 696 margin-right: 0;
691 697 }
692 698 }
693 699
694 700 .main_filter_box {
695 701 margin: 9px 0 0 0;
696 702 }
697 703
698 704 #main_filter_help {
699 705 background: @grey3;
700 706 border: 1px solid black;
701 707 position: absolute;
702 708 white-space: pre;
703 709 z-index: 9999;
704 710 color: @nav-grey;
705 711 margin: 1px 7px;
706 712 padding: 0 10px;
707 713 }
708 714
709 715 input {
710 716
711 717 &.main_filter_input {
712 718 padding: 5px 10px;
713 719 min-width: 260px;
714 720 color: @grey7;
715 721 background: @black;
716 722 min-height: 18px;
717 723 border: 0;
718 724
719 725 &:active {
720 726 color: @grey2 !important;
721 727 background: white !important;
722 728 }
723 729 &:focus {
724 730 color: @grey2 !important;
725 731 background: white !important;
726 732 }
727 733 }
728 734 }
729 735
730 736
731 737
732 738 .main_filter_input::placeholder {
733 739 color: @nav-grey;
734 740 opacity: 1;
735 741 }
736 742
737 743 .notice-box {
738 744 display:block !important;
739 745 padding: 9px 0 !important;
740 746 }
741 747
742 748 .menulabel-notice {
743 749 border: 1px solid @color5;
744 750 padding:7px 10px;
745 751 color: @color5;
746 752 }
@@ -1,566 +1,566 b''
1 1 //
2 2 // Typography
3 3 // modified from Bootstrap
4 4 // --------------------------------------------------
5 5
6 6 // Base
7 7 body {
8 8 font-size: @basefontsize;
9 9 font-family: @text-light;
10 10 letter-spacing: .02em;
11 11 color: @grey2;
12 12 }
13 13
14 14 #content, label{
15 15 font-size: @basefontsize;
16 16 }
17 17
18 18 label {
19 19 color: @grey2;
20 20 }
21 21
22 22 ::selection { background: @rchighlightblue; }
23 23
24 24 // Headings
25 25 // -------------------------
26 26
27 27 h1, h2, h3, h4, h5, h6,
28 28 .h1, .h2, .h3, .h4, .h5, .h6 {
29 29 margin: 0 0 @textmargin 0;
30 30 padding: 0;
31 31 line-height: 1.8em;
32 32 color: @text-color;
33 33 a {
34 34 color: @rcblue;
35 35 }
36 36 }
37 37
38 38 h1, .h1 { font-size: 1.54em; font-weight: @text-bold-weight; font-family: @text-bold; }
39 39 h2, .h2 { font-size: 1.23em; font-weight: @text-semibold-weight; font-family: @text-semibold; }
40 40 h3, .h3 { font-size: 1.23em; font-family: @text-regular; }
41 41 h4, .h4 { font-size: 1em; font-weight: @text-bold-weight; font-family: @text-bold; }
42 42 h5, .h5 { font-size: 1em; font-weight: @text-bold-weight; font-family: @text-bold; }
43 43 h6, .h6 { font-size: 1em; font-weight: @text-bold-weight; font-family: @text-bold; }
44 44
45 45 // Breadcrumbs
46 46 .breadcrumbs {
47 47 font-size: @repo-title-fontsize;
48 48 margin: 0;
49 49 }
50 50
51 51 .breadcrumbs_light {
52 52 float:left;
53 53 font-size: 1.3em;
54 54 line-height: 38px;
55 55 }
56 56
57 57 // Body text
58 58 // -------------------------
59 59
60 60 p {
61 61 margin: 0 0 @textmargin 0;
62 62 padding: 0;
63 63 line-height: 2em;
64 64 }
65 65
66 66 .lead {
67 67 margin-bottom: @textmargin;
68 68 font-weight: 300;
69 69 line-height: 1.4;
70 70
71 71 @media (min-width: @screen-sm-min) {
72 72 font-size: (@basefontsize * 1.5);
73 73 }
74 74 }
75 75
76 76 a,
77 77 .link {
78 78 color: @rcblue;
79 79 text-decoration: none;
80 80 outline: none;
81 81 cursor: pointer;
82 82
83 83 &:focus {
84 84 outline: none;
85 85 }
86 86
87 87 &:hover {
88 88 color: @rcdarkblue;
89 89 }
90 90 }
91 91
92 92 img {
93 93 border: none;
94 94 outline: none;
95 95 }
96 96
97 97 strong {
98 98 font-weight: @text-bold-weight;
99 99 font-family: @text-bold;
100 100 }
101 101
102 102 em {
103 103 font-family: @text-italic;
104 104 font-style: italic;
105 105 }
106 106
107 107 strong em,
108 108 em strong {
109 109 font-style: italic;
110 110 font-weight: @text-bold-italic-weight;
111 111 font-family: @text-bold-italic;
112 112 }
113 113
114 114 //TODO: lisa: b and i are depreciated, but we are still using them in places.
115 115 // Should probably make some decision whether to keep or lose these.
116 116 b {
117 117
118 118 }
119 119
120 120 i {
121 121 font-style: normal;
122 122 }
123 123
124 124 label {
125 125 color: @text-color;
126 126
127 127 input[type="checkbox"] {
128 128 margin-right: 1em;
129 129 }
130 130 input[type="radio"] {
131 131 margin-right: 1em;
132 132 }
133 133 }
134 134
135 135 code,
136 136 .code {
137 137 font-size: .95em;
138 138 font-family: @text-code;
139 139 color: @grey3;
140 140
141 141 a {
142 142 color: lighten(@rcblue,10%)
143 143 }
144 144 }
145 145
146 146 pre {
147 147 margin: 0;
148 148 padding: 0;
149 149 border: 0;
150 150 outline: 0;
151 151 font-size: @basefontsize*.95;
152 152 line-height: 1.4em;
153 153 font-family: @text-code;
154 154 color: @grey3;
155 155 }
156 156
157 157 // Emphasis & misc
158 158 // -------------------------
159 159 .discreet {
160 160 color: @grey4;
161 161 font-size: 85%;
162 162 font-weight: normal;
163 163
164 164 a {
165 165 color: @grey4;
166 166
167 167 &:hover {
168 168 color: @rcdarkblue;
169 169 }
170 170 }
171 171 }
172 172
173 173 small,
174 174 .small {
175 175 font-size: 75%;
176 176 font-weight: normal;
177 177 line-height: 1em;
178 178 }
179 179
180 180 mark,
181 181 .mark {
182 182 padding: .2em;
183 183 }
184 184
185 185 // Alignment
186 186 .text-left { text-align: left; }
187 187 .text-right { text-align: right; }
188 188 .text-center { text-align: center; }
189 189 .text-justify { text-align: justify; }
190 190 .text-nowrap { white-space: nowrap; }
191 191
192 192 // Transformation
193 193 .text-lowercase { text-transform: lowercase; }
194 194 .text-uppercase { text-transform: uppercase; }
195 195 .text-capitalize { text-transform: capitalize; }
196 196
197 197 // Contextual colors
198 198 .text-muted {
199 199 color: @grey4;
200 200 }
201 201 .text-primary {
202 202 color: @rcblue;
203 203 }
204 204 .text-success {
205 205 color: @alert1;
206 206 }
207 207 .text-info {
208 208 color: @alert4;
209 209 }
210 210 .text-warning {
211 211 color: @alert3;
212 212 }
213 213 .text-danger {
214 214 color: @alert2;
215 215 }
216 216
217 217 // Contextual backgrounds
218 218 .bg-primary {
219 219 background-color: white;
220 220 }
221 221 .bg-success {
222 222 background-color: @alert1;
223 223 }
224 224 .bg-info {
225 225 background-color: @alert4;
226 226 }
227 227 .bg-warning {
228 228 background-color: @alert3;
229 229 }
230 230 .bg-danger {
231 231 background-color: @alert2;
232 232 }
233 233
234 234
235 235 // Page header
236 236 // -------------------------
237 237
238 238 .page-header {
239 239 margin: @pagepadding 0 @textmargin;
240 240 border-bottom: @border-thickness solid @grey5;
241 241 }
242 242
243 243 .title {
244 244 clear: both;
245 245 float: left;
246 246 width: 100%;
247 margin: @pagepadding/2 0 0;
247 margin: @pagepadding/2 0 @pagepadding/4;
248 248 min-height: 25px;
249 249
250 250 .breadcrumbs {
251 251 float: left;
252 252 clear: both;
253 253 width: 700px;
254 254 margin: 0;
255 255
256 256 .q_filter_box {
257 257 margin-right: @padding;
258 258 }
259 259 }
260 260
261 261 h1 a {
262 262 color: @rcblue;
263 263 }
264 264
265 265 input{
266 266 margin-right: @padding;
267 267 }
268 268
269 269 h5, .h5 {
270 270 color: @grey1;
271 271 margin-bottom: @space;
272 272
273 273 span {
274 274 display: inline-block;
275 275 }
276 276 }
277 277
278 278 p {
279 279 margin-bottom: 0;
280 280 }
281 281
282 282 .links {
283 283 float: right;
284 284 display: inline;
285 285 margin: 0;
286 286 padding-left: 0;
287 287 list-style: none;
288 288 text-align: right;
289 289
290 290 li {
291 291 float: right;
292 292 list-style-type: none;
293 293 }
294 294
295 295 a {
296 296 display: inline-block;
297 297 margin-left: @textmargin/2;
298 298 }
299 299 }
300 300
301 301 .title-content {
302 302 float: left;
303 303 margin: 0;
304 304 padding: 0;
305 305
306 306 & + .breadcrumbs {
307 307 margin-top: @padding;
308 308 }
309 309
310 310 & + .links {
311 311 margin-top: -@button-padding;
312 312
313 313 & + .breadcrumbs {
314 314 margin-top: @padding;
315 315 }
316 316 }
317 317
318 318 .repo-group-desc {
319 319 padding: 8px 0px 0px 0px;
320 320 }
321 321 }
322 322
323 323 .title-main {
324 324 font-size: @repo-title-fontsize;
325 325 }
326 326
327 327 .title-description {
328 328 margin-top: .5em;
329 329 }
330 330
331 331 .q_filter_box {
332 332 width: 200px;
333 333 }
334 334
335 335 }
336 336
337 337 #readme .title {
338 338 text-transform: none;
339 339 }
340 340
341 341 // Lists
342 342 // -------------------------
343 343
344 344 // Unordered and Ordered lists
345 345 ul,
346 346 ol {
347 347 margin-top: 0;
348 348 margin-bottom: @textmargin;
349 349 ul,
350 350 ol {
351 351 margin-bottom: 0;
352 352 }
353 353 }
354 354
355 355 li {
356 356 line-height: 2em;
357 357 }
358 358
359 359 ul li {
360 360 position: relative;
361 361 list-style-type: disc;
362 362
363 363 p:first-child {
364 364 display:inline;
365 365 }
366 366 }
367 367
368 368 // List options
369 369
370 370 // Unstyled keeps list items block level, just removes default browser padding and list-style
371 371 .list-unstyled {
372 372 padding-left: 0;
373 373 list-style: none;
374 374 li:before { content: none; }
375 375 }
376 376
377 377 // Inline turns list items into inline-block
378 378 .list-inline {
379 379 .list-unstyled();
380 380 margin-left: -5px;
381 381
382 382 > li {
383 383 display: inline-block;
384 384 padding-left: 5px;
385 385 padding-right: 5px;
386 386 }
387 387 }
388 388
389 389 // Description Lists
390 390
391 391 dl {
392 392 margin-top: 0; // Remove browser default
393 393 margin-bottom: @textmargin;
394 394 }
395 395
396 396 dt,
397 397 dd {
398 398 line-height: 1.4em;
399 399 }
400 400
401 401 dt {
402 402 margin: @textmargin 0 0 0;
403 403 font-weight: @text-bold-weight;
404 404 font-family: @text-bold;
405 405 }
406 406
407 407 dd {
408 408 margin-left: 0; // Undo browser default
409 409 }
410 410
411 411 // Horizontal description lists
412 412 // Defaults to being stacked without any of the below styles applied, until the
413 413 // grid breakpoint is reached (default of ~768px).
414 414 // These are used in forms as well; see style guide.
415 415 // TODO: lisa: These should really not be used in forms.
416 416
417 417 .dl-horizontal {
418 418
419 419 overflow: hidden;
420 420 margin-bottom: @space;
421 421
422 422 dt, dd {
423 423 float: left;
424 424 margin: 5px 0 5px 0;
425 425 }
426 426
427 427 dt {
428 428 clear: left;
429 429 width: @label-width - @form-vertical-margin;
430 430 }
431 431
432 432 dd {
433 433 &:extend(.clearfix all); // Clear the floated `dt` if an empty `dd` is present
434 434 margin-left: @form-vertical-margin;
435 435 max-width: @form-max-width - (@label-width - @form-vertical-margin) - @form-vertical-margin;
436 436 }
437 437
438 438 pre {
439 439 margin: 0;
440 440 }
441 441
442 442 &.settings {
443 443 dt {
444 444 text-align: left;
445 445 }
446 446 }
447 447
448 448 @media (min-width: 768px) {
449 449 dt {
450 450 float: left;
451 451 width: 185px;
452 452 clear: left;
453 453 text-align: right;
454 454 }
455 455 dd {
456 456 margin-left: 20px;
457 457 }
458 458 }
459 459 }
460 460
461 461
462 462 // Misc
463 463 // -------------------------
464 464
465 465 // Abbreviations and acronyms
466 466 abbr[title],
467 467 abbr[data-original-title] {
468 468 cursor: help;
469 469 border-bottom: @border-thickness dotted @grey4;
470 470 }
471 471 .initialism {
472 472 font-size: 90%;
473 473 text-transform: uppercase;
474 474 }
475 475
476 476 // Blockquotes
477 477 blockquote {
478 478 padding: 1em 2em;
479 479 margin: 0 0 2em;
480 480 font-size: @basefontsize;
481 481 border-left: 2px solid @grey6;
482 482
483 483 p,
484 484 ul,
485 485 ol {
486 486 &:last-child {
487 487 margin-bottom: 0;
488 488 }
489 489 }
490 490
491 491 footer,
492 492 small,
493 493 .small {
494 494 display: block;
495 495 font-size: 80%;
496 496
497 497 &:before {
498 498 content: '\2014 \00A0'; // em dash, nbsp
499 499 }
500 500 }
501 501 }
502 502
503 503 // Opposite alignment of blockquote
504 504 //
505 505 .blockquote-reverse,
506 506 blockquote.pull-right {
507 507 padding-right: 15px;
508 508 padding-left: 0;
509 509 border-right: 5px solid @grey6;
510 510 border-left: 0;
511 511 text-align: right;
512 512
513 513 // Account for citation
514 514 footer,
515 515 small,
516 516 .small {
517 517 &:before { content: ''; }
518 518 &:after {
519 519 content: '\00A0 \2014'; // nbsp, em dash
520 520 }
521 521 }
522 522 }
523 523
524 524 // Addresses
525 525 address {
526 526 margin-bottom: 2em;
527 527 font-style: normal;
528 528 line-height: 1.8em;
529 529 }
530 530
531 531 .error-message {
532 532 display: block;
533 533 margin: @padding/3 0;
534 534 color: @alert2;
535 535 }
536 536
537 537 .issue-tracker-link {
538 538 color: @rcblue;
539 539 }
540 540
541 541 .info_text{
542 542 font-size: @basefontsize;
543 543 color: @grey4;
544 544 font-family: @text-regular;
545 545 }
546 546
547 547 .help-block-inline {
548 548 margin: 0;
549 549 }
550 550
551 551 // help block text
552 552 .help-block {
553 553 display: block;
554 554 margin: 0 0 @padding;
555 555 color: @grey4;
556 556 font-family: @text-light;
557 557 &.pre-formatting {
558 558 white-space: pre-wrap;
559 559 }
560 560 }
561 561
562 562 .error-message {
563 563 display: block;
564 564 margin: @padding/3 0;
565 565 color: @alert2;
566 566 }
@@ -1,152 +1,152 b''
1 1 // variables for use in all RhodeCode products
2 2
3 3 // FONTS
4 4 //Primary Colors (brand)
5 5 @rcblue: #427cc9; //RhodeCode blue
6 6 @rcdarkblue: #305b91; //RhodeCode dark blue
7 7 @rclightblue: lighten(@rcblue, 30%);
8 8 @rchighlightblue: lighten(@rcblue, 35%);
9 9
10 10 // Secondary Colors (greyscale)
11 11 @black: #000;
12 12 @white: #fff;
13 13 @grey1: #2B2B2D; //midnight
14 14 @grey2: #5C5C5C; //charcoal
15 15 @grey3: #7E7F7F; //tungsten
16 16 @grey4: #949494; //light grey
17 17 @grey5: #dbd9da; //greyish
18 18 @grey6: #eeeeee; //silver
19 19 @grey7: #F5F5F5; //light silver
20 20
21 21 // special for navigation
22 22 @nav-grey: #CDCCCD;
23 23
24 24 @grey5-alpha: rgba(219, 217, 218, 0.3);
25 25
26 26 // Tertiary Colors
27 27 @color1: #879938; //olive green
28 28 @color2: #fcc93a; //bright yellow
29 29 @color3: #ff9e07; //orange-yellow
30 30 @color4: #fc663a; //bright orange
31 31 @color5: #d63d44; //signal red
32 32 @color6: #99287c; //violet
33 33 @color7: #682668; //dark purple
34 34 @color8: #194f8e; //dark blue
35 35
36 36 // Alert Colors (bright)
37 37 @alert1: #0ac878; //bright green
38 38 @alert2: #e85e4d; //soft red
39 39 @alert3: #ffc854; //corn yellow
40 40 @alert4: #84a5d2; //light blue
41 41
42 42 // Alert Inner Colors
43 43 @alert1-inner: #daf7eb; //bright green
44 44 @alert2-inner: #fbdfdb; //soft red
45 45 @alert3-inner: #fff4dd; //corn yellow
46 46 @alert4-inner: #e6edf6; //light blue
47 47
48 48 // Highlight color for lines and colors
49 49 @comment-highlight-color: #ffd887;
50 50
51 51 // FONTS
52 52 @basefontsize: 13px;
53 53 @navigation-fontsize: 14px;
54 54 @journal-fontsize: @basefontsize+7px;
55 55 @text-color: @grey2;
56 56 @repo-title-fontsize: 18px;
57 57
58 58 @text-regular: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
59 59 @text-monospace: 'Menlo', 'Liberation Mono', 'Consolas', 'DejaVu Sans Mono', 'Ubuntu Mono', 'Courier New', 'andale mono', 'lucida console', monospace;
60 60
61 61 @text-italic: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
62 62
63 63 @text-bold: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
64 64 @text-bold-weight: 600;
65 65
66 66 @text-semibold: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
67 67 @text-semibold-weight: 500;
68 68
69 69 @text-bold-italic: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
70 70 @text-bold-italic-weight: 600;
71 71
72 72 @text-code: @text-monospace;
73 73 @text-light: @text-regular;
74 74
75 75
76 76 // Used for .close buttons
77 77 @text-bootstrap: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
78 78
79 79 @panel-title: @basefontsize;
80 80 @panel-footer: @basefontsize;
81 81
82 82 // BORDERS
83 83 @border-thickness: 1px;
84 84 @border-thickness-buttons: 1px;
85 85 @border-thickness-tags: 1px;
86 86 @border-radius: 2px;
87 87 @border-default-color: @grey5;
88 88 @border-highlight-color: @grey4;
89 89
90 90 // SPACING
91 91 @contentpadding: 15px; //padding on left and right of pages
92 92 @pagepadding: 40px; //padding on top and bottom of pages
93 93 @menupadding: 12px; //padding for sidebar and content
94 94 @sidebarpadding: 15px; //spacing between sections
95 95 @space: 40px; //spacing between sections
96 96 @padding: 15px; //padding inside modules
97 97 @textmargin: 20px; //spacing below headers
98 98 @header-padding: 20px;
99 99 @panel-padding: @padding;
100 100 @gravatar-size: 16px; // height/width of gravatar w/o border
101 101
102 102 // ADMIN
103 103 @form-max-width: 750px;
104 104
105 105 // FORMS (new)
106 106 @border-thickness-inputs: 1px;
107 @input-padding: @button-padding; //needs to match button padding
107 @input-padding: .6em; //needs to match button padding
108 108 // TODO: johbo: Needed for working computation of paddings around labels etc.
109 109 // Expected to be replaced once we are done with the form refactoring.
110 110 @input-padding-px: 12px;
111 111 @legend-width: 220px;
112 112 @form-vertical-margin: 20px;
113 113 @form-check-width: 20px;
114 114 @form-radio-width: 10px;
115 115 @form-textcolor: @grey3;
116 116
117 117 // FORMS
118 118 @label-width: 220px;
119 119 //TODO: lisa: Eventually we don't need both of these; remove
120 120 // label-width when legend-width is no longer used
121 121
122 122 @input-border-thickness: @border-thickness;
123 123 @medium-inline-input-width: 115px;
124 124 @input-description-minwidth: 300px;
125 125 @label2-width: 200px;
126 126 @checkboxes-width: 420px;
127 127 @label-summary-minwidth: 80px;
128 128 @search-form-width: 400px;
129 129 @fields-input-m: 400px;
130 130 @fields-input-l: 720px;
131 131
132 132 // BUTTONS
133 133 @button-padding: .7em;
134 134 @button-shadow: 0 1px 1px 0 rgba(0, 0, 0, 0.07);
135 135
136 136
137 137 // DEFAULT WIDTHS
138 138 @wrapper-maxwidth: 1600px;
139 139 @sidebar-width: 145px;
140 140 @sidebar-all-width: @sidebar-width + 2 * @sidebarpadding;
141 141 @sidebar-small-width: 100px;
142 142 @sidebar-small-all-width: @sidebar-small-width + 2 * @sidebarpadding;
143 143 @texteditor-width: 660px;
144 144 @maincontent-maxwidth: 940px;
145 145 @pullrequest-width: 1025px;
146 146 @summary-menu-stats-width: 200px;
147 147
148 148 // SCREEN WIDTHS
149 149 @screen-sm-min: 320px;
150 150
151 151 // For Bootstrap
152 152 @panel-border-radius: @border-radius;
General Comments 0
You need to be logged in to leave comments. Login now