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