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