##// END OF EJS Templates
adjusted the padding of path and summary box between files and file details screens
Liviu -
r3720:0c0b5c69 new-ui
parent child Browse files
Show More
@@ -1,1261 +1,1265 b''
1 // Default styles
1 // Default styles
2
2
3 .diff-collapse {
3 .diff-collapse {
4 margin: @padding 0;
4 margin: @padding 0;
5 text-align: right;
5 text-align: right;
6 }
6 }
7
7
8 .diff-container {
8 .diff-container {
9 margin-bottom: @space;
9 margin-bottom: @space;
10
10
11 .diffblock {
11 .diffblock {
12 margin-bottom: @space;
12 margin-bottom: @space;
13 }
13 }
14
14
15 &.hidden {
15 &.hidden {
16 display: none;
16 display: none;
17 overflow: hidden;
17 overflow: hidden;
18 }
18 }
19 }
19 }
20
20
21
21
22 div.diffblock .sidebyside {
22 div.diffblock .sidebyside {
23 background: #ffffff;
23 background: #ffffff;
24 }
24 }
25
25
26 div.diffblock {
26 div.diffblock {
27 overflow-x: auto;
27 overflow-x: auto;
28 overflow-y: hidden;
28 overflow-y: hidden;
29 clear: both;
29 clear: both;
30 padding: 0px;
30 padding: 0px;
31 background: @grey6;
31 background: @grey6;
32 border: @border-thickness solid @grey5;
32 border: @border-thickness solid @grey5;
33 -webkit-border-radius: @border-radius @border-radius 0px 0px;
33 -webkit-border-radius: @border-radius @border-radius 0px 0px;
34 border-radius: @border-radius @border-radius 0px 0px;
34 border-radius: @border-radius @border-radius 0px 0px;
35
35
36
36
37 .comments-number {
37 .comments-number {
38 float: right;
38 float: right;
39 }
39 }
40
40
41 // BEGIN CODE-HEADER STYLES
41 // BEGIN CODE-HEADER STYLES
42
42
43 .code-header {
43 .code-header {
44 background: @grey6;
44 background: @grey6;
45 padding: 10px 0 10px 0;
45 padding: 10px 0 10px 0;
46 height: auto;
46 height: auto;
47 width: 100%;
47 width: 100%;
48
48
49 .hash {
49 .hash {
50 float: left;
50 float: left;
51 padding: 2px 0 0 2px;
51 padding: 2px 0 0 2px;
52 }
52 }
53
53
54 .date {
54 .date {
55 float: left;
55 float: left;
56 text-transform: uppercase;
56 text-transform: uppercase;
57 padding: 4px 0px 0px 2px;
57 padding: 4px 0px 0px 2px;
58 }
58 }
59
59
60 div {
60 div {
61 margin-left: 4px;
61 margin-left: 4px;
62 }
62 }
63
63
64 div.compare_header {
64 div.compare_header {
65 min-height: 40px;
65 min-height: 40px;
66 margin: 0;
66 margin: 0;
67 padding: 0 @padding;
67 padding: 0 @padding;
68
68
69 .drop-menu {
69 .drop-menu {
70 float:left;
70 float:left;
71 display: block;
71 display: block;
72 margin:0 0 @padding 0;
72 margin:0 0 @padding 0;
73 }
73 }
74
74
75 .compare-label {
75 .compare-label {
76 float: left;
76 float: left;
77 clear: both;
77 clear: both;
78 display: inline-block;
78 display: inline-block;
79 min-width: 5em;
79 min-width: 5em;
80 margin: 0;
80 margin: 0;
81 padding: @button-padding @button-padding @button-padding 0;
81 padding: @button-padding @button-padding @button-padding 0;
82 font-weight: @text-semibold-weight;
82 font-weight: @text-semibold-weight;
83 font-family: @text-semibold;
83 font-family: @text-semibold;
84 }
84 }
85
85
86 .compare-buttons {
86 .compare-buttons {
87 float: left;
87 float: left;
88 margin: 0;
88 margin: 0;
89 padding: 0 0 @padding;
89 padding: 0 0 @padding;
90
90
91 .btn {
91 .btn {
92 margin: 0 @padding 0 0;
92 margin: 0 @padding 0 0;
93 }
93 }
94 }
94 }
95 }
95 }
96
96
97 }
97 }
98
98
99 .parents {
99 .parents {
100 float: left;
100 float: left;
101 width: 100px;
101 width: 100px;
102 font-weight: 400;
102 font-weight: 400;
103 vertical-align: middle;
103 vertical-align: middle;
104 padding: 0px 2px 0px 2px;
104 padding: 0px 2px 0px 2px;
105 background-color: @grey6;
105 background-color: @grey6;
106
106
107 #parent_link {
107 #parent_link {
108 margin: 00px 2px;
108 margin: 00px 2px;
109
109
110 &.double {
110 &.double {
111 margin: 0px 2px;
111 margin: 0px 2px;
112 }
112 }
113
113
114 &.disabled{
114 &.disabled{
115 margin-right: @padding;
115 margin-right: @padding;
116 }
116 }
117 }
117 }
118 }
118 }
119
119
120 .children {
120 .children {
121 float: right;
121 float: right;
122 width: 100px;
122 width: 100px;
123 font-weight: 400;
123 font-weight: 400;
124 vertical-align: middle;
124 vertical-align: middle;
125 text-align: right;
125 text-align: right;
126 padding: 0px 2px 0px 2px;
126 padding: 0px 2px 0px 2px;
127 background-color: @grey6;
127 background-color: @grey6;
128
128
129 #child_link {
129 #child_link {
130 margin: 0px 2px;
130 margin: 0px 2px;
131
131
132 &.double {
132 &.double {
133 margin: 0px 2px;
133 margin: 0px 2px;
134 }
134 }
135
135
136 &.disabled{
136 &.disabled{
137 margin-right: @padding;
137 margin-right: @padding;
138 }
138 }
139 }
139 }
140 }
140 }
141
141
142 .changeset_header {
142 .changeset_header {
143 height: 16px;
143 height: 16px;
144
144
145 & > div{
145 & > div{
146 margin-right: @padding;
146 margin-right: @padding;
147 }
147 }
148 }
148 }
149
149
150 .changeset_file {
150 .changeset_file {
151 text-align: left;
151 text-align: left;
152 float: left;
152 float: left;
153 padding: 0;
153 padding: 0;
154
154
155 a{
155 a{
156 display: inline-block;
156 display: inline-block;
157 margin-right: 0.5em;
157 margin-right: 0.5em;
158 }
158 }
159
159
160 #selected_mode{
160 #selected_mode{
161 margin-left: 0;
161 margin-left: 0;
162 }
162 }
163 }
163 }
164
164
165 .diff-menu-wrapper {
165 .diff-menu-wrapper {
166 float: left;
166 float: left;
167 }
167 }
168
168
169 .diff-menu {
169 .diff-menu {
170 position: absolute;
170 position: absolute;
171 background: none repeat scroll 0 0 #FFFFFF;
171 background: none repeat scroll 0 0 #FFFFFF;
172 border-color: #003367 @grey3 @grey3;
172 border-color: #003367 @grey3 @grey3;
173 border-right: 1px solid @grey3;
173 border-right: 1px solid @grey3;
174 border-style: solid solid solid;
174 border-style: solid solid solid;
175 border-width: @border-thickness;
175 border-width: @border-thickness;
176 box-shadow: 2px 8px 4px rgba(0, 0, 0, 0.2);
176 box-shadow: 2px 8px 4px rgba(0, 0, 0, 0.2);
177 margin-top: 5px;
177 margin-top: 5px;
178 margin-left: 1px;
178 margin-left: 1px;
179 }
179 }
180
180
181 .diff-actions, .editor-actions {
181 .diff-actions, .editor-actions {
182 float: left;
182 float: left;
183
183
184 input{
184 input{
185 margin: 0 0.5em 0 0;
185 margin: 0 0.5em 0 0;
186 }
186 }
187 }
187 }
188
188
189 // END CODE-HEADER STYLES
189 // END CODE-HEADER STYLES
190
190
191 // BEGIN CODE-BODY STYLES
191 // BEGIN CODE-BODY STYLES
192
192
193 .code-body {
193 .code-body {
194 padding: 0;
194 padding: 0;
195 background-color: #ffffff;
195 background-color: #ffffff;
196 position: relative;
196 position: relative;
197 max-width: none;
197 max-width: none;
198 box-sizing: border-box;
198 box-sizing: border-box;
199 // TODO: johbo: Parent has overflow: auto, this forces the child here
199 // TODO: johbo: Parent has overflow: auto, this forces the child here
200 // to have the intended size and to scroll. Should be simplified.
200 // to have the intended size and to scroll. Should be simplified.
201 width: 100%;
201 width: 100%;
202 overflow-x: auto;
202 overflow-x: auto;
203 }
203 }
204
204
205 pre.raw {
205 pre.raw {
206 background: white;
206 background: white;
207 color: @grey1;
207 color: @grey1;
208 }
208 }
209 // END CODE-BODY STYLES
209 // END CODE-BODY STYLES
210
210
211 }
211 }
212
212
213
213
214 table.code-difftable {
214 table.code-difftable {
215 border-collapse: collapse;
215 border-collapse: collapse;
216 width: 99%;
216 width: 99%;
217 border-radius: 0px !important;
217 border-radius: 0px !important;
218
218
219 td {
219 td {
220 padding: 0 !important;
220 padding: 0 !important;
221 background: none !important;
221 background: none !important;
222 border: 0 !important;
222 border: 0 !important;
223 }
223 }
224
224
225 .context {
225 .context {
226 background: none repeat scroll 0 0 #DDE7EF;
226 background: none repeat scroll 0 0 #DDE7EF;
227 }
227 }
228
228
229 .add {
229 .add {
230 background: none repeat scroll 0 0 #DDFFDD;
230 background: none repeat scroll 0 0 #DDFFDD;
231
231
232 ins {
232 ins {
233 background: none repeat scroll 0 0 #AAFFAA;
233 background: none repeat scroll 0 0 #AAFFAA;
234 text-decoration: none;
234 text-decoration: none;
235 }
235 }
236 }
236 }
237
237
238 .del {
238 .del {
239 background: none repeat scroll 0 0 #FFDDDD;
239 background: none repeat scroll 0 0 #FFDDDD;
240
240
241 del {
241 del {
242 background: none repeat scroll 0 0 #FFAAAA;
242 background: none repeat scroll 0 0 #FFAAAA;
243 text-decoration: none;
243 text-decoration: none;
244 }
244 }
245 }
245 }
246
246
247 /** LINE NUMBERS **/
247 /** LINE NUMBERS **/
248 .lineno {
248 .lineno {
249 padding-left: 2px !important;
249 padding-left: 2px !important;
250 padding-right: 2px;
250 padding-right: 2px;
251 text-align: right;
251 text-align: right;
252 width: 32px;
252 width: 32px;
253 -moz-user-select: none;
253 -moz-user-select: none;
254 -webkit-user-select: none;
254 -webkit-user-select: none;
255 border-right: @border-thickness solid @grey5 !important;
255 border-right: @border-thickness solid @grey5 !important;
256 border-left: 0px solid #CCC !important;
256 border-left: 0px solid #CCC !important;
257 border-top: 0px solid #CCC !important;
257 border-top: 0px solid #CCC !important;
258 border-bottom: none !important;
258 border-bottom: none !important;
259
259
260 a {
260 a {
261 &:extend(pre);
261 &:extend(pre);
262 text-align: right;
262 text-align: right;
263 padding-right: 2px;
263 padding-right: 2px;
264 cursor: pointer;
264 cursor: pointer;
265 display: block;
265 display: block;
266 width: 32px;
266 width: 32px;
267 }
267 }
268 }
268 }
269
269
270 .context {
270 .context {
271 cursor: auto;
271 cursor: auto;
272 &:extend(pre);
272 &:extend(pre);
273 }
273 }
274
274
275 .lineno-inline {
275 .lineno-inline {
276 background: none repeat scroll 0 0 #FFF !important;
276 background: none repeat scroll 0 0 #FFF !important;
277 padding-left: 2px;
277 padding-left: 2px;
278 padding-right: 2px;
278 padding-right: 2px;
279 text-align: right;
279 text-align: right;
280 width: 30px;
280 width: 30px;
281 -moz-user-select: none;
281 -moz-user-select: none;
282 -webkit-user-select: none;
282 -webkit-user-select: none;
283 }
283 }
284
284
285 /** CODE **/
285 /** CODE **/
286 .code {
286 .code {
287 display: block;
287 display: block;
288 width: 100%;
288 width: 100%;
289
289
290 td {
290 td {
291 margin: 0;
291 margin: 0;
292 padding: 0;
292 padding: 0;
293 }
293 }
294
294
295 pre {
295 pre {
296 margin: 0;
296 margin: 0;
297 padding: 0;
297 padding: 0;
298 margin-left: .5em;
298 margin-left: .5em;
299 }
299 }
300 }
300 }
301 }
301 }
302
302
303
303
304 // Comments
304 // Comments
305
305
306 div.comment:target {
306 div.comment:target {
307 border-left: 6px solid @comment-highlight-color !important;
307 border-left: 6px solid @comment-highlight-color !important;
308 padding-left: 3px;
308 padding-left: 3px;
309 margin-left: -9px;
309 margin-left: -9px;
310 }
310 }
311
311
312 //TODO: anderson: can't get an absolute number out of anything, so had to put the
312 //TODO: anderson: can't get an absolute number out of anything, so had to put the
313 //current values that might change. But to make it clear I put as a calculation
313 //current values that might change. But to make it clear I put as a calculation
314 @comment-max-width: 1065px;
314 @comment-max-width: 1065px;
315 @pr-extra-margin: 34px;
315 @pr-extra-margin: 34px;
316 @pr-border-spacing: 4px;
316 @pr-border-spacing: 4px;
317 @pr-comment-width: @comment-max-width - @pr-extra-margin - @pr-border-spacing;
317 @pr-comment-width: @comment-max-width - @pr-extra-margin - @pr-border-spacing;
318
318
319 // Pull Request
319 // Pull Request
320 .cs_files .code-difftable {
320 .cs_files .code-difftable {
321 border: @border-thickness solid @grey5; //borders only on PRs
321 border: @border-thickness solid @grey5; //borders only on PRs
322
322
323 .comment-inline-form,
323 .comment-inline-form,
324 div.comment {
324 div.comment {
325 width: @pr-comment-width;
325 width: @pr-comment-width;
326 }
326 }
327 }
327 }
328
328
329 // Changeset
329 // Changeset
330 .code-difftable {
330 .code-difftable {
331 .comment-inline-form,
331 .comment-inline-form,
332 div.comment {
332 div.comment {
333 width: @comment-max-width;
333 width: @comment-max-width;
334 }
334 }
335 }
335 }
336
336
337 //Style page
337 //Style page
338 @style-extra-margin: @sidebar-width + (@sidebarpadding * 3) + @padding;
338 @style-extra-margin: @sidebar-width + (@sidebarpadding * 3) + @padding;
339 #style-page .code-difftable{
339 #style-page .code-difftable{
340 .comment-inline-form,
340 .comment-inline-form,
341 div.comment {
341 div.comment {
342 width: @comment-max-width - @style-extra-margin;
342 width: @comment-max-width - @style-extra-margin;
343 }
343 }
344 }
344 }
345
345
346 #context-bar > h2 {
346 #context-bar > h2 {
347 font-size: 20px;
347 font-size: 20px;
348 }
348 }
349
349
350 #context-bar > h2> a {
350 #context-bar > h2> a {
351 font-size: 20px;
351 font-size: 20px;
352 }
352 }
353 // end of defaults
353 // end of defaults
354
354
355 .file_diff_buttons {
355 .file_diff_buttons {
356 padding: 0 0 @padding;
356 padding: 0 0 @padding;
357
357
358 .drop-menu {
358 .drop-menu {
359 float: left;
359 float: left;
360 margin: 0 @padding 0 0;
360 margin: 0 @padding 0 0;
361 }
361 }
362 .btn {
362 .btn {
363 margin: 0 @padding 0 0;
363 margin: 0 @padding 0 0;
364 }
364 }
365 }
365 }
366
366
367 .code-body.textarea.editor {
367 .code-body.textarea.editor {
368 max-width: none;
368 max-width: none;
369 padding: 15px;
369 padding: 15px;
370 }
370 }
371
371
372 td.injected_diff{
372 td.injected_diff{
373 max-width: 1178px;
373 max-width: 1178px;
374 overflow-x: auto;
374 overflow-x: auto;
375 overflow-y: hidden;
375 overflow-y: hidden;
376
376
377 div.diff-container,
377 div.diff-container,
378 div.diffblock{
378 div.diffblock{
379 max-width: 100%;
379 max-width: 100%;
380 }
380 }
381
381
382 div.code-body {
382 div.code-body {
383 max-width: 1124px;
383 max-width: 1124px;
384 overflow-x: auto;
384 overflow-x: auto;
385 overflow-y: hidden;
385 overflow-y: hidden;
386 padding: 0;
386 padding: 0;
387 }
387 }
388 div.diffblock {
388 div.diffblock {
389 border: none;
389 border: none;
390 }
390 }
391
391
392 &.inline-form {
392 &.inline-form {
393 width: 99%
393 width: 99%
394 }
394 }
395 }
395 }
396
396
397
397
398 table.code-difftable {
398 table.code-difftable {
399 width: 100%;
399 width: 100%;
400 }
400 }
401
401
402 /** PYGMENTS COLORING **/
402 /** PYGMENTS COLORING **/
403 div.codeblock {
403 div.codeblock {
404
404
405 // TODO: johbo: Added interim to get rid of the margin around
405 // TODO: johbo: Added interim to get rid of the margin around
406 // Select2 widgets. This needs further cleanup.
406 // Select2 widgets. This needs further cleanup.
407 overflow: auto;
407 overflow: auto;
408 padding: 0px;
408 padding: 0px;
409 border: @border-thickness solid @grey6;
409 border: @border-thickness solid @grey6;
410 background: @grey7;
410 background: @grey7;
411 .border-radius(@border-radius);
411 .border-radius(@border-radius);
412
412
413 #remove_gist {
413 #remove_gist {
414 float: right;
414 float: right;
415 }
415 }
416
416
417 .gist_url {
417 .gist_url {
418 padding: 0px 0px 10px 0px;
418 padding: 0px 0px 10px 0px;
419 }
419 }
420
420
421 .author {
421 .author {
422 clear: both;
422 clear: both;
423 vertical-align: middle;
423 vertical-align: middle;
424 font-weight: @text-bold-weight;
424 font-weight: @text-bold-weight;
425 font-family: @text-bold;
425 font-family: @text-bold;
426 }
426 }
427
427
428 .btn-mini {
428 .btn-mini {
429 float: left;
429 float: left;
430 margin: 0 5px 0 0;
430 margin: 0 5px 0 0;
431 }
431 }
432
432
433 .code-header {
433 .code-header {
434 padding: @padding;
434 padding: @padding;
435 border-bottom: @border-thickness solid @grey5;
435 border-bottom: @border-thickness solid @grey5;
436
436
437 .rc-user {
437 .rc-user {
438 min-width: 0;
438 min-width: 0;
439 margin-right: .5em;
439 margin-right: .5em;
440 }
440 }
441
441
442 .stats {
442 .stats {
443 clear: both;
443 clear: both;
444 margin: 0 0 @padding 0;
444 margin: 0 0 @padding 0;
445 padding: 0;
445 padding: 0;
446 .left {
446 .left {
447 float: left;
447 float: left;
448 clear: left;
448 clear: left;
449 max-width: 75%;
449 max-width: 75%;
450 margin: 0 0 @padding 0;
450 margin: 0 0 @padding 0;
451
451
452 &.item {
452 &.item {
453 margin-right: @padding;
453 margin-right: @padding;
454 &.last { border-right: none; }
454 &.last { border-right: none; }
455 }
455 }
456 }
456 }
457 .buttons { float: right; }
457 .buttons { float: right; }
458 .author {
458 .author {
459 height: 25px; margin-left: 15px; font-weight: bold;
459 height: 25px; margin-left: 15px; font-weight: bold;
460 }
460 }
461 }
461 }
462
462
463 .commit {
463 .commit {
464 margin: 5px 0 0 26px;
464 margin: 5px 0 0 26px;
465 font-weight: normal;
465 font-weight: normal;
466 white-space: pre-wrap;
466 white-space: pre-wrap;
467 }
467 }
468 }
468 }
469
469
470 .message {
470 .message {
471 position: relative;
471 position: relative;
472 margin: @padding;
472 margin: @padding;
473
473
474 .codeblock-label {
474 .codeblock-label {
475 margin: 0 0 1em 0;
475 margin: 0 0 1em 0;
476 }
476 }
477 }
477 }
478
478
479 .code-body {
479 .code-body {
480 padding: @padding;
480 padding: 0.8em 1em;
481 background-color: #ffffff;
481 background-color: #ffffff;
482 min-width: 100%;
482 min-width: 100%;
483 box-sizing: border-box;
483 box-sizing: border-box;
484 // TODO: johbo: Parent has overflow: auto, this forces the child here
484 // TODO: johbo: Parent has overflow: auto, this forces the child here
485 // to have the intended size and to scroll. Should be simplified.
485 // to have the intended size and to scroll. Should be simplified.
486 width: 100%;
486 width: 100%;
487 overflow-x: auto;
487 overflow-x: auto;
488
488
489 img.rendered-binary {
489 img.rendered-binary {
490 height: auto;
490 height: auto;
491 width: 100%;
491 width: 100%;
492 }
492 }
493
494 .markdown-block {
495 padding: 1em 0;
496 }
493 }
497 }
494
498
495 .codeblock-header {
499 .codeblock-header {
496 border-bottom: 1px solid #eaeaea;
500 border-bottom: 1px solid #eaeaea;
497 }
501 }
498 }
502 }
499
503
500 .code-highlighttable,
504 .code-highlighttable,
501 div.codeblock {
505 div.codeblock {
502
506
503 &.readme {
507 &.readme {
504 background-color: white;
508 background-color: white;
505 }
509 }
506
510
507 .markdown-block table {
511 .markdown-block table {
508 border-collapse: collapse;
512 border-collapse: collapse;
509
513
510 th,
514 th,
511 td {
515 td {
512 padding: .5em;
516 padding: .5em;
513 border: @border-thickness solid @border-default-color;
517 border: @border-thickness solid @border-default-color;
514 }
518 }
515 }
519 }
516
520
517 table {
521 table {
518 border: 0px;
522 border: 0px;
519 margin: 0;
523 margin: 0;
520 letter-spacing: normal;
524 letter-spacing: normal;
521
525
522
526
523 td {
527 td {
524 border: 0px;
528 border: 0px;
525 vertical-align: top;
529 vertical-align: top;
526 }
530 }
527 }
531 }
528 }
532 }
529
533
530 div.codeblock .code-header .search-path { padding: 0 0 0 10px; }
534 div.codeblock .code-header .search-path { padding: 0 0 0 10px; }
531 div.search-code-body {
535 div.search-code-body {
532 background-color: #ffffff; padding: 5px 0 5px 10px;
536 background-color: #ffffff; padding: 5px 0 5px 10px;
533 pre {
537 pre {
534 .match { background-color: #faffa6;}
538 .match { background-color: #faffa6;}
535 .break { display: block; width: 100%; background-color: #DDE7EF; color: #747474; }
539 .break { display: block; width: 100%; background-color: #DDE7EF; color: #747474; }
536 }
540 }
537 .code-highlighttable {
541 .code-highlighttable {
538 border-collapse: collapse;
542 border-collapse: collapse;
539
543
540 tr:hover {
544 tr:hover {
541 background: #fafafa;
545 background: #fafafa;
542 }
546 }
543 td.code {
547 td.code {
544 padding-left: 10px;
548 padding-left: 10px;
545 }
549 }
546 td.line {
550 td.line {
547 border-right: 1px solid #ccc !important;
551 border-right: 1px solid #ccc !important;
548 padding-right: 10px;
552 padding-right: 10px;
549 text-align: right;
553 text-align: right;
550 font-family: @text-monospace;
554 font-family: @text-monospace;
551 span {
555 span {
552 white-space: pre-wrap;
556 white-space: pre-wrap;
553 color: #666666;
557 color: #666666;
554 }
558 }
555 }
559 }
556 }
560 }
557 }
561 }
558
562
559 div.annotatediv { margin-left: 2px; margin-right: 4px; }
563 div.annotatediv { margin-left: 2px; margin-right: 4px; }
560 .code-highlight {
564 .code-highlight {
561 margin: 0; padding: 0; border-left: @border-thickness solid @grey5;
565 margin: 0; padding: 0; border-left: @border-thickness solid @grey5;
562 pre, .linenodiv pre { padding: 0 5px; margin: 0; }
566 pre, .linenodiv pre { padding: 0 5px; margin: 0; }
563 pre div:target {background-color: @comment-highlight-color !important;}
567 pre div:target {background-color: @comment-highlight-color !important;}
564 }
568 }
565
569
566 .linenos a { text-decoration: none; }
570 .linenos a { text-decoration: none; }
567
571
568 .CodeMirror-selected { background: @rchighlightblue; }
572 .CodeMirror-selected { background: @rchighlightblue; }
569 .CodeMirror-focused .CodeMirror-selected { background: @rchighlightblue; }
573 .CodeMirror-focused .CodeMirror-selected { background: @rchighlightblue; }
570 .CodeMirror ::selection { background: @rchighlightblue; }
574 .CodeMirror ::selection { background: @rchighlightblue; }
571 .CodeMirror ::-moz-selection { background: @rchighlightblue; }
575 .CodeMirror ::-moz-selection { background: @rchighlightblue; }
572
576
573 .code { display: block; border:0px !important; }
577 .code { display: block; border:0px !important; }
574 .code-highlight, /* TODO: dan: merge codehilite into code-highlight */
578 .code-highlight, /* TODO: dan: merge codehilite into code-highlight */
575 /* This can be generated with `pygmentize -S default -f html` */
579 /* This can be generated with `pygmentize -S default -f html` */
576 .codehilite {
580 .codehilite {
577 .c-ElasticMatch { background-color: #faffa6; padding: 0.2em;}
581 .c-ElasticMatch { background-color: #faffa6; padding: 0.2em;}
578 .hll { background-color: #ffffcc }
582 .hll { background-color: #ffffcc }
579 .c { color: #408080; font-style: italic } /* Comment */
583 .c { color: #408080; font-style: italic } /* Comment */
580 .err, .codehilite .err { border: none } /* Error */
584 .err, .codehilite .err { border: none } /* Error */
581 .k { color: #008000; font-weight: bold } /* Keyword */
585 .k { color: #008000; font-weight: bold } /* Keyword */
582 .o { color: #666666 } /* Operator */
586 .o { color: #666666 } /* Operator */
583 .ch { color: #408080; font-style: italic } /* Comment.Hashbang */
587 .ch { color: #408080; font-style: italic } /* Comment.Hashbang */
584 .cm { color: #408080; font-style: italic } /* Comment.Multiline */
588 .cm { color: #408080; font-style: italic } /* Comment.Multiline */
585 .cp { color: #BC7A00 } /* Comment.Preproc */
589 .cp { color: #BC7A00 } /* Comment.Preproc */
586 .cpf { color: #408080; font-style: italic } /* Comment.PreprocFile */
590 .cpf { color: #408080; font-style: italic } /* Comment.PreprocFile */
587 .c1 { color: #408080; font-style: italic } /* Comment.Single */
591 .c1 { color: #408080; font-style: italic } /* Comment.Single */
588 .cs { color: #408080; font-style: italic } /* Comment.Special */
592 .cs { color: #408080; font-style: italic } /* Comment.Special */
589 .gd { color: #A00000 } /* Generic.Deleted */
593 .gd { color: #A00000 } /* Generic.Deleted */
590 .ge { font-style: italic } /* Generic.Emph */
594 .ge { font-style: italic } /* Generic.Emph */
591 .gr { color: #FF0000 } /* Generic.Error */
595 .gr { color: #FF0000 } /* Generic.Error */
592 .gh { color: #000080; font-weight: bold } /* Generic.Heading */
596 .gh { color: #000080; font-weight: bold } /* Generic.Heading */
593 .gi { color: #00A000 } /* Generic.Inserted */
597 .gi { color: #00A000 } /* Generic.Inserted */
594 .go { color: #888888 } /* Generic.Output */
598 .go { color: #888888 } /* Generic.Output */
595 .gp { color: #000080; font-weight: bold } /* Generic.Prompt */
599 .gp { color: #000080; font-weight: bold } /* Generic.Prompt */
596 .gs { font-weight: bold } /* Generic.Strong */
600 .gs { font-weight: bold } /* Generic.Strong */
597 .gu { color: #800080; font-weight: bold } /* Generic.Subheading */
601 .gu { color: #800080; font-weight: bold } /* Generic.Subheading */
598 .gt { color: #0044DD } /* Generic.Traceback */
602 .gt { color: #0044DD } /* Generic.Traceback */
599 .kc { color: #008000; font-weight: bold } /* Keyword.Constant */
603 .kc { color: #008000; font-weight: bold } /* Keyword.Constant */
600 .kd { color: #008000; font-weight: bold } /* Keyword.Declaration */
604 .kd { color: #008000; font-weight: bold } /* Keyword.Declaration */
601 .kn { color: #008000; font-weight: bold } /* Keyword.Namespace */
605 .kn { color: #008000; font-weight: bold } /* Keyword.Namespace */
602 .kp { color: #008000 } /* Keyword.Pseudo */
606 .kp { color: #008000 } /* Keyword.Pseudo */
603 .kr { color: #008000; font-weight: bold } /* Keyword.Reserved */
607 .kr { color: #008000; font-weight: bold } /* Keyword.Reserved */
604 .kt { color: #B00040 } /* Keyword.Type */
608 .kt { color: #B00040 } /* Keyword.Type */
605 .m { color: #666666 } /* Literal.Number */
609 .m { color: #666666 } /* Literal.Number */
606 .s { color: #BA2121 } /* Literal.String */
610 .s { color: #BA2121 } /* Literal.String */
607 .na { color: #7D9029 } /* Name.Attribute */
611 .na { color: #7D9029 } /* Name.Attribute */
608 .nb { color: #008000 } /* Name.Builtin */
612 .nb { color: #008000 } /* Name.Builtin */
609 .nc { color: #0000FF; font-weight: bold } /* Name.Class */
613 .nc { color: #0000FF; font-weight: bold } /* Name.Class */
610 .no { color: #880000 } /* Name.Constant */
614 .no { color: #880000 } /* Name.Constant */
611 .nd { color: #AA22FF } /* Name.Decorator */
615 .nd { color: #AA22FF } /* Name.Decorator */
612 .ni { color: #999999; font-weight: bold } /* Name.Entity */
616 .ni { color: #999999; font-weight: bold } /* Name.Entity */
613 .ne { color: #D2413A; font-weight: bold } /* Name.Exception */
617 .ne { color: #D2413A; font-weight: bold } /* Name.Exception */
614 .nf { color: #0000FF } /* Name.Function */
618 .nf { color: #0000FF } /* Name.Function */
615 .nl { color: #A0A000 } /* Name.Label */
619 .nl { color: #A0A000 } /* Name.Label */
616 .nn { color: #0000FF; font-weight: bold } /* Name.Namespace */
620 .nn { color: #0000FF; font-weight: bold } /* Name.Namespace */
617 .nt { color: #008000; font-weight: bold } /* Name.Tag */
621 .nt { color: #008000; font-weight: bold } /* Name.Tag */
618 .nv { color: #19177C } /* Name.Variable */
622 .nv { color: #19177C } /* Name.Variable */
619 .ow { color: #AA22FF; font-weight: bold } /* Operator.Word */
623 .ow { color: #AA22FF; font-weight: bold } /* Operator.Word */
620 .w { color: #bbbbbb } /* Text.Whitespace */
624 .w { color: #bbbbbb } /* Text.Whitespace */
621 .mb { color: #666666 } /* Literal.Number.Bin */
625 .mb { color: #666666 } /* Literal.Number.Bin */
622 .mf { color: #666666 } /* Literal.Number.Float */
626 .mf { color: #666666 } /* Literal.Number.Float */
623 .mh { color: #666666 } /* Literal.Number.Hex */
627 .mh { color: #666666 } /* Literal.Number.Hex */
624 .mi { color: #666666 } /* Literal.Number.Integer */
628 .mi { color: #666666 } /* Literal.Number.Integer */
625 .mo { color: #666666 } /* Literal.Number.Oct */
629 .mo { color: #666666 } /* Literal.Number.Oct */
626 .sa { color: #BA2121 } /* Literal.String.Affix */
630 .sa { color: #BA2121 } /* Literal.String.Affix */
627 .sb { color: #BA2121 } /* Literal.String.Backtick */
631 .sb { color: #BA2121 } /* Literal.String.Backtick */
628 .sc { color: #BA2121 } /* Literal.String.Char */
632 .sc { color: #BA2121 } /* Literal.String.Char */
629 .dl { color: #BA2121 } /* Literal.String.Delimiter */
633 .dl { color: #BA2121 } /* Literal.String.Delimiter */
630 .sd { color: #BA2121; font-style: italic } /* Literal.String.Doc */
634 .sd { color: #BA2121; font-style: italic } /* Literal.String.Doc */
631 .s2 { color: #BA2121 } /* Literal.String.Double */
635 .s2 { color: #BA2121 } /* Literal.String.Double */
632 .se { color: #BB6622; font-weight: bold } /* Literal.String.Escape */
636 .se { color: #BB6622; font-weight: bold } /* Literal.String.Escape */
633 .sh { color: #BA2121 } /* Literal.String.Heredoc */
637 .sh { color: #BA2121 } /* Literal.String.Heredoc */
634 .si { color: #BB6688; font-weight: bold } /* Literal.String.Interpol */
638 .si { color: #BB6688; font-weight: bold } /* Literal.String.Interpol */
635 .sx { color: #008000 } /* Literal.String.Other */
639 .sx { color: #008000 } /* Literal.String.Other */
636 .sr { color: #BB6688 } /* Literal.String.Regex */
640 .sr { color: #BB6688 } /* Literal.String.Regex */
637 .s1 { color: #BA2121 } /* Literal.String.Single */
641 .s1 { color: #BA2121 } /* Literal.String.Single */
638 .ss { color: #19177C } /* Literal.String.Symbol */
642 .ss { color: #19177C } /* Literal.String.Symbol */
639 .bp { color: #008000 } /* Name.Builtin.Pseudo */
643 .bp { color: #008000 } /* Name.Builtin.Pseudo */
640 .fm { color: #0000FF } /* Name.Function.Magic */
644 .fm { color: #0000FF } /* Name.Function.Magic */
641 .vc { color: #19177C } /* Name.Variable.Class */
645 .vc { color: #19177C } /* Name.Variable.Class */
642 .vg { color: #19177C } /* Name.Variable.Global */
646 .vg { color: #19177C } /* Name.Variable.Global */
643 .vi { color: #19177C } /* Name.Variable.Instance */
647 .vi { color: #19177C } /* Name.Variable.Instance */
644 .vm { color: #19177C } /* Name.Variable.Magic */
648 .vm { color: #19177C } /* Name.Variable.Magic */
645 .il { color: #666666 } /* Literal.Number.Integer.Long */
649 .il { color: #666666 } /* Literal.Number.Integer.Long */
646
650
647 }
651 }
648
652
649 /* customized pre blocks for markdown/rst */
653 /* customized pre blocks for markdown/rst */
650 pre.literal-block, .codehilite pre{
654 pre.literal-block, .codehilite pre{
651 padding: @padding;
655 padding: @padding;
652 border: 1px solid @grey6;
656 border: 1px solid @grey6;
653 .border-radius(@border-radius);
657 .border-radius(@border-radius);
654 background-color: @grey7;
658 background-color: @grey7;
655 }
659 }
656
660
657
661
658 /* START NEW CODE BLOCK CSS */
662 /* START NEW CODE BLOCK CSS */
659
663
660 @cb-line-height: 18px;
664 @cb-line-height: 18px;
661 @cb-line-code-padding: 10px;
665 @cb-line-code-padding: 10px;
662 @cb-text-padding: 5px;
666 @cb-text-padding: 5px;
663
667
664 @pill-padding: 2px 7px;
668 @pill-padding: 2px 7px;
665 @pill-padding-small: 2px 2px 1px 2px;
669 @pill-padding-small: 2px 2px 1px 2px;
666
670
667 input.filediff-collapse-state {
671 input.filediff-collapse-state {
668 display: none;
672 display: none;
669
673
670 &:checked + .filediff { /* file diff is collapsed */
674 &:checked + .filediff { /* file diff is collapsed */
671 .cb {
675 .cb {
672 display: none
676 display: none
673 }
677 }
674 .filediff-collapse-indicator {
678 .filediff-collapse-indicator {
675 width: 0;
679 width: 0;
676 height: 0;
680 height: 0;
677 border-style: solid;
681 border-style: solid;
678 border-width: 4.5px 0 4.5px 9.3px;
682 border-width: 4.5px 0 4.5px 9.3px;
679 border-color: transparent transparent transparent #aaa;
683 border-color: transparent transparent transparent #aaa;
680 margin: 6px 0px;
684 margin: 6px 0px;
681 }
685 }
682 .filediff-menu {
686 .filediff-menu {
683 display: none;
687 display: none;
684 }
688 }
685
689
686 }
690 }
687
691
688 &+ .filediff { /* file diff is expanded */
692 &+ .filediff { /* file diff is expanded */
689 .filediff-collapse-indicator {
693 .filediff-collapse-indicator {
690 width: 0;
694 width: 0;
691 height: 0;
695 height: 0;
692 border-style: solid;
696 border-style: solid;
693 border-width: 9.3px 4.5px 0 4.5px;
697 border-width: 9.3px 4.5px 0 4.5px;
694 border-color: #aaa transparent transparent transparent;
698 border-color: #aaa transparent transparent transparent;
695 margin: 6px 0px;
699 margin: 6px 0px;
696
700
697 }
701 }
698 .filediff-menu {
702 .filediff-menu {
699 display: block;
703 display: block;
700 }
704 }
701 margin: 10px 0;
705 margin: 10px 0;
702 &:nth-child(2) {
706 &:nth-child(2) {
703 margin: 0;
707 margin: 0;
704 }
708 }
705 }
709 }
706 }
710 }
707
711
708 .filediffs .anchor {
712 .filediffs .anchor {
709 display: block;
713 display: block;
710 height: 40px;
714 height: 40px;
711 margin-top: -40px;
715 margin-top: -40px;
712 visibility: hidden;
716 visibility: hidden;
713 }
717 }
714
718
715 .filediffs .anchor:nth-of-type(1) {
719 .filediffs .anchor:nth-of-type(1) {
716 display: block;
720 display: block;
717 height: 80px;
721 height: 80px;
718 margin-top: -80px;
722 margin-top: -80px;
719 visibility: hidden;
723 visibility: hidden;
720 }
724 }
721
725
722 .cs_files {
726 .cs_files {
723 clear: both;
727 clear: both;
724 }
728 }
725
729
726 #diff-file-sticky{
730 #diff-file-sticky{
727 will-change: min-height;
731 will-change: min-height;
728 }
732 }
729
733
730 .sidebar__inner{
734 .sidebar__inner{
731 transform: translate(0, 0); /* For browsers don't support translate3d. */
735 transform: translate(0, 0); /* For browsers don't support translate3d. */
732 transform: translate3d(0, 0, 0);
736 transform: translate3d(0, 0, 0);
733 will-change: position, transform;
737 will-change: position, transform;
734 height: 70px;
738 height: 70px;
735 z-index: 30;
739 z-index: 30;
736 background-color: #fff;
740 background-color: #fff;
737 padding: 5px 0px;
741 padding: 5px 0px;
738 }
742 }
739
743
740 .sidebar__bar {
744 .sidebar__bar {
741 padding: 5px 0px 0px 0px
745 padding: 5px 0px 0px 0px
742 }
746 }
743
747
744 .fpath-placeholder {
748 .fpath-placeholder {
745 clear: both;
749 clear: both;
746 visibility: hidden
750 visibility: hidden
747 }
751 }
748
752
749 .is-affixed {
753 .is-affixed {
750 .sidebar_inner_shadow {
754 .sidebar_inner_shadow {
751 position: fixed;
755 position: fixed;
752 top: 75px;
756 top: 75px;
753 right: -100%;
757 right: -100%;
754 left: -100%;
758 left: -100%;
755 z-index: 28;
759 z-index: 28;
756 display: block;
760 display: block;
757 height: 5px;
761 height: 5px;
758 content: "";
762 content: "";
759 background: linear-gradient(rgba(0, 0, 0, 0.075), rgba(0, 0, 0, 0.001)) repeat-x 0 0;
763 background: linear-gradient(rgba(0, 0, 0, 0.075), rgba(0, 0, 0, 0.001)) repeat-x 0 0;
760 border-top: 1px solid rgba(0, 0, 0, 0.15);
764 border-top: 1px solid rgba(0, 0, 0, 0.15);
761 }
765 }
762 .fpath-placeholder {
766 .fpath-placeholder {
763 visibility: visible !important;
767 visibility: visible !important;
764 }
768 }
765 }
769 }
766
770
767 .diffset-menu {
771 .diffset-menu {
768 margin-bottom: 20px;
772 margin-bottom: 20px;
769 }
773 }
770 .diffset {
774 .diffset {
771 margin: 20px auto;
775 margin: 20px auto;
772 .diffset-heading {
776 .diffset-heading {
773 border: 1px solid @grey5;
777 border: 1px solid @grey5;
774 margin-bottom: -1px;
778 margin-bottom: -1px;
775 // margin-top: 20px;
779 // margin-top: 20px;
776 h2 {
780 h2 {
777 margin: 0;
781 margin: 0;
778 line-height: 38px;
782 line-height: 38px;
779 padding-left: 10px;
783 padding-left: 10px;
780 }
784 }
781 .btn {
785 .btn {
782 margin: 0;
786 margin: 0;
783 }
787 }
784 background: @grey6;
788 background: @grey6;
785 display: block;
789 display: block;
786 padding: 5px;
790 padding: 5px;
787 }
791 }
788 .diffset-heading-warning {
792 .diffset-heading-warning {
789 background: @alert3-inner;
793 background: @alert3-inner;
790 border: 1px solid @alert3;
794 border: 1px solid @alert3;
791 }
795 }
792 &.diffset-comments-disabled {
796 &.diffset-comments-disabled {
793 .cb-comment-box-opener, .comment-inline-form, .cb-comment-add-button {
797 .cb-comment-box-opener, .comment-inline-form, .cb-comment-add-button {
794 display: none !important;
798 display: none !important;
795 }
799 }
796 }
800 }
797 }
801 }
798
802
799 .filelist {
803 .filelist {
800 .pill {
804 .pill {
801 display: block;
805 display: block;
802 float: left;
806 float: left;
803 padding: @pill-padding-small;
807 padding: @pill-padding-small;
804 }
808 }
805 }
809 }
806
810
807 .pill {
811 .pill {
808 display: block;
812 display: block;
809 float: left;
813 float: left;
810 padding: @pill-padding;
814 padding: @pill-padding;
811 }
815 }
812
816
813 .pill-group {
817 .pill-group {
814 .pill {
818 .pill {
815 opacity: .8;
819 opacity: .8;
816 margin-right: 3px;
820 margin-right: 3px;
817 font-size: 12px;
821 font-size: 12px;
818 font-weight: normal;
822 font-weight: normal;
819
823
820 &:first-child {
824 &:first-child {
821 border-radius: @border-radius 0 0 @border-radius;
825 border-radius: @border-radius 0 0 @border-radius;
822 }
826 }
823 &:last-child {
827 &:last-child {
824 border-radius: 0 @border-radius @border-radius 0;
828 border-radius: 0 @border-radius @border-radius 0;
825 }
829 }
826 &:only-child {
830 &:only-child {
827 border-radius: @border-radius;
831 border-radius: @border-radius;
828 margin-right: 0;
832 margin-right: 0;
829 }
833 }
830 }
834 }
831 }
835 }
832
836
833 /* Main comments*/
837 /* Main comments*/
834 #comments {
838 #comments {
835 .comment-selected {
839 .comment-selected {
836 border-left: 6px solid @comment-highlight-color;
840 border-left: 6px solid @comment-highlight-color;
837 padding-left: 3px;
841 padding-left: 3px;
838 margin-left: -9px;
842 margin-left: -9px;
839 }
843 }
840 }
844 }
841
845
842 .filediff {
846 .filediff {
843 border: 1px solid @grey5;
847 border: 1px solid @grey5;
844
848
845 /* START OVERRIDES */
849 /* START OVERRIDES */
846 .code-highlight {
850 .code-highlight {
847 border: none; // TODO: remove this border from the global
851 border: none; // TODO: remove this border from the global
848 // .code-highlight, it doesn't belong there
852 // .code-highlight, it doesn't belong there
849 }
853 }
850 label {
854 label {
851 margin: 0; // TODO: remove this margin definition from global label
855 margin: 0; // TODO: remove this margin definition from global label
852 // it doesn't belong there - if margin on labels
856 // it doesn't belong there - if margin on labels
853 // are needed for a form they should be defined
857 // are needed for a form they should be defined
854 // in the form's class
858 // in the form's class
855 }
859 }
856 /* END OVERRIDES */
860 /* END OVERRIDES */
857
861
858 * {
862 * {
859 box-sizing: border-box;
863 box-sizing: border-box;
860 }
864 }
861 .filediff-anchor {
865 .filediff-anchor {
862 visibility: hidden;
866 visibility: hidden;
863 }
867 }
864 &:hover {
868 &:hover {
865 .filediff-anchor {
869 .filediff-anchor {
866 visibility: visible;
870 visibility: visible;
867 }
871 }
868 }
872 }
869
873
870 .filediff-collapse-indicator {
874 .filediff-collapse-indicator {
871 border-style: solid;
875 border-style: solid;
872 float: left;
876 float: left;
873 margin: 4px 0px 0 0;
877 margin: 4px 0px 0 0;
874 cursor: pointer;
878 cursor: pointer;
875 }
879 }
876
880
877 .filediff-heading {
881 .filediff-heading {
878 background: @grey7;
882 background: @grey7;
879 cursor: pointer;
883 cursor: pointer;
880 display: block;
884 display: block;
881 padding: 5px 10px;
885 padding: 5px 10px;
882 }
886 }
883 .filediff-heading:after {
887 .filediff-heading:after {
884 content: "";
888 content: "";
885 display: table;
889 display: table;
886 clear: both;
890 clear: both;
887 }
891 }
888 .filediff-heading:hover {
892 .filediff-heading:hover {
889 background: #e1e9f4 !important;
893 background: #e1e9f4 !important;
890 }
894 }
891
895
892 .filediff-menu {
896 .filediff-menu {
893 float: right;
897 float: right;
894 text-align: right;
898 text-align: right;
895 padding: 5px 5px 5px 0px;
899 padding: 5px 5px 5px 0px;
896
900
897 &> a,
901 &> a,
898 &> span {
902 &> span {
899 padding: 1px;
903 padding: 1px;
900 }
904 }
901 }
905 }
902
906
903 .filediff-collapse-button, .filediff-expand-button {
907 .filediff-collapse-button, .filediff-expand-button {
904 cursor: pointer;
908 cursor: pointer;
905 }
909 }
906 .filediff-collapse-button {
910 .filediff-collapse-button {
907 display: inline;
911 display: inline;
908 }
912 }
909 .filediff-expand-button {
913 .filediff-expand-button {
910 display: none;
914 display: none;
911 }
915 }
912 .filediff-collapsed .filediff-collapse-button {
916 .filediff-collapsed .filediff-collapse-button {
913 display: none;
917 display: none;
914 }
918 }
915 .filediff-collapsed .filediff-expand-button {
919 .filediff-collapsed .filediff-expand-button {
916 display: inline;
920 display: inline;
917 }
921 }
918
922
919 /**** COMMENTS ****/
923 /**** COMMENTS ****/
920
924
921 .filediff-menu {
925 .filediff-menu {
922 .show-comment-button {
926 .show-comment-button {
923 display: none;
927 display: none;
924 }
928 }
925 }
929 }
926 &.hide-comments {
930 &.hide-comments {
927 .inline-comments {
931 .inline-comments {
928 display: none;
932 display: none;
929 }
933 }
930 .filediff-menu {
934 .filediff-menu {
931 .show-comment-button {
935 .show-comment-button {
932 display: inline;
936 display: inline;
933 }
937 }
934 .hide-comment-button {
938 .hide-comment-button {
935 display: none;
939 display: none;
936 }
940 }
937 }
941 }
938 }
942 }
939
943
940 .hide-line-comments {
944 .hide-line-comments {
941 .inline-comments {
945 .inline-comments {
942 display: none;
946 display: none;
943 }
947 }
944 }
948 }
945
949
946 /**** END COMMENTS ****/
950 /**** END COMMENTS ****/
947
951
948 }
952 }
949
953
950
954
951
955
952 .filediff, .filelist {
956 .filediff, .filelist {
953 .pill {
957 .pill {
954 &[op="name"] {
958 &[op="name"] {
955 background: none;
959 background: none;
956 opacity: 1;
960 opacity: 1;
957 color: white;
961 color: white;
958 }
962 }
959 &[op="limited"] {
963 &[op="limited"] {
960 background: @grey2;
964 background: @grey2;
961 color: white;
965 color: white;
962 }
966 }
963 &[op="binary"] {
967 &[op="binary"] {
964 background: @color7;
968 background: @color7;
965 color: white;
969 color: white;
966 }
970 }
967 &[op="modified"] {
971 &[op="modified"] {
968 background: @alert1;
972 background: @alert1;
969 color: white;
973 color: white;
970 }
974 }
971 &[op="renamed"] {
975 &[op="renamed"] {
972 background: @color4;
976 background: @color4;
973 color: white;
977 color: white;
974 }
978 }
975 &[op="copied"] {
979 &[op="copied"] {
976 background: @color4;
980 background: @color4;
977 color: white;
981 color: white;
978 }
982 }
979 &[op="mode"] {
983 &[op="mode"] {
980 background: @grey3;
984 background: @grey3;
981 color: white;
985 color: white;
982 }
986 }
983 &[op="symlink"] {
987 &[op="symlink"] {
984 background: @color8;
988 background: @color8;
985 color: white;
989 color: white;
986 }
990 }
987
991
988 &[op="added"] { /* added lines */
992 &[op="added"] { /* added lines */
989 background: @alert1;
993 background: @alert1;
990 color: white;
994 color: white;
991 }
995 }
992 &[op="deleted"] { /* deleted lines */
996 &[op="deleted"] { /* deleted lines */
993 background: @alert2;
997 background: @alert2;
994 color: white;
998 color: white;
995 }
999 }
996
1000
997 &[op="created"] { /* created file */
1001 &[op="created"] { /* created file */
998 background: @alert1;
1002 background: @alert1;
999 color: white;
1003 color: white;
1000 }
1004 }
1001 &[op="removed"] { /* deleted file */
1005 &[op="removed"] { /* deleted file */
1002 background: @color5;
1006 background: @color5;
1003 color: white;
1007 color: white;
1004 }
1008 }
1005 }
1009 }
1006 }
1010 }
1007
1011
1008
1012
1009 .filediff-outdated {
1013 .filediff-outdated {
1010 padding: 8px 0;
1014 padding: 8px 0;
1011
1015
1012 .filediff-heading {
1016 .filediff-heading {
1013 opacity: .5;
1017 opacity: .5;
1014 }
1018 }
1015 }
1019 }
1016
1020
1017 table.cb {
1021 table.cb {
1018 width: 100%;
1022 width: 100%;
1019 border-collapse: collapse;
1023 border-collapse: collapse;
1020
1024
1021 .cb-text {
1025 .cb-text {
1022 padding: @cb-text-padding;
1026 padding: @cb-text-padding;
1023 }
1027 }
1024 .cb-hunk {
1028 .cb-hunk {
1025 padding: @cb-text-padding;
1029 padding: @cb-text-padding;
1026 }
1030 }
1027 .cb-expand {
1031 .cb-expand {
1028 display: none;
1032 display: none;
1029 }
1033 }
1030 .cb-collapse {
1034 .cb-collapse {
1031 display: inline;
1035 display: inline;
1032 }
1036 }
1033 &.cb-collapsed {
1037 &.cb-collapsed {
1034 .cb-line {
1038 .cb-line {
1035 display: none;
1039 display: none;
1036 }
1040 }
1037 .cb-expand {
1041 .cb-expand {
1038 display: inline;
1042 display: inline;
1039 }
1043 }
1040 .cb-collapse {
1044 .cb-collapse {
1041 display: none;
1045 display: none;
1042 }
1046 }
1043 .cb-hunk {
1047 .cb-hunk {
1044 display: none;
1048 display: none;
1045 }
1049 }
1046 }
1050 }
1047
1051
1048 /* intentionally general selector since .cb-line-selected must override it
1052 /* intentionally general selector since .cb-line-selected must override it
1049 and they both use !important since the td itself may have a random color
1053 and they both use !important since the td itself may have a random color
1050 generated by annotation blocks. TLDR: if you change it, make sure
1054 generated by annotation blocks. TLDR: if you change it, make sure
1051 annotated block selection and line selection in file view still work */
1055 annotated block selection and line selection in file view still work */
1052 .cb-line-fresh .cb-content {
1056 .cb-line-fresh .cb-content {
1053 background: white !important;
1057 background: white !important;
1054 }
1058 }
1055 .cb-warning {
1059 .cb-warning {
1056 background: #fff4dd;
1060 background: #fff4dd;
1057 }
1061 }
1058
1062
1059 &.cb-diff-sideside {
1063 &.cb-diff-sideside {
1060 td {
1064 td {
1061 &.cb-content {
1065 &.cb-content {
1062 width: 50%;
1066 width: 50%;
1063 }
1067 }
1064 }
1068 }
1065 }
1069 }
1066
1070
1067 tr {
1071 tr {
1068 &.cb-annotate {
1072 &.cb-annotate {
1069 border-top: 1px solid #eee;
1073 border-top: 1px solid #eee;
1070 }
1074 }
1071
1075
1072 &.cb-comment-info {
1076 &.cb-comment-info {
1073 border-top: 1px solid #eee;
1077 border-top: 1px solid #eee;
1074 color: rgba(0, 0, 0, 0.3);
1078 color: rgba(0, 0, 0, 0.3);
1075 background: #edf2f9;
1079 background: #edf2f9;
1076
1080
1077 td {
1081 td {
1078
1082
1079 }
1083 }
1080 }
1084 }
1081
1085
1082 &.cb-hunk {
1086 &.cb-hunk {
1083 font-family: @text-monospace;
1087 font-family: @text-monospace;
1084 color: rgba(0, 0, 0, 0.3);
1088 color: rgba(0, 0, 0, 0.3);
1085
1089
1086 td {
1090 td {
1087 &:first-child {
1091 &:first-child {
1088 background: #edf2f9;
1092 background: #edf2f9;
1089 }
1093 }
1090 &:last-child {
1094 &:last-child {
1091 background: #f4f7fb;
1095 background: #f4f7fb;
1092 }
1096 }
1093 }
1097 }
1094 }
1098 }
1095 }
1099 }
1096
1100
1097
1101
1098 td {
1102 td {
1099 vertical-align: top;
1103 vertical-align: top;
1100 padding: 0;
1104 padding: 0;
1101
1105
1102 &.cb-content {
1106 &.cb-content {
1103 font-size: 12.35px;
1107 font-size: 12.35px;
1104
1108
1105 &.cb-line-selected .cb-code {
1109 &.cb-line-selected .cb-code {
1106 background: @comment-highlight-color !important;
1110 background: @comment-highlight-color !important;
1107 }
1111 }
1108
1112
1109 span.cb-code {
1113 span.cb-code {
1110 line-height: @cb-line-height;
1114 line-height: @cb-line-height;
1111 padding-left: @cb-line-code-padding;
1115 padding-left: @cb-line-code-padding;
1112 padding-right: @cb-line-code-padding;
1116 padding-right: @cb-line-code-padding;
1113 display: block;
1117 display: block;
1114 white-space: pre-wrap;
1118 white-space: pre-wrap;
1115 font-family: @text-monospace;
1119 font-family: @text-monospace;
1116 word-break: break-all;
1120 word-break: break-all;
1117 .nonl {
1121 .nonl {
1118 color: @color5;
1122 color: @color5;
1119 }
1123 }
1120 .cb-action {
1124 .cb-action {
1121 &:before {
1125 &:before {
1122 content: " ";
1126 content: " ";
1123 }
1127 }
1124 &.cb-deletion:before {
1128 &.cb-deletion:before {
1125 content: "- ";
1129 content: "- ";
1126 }
1130 }
1127 &.cb-addition:before {
1131 &.cb-addition:before {
1128 content: "+ ";
1132 content: "+ ";
1129 }
1133 }
1130 }
1134 }
1131 }
1135 }
1132
1136
1133 &> button.cb-comment-box-opener {
1137 &> button.cb-comment-box-opener {
1134
1138
1135 padding: 2px 2px 1px 3px;
1139 padding: 2px 2px 1px 3px;
1136 margin-left: -6px;
1140 margin-left: -6px;
1137 margin-top: -1px;
1141 margin-top: -1px;
1138
1142
1139 border-radius: @border-radius;
1143 border-radius: @border-radius;
1140 position: absolute;
1144 position: absolute;
1141 display: none;
1145 display: none;
1142 }
1146 }
1143 .cb-comment {
1147 .cb-comment {
1144 margin-top: 10px;
1148 margin-top: 10px;
1145 white-space: normal;
1149 white-space: normal;
1146 }
1150 }
1147 }
1151 }
1148 &:hover {
1152 &:hover {
1149 button.cb-comment-box-opener {
1153 button.cb-comment-box-opener {
1150 display: block;
1154 display: block;
1151 }
1155 }
1152 &+ td button.cb-comment-box-opener {
1156 &+ td button.cb-comment-box-opener {
1153 display: block
1157 display: block
1154 }
1158 }
1155 }
1159 }
1156
1160
1157 &.cb-data {
1161 &.cb-data {
1158 text-align: right;
1162 text-align: right;
1159 width: 30px;
1163 width: 30px;
1160 font-family: @text-monospace;
1164 font-family: @text-monospace;
1161
1165
1162 .icon-comment {
1166 .icon-comment {
1163 cursor: pointer;
1167 cursor: pointer;
1164 }
1168 }
1165 &.cb-line-selected {
1169 &.cb-line-selected {
1166 background: @comment-highlight-color !important;
1170 background: @comment-highlight-color !important;
1167 }
1171 }
1168 &.cb-line-selected > div {
1172 &.cb-line-selected > div {
1169 display: block;
1173 display: block;
1170 background: @comment-highlight-color !important;
1174 background: @comment-highlight-color !important;
1171 line-height: @cb-line-height;
1175 line-height: @cb-line-height;
1172 color: rgba(0, 0, 0, 0.3);
1176 color: rgba(0, 0, 0, 0.3);
1173 }
1177 }
1174 }
1178 }
1175
1179
1176 &.cb-lineno {
1180 &.cb-lineno {
1177 padding: 0;
1181 padding: 0;
1178 width: 50px;
1182 width: 50px;
1179 color: rgba(0, 0, 0, 0.3);
1183 color: rgba(0, 0, 0, 0.3);
1180 text-align: right;
1184 text-align: right;
1181 border-right: 1px solid #eee;
1185 border-right: 1px solid #eee;
1182 font-family: @text-monospace;
1186 font-family: @text-monospace;
1183 -webkit-user-select: none;
1187 -webkit-user-select: none;
1184 -moz-user-select: none;
1188 -moz-user-select: none;
1185 user-select: none;
1189 user-select: none;
1186
1190
1187 a::before {
1191 a::before {
1188 content: attr(data-line-no);
1192 content: attr(data-line-no);
1189 }
1193 }
1190 &.cb-line-selected {
1194 &.cb-line-selected {
1191 background: @comment-highlight-color !important;
1195 background: @comment-highlight-color !important;
1192 }
1196 }
1193
1197
1194 a {
1198 a {
1195 display: block;
1199 display: block;
1196 padding-right: @cb-line-code-padding;
1200 padding-right: @cb-line-code-padding;
1197 padding-left: @cb-line-code-padding;
1201 padding-left: @cb-line-code-padding;
1198 line-height: @cb-line-height;
1202 line-height: @cb-line-height;
1199 color: rgba(0, 0, 0, 0.3);
1203 color: rgba(0, 0, 0, 0.3);
1200 }
1204 }
1201 }
1205 }
1202
1206
1203 &.cb-empty {
1207 &.cb-empty {
1204 background: @grey7;
1208 background: @grey7;
1205 }
1209 }
1206
1210
1207 ins {
1211 ins {
1208 color: black;
1212 color: black;
1209 background: #a6f3a6;
1213 background: #a6f3a6;
1210 text-decoration: none;
1214 text-decoration: none;
1211 }
1215 }
1212 del {
1216 del {
1213 color: black;
1217 color: black;
1214 background: #f8cbcb;
1218 background: #f8cbcb;
1215 text-decoration: none;
1219 text-decoration: none;
1216 }
1220 }
1217 &.cb-addition {
1221 &.cb-addition {
1218 background: #ecffec;
1222 background: #ecffec;
1219
1223
1220 &.blob-lineno {
1224 &.blob-lineno {
1221 background: #ddffdd;
1225 background: #ddffdd;
1222 }
1226 }
1223 }
1227 }
1224 &.cb-deletion {
1228 &.cb-deletion {
1225 background: #ffecec;
1229 background: #ffecec;
1226
1230
1227 &.blob-lineno {
1231 &.blob-lineno {
1228 background: #ffdddd;
1232 background: #ffdddd;
1229 }
1233 }
1230 }
1234 }
1231 &.cb-annotate-message-spacer {
1235 &.cb-annotate-message-spacer {
1232 width:8px;
1236 width:8px;
1233 padding: 1px 0px 0px 3px;
1237 padding: 1px 0px 0px 3px;
1234 }
1238 }
1235 &.cb-annotate-info {
1239 &.cb-annotate-info {
1236 width: 320px;
1240 width: 320px;
1237 min-width: 320px;
1241 min-width: 320px;
1238 max-width: 320px;
1242 max-width: 320px;
1239 padding: 5px 2px;
1243 padding: 5px 2px;
1240 font-size: 13px;
1244 font-size: 13px;
1241
1245
1242 .cb-annotate-message {
1246 .cb-annotate-message {
1243 padding: 2px 0px 0px 0px;
1247 padding: 2px 0px 0px 0px;
1244 white-space: pre-line;
1248 white-space: pre-line;
1245 overflow: hidden;
1249 overflow: hidden;
1246 }
1250 }
1247 .rc-user {
1251 .rc-user {
1248 float: none;
1252 float: none;
1249 padding: 0 6px 0 17px;
1253 padding: 0 6px 0 17px;
1250 min-width: unset;
1254 min-width: unset;
1251 min-height: unset;
1255 min-height: unset;
1252 }
1256 }
1253 }
1257 }
1254
1258
1255 &.cb-annotate-revision {
1259 &.cb-annotate-revision {
1256 cursor: pointer;
1260 cursor: pointer;
1257 text-align: right;
1261 text-align: right;
1258 padding: 1px 3px 0px 3px;
1262 padding: 1px 3px 0px 3px;
1259 }
1263 }
1260 }
1264 }
1261 }
1265 }
@@ -1,481 +1,481 b''
1 // summary.less
1 // summary.less
2 // For use in RhodeCode applications;
2 // For use in RhodeCode applications;
3 // Used for headers and file detail summary screens.
3 // Used for headers and file detail summary screens.
4
4
5 .summary {
5 .summary {
6 clear: both;
6 clear: both;
7 float: none;
7 float: none;
8 position: relative;
8 position: relative;
9 width: 100%;
9 width: 100%;
10 margin: 0;
10 margin: 0;
11 padding: 0;
11 padding: 0;
12 background: #FCFCFC;
12 background: #FCFCFC;
13 border: 1px solid #EAEAEA;
13 border: 1px solid #EAEAEA;
14 border-radius: @border-radius;
14 border-radius: @border-radius;
15 margin-bottom: 20px;
15 margin-bottom: 20px;
16
16
17 .summary-detail-header {
17 .summary-detail-header {
18 display: block;
18 display: block;
19 width: 100%;
19 width: 100%;
20 margin-bottom: 10px;
20 margin-bottom: 10px;
21 padding: 0 0 .5em 0;
21 padding: 0 0 .5em 0;
22 border-bottom: @border-thickness solid @border-default-color;
22 border-bottom: @border-thickness solid @border-default-color;
23
23
24 .breadcrumbs {
24 .breadcrumbs {
25 display: inline;
25 display: inline;
26 margin: 0;
26 margin: 0;
27 padding: 0;
27 padding: 0;
28 }
28 }
29
29
30 h4 {
30 h4 {
31 margin: 0 1em 0 0;
31 margin: 0 1em 0 0;
32 padding: 10px 0 5px 20px;
32 padding: 10px 0 5px 20px;
33 line-height: 1.2em;
33 line-height: 1.2em;
34 font-size: @basefontsize;
34 font-size: @basefontsize;
35 }
35 }
36
36
37 .action_link {
37 .action_link {
38 float: right;
38 float: right;
39 }
39 }
40
40
41 .new-file {
41 .new-file {
42 float: right;
42 float: right;
43 margin-top: -1.5em;
43 margin-top: -1.5em;
44 }
44 }
45 }
45 }
46
46
47 .summary-detail {
47 .summary-detail {
48 float: none;
48 float: none;
49 position: relative;
49 position: relative;
50 width: 100%;
50 width: 100%;
51 margin: 0;
51 margin: 0;
52 padding: 0 0 20px 0;
52 padding: 0 0 20px 0;
53
53
54 .file_diff_buttons {
54 .file_diff_buttons {
55 margin-top: @space;
55 margin-top: @space;
56 }
56 }
57
57
58 // commit message
58 // commit message
59 .commit {
59 .commit {
60 white-space: pre-wrap;
60 white-space: pre-wrap;
61 }
61 }
62
62
63 .left-clone {
63 .left-clone {
64 float: left;
64 float: left;
65 height: 30px;
65 height: 30px;
66 margin: 0;
66 margin: 0;
67 padding: 0;
67 padding: 0;
68 width: 130px;
68 width: 130px;
69 font-weight: @text-semibold-weight;
69 font-weight: @text-semibold-weight;
70 font-family: @text-semibold;
70 font-family: @text-semibold;
71 }
71 }
72 .left-clone select {
72 .left-clone select {
73 width: 130px;
73 width: 130px;
74 margin-right: 0;
74 margin-right: 0;
75 background-color: @grey7;
75 background-color: @grey7;
76 border-color: @grey4;
76 border-color: @grey4;
77 color: #5C5C5C;
77 color: #5C5C5C;
78 border-top-right-radius: 0;
78 border-top-right-radius: 0;
79 border-bottom-right-radius: 0;
79 border-bottom-right-radius: 0;
80 }
80 }
81
81
82 .right-clone {
82 .right-clone {
83 float: left;
83 float: left;
84 width: ~"calc(100% - 170px)";
84 width: ~"calc(100% - 170px)";
85
85
86 .clipboard-action {
86 .clipboard-action {
87 margin-left: -30px;
87 margin-left: -30px;
88 }
88 }
89 }
89 }
90
90
91 .clone_url_input {
91 .clone_url_input {
92 width: ~"calc(100% - 90px)";
92 width: ~"calc(100% - 90px)";
93 padding: 6px 30px 6px 10px;
93 padding: 6px 30px 6px 10px;
94 height: 14px;
94 height: 14px;
95 box-shadow: 0 1px 1px 0 rgba(0,0,0,0.07);
95 box-shadow: 0 1px 1px 0 rgba(0,0,0,0.07);
96 border-top-left-radius: 0;
96 border-top-left-radius: 0;
97 border-bottom-left-radius: 0;
97 border-bottom-left-radius: 0;
98 margin-left: -1px;
98 margin-left: -1px;
99 }
99 }
100
100
101 &.directory {
101 &.directory {
102 margin-bottom: 0;
102 margin-bottom: 0;
103 }
103 }
104
104
105 .desc {
105 .desc {
106 white-space: pre-wrap;
106 white-space: pre-wrap;
107 }
107 }
108 .disabled {
108 .disabled {
109 opacity: .5;
109 opacity: .5;
110 cursor: inherit;
110 cursor: inherit;
111 }
111 }
112 .help-block {
112 .help-block {
113 color: inherit;
113 color: inherit;
114 margin: 0;
114 margin: 0;
115 }
115 }
116 }
116 }
117
117
118 .sidebar-right {
118 .sidebar-right {
119 float: left;
119 float: left;
120 width: 24%;
120 width: 24%;
121 margin: 0;
121 margin: 0;
122 padding: 0;
122 padding: 0;
123
123
124 ul {
124 ul {
125 margin-left: 0;
125 margin-left: 0;
126 padding-left: 0;
126 padding-left: 0;
127
127
128 li {
128 li {
129 list-style-type: none;
129 list-style-type: none;
130 }
130 }
131 }
131 }
132 }
132 }
133
133
134 #clone_by_name, #clone_by_id{
134 #clone_by_name, #clone_by_id{
135 display: inline-block;
135 display: inline-block;
136 margin-left: 0px;
136 margin-left: 0px;
137 }
137 }
138
138
139 .codeblock {
139 .codeblock {
140 border: none;
140 border: none;
141 background-color: transparent;
141 background-color: transparent;
142 }
142 }
143
143
144 .code-body {
144 .code-body {
145 border: @border-thickness solid @border-default-color;
145 border: @border-thickness solid @border-default-color;
146 .border-radius(@border-radius);
146 .border-radius(@border-radius);
147 }
147 }
148
148
149 .btn-collapse {
149 .btn-collapse {
150 clear: both;
150 clear: both;
151 float: none;
151 float: none;
152 background: #F7F7F7;
152 background: #F7F7F7;
153 text-align: center;
153 text-align: center;
154 color: #949494;
154 color: #949494;
155 font-size: 11px;
155 font-size: 11px;
156
156
157 &:hover {
157 &:hover {
158 background: #f1f1f1;
158 background: #f1f1f1;
159 color: #2B2B2D;
159 color: #2B2B2D;
160 }
160 }
161 }
161 }
162 }
162 }
163
163
164 // this is used outside of just the summary
164 // this is used outside of just the summary
165 .fieldset, // similar to form fieldset
165 .fieldset, // similar to form fieldset
166 .summary .sidebar-right-content { // these have to match
166 .summary .sidebar-right-content { // these have to match
167 clear: both;
167 clear: both;
168 float: none;
168 float: none;
169 position: relative;
169 position: relative;
170 display:block;
170 display:block;
171 width: 100%;
171 width: 100%;
172 min-height: 1em;
172 min-height: 20px;
173 margin-bottom: 10px;
173 margin-bottom: 10px;
174 padding: 0;
174 padding: 0;
175 line-height: 1.2em;
175 line-height: 1.2em;
176
176
177 &:after { // clearfix
177 &:after { // clearfix
178 content: "";
178 content: "";
179 clear: both;
179 clear: both;
180 width: 100%;
180 width: 100%;
181 height: 1em;
181 height: 1em;
182 }
182 }
183 }
183 }
184
184
185 .summary .sidebar-right-content {
185 .summary .sidebar-right-content {
186 margin-bottom: 0;
186 margin-bottom: 0;
187
187
188 .rc-user {
188 .rc-user {
189 min-width: 0;
189 min-width: 0;
190 }
190 }
191
191
192 li {
192 li {
193 list-style: none;
193 list-style: none;
194 line-height: normal;
194 line-height: normal;
195 }
195 }
196 }
196 }
197
197
198 .summary {
198 .summary {
199 .fieldset {
199 .fieldset {
200 margin-bottom: 0;
200 margin-bottom: 0;
201 }
201 }
202 }
202 }
203
203
204 .fieldset {
204 .fieldset {
205
205
206 .left-label { // similar to form legend
206 .left-label { // similar to form legend
207 display: block;
207 display: block;
208 margin: 0;
208 margin: 0;
209 padding: 0;
209 padding: 0;
210 font-weight: @text-semibold-weight;
210 font-weight: @text-semibold-weight;
211 font-family: @text-semibold;
211 font-family: @text-semibold;
212 }
212 }
213
213
214 .left-label-summary {
214 .left-label-summary {
215 padding-left: 20px;
215 padding-left: 20px;
216 margin-bottom: 5px;
216 margin-bottom: 5px;
217
217
218 p {
218 p {
219 margin-bottom: 5px;
219 margin-bottom: 5px;
220 color: @grey1;
220 color: @grey1;
221 float: left;
221 float: left;
222 width: 130px;
222 width: 130px;
223
223
224 &.spacing {
224 &.spacing {
225 margin-top: 10px;
225 margin-top: 10px;
226 }
226 }
227 }
227 }
228
228
229 .right-label-summary {
229 .right-label-summary {
230 float: left;
230 float: left;
231 margin-top: 7px;
231 margin-top: 7px;
232 width: ~"calc(100% - 160px)";
232 width: ~"calc(100% - 160px)";
233 }
233 }
234 }
234 }
235
235
236 .left-label-summary-files {
236 .left-label-summary-files {
237 padding-left: 45px;
237 padding-left: 45px;
238 margin-top: 5px;
238 margin-top: 5px;
239
239
240 p {
240 p {
241 margin-bottom: 5px;
241 margin-bottom: 5px;
242 color: @grey1;
242 color: @grey1;
243 float: left;
243 float: left;
244 width: 130px;
244 width: 130px;
245
245
246 &.spacing {
246 &.spacing {
247 margin-top: 10px;
247 margin-top: 10px;
248 }
248 }
249 }
249 }
250
250
251 .right-label-summary {
251 .right-label-summary {
252 float: left;
252 float: left;
253 margin-top: 7px;
253 margin-top: 7px;
254 }
254 }
255 }
255 }
256
256
257 .left-content {
257 .left-content {
258 width: ~"calc(60% - 20px)";
258 width: ~"calc(60% - 20px)";
259 float: left;
259 float: left;
260 margin: 15px 0 15px 20px;
260 margin: 15px 0 15px 20px;
261
261
262 .rc-user {
262 .rc-user {
263 min-width: auto;
263 min-width: auto;
264 max-width: none;
264 max-width: none;
265 min-height: auto;
265 min-height: auto;
266 padding-right: 5px;
266 padding-right: 5px;
267 }
267 }
268
268
269 .left-content-avatar {
269 .left-content-avatar {
270 width: 45px;
270 width: 45px;
271 float: left;
271 float: left;
272 margin-top: 8px;
272 margin-top: 8px;
273 }
273 }
274
274
275 .left-content-message {
275 .left-content-message {
276 float: left;
276 float: left;
277 width: ~"calc(100% - 45px)";
277 width: ~"calc(100% - 45px)";
278 }
278 }
279 }
279 }
280
280
281 .right-content { // similar to form fields
281 .right-content { // similar to form fields
282 float: left;
282 float: left;
283 display: block;
283 display: block;
284 width: ~"calc(40% - 20px)";
284 width: ~"calc(40% - 20px)";
285 text-align: right;
285 text-align: right;
286 margin: 15px 20px 15px 0;
286 margin: 15px 20px 15px 0;
287
287
288 .truncate-wrap,
288 .truncate-wrap,
289 .truncate {
289 .truncate {
290 max-width: 100%;
290 max-width: 100%;
291 width: 100%;
291 width: 100%;
292 }
292 }
293
293
294 .commit-long {
294 .commit-long {
295 overflow-x: auto;
295 overflow-x: auto;
296 }
296 }
297
297
298 .commit-info {
298 .commit-info {
299 margin-top: 7px;
299 margin-top: 7px;
300 }
300 }
301
301
302 .tag, .tagtag, .branchtag, .booktag, .metatag, .perm_tag {
302 .tag, .tagtag, .branchtag, .booktag, .metatag, .perm_tag {
303 background:transparent;
303 background:transparent;
304 border: none;
304 border: none;
305 box-shadow: none;
305 box-shadow: none;
306 margin-left: 10px;
306 margin-left: 10px;
307 font-size: 13px;
307 font-size: 13px;
308 }
308 }
309
309
310 .tag span, .tag i {
310 .tag span, .tag i {
311 color: @grey1;
311 color: @grey1;
312 }
312 }
313 }
313 }
314 .commit {
314 .commit {
315 color: @grey1;
315 color: @grey1;
316 margin-bottom: 5px;
316 margin-bottom: 5px;
317 white-space: pre;
317 white-space: pre;
318 }
318 }
319 .commit.truncate-wrap {
319 .commit.truncate-wrap {
320 overflow:hidden;
320 overflow:hidden;
321 text-overflow: ellipsis;
321 text-overflow: ellipsis;
322 }
322 }
323 .commit-author {
323 .commit-author {
324 color: @grey1;
324 color: @grey1;
325 }
325 }
326 .commit-date {
326 .commit-date {
327 color: @grey4;
327 color: @grey4;
328 }
328 }
329 }
329 }
330
330
331 // expand commit message
331 // expand commit message
332 #message_expand {
332 #message_expand {
333 clear: both;
333 clear: both;
334 display: block;
334 display: block;
335 color: @rcblue;
335 color: @rcblue;
336 cursor: pointer;
336 cursor: pointer;
337 }
337 }
338
338
339 #trimmed_message_box {
339 #trimmed_message_box {
340 max-height: floor(2 * @basefontsize * 1.2); // 2 lines * line-height
340 max-height: floor(2 * @basefontsize * 1.2); // 2 lines * line-height
341 overflow: hidden;
341 overflow: hidden;
342 }
342 }
343
343
344 // show/hide comments button
344 // show/hide comments button
345 .show-inline-comments {
345 .show-inline-comments {
346 display: inline;
346 display: inline;
347 cursor: pointer;
347 cursor: pointer;
348
348
349 .comments-show { display: inline; }
349 .comments-show { display: inline; }
350 .comments-hide { display: none; }
350 .comments-hide { display: none; }
351
351
352 &.comments-visible {
352 &.comments-visible {
353 .comments-show { display: none; }
353 .comments-show { display: none; }
354 .comments-hide { display: inline; }
354 .comments-hide { display: inline; }
355 }
355 }
356 }
356 }
357
357
358 // Quick Start section
358 // Quick Start section
359
359
360 .empty-repo {
360 .empty-repo {
361 border: 1px solid #EAEAEA;
361 border: 1px solid #EAEAEA;
362 border-bottom: 0;
362 border-bottom: 0;
363 border-radius: @border-radius;
363 border-radius: @border-radius;
364 padding: 0 20px;
364 padding: 0 20px;
365 }
365 }
366
366
367 .empty-repo h3, .quick_start p {
367 .empty-repo h3, .quick_start p {
368 margin-bottom: 10px;
368 margin-bottom: 10px;
369 }
369 }
370
370
371 .quick_start pre {
371 .quick_start pre {
372 background: #FCFEFF;
372 background: #FCFEFF;
373 border: 1px solid #CBDBEB;
373 border: 1px solid #CBDBEB;
374 box-shadow: @button-shadow;
374 box-shadow: @button-shadow;
375 padding: 10px 15px;
375 padding: 10px 15px;
376 border-radius: 4px;
376 border-radius: 4px;
377 color: @grey2;
377 color: @grey2;
378 }
378 }
379
379
380 .clear-fix {
380 .clear-fix {
381 clear: both;
381 clear: both;
382 }
382 }
383
383
384 .quick_start {
384 .quick_start {
385 display: block;
385 display: block;
386 position: relative;
386 position: relative;
387 border: 1px solid #EAEAEA;
387 border: 1px solid #EAEAEA;
388 border-top: 0;
388 border-top: 0;
389 border-radius: @border-radius;
389 border-radius: @border-radius;
390 padding: 0 20px;
390 padding: 0 20px;
391
391
392 // adds some space to make copy and paste easier
392 // adds some space to make copy and paste easier
393 .left-label,
393 .left-label,
394 .right-content {
394 .right-content {
395 line-height: 1.6em;
395 line-height: 1.6em;
396 }
396 }
397 }
397 }
398
398
399
399
400 .submodule {
400 .submodule {
401 .summary-detail {
401 .summary-detail {
402 width: 100%;
402 width: 100%;
403
403
404 .btn-collapse {
404 .btn-collapse {
405 display: none;
405 display: none;
406 }
406 }
407 }
407 }
408 }
408 }
409
409
410 .codeblock-header {
410 .codeblock-header {
411 float: left;
411 float: left;
412 display: block;
412 display: block;
413 width: 100%;
413 width: 100%;
414 margin: 0;
414 margin: 0;
415
415
416 .file-filename {
416 .file-filename {
417 float:left;
417 float:left;
418 padding: 10px;
418 padding: 10px;
419 }
419 }
420
420
421 .file-stats {
421 .file-stats {
422 padding: 10px;
422 padding: 10px;
423 float:right;
423 float:right;
424 }
424 }
425
425
426
426
427 .stats-first-item {
427 .stats-first-item {
428 padding: 0px 0px 0px 3px;
428 padding: 0px 0px 0px 3px;
429 }
429 }
430
430
431 .stats-info {
431 .stats-info {
432 font-size: 11px;
432 font-size: 11px;
433 color: @grey4;
433 color: @grey4;
434 }
434 }
435
435
436 .buttons {
436 .buttons {
437 float: right;
437 float: right;
438 text-align: right;
438 text-align: right;
439 color: @grey4;
439 color: @grey4;
440 padding: 10px;
440 padding: 10px;
441 }
441 }
442
442
443 .file-container {
443 .file-container {
444 display: inline-block;
444 display: inline-block;
445 width: 100%;
445 width: 100%;
446 }
446 }
447
447
448 }
448 }
449
449
450 #summary-menu-stats {
450 #summary-menu-stats {
451
451
452 .stats-bullet {
452 .stats-bullet {
453 color: @grey3;
453 color: @grey3;
454 min-width: 3em;
454 min-width: 3em;
455 }
455 }
456
456
457 .repo-size {
457 .repo-size {
458 margin-bottom: .5em;
458 margin-bottom: .5em;
459 }
459 }
460
460
461 }
461 }
462
462
463 .rctable.repo_summary {
463 .rctable.repo_summary {
464 border: 1px solid #eaeaea;
464 border: 1px solid #eaeaea;
465 border-radius: 2px;
465 border-radius: 2px;
466 border-collapse: inherit;
466 border-collapse: inherit;
467 border-bottom: 0;
467 border-bottom: 0;
468
468
469 th {
469 th {
470 background: @grey7;
470 background: @grey7;
471 border-bottom: 0;
471 border-bottom: 0;
472 }
472 }
473
473
474 td {
474 td {
475 border-color: #eaeaea;
475 border-color: #eaeaea;
476 }
476 }
477
477
478 td.td-status {
478 td.td-status {
479 padding: 0 0 0 10px;
479 padding: 0 0 0 10px;
480 }
480 }
481 }
481 }
@@ -1,46 +1,46 b''
1 <%namespace name="base" file="/base/base.mako"/>
1 <%namespace name="base" file="/base/base.mako"/>
2 <%namespace name="file_base" file="/files/base.mako"/>
2 <%namespace name="file_base" file="/files/base.mako"/>
3
3
4 <div class="summary">
4 <div class="summary">
5 <div class="fieldset">
5 <div class="fieldset">
6 <div class="left-content">
6 <div class="left-content">
7
7
8 <div class="left-content-avatar">
8 <div class="left-content-avatar">
9 ${base.gravatar(c.commit.author_email, 30)}
9 ${base.gravatar(c.commit.author_email, 30)}
10 </div>
10 </div>
11
11
12 <div class="left-content-message">
12 <div class="left-content-message">
13 <div class="fieldset collapsable-content no-hide" data-toggle="summary-details">
13 <div class="fieldset collapsable-content no-hide" data-toggle="summary-details">
14 <div class="commit truncate-wrap">${h.urlify_commit_message(h.chop_at_smart(c.commit.message, '\n', suffix_if_chopped='...'), c.repo_name)}</div>
14 <div class="commit truncate-wrap">${h.urlify_commit_message(h.chop_at_smart(c.commit.message, '\n', suffix_if_chopped='...'), c.repo_name)}</div>
15 </div>
15 </div>
16
16
17 <div class="fieldset collapsable-content" data-toggle="summary-details">
17 <div class="fieldset collapsable-content" data-toggle="summary-details">
18 <div class="commit">${h.urlify_commit_message(c.commit.message,c.repo_name)}</div>
18 <div class="commit">${h.urlify_commit_message(c.commit.message,c.repo_name)}</div>
19 </div>
19 </div>
20
20
21 <div class="clear-fix">
21 <div class="fieldset clear-fix">
22 <span class="commit-author">${h.link_to_user(c.commit.author)}</span><span class="commit-date"> - ${h.age_component(c.commit.date)}</span>
22 <span class="commit-author">${h.link_to_user(c.commit.author)}</span><span class="commit-date"> - ${h.age_component(c.commit.date)}</span>
23 </div>
23 </div>
24 </div>
24 </div>
25 </div>
25 </div>
26
26
27 <div class="right-content">
27 <div class="right-content">
28 <div class="tags commit-info">
28 <div class="tags commit-info">
29 <code>
29 <code>
30 <a href="${h.route_path('repo_commit',repo_name=c.repo_name,commit_id=c.commit.raw_id)}">${h.show_id(c.commit)}</a>
30 <a href="${h.route_path('repo_commit',repo_name=c.repo_name,commit_id=c.commit.raw_id)}">${h.show_id(c.commit)}</a>
31 </code>
31 </code>
32
32
33 ${file_base.refs(c.commit)}
33 ${file_base.refs(c.commit)}
34 </div>
34 </div>
35 </div>
35 </div>
36
36
37 <div class="clear-fix"></div>
37 <div class="clear-fix"></div>
38
38
39 <div class="btn-collapse" data-toggle="summary-details">
39 <div class="btn-collapse" data-toggle="summary-details">
40 ${_('Show More')}
40 ${_('Show More')}
41 </div>
41 </div>
42 </div>
42 </div>
43 </div>
43 </div>
44 <script>
44 <script>
45 collapsableContent();
45 collapsableContent();
46 </script>
46 </script>
General Comments 0
You need to be logged in to leave comments. Login now