##// END OF EJS Templates
settings: new and improved server announcements fix #676 #1342 #4121
lisaq -
r847:f2758dc8 default
parent child Browse files
Show More
@@ -1,2150 +1,2167 b''
1 //Primary CSS
1 //Primary CSS
2
2
3 //--- IMPORTS ------------------//
3 //--- IMPORTS ------------------//
4
4
5 @import 'helpers';
5 @import 'helpers';
6 @import 'mixins';
6 @import 'mixins';
7 @import 'rcicons';
7 @import 'rcicons';
8 @import 'fonts';
8 @import 'fonts';
9 @import 'variables';
9 @import 'variables';
10 @import 'bootstrap-variables';
10 @import 'bootstrap-variables';
11 @import 'form-bootstrap';
11 @import 'form-bootstrap';
12 @import 'codemirror';
12 @import 'codemirror';
13 @import 'legacy_code_styles';
13 @import 'legacy_code_styles';
14 @import 'progress-bar';
14 @import 'progress-bar';
15
15
16 @import 'type';
16 @import 'type';
17 @import 'alerts';
17 @import 'alerts';
18 @import 'buttons';
18 @import 'buttons';
19 @import 'tags';
19 @import 'tags';
20 @import 'code-block';
20 @import 'code-block';
21 @import 'examples';
21 @import 'examples';
22 @import 'login';
22 @import 'login';
23 @import 'main-content';
23 @import 'main-content';
24 @import 'select2';
24 @import 'select2';
25 @import 'comments';
25 @import 'comments';
26 @import 'panels-bootstrap';
26 @import 'panels-bootstrap';
27 @import 'panels';
27 @import 'panels';
28 @import 'deform';
28 @import 'deform';
29
29
30 //--- BASE ------------------//
30 //--- BASE ------------------//
31 .noscript-error {
31 .noscript-error {
32 top: 0;
32 top: 0;
33 left: 0;
33 left: 0;
34 width: 100%;
34 width: 100%;
35 z-index: 101;
35 z-index: 101;
36 text-align: center;
36 text-align: center;
37 font-family: @text-semibold;
37 font-family: @text-semibold;
38 font-size: 120%;
38 font-size: 120%;
39 color: white;
39 color: white;
40 background-color: @alert2;
40 background-color: @alert2;
41 padding: 5px 0 5px 0;
41 padding: 5px 0 5px 0;
42 }
42 }
43
43
44 html {
44 html {
45 display: table;
45 display: table;
46 height: 100%;
46 height: 100%;
47 width: 100%;
47 width: 100%;
48 }
48 }
49
49
50 body {
50 body {
51 display: table-cell;
51 display: table-cell;
52 width: 100%;
52 width: 100%;
53 }
53 }
54
54
55 //--- LAYOUT ------------------//
55 //--- LAYOUT ------------------//
56
56
57 .hidden{
57 .hidden{
58 display: none !important;
58 display: none !important;
59 }
59 }
60
60
61 .box{
61 .box{
62 float: left;
62 float: left;
63 width: 100%;
63 width: 100%;
64 }
64 }
65
65
66 .browser-header {
66 .browser-header {
67 clear: both;
67 clear: both;
68 }
68 }
69 .main {
69 .main {
70 clear: both;
70 clear: both;
71 padding:0 0 @pagepadding;
71 padding:0 0 @pagepadding;
72 height: auto;
72 height: auto;
73
73
74 &:after { //clearfix
74 &:after { //clearfix
75 content:"";
75 content:"";
76 clear:both;
76 clear:both;
77 width:100%;
77 width:100%;
78 display:block;
78 display:block;
79 }
79 }
80 }
80 }
81
81
82 .action-link{
82 .action-link{
83 margin-left: @padding;
83 margin-left: @padding;
84 padding-left: @padding;
84 padding-left: @padding;
85 border-left: @border-thickness solid @border-default-color;
85 border-left: @border-thickness solid @border-default-color;
86 }
86 }
87
87
88 input + .action-link, .action-link.first{
88 input + .action-link, .action-link.first{
89 border-left: none;
89 border-left: none;
90 }
90 }
91
91
92 .action-link.last{
92 .action-link.last{
93 margin-right: @padding;
93 margin-right: @padding;
94 padding-right: @padding;
94 padding-right: @padding;
95 }
95 }
96
96
97 .action-link.active,
97 .action-link.active,
98 .action-link.active a{
98 .action-link.active a{
99 color: @grey4;
99 color: @grey4;
100 }
100 }
101
101
102 ul.simple-list{
102 ul.simple-list{
103 list-style: none;
103 list-style: none;
104 margin: 0;
104 margin: 0;
105 padding: 0;
105 padding: 0;
106 }
106 }
107
107
108 .main-content {
108 .main-content {
109 padding-bottom: @pagepadding;
109 padding-bottom: @pagepadding;
110 }
110 }
111
111
112 .wrapper {
112 .wrapper {
113 position: relative;
113 position: relative;
114 max-width: @wrapper-maxwidth;
114 max-width: @wrapper-maxwidth;
115 margin: 0 auto;
115 margin: 0 auto;
116 }
116 }
117
117
118 #content {
118 #content {
119 clear: both;
119 clear: both;
120 padding: 0 @contentpadding;
120 padding: 0 @contentpadding;
121 }
121 }
122
122
123 .advanced-settings-fields{
123 .advanced-settings-fields{
124 input{
124 input{
125 margin-left: @textmargin;
125 margin-left: @textmargin;
126 margin-right: @padding/2;
126 margin-right: @padding/2;
127 }
127 }
128 }
128 }
129
129
130 .cs_files_title {
130 .cs_files_title {
131 margin: @pagepadding 0 0;
131 margin: @pagepadding 0 0;
132 }
132 }
133
133
134 input.inline[type="file"] {
134 input.inline[type="file"] {
135 display: inline;
135 display: inline;
136 }
136 }
137
137
138 .error_page {
138 .error_page {
139 margin: 10% auto;
139 margin: 10% auto;
140
140
141 h1 {
141 h1 {
142 color: @grey2;
142 color: @grey2;
143 }
143 }
144
144
145 .alert {
145 .alert {
146 margin: @padding 0;
146 margin: @padding 0;
147 }
147 }
148
148
149 .error-branding {
149 .error-branding {
150 font-family: @text-semibold;
150 font-family: @text-semibold;
151 color: @grey4;
151 color: @grey4;
152 }
152 }
153
153
154 .error_message {
154 .error_message {
155 font-family: @text-regular;
155 font-family: @text-regular;
156 }
156 }
157
157
158 .sidebar {
158 .sidebar {
159 min-height: 275px;
159 min-height: 275px;
160 margin: 0;
160 margin: 0;
161 padding: 0 0 @sidebarpadding @sidebarpadding;
161 padding: 0 0 @sidebarpadding @sidebarpadding;
162 border: none;
162 border: none;
163 }
163 }
164
164
165 .main-content {
165 .main-content {
166 position: relative;
166 position: relative;
167 margin: 0 @sidebarpadding @sidebarpadding;
167 margin: 0 @sidebarpadding @sidebarpadding;
168 padding: 0 0 0 @sidebarpadding;
168 padding: 0 0 0 @sidebarpadding;
169 border-left: @border-thickness solid @grey5;
169 border-left: @border-thickness solid @grey5;
170
170
171 @media (max-width:767px) {
171 @media (max-width:767px) {
172 clear: both;
172 clear: both;
173 width: 100%;
173 width: 100%;
174 margin: 0;
174 margin: 0;
175 border: none;
175 border: none;
176 }
176 }
177 }
177 }
178
178
179 .inner-column {
179 .inner-column {
180 float: left;
180 float: left;
181 width: 29.75%;
181 width: 29.75%;
182 min-height: 150px;
182 min-height: 150px;
183 margin: @sidebarpadding 2% 0 0;
183 margin: @sidebarpadding 2% 0 0;
184 padding: 0 2% 0 0;
184 padding: 0 2% 0 0;
185 border-right: @border-thickness solid @grey5;
185 border-right: @border-thickness solid @grey5;
186
186
187 @media (max-width:767px) {
187 @media (max-width:767px) {
188 clear: both;
188 clear: both;
189 width: 100%;
189 width: 100%;
190 border: none;
190 border: none;
191 }
191 }
192
192
193 ul {
193 ul {
194 padding-left: 1.25em;
194 padding-left: 1.25em;
195 }
195 }
196
196
197 &:last-child {
197 &:last-child {
198 margin: @sidebarpadding 0 0;
198 margin: @sidebarpadding 0 0;
199 border: none;
199 border: none;
200 }
200 }
201
201
202 h4 {
202 h4 {
203 margin: 0 0 @padding;
203 margin: 0 0 @padding;
204 font-family: @text-semibold;
204 font-family: @text-semibold;
205 }
205 }
206 }
206 }
207 }
207 }
208 .error-page-logo {
208 .error-page-logo {
209 width: 130px;
209 width: 130px;
210 height: 160px;
210 height: 160px;
211 }
211 }
212
212
213 // HEADER
213 // HEADER
214 .header {
214 .header {
215
215
216 // TODO: johbo: Fix login pages, so that they work without a min-height
216 // TODO: johbo: Fix login pages, so that they work without a min-height
217 // for the header and then remove the min-height. I chose a smaller value
217 // for the header and then remove the min-height. I chose a smaller value
218 // intentionally here to avoid rendering issues in the main navigation.
218 // intentionally here to avoid rendering issues in the main navigation.
219 min-height: 49px;
219 min-height: 49px;
220
220
221 position: relative;
221 position: relative;
222 vertical-align: bottom;
222 vertical-align: bottom;
223 padding: 0 @header-padding;
223 padding: 0 @header-padding;
224 background-color: @grey2;
224 background-color: @grey2;
225 color: @grey5;
225 color: @grey5;
226
226
227 .title {
227 .title {
228 overflow: visible;
228 overflow: visible;
229 }
229 }
230
230
231 &:before,
231 &:before,
232 &:after {
232 &:after {
233 content: "";
233 content: "";
234 clear: both;
234 clear: both;
235 width: 100%;
235 width: 100%;
236 }
236 }
237
237
238 // TODO: johbo: Avoids breaking "Repositories" chooser
238 // TODO: johbo: Avoids breaking "Repositories" chooser
239 .select2-container .select2-choice .select2-arrow {
239 .select2-container .select2-choice .select2-arrow {
240 display: none;
240 display: none;
241 }
241 }
242 }
242 }
243
243
244 #header-inner {
244 #header-inner {
245 &.title {
245 &.title {
246 margin: 0;
246 margin: 0;
247 }
247 }
248 &:before,
248 &:before,
249 &:after {
249 &:after {
250 content: "";
250 content: "";
251 clear: both;
251 clear: both;
252 }
252 }
253 }
253 }
254
254
255 // Gists
255 // Gists
256 #files_data {
256 #files_data {
257 clear: both; //for firefox
257 clear: both; //for firefox
258 }
258 }
259 #gistid {
259 #gistid {
260 margin-right: @padding;
260 margin-right: @padding;
261 }
261 }
262
262
263 // Global Settings Editor
263 // Global Settings Editor
264 .textarea.editor {
264 .textarea.editor {
265 float: left;
265 float: left;
266 position: relative;
266 position: relative;
267 max-width: @texteditor-width;
267 max-width: @texteditor-width;
268
268
269 select {
269 select {
270 position: absolute;
270 position: absolute;
271 top:10px;
271 top:10px;
272 right:0;
272 right:0;
273 }
273 }
274
274
275 .CodeMirror {
275 .CodeMirror {
276 margin: 0;
276 margin: 0;
277 }
277 }
278
278
279 .help-block {
279 .help-block {
280 margin: 0 0 @padding;
280 margin: 0 0 @padding;
281 padding:.5em;
281 padding:.5em;
282 background-color: @grey6;
282 background-color: @grey6;
283 }
283 }
284 }
284 }
285
285
286 ul.auth_plugins {
286 ul.auth_plugins {
287 margin: @padding 0 @padding @legend-width;
287 margin: @padding 0 @padding @legend-width;
288 padding: 0;
288 padding: 0;
289
289
290 li {
290 li {
291 margin-bottom: @padding;
291 margin-bottom: @padding;
292 line-height: 1em;
292 line-height: 1em;
293 list-style-type: none;
293 list-style-type: none;
294
294
295 .auth_buttons .btn {
295 .auth_buttons .btn {
296 margin-right: @padding;
296 margin-right: @padding;
297 }
297 }
298
298
299 &:before { content: none; }
299 &:before { content: none; }
300 }
300 }
301 }
301 }
302
302
303
303
304 // My Account PR list
304 // My Account PR list
305
305
306 #show_closed {
306 #show_closed {
307 margin: 0 1em 0 0;
307 margin: 0 1em 0 0;
308 }
308 }
309
309
310 .pullrequestlist {
310 .pullrequestlist {
311 .closed {
311 .closed {
312 background-color: @grey6;
312 background-color: @grey6;
313 }
313 }
314 .td-status {
314 .td-status {
315 padding-left: .5em;
315 padding-left: .5em;
316 }
316 }
317 .log-container .truncate {
317 .log-container .truncate {
318 height: 2.75em;
318 height: 2.75em;
319 white-space: pre-line;
319 white-space: pre-line;
320 }
320 }
321 table.rctable .user {
321 table.rctable .user {
322 padding-left: 0;
322 padding-left: 0;
323 }
323 }
324 table.rctable {
324 table.rctable {
325 td.td-description,
325 td.td-description,
326 .rc-user {
326 .rc-user {
327 min-width: auto;
327 min-width: auto;
328 }
328 }
329 }
329 }
330 }
330 }
331
331
332 // Pull Requests
332 // Pull Requests
333
333
334 .pullrequests_section_head {
334 .pullrequests_section_head {
335 display: block;
335 display: block;
336 clear: both;
336 clear: both;
337 margin: @padding 0;
337 margin: @padding 0;
338 font-family: @text-bold;
338 font-family: @text-bold;
339 }
339 }
340
340
341 .pr-origininfo, .pr-targetinfo {
341 .pr-origininfo, .pr-targetinfo {
342 position: relative;
342 position: relative;
343
343
344 .tag {
344 .tag {
345 display: inline-block;
345 display: inline-block;
346 margin: 0 1em .5em 0;
346 margin: 0 1em .5em 0;
347 }
347 }
348
348
349 .clone-url {
349 .clone-url {
350 display: inline-block;
350 display: inline-block;
351 margin: 0 0 .5em 0;
351 margin: 0 0 .5em 0;
352 padding: 0;
352 padding: 0;
353 line-height: 1.2em;
353 line-height: 1.2em;
354 }
354 }
355 }
355 }
356
356
357 .pr-pullinfo {
357 .pr-pullinfo {
358 clear: both;
358 clear: both;
359 margin: .5em 0;
359 margin: .5em 0;
360 }
360 }
361
361
362 #pr-title-input {
362 #pr-title-input {
363 width: 72%;
363 width: 72%;
364 font-size: 1em;
364 font-size: 1em;
365 font-family: @text-bold;
365 font-family: @text-bold;
366 margin: 0;
366 margin: 0;
367 padding: 0 0 0 @padding/4;
367 padding: 0 0 0 @padding/4;
368 line-height: 1.7em;
368 line-height: 1.7em;
369 color: @text-color;
369 color: @text-color;
370 letter-spacing: .02em;
370 letter-spacing: .02em;
371 }
371 }
372
372
373 #pullrequest_title {
373 #pullrequest_title {
374 width: 100%;
374 width: 100%;
375 box-sizing: border-box;
375 box-sizing: border-box;
376 }
376 }
377
377
378 #pr_open_message {
378 #pr_open_message {
379 border: @border-thickness solid #fff;
379 border: @border-thickness solid #fff;
380 border-radius: @border-radius;
380 border-radius: @border-radius;
381 padding: @padding-large-vertical @padding-large-vertical @padding-large-vertical 0;
381 padding: @padding-large-vertical @padding-large-vertical @padding-large-vertical 0;
382 text-align: right;
382 text-align: right;
383 overflow: hidden;
383 overflow: hidden;
384 }
384 }
385
385
386 .pr-submit-button {
386 .pr-submit-button {
387 float: right;
387 float: right;
388 margin: 0 0 0 5px;
388 margin: 0 0 0 5px;
389 }
389 }
390
390
391 .pr-spacing-container {
391 .pr-spacing-container {
392 padding: 20px;
392 padding: 20px;
393 clear: both
393 clear: both
394 }
394 }
395
395
396 #pr-description-input {
396 #pr-description-input {
397 margin-bottom: 0;
397 margin-bottom: 0;
398 }
398 }
399
399
400 .pr-description-label {
400 .pr-description-label {
401 vertical-align: top;
401 vertical-align: top;
402 }
402 }
403
403
404 .perms_section_head {
404 .perms_section_head {
405 min-width: 625px;
405 min-width: 625px;
406
406
407 h2 {
407 h2 {
408 margin-bottom: 0;
408 margin-bottom: 0;
409 }
409 }
410
410
411 .label-checkbox {
411 .label-checkbox {
412 float: left;
412 float: left;
413 }
413 }
414
414
415 &.field {
415 &.field {
416 margin: @space 0 @padding;
416 margin: @space 0 @padding;
417 }
417 }
418
418
419 &:first-child.field {
419 &:first-child.field {
420 margin-top: 0;
420 margin-top: 0;
421
421
422 .label {
422 .label {
423 margin-top: 0;
423 margin-top: 0;
424 padding-top: 0;
424 padding-top: 0;
425 }
425 }
426
426
427 .radios {
427 .radios {
428 padding-top: 0;
428 padding-top: 0;
429 }
429 }
430 }
430 }
431
431
432 .radios {
432 .radios {
433 float: right;
433 float: right;
434 position: relative;
434 position: relative;
435 width: 405px;
435 width: 405px;
436 }
436 }
437 }
437 }
438
438
439 //--- MODULES ------------------//
439 //--- MODULES ------------------//
440
440
441
441
442 // Server Announcement
443 #server-announcement {
444 width: 95%;
445 margin: @padding auto;
446 padding: @padding;
447 border-width: 2px;
448 border-style: solid;
449 .border-radius(2px);
450 font-family: @text-bold;
451
452 &.info { border-color: @alert4; background-color: @alert4-inner; }
453 &.warning { border-color: @alert3; background-color: @alert3-inner; }
454 &.error { border-color: @alert2; background-color: @alert2-inner; }
455 &.success { border-color: @alert1; background-color: @alert1-inner; }
456 &.neutral { border-color: @grey3; background-color: @grey6; }
457 }
458
442 // Fixed Sidebar Column
459 // Fixed Sidebar Column
443 .sidebar-col-wrapper {
460 .sidebar-col-wrapper {
444 padding-left: @sidebar-all-width;
461 padding-left: @sidebar-all-width;
445
462
446 .sidebar {
463 .sidebar {
447 width: @sidebar-width;
464 width: @sidebar-width;
448 margin-left: -@sidebar-all-width;
465 margin-left: -@sidebar-all-width;
449 }
466 }
450 }
467 }
451
468
452 .sidebar-col-wrapper.scw-small {
469 .sidebar-col-wrapper.scw-small {
453 padding-left: @sidebar-small-all-width;
470 padding-left: @sidebar-small-all-width;
454
471
455 .sidebar {
472 .sidebar {
456 width: @sidebar-small-width;
473 width: @sidebar-small-width;
457 margin-left: -@sidebar-small-all-width;
474 margin-left: -@sidebar-small-all-width;
458 }
475 }
459 }
476 }
460
477
461
478
462 // FOOTER
479 // FOOTER
463 #footer {
480 #footer {
464 padding: 0;
481 padding: 0;
465 text-align: center;
482 text-align: center;
466 vertical-align: middle;
483 vertical-align: middle;
467 color: @grey2;
484 color: @grey2;
468 background-color: @grey6;
485 background-color: @grey6;
469
486
470 p {
487 p {
471 margin: 0;
488 margin: 0;
472 padding: 1em;
489 padding: 1em;
473 line-height: 1em;
490 line-height: 1em;
474 }
491 }
475
492
476 .server-instance { //server instance
493 .server-instance { //server instance
477 display: none;
494 display: none;
478 }
495 }
479
496
480 .title {
497 .title {
481 float: none;
498 float: none;
482 margin: 0 auto;
499 margin: 0 auto;
483 }
500 }
484 }
501 }
485
502
486 button.close {
503 button.close {
487 padding: 0;
504 padding: 0;
488 cursor: pointer;
505 cursor: pointer;
489 background: transparent;
506 background: transparent;
490 border: 0;
507 border: 0;
491 .box-shadow(none);
508 .box-shadow(none);
492 -webkit-appearance: none;
509 -webkit-appearance: none;
493 }
510 }
494
511
495 .close {
512 .close {
496 float: right;
513 float: right;
497 font-size: 21px;
514 font-size: 21px;
498 font-family: @text-bootstrap;
515 font-family: @text-bootstrap;
499 line-height: 1em;
516 line-height: 1em;
500 font-weight: bold;
517 font-weight: bold;
501 color: @grey2;
518 color: @grey2;
502
519
503 &:hover,
520 &:hover,
504 &:focus {
521 &:focus {
505 color: @grey1;
522 color: @grey1;
506 text-decoration: none;
523 text-decoration: none;
507 cursor: pointer;
524 cursor: pointer;
508 }
525 }
509 }
526 }
510
527
511 // GRID
528 // GRID
512 .sorting,
529 .sorting,
513 .sorting_desc,
530 .sorting_desc,
514 .sorting_asc {
531 .sorting_asc {
515 cursor: pointer;
532 cursor: pointer;
516 }
533 }
517 .sorting_desc:after {
534 .sorting_desc:after {
518 content: "\00A0\25B2";
535 content: "\00A0\25B2";
519 font-size: .75em;
536 font-size: .75em;
520 }
537 }
521 .sorting_asc:after {
538 .sorting_asc:after {
522 content: "\00A0\25BC";
539 content: "\00A0\25BC";
523 font-size: .68em;
540 font-size: .68em;
524 }
541 }
525
542
526
543
527 .user_auth_tokens {
544 .user_auth_tokens {
528
545
529 &.truncate {
546 &.truncate {
530 white-space: nowrap;
547 white-space: nowrap;
531 overflow: hidden;
548 overflow: hidden;
532 text-overflow: ellipsis;
549 text-overflow: ellipsis;
533 }
550 }
534
551
535 .fields .field .input {
552 .fields .field .input {
536 margin: 0;
553 margin: 0;
537 }
554 }
538
555
539 input#description {
556 input#description {
540 width: 100px;
557 width: 100px;
541 margin: 0;
558 margin: 0;
542 }
559 }
543
560
544 .drop-menu {
561 .drop-menu {
545 // TODO: johbo: Remove this, should work out of the box when
562 // TODO: johbo: Remove this, should work out of the box when
546 // having multiple inputs inline
563 // having multiple inputs inline
547 margin: 0 0 0 5px;
564 margin: 0 0 0 5px;
548 }
565 }
549 }
566 }
550 #user_list_table {
567 #user_list_table {
551 .closed {
568 .closed {
552 background-color: @grey6;
569 background-color: @grey6;
553 }
570 }
554 }
571 }
555
572
556
573
557 input {
574 input {
558 &.disabled {
575 &.disabled {
559 opacity: .5;
576 opacity: .5;
560 }
577 }
561 }
578 }
562
579
563 // remove extra padding in firefox
580 // remove extra padding in firefox
564 input::-moz-focus-inner { border:0; padding:0 }
581 input::-moz-focus-inner { border:0; padding:0 }
565
582
566 .adjacent input {
583 .adjacent input {
567 margin-bottom: @padding;
584 margin-bottom: @padding;
568 }
585 }
569
586
570 .permissions_boxes {
587 .permissions_boxes {
571 display: block;
588 display: block;
572 }
589 }
573
590
574 //TODO: lisa: this should be in tables
591 //TODO: lisa: this should be in tables
575 .show_more_col {
592 .show_more_col {
576 width: 20px;
593 width: 20px;
577 }
594 }
578
595
579 //FORMS
596 //FORMS
580
597
581 .medium-inline,
598 .medium-inline,
582 input#description.medium-inline {
599 input#description.medium-inline {
583 display: inline;
600 display: inline;
584 width: @medium-inline-input-width;
601 width: @medium-inline-input-width;
585 min-width: 100px;
602 min-width: 100px;
586 }
603 }
587
604
588 select {
605 select {
589 //reset
606 //reset
590 -webkit-appearance: none;
607 -webkit-appearance: none;
591 -moz-appearance: none;
608 -moz-appearance: none;
592
609
593 display: inline-block;
610 display: inline-block;
594 height: 28px;
611 height: 28px;
595 width: auto;
612 width: auto;
596 margin: 0 @padding @padding 0;
613 margin: 0 @padding @padding 0;
597 padding: 0 18px 0 8px;
614 padding: 0 18px 0 8px;
598 line-height:1em;
615 line-height:1em;
599 font-size: @basefontsize;
616 font-size: @basefontsize;
600 border: @border-thickness solid @rcblue;
617 border: @border-thickness solid @rcblue;
601 background:white url("../images/dt-arrow-dn.png") no-repeat 100% 50%;
618 background:white url("../images/dt-arrow-dn.png") no-repeat 100% 50%;
602 color: @rcblue;
619 color: @rcblue;
603
620
604 &:after {
621 &:after {
605 content: "\00A0\25BE";
622 content: "\00A0\25BE";
606 }
623 }
607
624
608 &:focus {
625 &:focus {
609 outline: none;
626 outline: none;
610 }
627 }
611 }
628 }
612
629
613 option {
630 option {
614 &:focus {
631 &:focus {
615 outline: none;
632 outline: none;
616 }
633 }
617 }
634 }
618
635
619 input,
636 input,
620 textarea {
637 textarea {
621 padding: @input-padding;
638 padding: @input-padding;
622 border: @input-border-thickness solid @border-highlight-color;
639 border: @input-border-thickness solid @border-highlight-color;
623 .border-radius (@border-radius);
640 .border-radius (@border-radius);
624 font-family: @text-light;
641 font-family: @text-light;
625 font-size: @basefontsize;
642 font-size: @basefontsize;
626
643
627 &.input-sm {
644 &.input-sm {
628 padding: 5px;
645 padding: 5px;
629 }
646 }
630
647
631 &#description {
648 &#description {
632 min-width: @input-description-minwidth;
649 min-width: @input-description-minwidth;
633 min-height: 1em;
650 min-height: 1em;
634 padding: 10px;
651 padding: 10px;
635 }
652 }
636 }
653 }
637
654
638 .field-sm {
655 .field-sm {
639 input,
656 input,
640 textarea {
657 textarea {
641 padding: 5px;
658 padding: 5px;
642 }
659 }
643 }
660 }
644
661
645 textarea {
662 textarea {
646 display: block;
663 display: block;
647 clear: both;
664 clear: both;
648 width: 100%;
665 width: 100%;
649 min-height: 100px;
666 min-height: 100px;
650 margin-bottom: @padding;
667 margin-bottom: @padding;
651 .box-sizing(border-box);
668 .box-sizing(border-box);
652 overflow: auto;
669 overflow: auto;
653 }
670 }
654
671
655 label {
672 label {
656 font-family: @text-light;
673 font-family: @text-light;
657 }
674 }
658
675
659 // GRAVATARS
676 // GRAVATARS
660 // centers gravatar on username to the right
677 // centers gravatar on username to the right
661
678
662 .gravatar {
679 .gravatar {
663 display: inline;
680 display: inline;
664 min-width: 16px;
681 min-width: 16px;
665 min-height: 16px;
682 min-height: 16px;
666 margin: -5px 0;
683 margin: -5px 0;
667 padding: 0;
684 padding: 0;
668 line-height: 1em;
685 line-height: 1em;
669 border: 1px solid @grey4;
686 border: 1px solid @grey4;
670
687
671 &.gravatar-large {
688 &.gravatar-large {
672 margin: -0.5em .25em -0.5em 0;
689 margin: -0.5em .25em -0.5em 0;
673 }
690 }
674
691
675 & + .user {
692 & + .user {
676 display: inline;
693 display: inline;
677 margin: 0;
694 margin: 0;
678 padding: 0 0 0 .17em;
695 padding: 0 0 0 .17em;
679 line-height: 1em;
696 line-height: 1em;
680 }
697 }
681 }
698 }
682
699
683 .user-inline-data {
700 .user-inline-data {
684 display: inline-block;
701 display: inline-block;
685 float: left;
702 float: left;
686 padding-left: .5em;
703 padding-left: .5em;
687 line-height: 1.3em;
704 line-height: 1.3em;
688 }
705 }
689
706
690 .rc-user { // gravatar + user wrapper
707 .rc-user { // gravatar + user wrapper
691 float: left;
708 float: left;
692 position: relative;
709 position: relative;
693 min-width: 100px;
710 min-width: 100px;
694 max-width: 200px;
711 max-width: 200px;
695 min-height: (@gravatar-size + @border-thickness * 2); // account for border
712 min-height: (@gravatar-size + @border-thickness * 2); // account for border
696 display: block;
713 display: block;
697 padding: 0 0 0 (@gravatar-size + @basefontsize/2 + @border-thickness * 2);
714 padding: 0 0 0 (@gravatar-size + @basefontsize/2 + @border-thickness * 2);
698
715
699
716
700 .gravatar {
717 .gravatar {
701 display: block;
718 display: block;
702 position: absolute;
719 position: absolute;
703 top: 0;
720 top: 0;
704 left: 0;
721 left: 0;
705 min-width: @gravatar-size;
722 min-width: @gravatar-size;
706 min-height: @gravatar-size;
723 min-height: @gravatar-size;
707 margin: 0;
724 margin: 0;
708 }
725 }
709
726
710 .user {
727 .user {
711 display: block;
728 display: block;
712 max-width: 175px;
729 max-width: 175px;
713 padding-top: 2px;
730 padding-top: 2px;
714 overflow: hidden;
731 overflow: hidden;
715 text-overflow: ellipsis;
732 text-overflow: ellipsis;
716 }
733 }
717 }
734 }
718
735
719 .gist-gravatar,
736 .gist-gravatar,
720 .journal_container {
737 .journal_container {
721 .gravatar-large {
738 .gravatar-large {
722 margin: 0 .5em -10px 0;
739 margin: 0 .5em -10px 0;
723 }
740 }
724 }
741 }
725
742
726
743
727 // ADMIN SETTINGS
744 // ADMIN SETTINGS
728
745
729 // Tag Patterns
746 // Tag Patterns
730 .tag_patterns {
747 .tag_patterns {
731 .tag_input {
748 .tag_input {
732 margin-bottom: @padding;
749 margin-bottom: @padding;
733 }
750 }
734 }
751 }
735
752
736 .locked_input {
753 .locked_input {
737 position: relative;
754 position: relative;
738
755
739 input {
756 input {
740 display: inline;
757 display: inline;
741 margin-top: 3px;
758 margin-top: 3px;
742 }
759 }
743
760
744 br {
761 br {
745 display: none;
762 display: none;
746 }
763 }
747
764
748 .error-message {
765 .error-message {
749 float: left;
766 float: left;
750 width: 100%;
767 width: 100%;
751 }
768 }
752
769
753 .lock_input_button {
770 .lock_input_button {
754 display: inline;
771 display: inline;
755 }
772 }
756
773
757 .help-block {
774 .help-block {
758 clear: both;
775 clear: both;
759 }
776 }
760 }
777 }
761
778
762 // Notifications
779 // Notifications
763
780
764 .notifications_buttons {
781 .notifications_buttons {
765 margin: 0 0 @space 0;
782 margin: 0 0 @space 0;
766 padding: 0;
783 padding: 0;
767
784
768 .btn {
785 .btn {
769 display: inline-block;
786 display: inline-block;
770 }
787 }
771 }
788 }
772
789
773 .notification-list {
790 .notification-list {
774
791
775 div {
792 div {
776 display: inline-block;
793 display: inline-block;
777 vertical-align: middle;
794 vertical-align: middle;
778 }
795 }
779
796
780 .container {
797 .container {
781 display: block;
798 display: block;
782 margin: 0 0 @padding 0;
799 margin: 0 0 @padding 0;
783 }
800 }
784
801
785 .delete-notifications {
802 .delete-notifications {
786 margin-left: @padding;
803 margin-left: @padding;
787 text-align: right;
804 text-align: right;
788 cursor: pointer;
805 cursor: pointer;
789 }
806 }
790
807
791 .read-notifications {
808 .read-notifications {
792 margin-left: @padding/2;
809 margin-left: @padding/2;
793 text-align: right;
810 text-align: right;
794 width: 35px;
811 width: 35px;
795 cursor: pointer;
812 cursor: pointer;
796 }
813 }
797
814
798 .icon-minus-sign {
815 .icon-minus-sign {
799 color: @alert2;
816 color: @alert2;
800 }
817 }
801
818
802 .icon-ok-sign {
819 .icon-ok-sign {
803 color: @alert1;
820 color: @alert1;
804 }
821 }
805 }
822 }
806
823
807 .user_settings {
824 .user_settings {
808 float: left;
825 float: left;
809 clear: both;
826 clear: both;
810 display: block;
827 display: block;
811 width: 100%;
828 width: 100%;
812
829
813 .gravatar_box {
830 .gravatar_box {
814 margin-bottom: @padding;
831 margin-bottom: @padding;
815
832
816 &:after {
833 &:after {
817 content: " ";
834 content: " ";
818 clear: both;
835 clear: both;
819 width: 100%;
836 width: 100%;
820 }
837 }
821 }
838 }
822
839
823 .fields .field {
840 .fields .field {
824 clear: both;
841 clear: both;
825 }
842 }
826 }
843 }
827
844
828 .advanced_settings {
845 .advanced_settings {
829 margin-bottom: @space;
846 margin-bottom: @space;
830
847
831 .help-block {
848 .help-block {
832 margin-left: 0;
849 margin-left: 0;
833 }
850 }
834
851
835 button + .help-block {
852 button + .help-block {
836 margin-top: @padding;
853 margin-top: @padding;
837 }
854 }
838 }
855 }
839
856
840 // admin settings radio buttons and labels
857 // admin settings radio buttons and labels
841 .label-2 {
858 .label-2 {
842 float: left;
859 float: left;
843 width: @label2-width;
860 width: @label2-width;
844
861
845 label {
862 label {
846 color: @grey1;
863 color: @grey1;
847 }
864 }
848 }
865 }
849 .checkboxes {
866 .checkboxes {
850 float: left;
867 float: left;
851 width: @checkboxes-width;
868 width: @checkboxes-width;
852 margin-bottom: @padding;
869 margin-bottom: @padding;
853
870
854 .checkbox {
871 .checkbox {
855 width: 100%;
872 width: 100%;
856
873
857 label {
874 label {
858 margin: 0;
875 margin: 0;
859 padding: 0;
876 padding: 0;
860 }
877 }
861 }
878 }
862
879
863 .checkbox + .checkbox {
880 .checkbox + .checkbox {
864 display: inline-block;
881 display: inline-block;
865 }
882 }
866
883
867 label {
884 label {
868 margin-right: 1em;
885 margin-right: 1em;
869 }
886 }
870 }
887 }
871
888
872 // CHANGELOG
889 // CHANGELOG
873 .container_header {
890 .container_header {
874 float: left;
891 float: left;
875 display: block;
892 display: block;
876 width: 100%;
893 width: 100%;
877 margin: @padding 0 @padding;
894 margin: @padding 0 @padding;
878
895
879 #filter_changelog {
896 #filter_changelog {
880 float: left;
897 float: left;
881 margin-right: @padding;
898 margin-right: @padding;
882 }
899 }
883
900
884 .breadcrumbs_light {
901 .breadcrumbs_light {
885 display: inline-block;
902 display: inline-block;
886 }
903 }
887 }
904 }
888
905
889 .info_box {
906 .info_box {
890 float: right;
907 float: right;
891 }
908 }
892
909
893
910
894 #graph_nodes {
911 #graph_nodes {
895 padding-top: 43px;
912 padding-top: 43px;
896 }
913 }
897
914
898 #graph_content{
915 #graph_content{
899
916
900 // adjust for table headers so that graph renders properly
917 // adjust for table headers so that graph renders properly
901 // #graph_nodes padding - table cell padding
918 // #graph_nodes padding - table cell padding
902 padding-top: (@space - (@basefontsize * 2.4));
919 padding-top: (@space - (@basefontsize * 2.4));
903
920
904 &.graph_full_width {
921 &.graph_full_width {
905 width: 100%;
922 width: 100%;
906 max-width: 100%;
923 max-width: 100%;
907 }
924 }
908 }
925 }
909
926
910 #graph {
927 #graph {
911 .flag_status {
928 .flag_status {
912 margin: 0;
929 margin: 0;
913 }
930 }
914
931
915 .pagination-left {
932 .pagination-left {
916 float: left;
933 float: left;
917 clear: both;
934 clear: both;
918 }
935 }
919
936
920 .log-container {
937 .log-container {
921 max-width: 345px;
938 max-width: 345px;
922
939
923 .message{
940 .message{
924 max-width: 340px;
941 max-width: 340px;
925 }
942 }
926 }
943 }
927
944
928 .graph-col-wrapper {
945 .graph-col-wrapper {
929 padding-left: 110px;
946 padding-left: 110px;
930
947
931 #graph_nodes {
948 #graph_nodes {
932 width: 100px;
949 width: 100px;
933 margin-left: -110px;
950 margin-left: -110px;
934 float: left;
951 float: left;
935 clear: left;
952 clear: left;
936 }
953 }
937 }
954 }
938 }
955 }
939
956
940 #filter_changelog {
957 #filter_changelog {
941 float: left;
958 float: left;
942 }
959 }
943
960
944
961
945 //--- THEME ------------------//
962 //--- THEME ------------------//
946
963
947 #logo {
964 #logo {
948 float: left;
965 float: left;
949 margin: 9px 0 0 0;
966 margin: 9px 0 0 0;
950
967
951 .header {
968 .header {
952 background-color: transparent;
969 background-color: transparent;
953 }
970 }
954
971
955 a {
972 a {
956 display: inline-block;
973 display: inline-block;
957 }
974 }
958
975
959 img {
976 img {
960 height:30px;
977 height:30px;
961 }
978 }
962 }
979 }
963
980
964 .logo-wrapper {
981 .logo-wrapper {
965 float:left;
982 float:left;
966 }
983 }
967
984
968 .branding{
985 .branding{
969 float: left;
986 float: left;
970 padding: 9px 2px;
987 padding: 9px 2px;
971 line-height: 1em;
988 line-height: 1em;
972 font-size: @navigation-fontsize;
989 font-size: @navigation-fontsize;
973 }
990 }
974
991
975 img {
992 img {
976 border: none;
993 border: none;
977 outline: none;
994 outline: none;
978 }
995 }
979 user-profile-header
996 user-profile-header
980 label {
997 label {
981
998
982 input[type="checkbox"] {
999 input[type="checkbox"] {
983 margin-right: 1em;
1000 margin-right: 1em;
984 }
1001 }
985 input[type="radio"] {
1002 input[type="radio"] {
986 margin-right: 1em;
1003 margin-right: 1em;
987 }
1004 }
988 }
1005 }
989
1006
990 .flag_status {
1007 .flag_status {
991 margin: 2px 8px 6px 2px;
1008 margin: 2px 8px 6px 2px;
992 &.under_review {
1009 &.under_review {
993 .circle(5px, @alert3);
1010 .circle(5px, @alert3);
994 }
1011 }
995 &.approved {
1012 &.approved {
996 .circle(5px, @alert1);
1013 .circle(5px, @alert1);
997 }
1014 }
998 &.rejected,
1015 &.rejected,
999 &.forced_closed{
1016 &.forced_closed{
1000 .circle(5px, @alert2);
1017 .circle(5px, @alert2);
1001 }
1018 }
1002 &.not_reviewed {
1019 &.not_reviewed {
1003 .circle(5px, @grey5);
1020 .circle(5px, @grey5);
1004 }
1021 }
1005 }
1022 }
1006
1023
1007 .flag_status_comment_box {
1024 .flag_status_comment_box {
1008 margin: 5px 6px 0px 2px;
1025 margin: 5px 6px 0px 2px;
1009 }
1026 }
1010 .test_pattern_preview {
1027 .test_pattern_preview {
1011 margin: @space 0;
1028 margin: @space 0;
1012
1029
1013 p {
1030 p {
1014 margin-bottom: 0;
1031 margin-bottom: 0;
1015 border-bottom: @border-thickness solid @border-default-color;
1032 border-bottom: @border-thickness solid @border-default-color;
1016 color: @grey3;
1033 color: @grey3;
1017 }
1034 }
1018
1035
1019 .btn {
1036 .btn {
1020 margin-bottom: @padding;
1037 margin-bottom: @padding;
1021 }
1038 }
1022 }
1039 }
1023 #test_pattern_result {
1040 #test_pattern_result {
1024 display: none;
1041 display: none;
1025 &:extend(pre);
1042 &:extend(pre);
1026 padding: .9em;
1043 padding: .9em;
1027 color: @grey3;
1044 color: @grey3;
1028 background-color: @grey7;
1045 background-color: @grey7;
1029 border-right: @border-thickness solid @border-default-color;
1046 border-right: @border-thickness solid @border-default-color;
1030 border-bottom: @border-thickness solid @border-default-color;
1047 border-bottom: @border-thickness solid @border-default-color;
1031 border-left: @border-thickness solid @border-default-color;
1048 border-left: @border-thickness solid @border-default-color;
1032 }
1049 }
1033
1050
1034 #repo_vcs_settings {
1051 #repo_vcs_settings {
1035 #inherit_overlay_vcs_default {
1052 #inherit_overlay_vcs_default {
1036 display: none;
1053 display: none;
1037 }
1054 }
1038 #inherit_overlay_vcs_custom {
1055 #inherit_overlay_vcs_custom {
1039 display: custom;
1056 display: custom;
1040 }
1057 }
1041 &.inherited {
1058 &.inherited {
1042 #inherit_overlay_vcs_default {
1059 #inherit_overlay_vcs_default {
1043 display: block;
1060 display: block;
1044 }
1061 }
1045 #inherit_overlay_vcs_custom {
1062 #inherit_overlay_vcs_custom {
1046 display: none;
1063 display: none;
1047 }
1064 }
1048 }
1065 }
1049 }
1066 }
1050
1067
1051 .issue-tracker-link {
1068 .issue-tracker-link {
1052 color: @rcblue;
1069 color: @rcblue;
1053 }
1070 }
1054
1071
1055 // Issue Tracker Table Show/Hide
1072 // Issue Tracker Table Show/Hide
1056 #repo_issue_tracker {
1073 #repo_issue_tracker {
1057 #inherit_overlay {
1074 #inherit_overlay {
1058 display: none;
1075 display: none;
1059 }
1076 }
1060 #custom_overlay {
1077 #custom_overlay {
1061 display: custom;
1078 display: custom;
1062 }
1079 }
1063 &.inherited {
1080 &.inherited {
1064 #inherit_overlay {
1081 #inherit_overlay {
1065 display: block;
1082 display: block;
1066 }
1083 }
1067 #custom_overlay {
1084 #custom_overlay {
1068 display: none;
1085 display: none;
1069 }
1086 }
1070 }
1087 }
1071 }
1088 }
1072 table.issuetracker {
1089 table.issuetracker {
1073 &.readonly {
1090 &.readonly {
1074 tr, td {
1091 tr, td {
1075 color: @grey3;
1092 color: @grey3;
1076 }
1093 }
1077 }
1094 }
1078 .edit {
1095 .edit {
1079 display: none;
1096 display: none;
1080 }
1097 }
1081 .editopen {
1098 .editopen {
1082 .edit {
1099 .edit {
1083 display: inline;
1100 display: inline;
1084 }
1101 }
1085 .entry {
1102 .entry {
1086 display: none;
1103 display: none;
1087 }
1104 }
1088 }
1105 }
1089 tr td.td-action {
1106 tr td.td-action {
1090 min-width: 117px;
1107 min-width: 117px;
1091 }
1108 }
1092 td input {
1109 td input {
1093 max-width: none;
1110 max-width: none;
1094 min-width: 30px;
1111 min-width: 30px;
1095 width: 80%;
1112 width: 80%;
1096 }
1113 }
1097 .issuetracker_pref input {
1114 .issuetracker_pref input {
1098 width: 40%;
1115 width: 40%;
1099 }
1116 }
1100 input.edit_issuetracker_update {
1117 input.edit_issuetracker_update {
1101 margin-right: 0;
1118 margin-right: 0;
1102 width: auto;
1119 width: auto;
1103 }
1120 }
1104 }
1121 }
1105
1122
1106 table.integrations {
1123 table.integrations {
1107 .td-icon {
1124 .td-icon {
1108 width: 20px;
1125 width: 20px;
1109 .integration-icon {
1126 .integration-icon {
1110 height: 20px;
1127 height: 20px;
1111 width: 20px;
1128 width: 20px;
1112 }
1129 }
1113 }
1130 }
1114 }
1131 }
1115
1132
1116 .integrations {
1133 .integrations {
1117 a.integration-box {
1134 a.integration-box {
1118 color: @text-color;
1135 color: @text-color;
1119 &:hover {
1136 &:hover {
1120 .panel {
1137 .panel {
1121 background: #fbfbfb;
1138 background: #fbfbfb;
1122 }
1139 }
1123 }
1140 }
1124 .integration-icon {
1141 .integration-icon {
1125 width: 30px;
1142 width: 30px;
1126 height: 30px;
1143 height: 30px;
1127 margin-right: 20px;
1144 margin-right: 20px;
1128 float: left;
1145 float: left;
1129 }
1146 }
1130
1147
1131 .panel-body {
1148 .panel-body {
1132 padding: 10px;
1149 padding: 10px;
1133 }
1150 }
1134 .panel {
1151 .panel {
1135 margin-bottom: 10px;
1152 margin-bottom: 10px;
1136 }
1153 }
1137 h2 {
1154 h2 {
1138 display: inline-block;
1155 display: inline-block;
1139 margin: 0;
1156 margin: 0;
1140 min-width: 140px;
1157 min-width: 140px;
1141 }
1158 }
1142 }
1159 }
1143 }
1160 }
1144
1161
1145 //Permissions Settings
1162 //Permissions Settings
1146 #add_perm {
1163 #add_perm {
1147 margin: 0 0 @padding;
1164 margin: 0 0 @padding;
1148 cursor: pointer;
1165 cursor: pointer;
1149 }
1166 }
1150
1167
1151 .perm_ac {
1168 .perm_ac {
1152 input {
1169 input {
1153 width: 95%;
1170 width: 95%;
1154 }
1171 }
1155 }
1172 }
1156
1173
1157 .autocomplete-suggestions {
1174 .autocomplete-suggestions {
1158 width: auto !important; // overrides autocomplete.js
1175 width: auto !important; // overrides autocomplete.js
1159 margin: 0;
1176 margin: 0;
1160 border: @border-thickness solid @rcblue;
1177 border: @border-thickness solid @rcblue;
1161 border-radius: @border-radius;
1178 border-radius: @border-radius;
1162 color: @rcblue;
1179 color: @rcblue;
1163 background-color: white;
1180 background-color: white;
1164 }
1181 }
1165 .autocomplete-selected {
1182 .autocomplete-selected {
1166 background: #F0F0F0;
1183 background: #F0F0F0;
1167 }
1184 }
1168 .ac-container-wrap {
1185 .ac-container-wrap {
1169 margin: 0;
1186 margin: 0;
1170 padding: 8px;
1187 padding: 8px;
1171 border-bottom: @border-thickness solid @rclightblue;
1188 border-bottom: @border-thickness solid @rclightblue;
1172 list-style-type: none;
1189 list-style-type: none;
1173 cursor: pointer;
1190 cursor: pointer;
1174
1191
1175 &:hover {
1192 &:hover {
1176 background-color: @rclightblue;
1193 background-color: @rclightblue;
1177 }
1194 }
1178
1195
1179 img {
1196 img {
1180 margin-right: 1em;
1197 margin-right: 1em;
1181 }
1198 }
1182
1199
1183 strong {
1200 strong {
1184 font-weight: normal;
1201 font-weight: normal;
1185 }
1202 }
1186 }
1203 }
1187
1204
1188 // Settings Dropdown
1205 // Settings Dropdown
1189 .user-menu .container {
1206 .user-menu .container {
1190 padding: 0 4px;
1207 padding: 0 4px;
1191 margin: 0;
1208 margin: 0;
1192 }
1209 }
1193
1210
1194 .user-menu .gravatar {
1211 .user-menu .gravatar {
1195 cursor: pointer;
1212 cursor: pointer;
1196 }
1213 }
1197
1214
1198 .codeblock {
1215 .codeblock {
1199 margin-bottom: @padding;
1216 margin-bottom: @padding;
1200 clear: both;
1217 clear: both;
1201
1218
1202 .stats{
1219 .stats{
1203 overflow: hidden;
1220 overflow: hidden;
1204 }
1221 }
1205
1222
1206 .message{
1223 .message{
1207 textarea{
1224 textarea{
1208 margin: 0;
1225 margin: 0;
1209 }
1226 }
1210 }
1227 }
1211
1228
1212 .code-header {
1229 .code-header {
1213 .stats {
1230 .stats {
1214 line-height: 2em;
1231 line-height: 2em;
1215
1232
1216 .revision_id {
1233 .revision_id {
1217 margin-left: 0;
1234 margin-left: 0;
1218 }
1235 }
1219 .buttons {
1236 .buttons {
1220 padding-right: 0;
1237 padding-right: 0;
1221 }
1238 }
1222 }
1239 }
1223
1240
1224 .item{
1241 .item{
1225 margin-right: 0.5em;
1242 margin-right: 0.5em;
1226 }
1243 }
1227 }
1244 }
1228
1245
1229 #editor_container{
1246 #editor_container{
1230 position: relative;
1247 position: relative;
1231 margin: @padding;
1248 margin: @padding;
1232 }
1249 }
1233 }
1250 }
1234
1251
1235 #file_history_container {
1252 #file_history_container {
1236 display: none;
1253 display: none;
1237 }
1254 }
1238
1255
1239 .file-history-inner {
1256 .file-history-inner {
1240 margin-bottom: 10px;
1257 margin-bottom: 10px;
1241 }
1258 }
1242
1259
1243 // Pull Requests
1260 // Pull Requests
1244 .summary-details {
1261 .summary-details {
1245 width: 72%;
1262 width: 72%;
1246 }
1263 }
1247 .pr-summary {
1264 .pr-summary {
1248 border-bottom: @border-thickness solid @grey5;
1265 border-bottom: @border-thickness solid @grey5;
1249 margin-bottom: @space;
1266 margin-bottom: @space;
1250 }
1267 }
1251 .reviewers-title {
1268 .reviewers-title {
1252 width: 25%;
1269 width: 25%;
1253 min-width: 200px;
1270 min-width: 200px;
1254 }
1271 }
1255 .reviewers {
1272 .reviewers {
1256 width: 25%;
1273 width: 25%;
1257 min-width: 200px;
1274 min-width: 200px;
1258 }
1275 }
1259 .reviewers ul li {
1276 .reviewers ul li {
1260 position: relative;
1277 position: relative;
1261 width: 100%;
1278 width: 100%;
1262 margin-bottom: 8px;
1279 margin-bottom: 8px;
1263 }
1280 }
1264 .reviewers_member {
1281 .reviewers_member {
1265 width: 100%;
1282 width: 100%;
1266 overflow: auto;
1283 overflow: auto;
1267 }
1284 }
1268 .reviewer_status {
1285 .reviewer_status {
1269 display: inline-block;
1286 display: inline-block;
1270 vertical-align: top;
1287 vertical-align: top;
1271 width: 7%;
1288 width: 7%;
1272 min-width: 20px;
1289 min-width: 20px;
1273 height: 1.2em;
1290 height: 1.2em;
1274 margin-top: 3px;
1291 margin-top: 3px;
1275 line-height: 1em;
1292 line-height: 1em;
1276 }
1293 }
1277
1294
1278 .reviewer_name {
1295 .reviewer_name {
1279 display: inline-block;
1296 display: inline-block;
1280 max-width: 83%;
1297 max-width: 83%;
1281 padding-right: 20px;
1298 padding-right: 20px;
1282 vertical-align: middle;
1299 vertical-align: middle;
1283 line-height: 1;
1300 line-height: 1;
1284
1301
1285 .rc-user {
1302 .rc-user {
1286 min-width: 0;
1303 min-width: 0;
1287 margin: -2px 1em 0 0;
1304 margin: -2px 1em 0 0;
1288 }
1305 }
1289
1306
1290 .reviewer {
1307 .reviewer {
1291 float: left;
1308 float: left;
1292 }
1309 }
1293
1310
1294 &.to-delete {
1311 &.to-delete {
1295 .user,
1312 .user,
1296 .reviewer {
1313 .reviewer {
1297 text-decoration: line-through;
1314 text-decoration: line-through;
1298 }
1315 }
1299 }
1316 }
1300 }
1317 }
1301
1318
1302 .reviewer_member_remove {
1319 .reviewer_member_remove {
1303 position: absolute;
1320 position: absolute;
1304 right: 0;
1321 right: 0;
1305 top: 0;
1322 top: 0;
1306 width: 16px;
1323 width: 16px;
1307 margin-bottom: 10px;
1324 margin-bottom: 10px;
1308 padding: 0;
1325 padding: 0;
1309 color: black;
1326 color: black;
1310 }
1327 }
1311 .reviewer_member_status {
1328 .reviewer_member_status {
1312 margin-top: 5px;
1329 margin-top: 5px;
1313 }
1330 }
1314 .pr-summary #summary{
1331 .pr-summary #summary{
1315 width: 100%;
1332 width: 100%;
1316 }
1333 }
1317 .pr-summary .action_button:hover {
1334 .pr-summary .action_button:hover {
1318 border: 0;
1335 border: 0;
1319 cursor: pointer;
1336 cursor: pointer;
1320 }
1337 }
1321 .pr-details-title {
1338 .pr-details-title {
1322 padding-bottom: 8px;
1339 padding-bottom: 8px;
1323 border-bottom: @border-thickness solid @grey5;
1340 border-bottom: @border-thickness solid @grey5;
1324 .action_button {
1341 .action_button {
1325 color: @rcblue;
1342 color: @rcblue;
1326 }
1343 }
1327 }
1344 }
1328 .pr-details-content {
1345 .pr-details-content {
1329 margin-top: @textmargin;
1346 margin-top: @textmargin;
1330 margin-bottom: @textmargin;
1347 margin-bottom: @textmargin;
1331 }
1348 }
1332 .pr-description {
1349 .pr-description {
1333 white-space:pre-wrap;
1350 white-space:pre-wrap;
1334 }
1351 }
1335 .group_members {
1352 .group_members {
1336 margin-top: 0;
1353 margin-top: 0;
1337 padding: 0;
1354 padding: 0;
1338 list-style: outside none none;
1355 list-style: outside none none;
1339 }
1356 }
1340 .reviewer_ac .ac-input {
1357 .reviewer_ac .ac-input {
1341 width: 92%;
1358 width: 92%;
1342 margin-bottom: 1em;
1359 margin-bottom: 1em;
1343 }
1360 }
1344 #update_commits {
1361 #update_commits {
1345 float: right;
1362 float: right;
1346 }
1363 }
1347 .compare_view_commits tr{
1364 .compare_view_commits tr{
1348 height: 20px;
1365 height: 20px;
1349 }
1366 }
1350 .compare_view_commits td {
1367 .compare_view_commits td {
1351 vertical-align: top;
1368 vertical-align: top;
1352 padding-top: 10px;
1369 padding-top: 10px;
1353 }
1370 }
1354 .compare_view_commits .author {
1371 .compare_view_commits .author {
1355 margin-left: 5px;
1372 margin-left: 5px;
1356 }
1373 }
1357
1374
1358 .compare_view_files {
1375 .compare_view_files {
1359 width: 100%;
1376 width: 100%;
1360
1377
1361 td {
1378 td {
1362 vertical-align: middle;
1379 vertical-align: middle;
1363 }
1380 }
1364 }
1381 }
1365
1382
1366 .compare_view_filepath {
1383 .compare_view_filepath {
1367 color: @grey1;
1384 color: @grey1;
1368 }
1385 }
1369
1386
1370 .show_more {
1387 .show_more {
1371 display: inline-block;
1388 display: inline-block;
1372 position: relative;
1389 position: relative;
1373 vertical-align: middle;
1390 vertical-align: middle;
1374 width: 4px;
1391 width: 4px;
1375 height: @basefontsize;
1392 height: @basefontsize;
1376
1393
1377 &:after {
1394 &:after {
1378 content: "\00A0\25BE";
1395 content: "\00A0\25BE";
1379 display: inline-block;
1396 display: inline-block;
1380 width:10px;
1397 width:10px;
1381 line-height: 5px;
1398 line-height: 5px;
1382 font-size: 12px;
1399 font-size: 12px;
1383 cursor: pointer;
1400 cursor: pointer;
1384 }
1401 }
1385 }
1402 }
1386
1403
1387 .journal_more .show_more {
1404 .journal_more .show_more {
1388 display: inline;
1405 display: inline;
1389
1406
1390 &:after {
1407 &:after {
1391 content: none;
1408 content: none;
1392 }
1409 }
1393 }
1410 }
1394
1411
1395 .open .show_more:after,
1412 .open .show_more:after,
1396 .select2-dropdown-open .show_more:after {
1413 .select2-dropdown-open .show_more:after {
1397 .rotate(180deg);
1414 .rotate(180deg);
1398 margin-left: 4px;
1415 margin-left: 4px;
1399 }
1416 }
1400
1417
1401
1418
1402 .compare_view_commits .collapse_commit:after {
1419 .compare_view_commits .collapse_commit:after {
1403 cursor: pointer;
1420 cursor: pointer;
1404 content: "\00A0\25B4";
1421 content: "\00A0\25B4";
1405 margin-left: -3px;
1422 margin-left: -3px;
1406 font-size: 17px;
1423 font-size: 17px;
1407 color: @grey4;
1424 color: @grey4;
1408 }
1425 }
1409
1426
1410 .diff_links {
1427 .diff_links {
1411 margin-left: 8px;
1428 margin-left: 8px;
1412 }
1429 }
1413
1430
1414 p.ancestor {
1431 p.ancestor {
1415 margin: @padding 0;
1432 margin: @padding 0;
1416 }
1433 }
1417
1434
1418 .cs_icon_td input[type="checkbox"] {
1435 .cs_icon_td input[type="checkbox"] {
1419 display: none;
1436 display: none;
1420 }
1437 }
1421
1438
1422 .cs_icon_td .expand_file_icon:after {
1439 .cs_icon_td .expand_file_icon:after {
1423 cursor: pointer;
1440 cursor: pointer;
1424 content: "\00A0\25B6";
1441 content: "\00A0\25B6";
1425 font-size: 12px;
1442 font-size: 12px;
1426 color: @grey4;
1443 color: @grey4;
1427 }
1444 }
1428
1445
1429 .cs_icon_td .collapse_file_icon:after {
1446 .cs_icon_td .collapse_file_icon:after {
1430 cursor: pointer;
1447 cursor: pointer;
1431 content: "\00A0\25BC";
1448 content: "\00A0\25BC";
1432 font-size: 12px;
1449 font-size: 12px;
1433 color: @grey4;
1450 color: @grey4;
1434 }
1451 }
1435
1452
1436 /*new binary
1453 /*new binary
1437 NEW_FILENODE = 1
1454 NEW_FILENODE = 1
1438 DEL_FILENODE = 2
1455 DEL_FILENODE = 2
1439 MOD_FILENODE = 3
1456 MOD_FILENODE = 3
1440 RENAMED_FILENODE = 4
1457 RENAMED_FILENODE = 4
1441 COPIED_FILENODE = 5
1458 COPIED_FILENODE = 5
1442 CHMOD_FILENODE = 6
1459 CHMOD_FILENODE = 6
1443 BIN_FILENODE = 7
1460 BIN_FILENODE = 7
1444 */
1461 */
1445 .cs_files_expand {
1462 .cs_files_expand {
1446 font-size: @basefontsize + 5px;
1463 font-size: @basefontsize + 5px;
1447 line-height: 1.8em;
1464 line-height: 1.8em;
1448 float: right;
1465 float: right;
1449 }
1466 }
1450
1467
1451 .cs_files_expand span{
1468 .cs_files_expand span{
1452 color: @rcblue;
1469 color: @rcblue;
1453 cursor: pointer;
1470 cursor: pointer;
1454 }
1471 }
1455 .cs_files {
1472 .cs_files {
1456 clear: both;
1473 clear: both;
1457 padding-bottom: @padding;
1474 padding-bottom: @padding;
1458
1475
1459 .cur_cs {
1476 .cur_cs {
1460 margin: 10px 2px;
1477 margin: 10px 2px;
1461 font-weight: bold;
1478 font-weight: bold;
1462 }
1479 }
1463
1480
1464 .node {
1481 .node {
1465 float: left;
1482 float: left;
1466 }
1483 }
1467
1484
1468 .changes {
1485 .changes {
1469 float: right;
1486 float: right;
1470 color: white;
1487 color: white;
1471 font-size: @basefontsize - 4px;
1488 font-size: @basefontsize - 4px;
1472 margin-top: 4px;
1489 margin-top: 4px;
1473 opacity: 0.6;
1490 opacity: 0.6;
1474 filter: Alpha(opacity=60); /* IE8 and earlier */
1491 filter: Alpha(opacity=60); /* IE8 and earlier */
1475
1492
1476 .added {
1493 .added {
1477 background-color: @alert1;
1494 background-color: @alert1;
1478 float: left;
1495 float: left;
1479 text-align: center;
1496 text-align: center;
1480 }
1497 }
1481
1498
1482 .deleted {
1499 .deleted {
1483 background-color: @alert2;
1500 background-color: @alert2;
1484 float: left;
1501 float: left;
1485 text-align: center;
1502 text-align: center;
1486 }
1503 }
1487
1504
1488 .bin {
1505 .bin {
1489 background-color: @alert1;
1506 background-color: @alert1;
1490 text-align: center;
1507 text-align: center;
1491 }
1508 }
1492
1509
1493 /*new binary*/
1510 /*new binary*/
1494 .bin.bin1 {
1511 .bin.bin1 {
1495 background-color: @alert1;
1512 background-color: @alert1;
1496 text-align: center;
1513 text-align: center;
1497 }
1514 }
1498
1515
1499 /*deleted binary*/
1516 /*deleted binary*/
1500 .bin.bin2 {
1517 .bin.bin2 {
1501 background-color: @alert2;
1518 background-color: @alert2;
1502 text-align: center;
1519 text-align: center;
1503 }
1520 }
1504
1521
1505 /*mod binary*/
1522 /*mod binary*/
1506 .bin.bin3 {
1523 .bin.bin3 {
1507 background-color: @grey2;
1524 background-color: @grey2;
1508 text-align: center;
1525 text-align: center;
1509 }
1526 }
1510
1527
1511 /*rename file*/
1528 /*rename file*/
1512 .bin.bin4 {
1529 .bin.bin4 {
1513 background-color: @alert4;
1530 background-color: @alert4;
1514 text-align: center;
1531 text-align: center;
1515 }
1532 }
1516
1533
1517 /*copied file*/
1534 /*copied file*/
1518 .bin.bin5 {
1535 .bin.bin5 {
1519 background-color: @alert4;
1536 background-color: @alert4;
1520 text-align: center;
1537 text-align: center;
1521 }
1538 }
1522
1539
1523 /*chmod file*/
1540 /*chmod file*/
1524 .bin.bin6 {
1541 .bin.bin6 {
1525 background-color: @grey2;
1542 background-color: @grey2;
1526 text-align: center;
1543 text-align: center;
1527 }
1544 }
1528 }
1545 }
1529 }
1546 }
1530
1547
1531 .cs_files .cs_added, .cs_files .cs_A,
1548 .cs_files .cs_added, .cs_files .cs_A,
1532 .cs_files .cs_added, .cs_files .cs_M,
1549 .cs_files .cs_added, .cs_files .cs_M,
1533 .cs_files .cs_added, .cs_files .cs_D {
1550 .cs_files .cs_added, .cs_files .cs_D {
1534 height: 16px;
1551 height: 16px;
1535 padding-right: 10px;
1552 padding-right: 10px;
1536 margin-top: 7px;
1553 margin-top: 7px;
1537 text-align: left;
1554 text-align: left;
1538 }
1555 }
1539
1556
1540 .cs_icon_td {
1557 .cs_icon_td {
1541 min-width: 16px;
1558 min-width: 16px;
1542 width: 16px;
1559 width: 16px;
1543 }
1560 }
1544
1561
1545 .pull-request-merge {
1562 .pull-request-merge {
1546 padding: 10px 0;
1563 padding: 10px 0;
1547 margin-top: 10px;
1564 margin-top: 10px;
1548 margin-bottom: 20px;
1565 margin-bottom: 20px;
1549 }
1566 }
1550
1567
1551 .pull-request-merge .pull-request-wrap {
1568 .pull-request-merge .pull-request-wrap {
1552 height: 25px;
1569 height: 25px;
1553 padding: 5px 0;
1570 padding: 5px 0;
1554 }
1571 }
1555
1572
1556 .pull-request-merge span {
1573 .pull-request-merge span {
1557 margin-right: 10px;
1574 margin-right: 10px;
1558 }
1575 }
1559 #close_pull_request {
1576 #close_pull_request {
1560 margin-right: 0px;
1577 margin-right: 0px;
1561 }
1578 }
1562
1579
1563 .empty_data {
1580 .empty_data {
1564 color: @grey4;
1581 color: @grey4;
1565 }
1582 }
1566
1583
1567 #changeset_compare_view_content {
1584 #changeset_compare_view_content {
1568 margin-bottom: @space;
1585 margin-bottom: @space;
1569 clear: both;
1586 clear: both;
1570 width: 100%;
1587 width: 100%;
1571 box-sizing: border-box;
1588 box-sizing: border-box;
1572 .border-radius(@border-radius);
1589 .border-radius(@border-radius);
1573
1590
1574 .help-block {
1591 .help-block {
1575 margin: @padding 0;
1592 margin: @padding 0;
1576 color: @text-color;
1593 color: @text-color;
1577 }
1594 }
1578
1595
1579 .empty_data {
1596 .empty_data {
1580 margin: @padding 0;
1597 margin: @padding 0;
1581 }
1598 }
1582
1599
1583 .alert {
1600 .alert {
1584 margin-bottom: @space;
1601 margin-bottom: @space;
1585 }
1602 }
1586 }
1603 }
1587
1604
1588 .table_disp {
1605 .table_disp {
1589 .status {
1606 .status {
1590 width: auto;
1607 width: auto;
1591
1608
1592 .flag_status {
1609 .flag_status {
1593 float: left;
1610 float: left;
1594 }
1611 }
1595 }
1612 }
1596 }
1613 }
1597
1614
1598 .status_box_menu {
1615 .status_box_menu {
1599 margin: 0;
1616 margin: 0;
1600 }
1617 }
1601
1618
1602 .notification-table{
1619 .notification-table{
1603 margin-bottom: @space;
1620 margin-bottom: @space;
1604 display: table;
1621 display: table;
1605 width: 100%;
1622 width: 100%;
1606
1623
1607 .container{
1624 .container{
1608 display: table-row;
1625 display: table-row;
1609
1626
1610 .notification-header{
1627 .notification-header{
1611 border-bottom: @border-thickness solid @border-default-color;
1628 border-bottom: @border-thickness solid @border-default-color;
1612 }
1629 }
1613
1630
1614 .notification-subject{
1631 .notification-subject{
1615 display: table-cell;
1632 display: table-cell;
1616 }
1633 }
1617 }
1634 }
1618 }
1635 }
1619
1636
1620 // Notifications
1637 // Notifications
1621 .notification-header{
1638 .notification-header{
1622 display: table;
1639 display: table;
1623 width: 100%;
1640 width: 100%;
1624 padding: floor(@basefontsize/2) 0;
1641 padding: floor(@basefontsize/2) 0;
1625 line-height: 1em;
1642 line-height: 1em;
1626
1643
1627 .desc, .delete-notifications, .read-notifications{
1644 .desc, .delete-notifications, .read-notifications{
1628 display: table-cell;
1645 display: table-cell;
1629 text-align: left;
1646 text-align: left;
1630 }
1647 }
1631
1648
1632 .desc{
1649 .desc{
1633 width: 1163px;
1650 width: 1163px;
1634 }
1651 }
1635
1652
1636 .delete-notifications, .read-notifications{
1653 .delete-notifications, .read-notifications{
1637 width: 35px;
1654 width: 35px;
1638 min-width: 35px; //fixes when only one button is displayed
1655 min-width: 35px; //fixes when only one button is displayed
1639 }
1656 }
1640 }
1657 }
1641
1658
1642 .notification-body {
1659 .notification-body {
1643 .markdown-block,
1660 .markdown-block,
1644 .rst-block {
1661 .rst-block {
1645 padding: @padding 0;
1662 padding: @padding 0;
1646 }
1663 }
1647
1664
1648 .notification-subject {
1665 .notification-subject {
1649 padding: @textmargin 0;
1666 padding: @textmargin 0;
1650 border-bottom: @border-thickness solid @border-default-color;
1667 border-bottom: @border-thickness solid @border-default-color;
1651 }
1668 }
1652 }
1669 }
1653
1670
1654
1671
1655 .notifications_buttons{
1672 .notifications_buttons{
1656 float: right;
1673 float: right;
1657 }
1674 }
1658
1675
1659 #notification-status{
1676 #notification-status{
1660 display: inline;
1677 display: inline;
1661 }
1678 }
1662
1679
1663 // Repositories
1680 // Repositories
1664
1681
1665 #summary.fields{
1682 #summary.fields{
1666 display: table;
1683 display: table;
1667
1684
1668 .field{
1685 .field{
1669 display: table-row;
1686 display: table-row;
1670
1687
1671 .label-summary{
1688 .label-summary{
1672 display: table-cell;
1689 display: table-cell;
1673 min-width: @label-summary-minwidth;
1690 min-width: @label-summary-minwidth;
1674 padding-top: @padding/2;
1691 padding-top: @padding/2;
1675 padding-bottom: @padding/2;
1692 padding-bottom: @padding/2;
1676 padding-right: @padding/2;
1693 padding-right: @padding/2;
1677 }
1694 }
1678
1695
1679 .input{
1696 .input{
1680 display: table-cell;
1697 display: table-cell;
1681 padding: @padding/2;
1698 padding: @padding/2;
1682
1699
1683 input{
1700 input{
1684 min-width: 29em;
1701 min-width: 29em;
1685 padding: @padding/4;
1702 padding: @padding/4;
1686 }
1703 }
1687 }
1704 }
1688 .statistics, .downloads{
1705 .statistics, .downloads{
1689 .disabled{
1706 .disabled{
1690 color: @grey4;
1707 color: @grey4;
1691 }
1708 }
1692 }
1709 }
1693 }
1710 }
1694 }
1711 }
1695
1712
1696 #summary{
1713 #summary{
1697 width: 70%;
1714 width: 70%;
1698 }
1715 }
1699
1716
1700
1717
1701 // Journal
1718 // Journal
1702 .journal.title {
1719 .journal.title {
1703 h5 {
1720 h5 {
1704 float: left;
1721 float: left;
1705 margin: 0;
1722 margin: 0;
1706 width: 70%;
1723 width: 70%;
1707 }
1724 }
1708
1725
1709 ul {
1726 ul {
1710 float: right;
1727 float: right;
1711 display: inline-block;
1728 display: inline-block;
1712 margin: 0;
1729 margin: 0;
1713 width: 30%;
1730 width: 30%;
1714 text-align: right;
1731 text-align: right;
1715
1732
1716 li {
1733 li {
1717 display: inline;
1734 display: inline;
1718 font-size: @journal-fontsize;
1735 font-size: @journal-fontsize;
1719 line-height: 1em;
1736 line-height: 1em;
1720
1737
1721 &:before { content: none; }
1738 &:before { content: none; }
1722 }
1739 }
1723 }
1740 }
1724 }
1741 }
1725
1742
1726 .filterexample {
1743 .filterexample {
1727 position: absolute;
1744 position: absolute;
1728 top: 95px;
1745 top: 95px;
1729 left: @contentpadding;
1746 left: @contentpadding;
1730 color: @rcblue;
1747 color: @rcblue;
1731 font-size: 11px;
1748 font-size: 11px;
1732 font-family: @text-regular;
1749 font-family: @text-regular;
1733 cursor: help;
1750 cursor: help;
1734
1751
1735 &:hover {
1752 &:hover {
1736 color: @rcdarkblue;
1753 color: @rcdarkblue;
1737 }
1754 }
1738
1755
1739 @media (max-width:768px) {
1756 @media (max-width:768px) {
1740 position: relative;
1757 position: relative;
1741 top: auto;
1758 top: auto;
1742 left: auto;
1759 left: auto;
1743 display: block;
1760 display: block;
1744 }
1761 }
1745 }
1762 }
1746
1763
1747
1764
1748 #journal{
1765 #journal{
1749 margin-bottom: @space;
1766 margin-bottom: @space;
1750
1767
1751 .journal_day{
1768 .journal_day{
1752 margin-bottom: @textmargin/2;
1769 margin-bottom: @textmargin/2;
1753 padding-bottom: @textmargin/2;
1770 padding-bottom: @textmargin/2;
1754 font-size: @journal-fontsize;
1771 font-size: @journal-fontsize;
1755 border-bottom: @border-thickness solid @border-default-color;
1772 border-bottom: @border-thickness solid @border-default-color;
1756 }
1773 }
1757
1774
1758 .journal_container{
1775 .journal_container{
1759 margin-bottom: @space;
1776 margin-bottom: @space;
1760
1777
1761 .journal_user{
1778 .journal_user{
1762 display: inline-block;
1779 display: inline-block;
1763 }
1780 }
1764 .journal_action_container{
1781 .journal_action_container{
1765 display: block;
1782 display: block;
1766 margin-top: @textmargin;
1783 margin-top: @textmargin;
1767
1784
1768 div{
1785 div{
1769 display: inline;
1786 display: inline;
1770 }
1787 }
1771
1788
1772 div.journal_action_params{
1789 div.journal_action_params{
1773 display: block;
1790 display: block;
1774 }
1791 }
1775
1792
1776 div.journal_repo:after{
1793 div.journal_repo:after{
1777 content: "\A";
1794 content: "\A";
1778 white-space: pre;
1795 white-space: pre;
1779 }
1796 }
1780
1797
1781 div.date{
1798 div.date{
1782 display: block;
1799 display: block;
1783 margin-bottom: @textmargin;
1800 margin-bottom: @textmargin;
1784 }
1801 }
1785 }
1802 }
1786 }
1803 }
1787 }
1804 }
1788
1805
1789 // Files
1806 // Files
1790 .edit-file-title {
1807 .edit-file-title {
1791 border-bottom: @border-thickness solid @border-default-color;
1808 border-bottom: @border-thickness solid @border-default-color;
1792
1809
1793 .breadcrumbs {
1810 .breadcrumbs {
1794 margin-bottom: 0;
1811 margin-bottom: 0;
1795 }
1812 }
1796 }
1813 }
1797
1814
1798 .edit-file-fieldset {
1815 .edit-file-fieldset {
1799 margin-top: @sidebarpadding;
1816 margin-top: @sidebarpadding;
1800
1817
1801 .fieldset {
1818 .fieldset {
1802 .left-label {
1819 .left-label {
1803 width: 13%;
1820 width: 13%;
1804 }
1821 }
1805 .right-content {
1822 .right-content {
1806 width: 87%;
1823 width: 87%;
1807 max-width: 100%;
1824 max-width: 100%;
1808 }
1825 }
1809 .filename-label {
1826 .filename-label {
1810 margin-top: 13px;
1827 margin-top: 13px;
1811 }
1828 }
1812 .commit-message-label {
1829 .commit-message-label {
1813 margin-top: 4px;
1830 margin-top: 4px;
1814 }
1831 }
1815 .file-upload-input {
1832 .file-upload-input {
1816 input {
1833 input {
1817 display: none;
1834 display: none;
1818 }
1835 }
1819 }
1836 }
1820 p {
1837 p {
1821 margin-top: 5px;
1838 margin-top: 5px;
1822 }
1839 }
1823
1840
1824 }
1841 }
1825 .custom-path-link {
1842 .custom-path-link {
1826 margin-left: 5px;
1843 margin-left: 5px;
1827 }
1844 }
1828 #commit {
1845 #commit {
1829 resize: vertical;
1846 resize: vertical;
1830 }
1847 }
1831 }
1848 }
1832
1849
1833 .delete-file-preview {
1850 .delete-file-preview {
1834 max-height: 250px;
1851 max-height: 250px;
1835 }
1852 }
1836
1853
1837 .new-file,
1854 .new-file,
1838 #filter_activate,
1855 #filter_activate,
1839 #filter_deactivate {
1856 #filter_deactivate {
1840 float: left;
1857 float: left;
1841 margin: 0 0 0 15px;
1858 margin: 0 0 0 15px;
1842 }
1859 }
1843
1860
1844 h3.files_location{
1861 h3.files_location{
1845 line-height: 2.4em;
1862 line-height: 2.4em;
1846 }
1863 }
1847
1864
1848 .browser-nav {
1865 .browser-nav {
1849 display: table;
1866 display: table;
1850 margin-bottom: @space;
1867 margin-bottom: @space;
1851
1868
1852
1869
1853 .info_box {
1870 .info_box {
1854 display: inline-table;
1871 display: inline-table;
1855 height: 2.5em;
1872 height: 2.5em;
1856
1873
1857 .browser-cur-rev, .info_box_elem {
1874 .browser-cur-rev, .info_box_elem {
1858 display: table-cell;
1875 display: table-cell;
1859 vertical-align: middle;
1876 vertical-align: middle;
1860 }
1877 }
1861
1878
1862 .info_box_elem {
1879 .info_box_elem {
1863 border-top: @border-thickness solid @rcblue;
1880 border-top: @border-thickness solid @rcblue;
1864 border-bottom: @border-thickness solid @rcblue;
1881 border-bottom: @border-thickness solid @rcblue;
1865
1882
1866 #at_rev, a {
1883 #at_rev, a {
1867 padding: 0.6em 0.9em;
1884 padding: 0.6em 0.9em;
1868 margin: 0;
1885 margin: 0;
1869 .box-shadow(none);
1886 .box-shadow(none);
1870 border: 0;
1887 border: 0;
1871 height: 12px;
1888 height: 12px;
1872 }
1889 }
1873
1890
1874 input#at_rev {
1891 input#at_rev {
1875 max-width: 50px;
1892 max-width: 50px;
1876 text-align: right;
1893 text-align: right;
1877 }
1894 }
1878
1895
1879 &.previous {
1896 &.previous {
1880 border: @border-thickness solid @rcblue;
1897 border: @border-thickness solid @rcblue;
1881 .disabled {
1898 .disabled {
1882 color: @grey4;
1899 color: @grey4;
1883 cursor: not-allowed;
1900 cursor: not-allowed;
1884 }
1901 }
1885 }
1902 }
1886
1903
1887 &.next {
1904 &.next {
1888 border: @border-thickness solid @rcblue;
1905 border: @border-thickness solid @rcblue;
1889 .disabled {
1906 .disabled {
1890 color: @grey4;
1907 color: @grey4;
1891 cursor: not-allowed;
1908 cursor: not-allowed;
1892 }
1909 }
1893 }
1910 }
1894 }
1911 }
1895
1912
1896 .browser-cur-rev {
1913 .browser-cur-rev {
1897
1914
1898 span{
1915 span{
1899 margin: 0;
1916 margin: 0;
1900 color: @rcblue;
1917 color: @rcblue;
1901 height: 12px;
1918 height: 12px;
1902 display: inline-block;
1919 display: inline-block;
1903 padding: 0.7em 1em ;
1920 padding: 0.7em 1em ;
1904 border: @border-thickness solid @rcblue;
1921 border: @border-thickness solid @rcblue;
1905 margin-right: @padding;
1922 margin-right: @padding;
1906 }
1923 }
1907 }
1924 }
1908 }
1925 }
1909
1926
1910 .search_activate {
1927 .search_activate {
1911 display: table-cell;
1928 display: table-cell;
1912 vertical-align: middle;
1929 vertical-align: middle;
1913
1930
1914 input, label{
1931 input, label{
1915 margin: 0;
1932 margin: 0;
1916 padding: 0;
1933 padding: 0;
1917 }
1934 }
1918
1935
1919 input{
1936 input{
1920 margin-left: @textmargin;
1937 margin-left: @textmargin;
1921 }
1938 }
1922
1939
1923 }
1940 }
1924 }
1941 }
1925
1942
1926 .browser-cur-rev{
1943 .browser-cur-rev{
1927 margin-bottom: @textmargin;
1944 margin-bottom: @textmargin;
1928 }
1945 }
1929
1946
1930 #node_filter_box_loading{
1947 #node_filter_box_loading{
1931 .info_text;
1948 .info_text;
1932 }
1949 }
1933
1950
1934 .browser-search {
1951 .browser-search {
1935 margin: -25px 0px 5px 0px;
1952 margin: -25px 0px 5px 0px;
1936 }
1953 }
1937
1954
1938 .node-filter {
1955 .node-filter {
1939 font-size: @repo-title-fontsize;
1956 font-size: @repo-title-fontsize;
1940 padding: 4px 0px 0px 0px;
1957 padding: 4px 0px 0px 0px;
1941
1958
1942 .node-filter-path {
1959 .node-filter-path {
1943 float: left;
1960 float: left;
1944 color: @grey4;
1961 color: @grey4;
1945 }
1962 }
1946 .node-filter-input {
1963 .node-filter-input {
1947 float: left;
1964 float: left;
1948 margin: -2px 0px 0px 2px;
1965 margin: -2px 0px 0px 2px;
1949 input {
1966 input {
1950 padding: 2px;
1967 padding: 2px;
1951 border: none;
1968 border: none;
1952 font-size: @repo-title-fontsize;
1969 font-size: @repo-title-fontsize;
1953 }
1970 }
1954 }
1971 }
1955 }
1972 }
1956
1973
1957
1974
1958 .browser-result{
1975 .browser-result{
1959 td a{
1976 td a{
1960 margin-left: 0.5em;
1977 margin-left: 0.5em;
1961 display: inline-block;
1978 display: inline-block;
1962
1979
1963 em{
1980 em{
1964 font-family: @text-bold;
1981 font-family: @text-bold;
1965 }
1982 }
1966 }
1983 }
1967 }
1984 }
1968
1985
1969 .browser-highlight{
1986 .browser-highlight{
1970 background-color: @grey5-alpha;
1987 background-color: @grey5-alpha;
1971 }
1988 }
1972
1989
1973
1990
1974 // Search
1991 // Search
1975
1992
1976 .search-form{
1993 .search-form{
1977 #q {
1994 #q {
1978 width: @search-form-width;
1995 width: @search-form-width;
1979 }
1996 }
1980 .fields{
1997 .fields{
1981 margin: 0 0 @space;
1998 margin: 0 0 @space;
1982 }
1999 }
1983
2000
1984 label{
2001 label{
1985 display: inline-block;
2002 display: inline-block;
1986 margin-right: @textmargin;
2003 margin-right: @textmargin;
1987 padding-top: 0.25em;
2004 padding-top: 0.25em;
1988 }
2005 }
1989
2006
1990
2007
1991 .results{
2008 .results{
1992 clear: both;
2009 clear: both;
1993 margin: 0 0 @padding;
2010 margin: 0 0 @padding;
1994 }
2011 }
1995 }
2012 }
1996
2013
1997 div.search-feedback-items {
2014 div.search-feedback-items {
1998 display: inline-block;
2015 display: inline-block;
1999 padding:0px 0px 0px 96px;
2016 padding:0px 0px 0px 96px;
2000 }
2017 }
2001
2018
2002 div.search-code-body {
2019 div.search-code-body {
2003 background-color: #ffffff; padding: 5px 0 5px 10px;
2020 background-color: #ffffff; padding: 5px 0 5px 10px;
2004 pre {
2021 pre {
2005 .match { background-color: #faffa6;}
2022 .match { background-color: #faffa6;}
2006 .break { display: block; width: 100%; background-color: #DDE7EF; color: #747474; }
2023 .break { display: block; width: 100%; background-color: #DDE7EF; color: #747474; }
2007 }
2024 }
2008 }
2025 }
2009
2026
2010 .expand_commit.search {
2027 .expand_commit.search {
2011 .show_more.open {
2028 .show_more.open {
2012 height: auto;
2029 height: auto;
2013 max-height: none;
2030 max-height: none;
2014 }
2031 }
2015 }
2032 }
2016
2033
2017 .search-results {
2034 .search-results {
2018
2035
2019 h2 {
2036 h2 {
2020 margin-bottom: 0;
2037 margin-bottom: 0;
2021 }
2038 }
2022 .codeblock {
2039 .codeblock {
2023 border: none;
2040 border: none;
2024 background: transparent;
2041 background: transparent;
2025 }
2042 }
2026
2043
2027 .codeblock-header {
2044 .codeblock-header {
2028 border: none;
2045 border: none;
2029 background: transparent;
2046 background: transparent;
2030 }
2047 }
2031
2048
2032 .code-body {
2049 .code-body {
2033 border: @border-thickness solid @border-default-color;
2050 border: @border-thickness solid @border-default-color;
2034 .border-radius(@border-radius);
2051 .border-radius(@border-radius);
2035 }
2052 }
2036
2053
2037 .td-commit {
2054 .td-commit {
2038 &:extend(pre);
2055 &:extend(pre);
2039 border-bottom: @border-thickness solid @border-default-color;
2056 border-bottom: @border-thickness solid @border-default-color;
2040 }
2057 }
2041
2058
2042 .message {
2059 .message {
2043 height: auto;
2060 height: auto;
2044 max-width: 350px;
2061 max-width: 350px;
2045 white-space: normal;
2062 white-space: normal;
2046 text-overflow: initial;
2063 text-overflow: initial;
2047 overflow: visible;
2064 overflow: visible;
2048
2065
2049 .match { background-color: #faffa6;}
2066 .match { background-color: #faffa6;}
2050 .break { background-color: #DDE7EF; width: 100%; color: #747474; display: block; }
2067 .break { background-color: #DDE7EF; width: 100%; color: #747474; display: block; }
2051 }
2068 }
2052
2069
2053 }
2070 }
2054
2071
2055 table.rctable td.td-search-results div {
2072 table.rctable td.td-search-results div {
2056 max-width: 100%;
2073 max-width: 100%;
2057 }
2074 }
2058
2075
2059 #tip-box, .tip-box{
2076 #tip-box, .tip-box{
2060 padding: @menupadding/2;
2077 padding: @menupadding/2;
2061 display: block;
2078 display: block;
2062 border: @border-thickness solid @border-highlight-color;
2079 border: @border-thickness solid @border-highlight-color;
2063 .border-radius(@border-radius);
2080 .border-radius(@border-radius);
2064 background-color: white;
2081 background-color: white;
2065 z-index: 99;
2082 z-index: 99;
2066 white-space: pre-wrap;
2083 white-space: pre-wrap;
2067 }
2084 }
2068
2085
2069 #linktt {
2086 #linktt {
2070 width: 79px;
2087 width: 79px;
2071 }
2088 }
2072
2089
2073 #help_kb .modal-content{
2090 #help_kb .modal-content{
2074 max-width: 750px;
2091 max-width: 750px;
2075 margin: 10% auto;
2092 margin: 10% auto;
2076
2093
2077 table{
2094 table{
2078 td,th{
2095 td,th{
2079 border-bottom: none;
2096 border-bottom: none;
2080 line-height: 2.5em;
2097 line-height: 2.5em;
2081 }
2098 }
2082 th{
2099 th{
2083 padding-bottom: @textmargin/2;
2100 padding-bottom: @textmargin/2;
2084 }
2101 }
2085 td.keys{
2102 td.keys{
2086 text-align: center;
2103 text-align: center;
2087 }
2104 }
2088 }
2105 }
2089
2106
2090 .block-left{
2107 .block-left{
2091 width: 45%;
2108 width: 45%;
2092 margin-right: 5%;
2109 margin-right: 5%;
2093 }
2110 }
2094 .modal-footer{
2111 .modal-footer{
2095 clear: both;
2112 clear: both;
2096 }
2113 }
2097 .key.tag{
2114 .key.tag{
2098 padding: 0.5em;
2115 padding: 0.5em;
2099 background-color: @rcblue;
2116 background-color: @rcblue;
2100 color: white;
2117 color: white;
2101 border-color: @rcblue;
2118 border-color: @rcblue;
2102 .box-shadow(none);
2119 .box-shadow(none);
2103 }
2120 }
2104 }
2121 }
2105
2122
2106
2123
2107
2124
2108 //--- IMPORTS FOR REFACTORED STYLES ------------------//
2125 //--- IMPORTS FOR REFACTORED STYLES ------------------//
2109
2126
2110 @import 'statistics-graph';
2127 @import 'statistics-graph';
2111 @import 'tables';
2128 @import 'tables';
2112 @import 'forms';
2129 @import 'forms';
2113 @import 'diff';
2130 @import 'diff';
2114 @import 'summary';
2131 @import 'summary';
2115 @import 'navigation';
2132 @import 'navigation';
2116
2133
2117 //--- SHOW/HIDE SECTIONS --//
2134 //--- SHOW/HIDE SECTIONS --//
2118
2135
2119 .btn-collapse {
2136 .btn-collapse {
2120 float: right;
2137 float: right;
2121 text-align: right;
2138 text-align: right;
2122 font-family: @text-light;
2139 font-family: @text-light;
2123 font-size: @basefontsize;
2140 font-size: @basefontsize;
2124 cursor: pointer;
2141 cursor: pointer;
2125 border: none;
2142 border: none;
2126 color: @rcblue;
2143 color: @rcblue;
2127 }
2144 }
2128
2145
2129 table.rctable,
2146 table.rctable,
2130 table.dataTable {
2147 table.dataTable {
2131 .btn-collapse {
2148 .btn-collapse {
2132 float: right;
2149 float: right;
2133 text-align: right;
2150 text-align: right;
2134 }
2151 }
2135 }
2152 }
2136
2153
2137
2154
2138 // TODO: johbo: Fix for IE10, this avoids that we see a border
2155 // TODO: johbo: Fix for IE10, this avoids that we see a border
2139 // and padding around checkboxes and radio boxes. Move to the right place,
2156 // and padding around checkboxes and radio boxes. Move to the right place,
2140 // or better: Remove this once we did the form refactoring.
2157 // or better: Remove this once we did the form refactoring.
2141 input[type=checkbox],
2158 input[type=checkbox],
2142 input[type=radio] {
2159 input[type=radio] {
2143 padding: 0;
2160 padding: 0;
2144 border: none;
2161 border: none;
2145 }
2162 }
2146
2163
2147 .toggle-ajax-spinner{
2164 .toggle-ajax-spinner{
2148 height: 16px;
2165 height: 16px;
2149 width: 16px;
2166 width: 16px;
2150 }
2167 }
@@ -1,243 +1,247 b''
1 ${h.secure_form(url('admin_settings_global'), method='post')}
1 ${h.secure_form(url('admin_settings_global'), method='post')}
2
2
3 <div class="panel panel-default">
3 <div class="panel panel-default">
4 <div class="panel-heading" id="branding-options">
4 <div class="panel-heading" id="branding-options">
5 <h3 class="panel-title">${_('Branding')} <a class="permalink" href="#branding-options"> ΒΆ</a></h3>
5 <h3 class="panel-title">${_('Branding')} <a class="permalink" href="#branding-options"> ΒΆ</a></h3>
6 </div>
6 </div>
7 <div class="panel-body">
7 <div class="panel-body">
8 <div class="label">
8 <div class="label">
9 <label for="rhodecode_title">${_('Title')}</label>
9 <label for="rhodecode_title">${_('Title')}</label>
10 </div>
10 </div>
11 <div class="field input">
11 <div class="field input">
12 ${h.text('rhodecode_title',size=60)}
12 ${h.text('rhodecode_title',size=60)}
13 </div>
13 </div>
14 <div class="field">
14 <div class="field">
15 <span class="help-block">
15 <span class="help-block">
16 ${_('Set a custom title for your RhodeCode instance (limited to 40 characters).')}
16 ${_('Set a custom title for your RhodeCode instance (limited to 40 characters).')}
17 </span>
17 </span>
18 </div>
18 </div>
19 <div class="label">
19 <div class="label">
20 <label for="rhodecode_realm">${_('HTTP[S] authentication realm')}</label>
20 <label for="rhodecode_realm">${_('HTTP[S] authentication realm')}</label>
21 </div>
21 </div>
22 <div class="field input">
22 <div class="field input">
23 ${h.text('rhodecode_realm',size=60)}
23 ${h.text('rhodecode_realm',size=60)}
24 </div>
24 </div>
25 <div class="field">
25 <div class="field">
26 <span class="help-block">
26 <span class="help-block">
27 ${_('Set a custom text that is shown as authentication message to clients trying to connect.')}
27 ${_('Set a custom text that is shown as authentication message to clients trying to connect.')}
28 </span>
28 </span>
29 </div>
29 </div>
30 </div>
30 </div>
31 </div>
31 </div>
32
32
33 <div class="panel panel-default">
33 <div class="panel panel-default">
34 <div class="panel-heading" id="captcha-options">
34 <div class="panel-heading" id="captcha-options">
35 <h3 class="panel-title">${_('Registration Captcha')} <a class="permalink" href="#captcha-options"> ΒΆ</a></h3>
35 <h3 class="panel-title">${_('Registration Captcha')} <a class="permalink" href="#captcha-options"> ΒΆ</a></h3>
36 </div>
36 </div>
37 <div class="panel-body">
37 <div class="panel-body">
38 <div class="label">
38 <div class="label">
39 <label for="rhodecode_captcha_public_key">${_('Google ReCaptcha public key')}</label>
39 <label for="rhodecode_captcha_public_key">${_('Google ReCaptcha public key')}</label>
40 </div>
40 </div>
41 <div class="field input">
41 <div class="field input">
42 ${h.text('rhodecode_captcha_public_key',size=60)}
42 ${h.text('rhodecode_captcha_public_key',size=60)}
43 </div>
43 </div>
44 <div class="field">
44 <div class="field">
45 <span class="help-block">
45 <span class="help-block">
46 ${_('Public key for reCaptcha system.')}
46 ${_('Public key for reCaptcha system.')}
47 </span>
47 </span>
48 </div>
48 </div>
49
49
50 <div class="label">
50 <div class="label">
51 <label for="rhodecode_captcha_private_key">${_('Google ReCaptcha private key')}</label>
51 <label for="rhodecode_captcha_private_key">${_('Google ReCaptcha private key')}</label>
52 </div>
52 </div>
53 <div class="field input">
53 <div class="field input">
54 ${h.text('rhodecode_captcha_private_key',size=60)}
54 ${h.text('rhodecode_captcha_private_key',size=60)}
55 </div>
55 </div>
56 <div class="field">
56 <div class="field">
57 <span class="help-block">
57 <span class="help-block">
58 ${_('Private key for reCaptcha system. Setting this value will enable captcha on registration')}
58 ${_('Private key for reCaptcha system. Setting this value will enable captcha on registration')}
59 </span>
59 </span>
60 </div>
60 </div>
61 </div>
61 </div>
62 </div>
62 </div>
63
63
64 <div class="panel panel-default">
64 <div class="panel panel-default">
65 <div class="panel-heading" id="header-code-options">
65 <div class="panel-heading" id="header-code-options">
66 <h3 class="panel-title">${_('Custom Header Code')} <a class="permalink" href="#header-code-options"> ΒΆ</a></h3>
66 <h3 class="panel-title">${_('Custom Header Code')} <a class="permalink" href="#header-code-options"> ΒΆ</a></h3>
67 </div>
67 </div>
68 <div class="panel-body">
68 <div class="panel-body">
69 <div class="select">
69 <div class="select">
70 <select id="pre_template" >
70 <select id="pre_template" >
71 <option value="#">${_('Templates...')}</option>
71 <option value="#">${_('Templates...')}</option>
72 <option value="ga">Google Analytics</option>
72 <option value="ga">Google Analytics</option>
73 <option value="clicky">Clicky</option>
73 <option value="clicky">Clicky</option>
74 <option value="server_announce">${_('Server Announcement')}</option>
74 <option value="server_announce">${_('Server Announcement')}</option>
75 </select>
75 </select>
76 </div>
76 </div>
77 <div style="padding: 10px 0px"></div>
77 <div style="padding: 10px 0px"></div>
78 <div class="textarea text-area">
78 <div class="textarea text-area">
79 ${h.textarea('rhodecode_pre_code',cols=23,rows=5,class_="medium")}
79 ${h.textarea('rhodecode_pre_code',cols=23,rows=5,class_="medium")}
80 <span class="help-block">${_('Custom js/css code added at the end of the <header/> tag.')}
80 <span class="help-block">${_('Custom js/css code added at the end of the <header/> tag.')}
81 ${_('Use <script/> or <css/> tags to define custom styling or scripting')}</span>
81 ${_('Use <script/> or <css/> tags to define custom styling or scripting')}</span>
82 </div>
82 </div>
83 </div>
83 </div>
84 </div>
84 </div>
85
85
86 <div class="panel panel-default">
86 <div class="panel panel-default">
87 <div class="panel-heading" id="footer-code-options">
87 <div class="panel-heading" id="footer-code-options">
88 <h3 class="panel-title">${_('Custom Footer Code')} <a class="permalink" href="#footer-code-options"> ΒΆ</a></h3>
88 <h3 class="panel-title">${_('Custom Footer Code')} <a class="permalink" href="#footer-code-options"> ΒΆ</a></h3>
89 </div>
89 </div>
90 <div class="panel-body">
90 <div class="panel-body">
91 <div class="select">
91 <div class="select">
92 <select id="post_template" >
92 <select id="post_template" >
93 <option value="#">${_('Templates...')}</option>
93 <option value="#">${_('Templates...')}</option>
94 <option value="ga">Google Analytics</option>
94 <option value="ga">Google Analytics</option>
95 <option value="clicky">Clicky</option>
95 <option value="clicky">Clicky</option>
96 <option value="server_announce">${_('Server Announcement')}</option>
96 <option value="server_announce">${_('Server Announcement')}</option>
97 </select>
97 </select>
98 </div>
98 </div>
99 <div style="padding: 10px 0px"></div>
99 <div style="padding: 10px 0px"></div>
100 <div class="textarea text-area">
100 <div class="textarea text-area">
101 ${h.textarea('rhodecode_post_code',cols=23,rows=5, class_="medium")}
101 ${h.textarea('rhodecode_post_code',cols=23,rows=5, class_="medium")}
102 <span class="help-block">${_('Custom js/css code added at the end of the <body> tag.')}
102 <span class="help-block">${_('Custom js/css code added at the end of the <body> tag.')}
103 ${_('Use <script> or <css> tags to define custom styling or scripting')}</span>
103 ${_('Use <script> or <css> tags to define custom styling or scripting')}</span>
104 </div>
104 </div>
105 </div>
105 </div>
106 </div>
106 </div>
107
107
108 <div class="buttons">
108 <div class="buttons">
109 ${h.submit('save',_('Save settings'),class_="btn")}
109 ${h.submit('save',_('Save settings'),class_="btn")}
110 ${h.reset('reset',_('Reset'),class_="btn")}
110 ${h.reset('reset',_('Reset'),class_="btn")}
111 </div>
111 </div>
112 ${h.end_form()}
112 ${h.end_form()}
113
113
114
114
115
115
116 ## TEMPLATES ##
116 ## TEMPLATES ##
117 ###############
117 ###############
118
118
119 <script id="ga_tmpl" type="text/x-template">
119 <script id="ga_tmpl" type="text/x-template">
120 <%text filter="h">
120 <%text filter="h">
121 <script>
121 <script>
122 // Google Analytics
122 // Google Analytics
123 // Put your Google Analytics code instead of _GACODE_
123 // Put your Google Analytics code instead of _GACODE_
124 var _gaq_code = '_GACODE_';
124 var _gaq_code = '_GACODE_';
125 var _gaq = _gaq || [];
125 var _gaq = _gaq || [];
126 _gaq.push(['_setAccount', _gaq_code]);
126 _gaq.push(['_setAccount', _gaq_code]);
127 _gaq.push(['_trackPageview']);
127 _gaq.push(['_trackPageview']);
128
128
129 (function() {
129 (function() {
130 var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
130 var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
131 ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
131 ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
132 var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
132 var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
133 })();
133 })();
134
134
135 rhodecode_statechange_callback = function(url, data){
135 rhodecode_statechange_callback = function(url, data){
136 // ANALYTICS callback on html5 history state changed
136 // ANALYTICS callback on html5 history state changed
137 // triggered by file browser, url is the new url,
137 // triggered by file browser, url is the new url,
138 // data is extra info passed from the State object
138 // data is extra info passed from the State object
139 if (typeof window._gaq !== 'undefined') {
139 if (typeof window._gaq !== 'undefined') {
140 _gaq.push(['_trackPageview', url]);
140 _gaq.push(['_trackPageview', url]);
141 }
141 }
142 };
142 };
143 </script>
143 </script>
144 </%text>
144 </%text>
145 </script>
145 </script>
146
146
147
147
148
148
149 <script id="clicky_tmpl" type="text/x-template">
149 <script id="clicky_tmpl" type="text/x-template">
150 <%text filter="h">
150 <%text filter="h">
151 <script src="//static.getclicky.com/js" type="text/javascript"></script>
151 <script src="//static.getclicky.com/js" type="text/javascript"></script>
152 <script type="text/javascript">
152 <script type="text/javascript">
153 // Clicky Analytics - should be used in the footer code section.
153 // Clicky Analytics - should be used in the footer code section.
154 // Put your Clicky code instead of _CLICKYCODE_ here,
154 // Put your Clicky code instead of _CLICKYCODE_ here,
155 // and below in the <img> tag.
155 // and below in the <img> tag.
156 var _cl_code = _CLICKYCODE_;
156 var _cl_code = _CLICKYCODE_;
157 try{clicky.init(_cl_code);}catch(e){}
157 try{clicky.init(_cl_code);}catch(e){}
158
158
159 rhodecode_statechange_callback = function(url, data){
159 rhodecode_statechange_callback = function(url, data){
160 // ANALYTICS callback on html5 history state changed
160 // ANALYTICS callback on html5 history state changed
161 // triggered by file browser, url is the new url,
161 // triggered by file browser, url is the new url,
162 // data is extra info passed from the State object
162 // data is extra info passed from the State object
163 if (typeof window.clicky !== 'undefined') {
163 if (typeof window.clicky !== 'undefined') {
164 clicky.log(url);
164 clicky.log(url);
165 }
165 }
166 }
166 }
167 </script>
167 </script>
168 <noscript>
168 <noscript>
169 // Put your clicky code in the src file.
169 // Put your clicky code in the src file.
170 <p><img alt="Clicky" width="1" height="1"
170 <p><img alt="Clicky" width="1" height="1"
171 src="//in.getclicky.com/_CLICKYCODE_ns.gif" /></p>
171 src="//in.getclicky.com/_CLICKYCODE_ns.gif" /></p>
172 </noscript>
172 </noscript>
173 </%text>
173 </%text>
174 </script>
174 </script>
175
175
176
176
177
177
178 <script id="server_announce_tmpl" type='text/x-template'>
178 <script id="server_announce_tmpl" type='text/x-template'>
179 <%text filter="h">
179 <%text filter="h">
180 <script>
180 <script>
181 // Server announcement displayed on the top of the page.
181 // Server announcement displayed on the top of the page.
182 // This can be used to send a global maintainance messages or other
182 // This can be used to send a global maintainance messages or other
183 // important messages to all users of the RhodeCode Enterprise system.
183 // important messages to all users of the RhodeCode Enterprise system.
184
184
185 $(document).ready(function(e){
185 $(document).ready(function(e){
186 // put your message below
186
187 // EDIT - put your message below
187 var message = "TYPE YOUR MESSAGE HERE";
188 var message = "TYPE YOUR MESSAGE HERE";
188
189
189 $('#body').prepend(
190 // EDIT - choose "info"/"warning"/"error"/"success"/"neutral" as appropriate
190 ('<div class="alert alert-info">_MSG_'+'</div>').replace('_MSG_', message)
191 var alert_level = "info";
192
193 $("#body").prepend(
194 ("<div id='server-announcement' class='"+alert_level+"'>_MSG_"+"</div>").replace("_MSG_", message)
191 )
195 )
192 })
196 })
193 </script>
197 </script>
194 </%text>
198 </%text>
195 </script>
199 </script>
196
200
197
201
198
202
199 <script>
203 <script>
200 var pre_cm = initCodeMirror('rhodecode_pre_code', '', false);
204 var pre_cm = initCodeMirror('rhodecode_pre_code', '', false);
201 var pre_old = pre_cm.getValue();
205 var pre_old = pre_cm.getValue();
202
206
203 var post_cm = initCodeMirror('rhodecode_post_code', '', false);
207 var post_cm = initCodeMirror('rhodecode_post_code', '', false);
204 var post_old = post_cm.getValue();
208 var post_old = post_cm.getValue();
205
209
206 var get_data = function(type, old){
210 var get_data = function(type, old){
207 var get_tmpl = function(tmpl_name){
211 var get_tmpl = function(tmpl_name){
208 // unescape some stuff
212 // unescape some stuff
209 var html = htmlEnDeCode.htmlDecode($('#'+tmpl_name+'_tmpl').html());
213 var html = htmlEnDeCode.htmlDecode($('#'+tmpl_name+'_tmpl').html());
210 return html;
214 return html;
211 };
215 };
212 return {
216 return {
213 '#': old,
217 '#': old,
214 'ga': get_tmpl('ga'),
218 'ga': get_tmpl('ga'),
215 'clicky': get_tmpl('clicky'),
219 'clicky': get_tmpl('clicky'),
216 'server_announce': get_tmpl('server_announce')
220 'server_announce': get_tmpl('server_announce')
217 }[type]
221 }[type]
218 };
222 };
219
223
220 $('#pre_template').select2({
224 $('#pre_template').select2({
221 containerCssClass: 'drop-menu',
225 containerCssClass: 'drop-menu',
222 dropdownCssClass: 'drop-menu-dropdown',
226 dropdownCssClass: 'drop-menu-dropdown',
223 dropdownAutoWidth: true,
227 dropdownAutoWidth: true,
224 minimumResultsForSearch: -1
228 minimumResultsForSearch: -1
225 });
229 });
226
230
227 $('#post_template').select2({
231 $('#post_template').select2({
228 containerCssClass: 'drop-menu',
232 containerCssClass: 'drop-menu',
229 dropdownCssClass: 'drop-menu-dropdown',
233 dropdownCssClass: 'drop-menu-dropdown',
230 dropdownAutoWidth: true,
234 dropdownAutoWidth: true,
231 minimumResultsForSearch: -1
235 minimumResultsForSearch: -1
232 });
236 });
233
237
234 $('#post_template').on('change', function(e){
238 $('#post_template').on('change', function(e){
235 var sel = this.value;
239 var sel = this.value;
236 post_cm.setValue(get_data(sel, post_old))
240 post_cm.setValue(get_data(sel, post_old))
237 });
241 });
238
242
239 $('#pre_template').on('change', function(e){
243 $('#pre_template').on('change', function(e){
240 var sel = this.value;
244 var sel = this.value;
241 pre_cm.setValue(get_data(sel, pre_old))
245 pre_cm.setValue(get_data(sel, pre_old))
242 })
246 })
243 </script>
247 </script>
General Comments 0
You need to be logged in to leave comments. Login now