##// END OF EJS Templates
styling: adds README styling for #4054 GFM
lisaq -
r345:190afce4 default
parent child Browse files
Show More
@@ -1,638 +1,642 b''
1 1 // Default styles
2 2
3 3 .diff-collapse {
4 4 margin: @padding 0;
5 5 text-align: right;
6 6 }
7 7
8 8 .diff-container {
9 9 margin-bottom: @space;
10 10
11 11 .diffblock {
12 12 margin-bottom: @space;
13 13 }
14 14
15 15 &.hidden {
16 16 display: none;
17 17 overflow: hidden;
18 18 }
19 19 }
20 20
21 21 .compare_view_files {
22 22
23 23 .diff-container {
24 24
25 25 .diffblock {
26 26 margin-bottom: 0;
27 27 }
28 28 }
29 29 }
30 30
31 31 div.diffblock .sidebyside {
32 32 background: #ffffff;
33 33 }
34 34
35 35 div.diffblock {
36 36 overflow-x: auto;
37 37 overflow-y: hidden;
38 38 clear: both;
39 39 padding: 0px;
40 40 background: @grey6;
41 41 border: @border-thickness solid @grey5;
42 42 -webkit-border-radius: @border-radius @border-radius 0px 0px;
43 43 border-radius: @border-radius @border-radius 0px 0px;
44 44
45 45
46 46 .comments-number {
47 47 float: right;
48 48 }
49 49
50 50 // BEGIN CODE-HEADER STYLES
51 51
52 52 .code-header {
53 53 background: @grey6;
54 54 padding: 10px 0 10px 0;
55 55 height: auto;
56 56 width: 100%;
57 57
58 58 .hash {
59 59 float: left;
60 60 padding: 2px 0 0 2px;
61 61 }
62 62
63 63 .date {
64 64 float: left;
65 65 text-transform: uppercase;
66 66 padding: 4px 0px 0px 2px;
67 67 }
68 68
69 69 div {
70 70 margin-left: 4px;
71 71 }
72 72
73 73 div.compare_header {
74 74 min-height: 40px;
75 75 margin: 0;
76 76 padding: 0 @padding;
77 77
78 78 .drop-menu {
79 79 float:left;
80 80 display: block;
81 81 margin:0 0 @padding 0;
82 82 }
83 83
84 84 .compare-label {
85 85 float: left;
86 86 clear: both;
87 87 display: inline-block;
88 88 min-width: 5em;
89 89 margin: 0;
90 90 padding: @button-padding @button-padding @button-padding 0;
91 91 font-family: @text-semibold;
92 92 }
93 93
94 94 .compare-buttons {
95 95 float: left;
96 96 margin: 0;
97 97 padding: 0 0 @padding;
98 98
99 99 .btn {
100 100 margin: 0 @padding 0 0;
101 101 }
102 102 }
103 103 }
104 104
105 105 }
106 106
107 107 .parents {
108 108 float: left;
109 109 width: 100px;
110 110 font-weight: 400;
111 111 vertical-align: middle;
112 112 padding: 0px 2px 0px 2px;
113 113 background-color: @grey6;
114 114
115 115 #parent_link {
116 116 margin: 00px 2px;
117 117
118 118 &.double {
119 119 margin: 0px 2px;
120 120 }
121 121
122 122 &.disabled{
123 123 margin-right: @padding;
124 124 }
125 125 }
126 126 }
127 127
128 128 .children {
129 129 float: right;
130 130 width: 100px;
131 131 font-weight: 400;
132 132 vertical-align: middle;
133 133 text-align: right;
134 134 padding: 0px 2px 0px 2px;
135 135 background-color: @grey6;
136 136
137 137 #child_link {
138 138 margin: 0px 2px;
139 139
140 140 &.double {
141 141 margin: 0px 2px;
142 142 }
143 143
144 144 &.disabled{
145 145 margin-right: @padding;
146 146 }
147 147 }
148 148 }
149 149
150 150 .changeset_header {
151 151 height: 16px;
152 152
153 153 & > div{
154 154 margin-right: @padding;
155 155 }
156 156 }
157 157
158 158 .changeset_file {
159 159 text-align: left;
160 160 float: left;
161 161 padding: 0;
162 162
163 163 a{
164 164 display: inline-block;
165 165 margin-right: 0.5em;
166 166 }
167 167
168 168 #selected_mode{
169 169 margin-left: 0;
170 170 }
171 171 }
172 172
173 173 .diff-menu-wrapper {
174 174 float: left;
175 175 }
176 176
177 177 .diff-menu {
178 178 position: absolute;
179 179 background: none repeat scroll 0 0 #FFFFFF;
180 180 border-color: #003367 @grey3 @grey3;
181 181 border-right: 1px solid @grey3;
182 182 border-style: solid solid solid;
183 183 border-width: @border-thickness;
184 184 box-shadow: 2px 8px 4px rgba(0, 0, 0, 0.2);
185 185 margin-top: 5px;
186 186 margin-left: 1px;
187 187 }
188 188
189 189 .diff-actions, .editor-actions {
190 190 float: left;
191 191
192 192 input{
193 193 margin: 0 0.5em 0 0;
194 194 }
195 195 }
196 196
197 197 // END CODE-HEADER STYLES
198 198
199 199 // BEGIN CODE-BODY STYLES
200 200
201 201 .code-body {
202 202 background: white;
203 203 padding: 0;
204 204 background-color: #ffffff;
205 205 position: relative;
206 206 max-width: none;
207 207 box-sizing: border-box;
208 208 // TODO: johbo: Parent has overflow: auto, this forces the child here
209 209 // to have the intended size and to scroll. Should be simplified.
210 210 width: 100%;
211 211 overflow-x: auto;
212 212 }
213 213
214 214 pre.raw {
215 215 background: white;
216 216 color: @grey1;
217 217 }
218 218 // END CODE-BODY STYLES
219 219
220 220 }
221 221
222 222
223 223 table.code-difftable {
224 224 border-collapse: collapse;
225 225 width: 99%;
226 226 border-radius: 0px !important;
227 227
228 228 td {
229 229 padding: 0 !important;
230 230 background: none !important;
231 231 border: 0 !important;
232 232 }
233 233
234 234 .context {
235 235 background: none repeat scroll 0 0 #DDE7EF;
236 236 }
237 237
238 238 .add {
239 239 background: none repeat scroll 0 0 #DDFFDD;
240 240
241 241 ins {
242 242 background: none repeat scroll 0 0 #AAFFAA;
243 243 text-decoration: none;
244 244 }
245 245 }
246 246
247 247 .del {
248 248 background: none repeat scroll 0 0 #FFDDDD;
249 249
250 250 del {
251 251 background: none repeat scroll 0 0 #FFAAAA;
252 252 text-decoration: none;
253 253 }
254 254 }
255 255
256 256 /** LINE NUMBERS **/
257 257 .lineno {
258 258 padding-left: 2px;
259 259 padding-right: 2px;
260 260 text-align: right;
261 261 width: 32px;
262 262 -moz-user-select: none;
263 263 -webkit-user-select: none;
264 264 border-right: @border-thickness solid @grey5 !important;
265 265 border-left: 0px solid #CCC !important;
266 266 border-top: 0px solid #CCC !important;
267 267 border-bottom: none !important;
268 268
269 269 a {
270 270 &:extend(pre);
271 271 text-align: right;
272 272 padding-right: 2px;
273 273 cursor: pointer;
274 274 display: block;
275 275 width: 32px;
276 276 }
277 277 }
278 278
279 279 .context {
280 280 cursor: auto;
281 281 &:extend(pre);
282 282 }
283 283
284 284 .lineno-inline {
285 285 background: none repeat scroll 0 0 #FFF !important;
286 286 padding-left: 2px;
287 287 padding-right: 2px;
288 288 text-align: right;
289 289 width: 30px;
290 290 -moz-user-select: none;
291 291 -webkit-user-select: none;
292 292 }
293 293
294 294 /** CODE **/
295 295 .code {
296 296 display: block;
297 297 width: 100%;
298 298
299 299 td {
300 300 margin: 0;
301 301 padding: 0;
302 302 }
303 303
304 304 pre {
305 305 margin: 0;
306 306 padding: 0;
307 307 margin-left: .5em;
308 308 }
309 309 }
310 310 }
311 311
312 312
313 313 // Comments
314 314
315 315 div.comment:target {
316 316 border-left: 6px solid @comment-highlight-color;
317 317 padding-left: 3px;
318 318 margin-left: -9px;
319 319 }
320 320
321 321 //TODO: anderson: can't get an absolute number out of anything, so had to put the
322 322 //current values that might change. But to make it clear I put as a calculation
323 323 @comment-max-width: 1065px;
324 324 @pr-extra-margin: 34px;
325 325 @pr-border-spacing: 4px;
326 326 @pr-comment-width: @comment-max-width - @pr-extra-margin - @pr-border-spacing;
327 327
328 328 // Pull Request
329 329 .cs_files .code-difftable {
330 330 border: @border-thickness solid @grey5; //borders only on PRs
331 331
332 332 .comment-inline-form,
333 333 div.comment {
334 334 width: @pr-comment-width;
335 335 }
336 336 }
337 337
338 338 // Changeset
339 339 .code-difftable {
340 340 .comment-inline-form,
341 341 div.comment {
342 342 width: @comment-max-width;
343 343 }
344 344 }
345 345
346 346 //Style page
347 347 @style-extra-margin: @sidebar-width + (@sidebarpadding * 3) + @padding;
348 348 #style-page .code-difftable{
349 349 .comment-inline-form,
350 350 div.comment {
351 351 width: @comment-max-width - @style-extra-margin;
352 352 }
353 353 }
354 354
355 355 #context-bar > h2 {
356 356 font-size: 20px;
357 357 }
358 358
359 359 #context-bar > h2> a {
360 360 font-size: 20px;
361 361 }
362 362 // end of defaults
363 363
364 364 .file_diff_buttons {
365 365 padding: 0 0 @padding;
366 366
367 367 .drop-menu {
368 368 float: left;
369 369 margin: 0 @padding 0 0;
370 370 }
371 371 .btn {
372 372 margin: 0 @padding 0 0;
373 373 }
374 374 }
375 375
376 376 .code-body.textarea.editor {
377 377 max-width: none;
378 378 padding: 15px;
379 379 }
380 380
381 381 td.injected_diff{
382 382 max-width: 1178px;
383 383 overflow-x: auto;
384 384 overflow-y: hidden;
385 385
386 386 div.diff-container,
387 387 div.diffblock{
388 388 max-width: 100%;
389 389 }
390 390
391 391 div.code-body {
392 392 max-width: 1124px;
393 393 overflow-x: auto;
394 394 padding: 0;
395 395 }
396 396 div.diffblock {
397 397 border: none;
398 398 }
399 399
400 400 &.inline-form {
401 401 width: 99%
402 402 }
403 403 }
404 404
405 405
406 406 table.code-difftable {
407 407 width: 100%;
408 408 }
409 409
410 410 /** PYGMENTS COLORING **/
411 411 div.codeblock {
412 412
413 413 // TODO: johbo: Added interim to get rid of the margin around
414 414 // Select2 widgets. This needs further cleanup.
415 415 margin-top: @padding;
416 416
417 417 overflow: auto;
418 418 padding: 0px;
419 419 border: @border-thickness solid @grey5;
420 420 background: @grey6;
421 421 .border-radius(@border-radius);
422 422
423 423 #remove_gist {
424 424 float: right;
425 425 }
426 426
427 427 .author {
428 428 clear: both;
429 429 vertical-align: middle;
430 430 font-family: @text-bold;
431 431 }
432 432
433 433 .btn-mini {
434 434 float: left;
435 435 margin: 0 5px 0 0;
436 436 }
437 437
438 438 .code-header {
439 439 padding: @padding;
440 440 border-bottom: @border-thickness solid @grey5;
441 441
442 442 .rc-user {
443 443 min-width: 0;
444 444 margin-right: .5em;
445 445 }
446 446
447 447 .stats {
448 448 clear: both;
449 449 margin: 0 0 @padding 0;
450 450 padding: 0;
451 451 .left {
452 452 float: left;
453 453 clear: left;
454 454 max-width: 75%;
455 455 margin: 0 0 @padding 0;
456 456
457 457 &.item {
458 458 margin-right: @padding;
459 459 &.last { border-right: none; }
460 460 }
461 461 }
462 462 .buttons { float: right; }
463 463 .author {
464 464 height: 25px; margin-left: 15px; font-weight: bold;
465 465 }
466 466 }
467 467
468 468 .commit {
469 469 margin: 5px 0 0 26px;
470 470 font-weight: normal;
471 471 white-space: pre-wrap;
472 472 }
473 473 }
474 474
475 475 .message {
476 476 position: relative;
477 477 margin: @padding;
478 478
479 479 .codeblock-label {
480 480 margin: 0 0 1em 0;
481 481 }
482 482 }
483 483
484 484 .code-body {
485 485 padding: @padding;
486 486 background-color: #ffffff;
487 487 min-width: 100%;
488 488 box-sizing: border-box;
489 489 // TODO: johbo: Parent has overflow: auto, this forces the child here
490 490 // to have the intended size and to scroll. Should be simplified.
491 491 width: 100%;
492 492 overflow-x: auto;
493 493 }
494 494 }
495 495
496 496 .code-highlighttable,
497 497 div.codeblock {
498 498
499 .code-body .markdown-block table {
499 &.readme {
500 background-color: white;
501 }
502
503 .markdown-block table {
500 504 border-collapse: collapse;
501 505
502 506 th,
503 507 td {
504 508 padding: .5em !important;
505 509 border: @border-thickness solid @border-default-color !important;
506 510 }
507 511 }
508 512
509 .code-body table {
513 table {
510 514 width: 0 !important;
511 515 border: 0px !important;
512 516 margin: 0;
513 517 letter-spacing: normal;
514 518
515 519
516 520 td {
517 521 border: 0px !important;
518 522 vertical-align: top;
519 523 }
520 524 }
521 525 }
522 526
523 527 div.codeblock .code-header .search-path { padding: 0 0 0 10px; }
524 528 div.search-code-body {
525 529 background-color: #ffffff; padding: 5px 0 5px 10px;
526 530 pre {
527 531 .match { background-color: #faffa6;}
528 532 .break { display: block; width: 100%; background-color: #DDE7EF; color: #747474; }
529 533 }
530 534 .code-highlighttable {
531 535 border-collapse: collapse;
532 536
533 537 tr:hover {
534 538 background: #fafafa;
535 539 }
536 540 td.code {
537 541 padding-left: 10px;
538 542 }
539 543 td.line {
540 544 border-right: 1px solid #ccc !important;
541 545 padding-right: 10px;
542 546 text-align: right;
543 547 font-family: "Lucida Console",Monaco,monospace;
544 548 span {
545 549 white-space: pre-wrap;
546 550 color: #666666;
547 551 }
548 552 }
549 553 }
550 554 }
551 555
552 556 div.annotatediv { margin-left: 2px; margin-right: 4px; }
553 557 .code-highlight {
554 558 margin: 0; padding: 0; border-left: @border-thickness solid @grey5;
555 559 pre, .linenodiv pre { padding: 0 5px; margin: 0; }
556 560 pre div:target {background-color: @comment-highlight-color !important;}
557 561 }
558 562
559 563 .linenos a { text-decoration: none; }
560 564
561 565 .CodeMirror-selected { background: @rchighlightblue; }
562 566 .CodeMirror-focused .CodeMirror-selected { background: @rchighlightblue; }
563 567 .CodeMirror ::selection { background: @rchighlightblue; }
564 568 .CodeMirror ::-moz-selection { background: @rchighlightblue; }
565 569
566 570 .code { display: block; border:0px !important; }
567 571 .code-highlight,
568 572 .codehilite {
569 573 .hll { background-color: #ffffcc }
570 574 .c { color: #408080; font-style: italic } /* Comment */
571 575 .err, .codehilite .err { border: @border-thickness solid #FF0000 } /* Error */
572 576 .k { color: #008000; font-weight: bold } /* Keyword */
573 577 .o { color: #666666 } /* Operator */
574 578 .cm { color: #408080; font-style: italic } /* Comment.Multiline */
575 579 .cp { color: #BC7A00 } /* Comment.Preproc */
576 580 .c1 { color: #408080; font-style: italic } /* Comment.Single */
577 581 .cs { color: #408080; font-style: italic } /* Comment.Special */
578 582 .gd { color: #A00000 } /* Generic.Deleted */
579 583 .ge { font-style: italic } /* Generic.Emph */
580 584 .gr { color: #FF0000 } /* Generic.Error */
581 585 .gh { color: #000080; font-weight: bold } /* Generic.Heading */
582 586 .gi { color: #00A000 } /* Generic.Inserted */
583 587 .go { color: #808080 } /* Generic.Output */
584 588 .gp { color: #000080; font-weight: bold } /* Generic.Prompt */
585 589 .gs { font-weight: bold } /* Generic.Strong */
586 590 .gu { color: #800080; font-weight: bold } /* Generic.Subheading */
587 591 .gt { color: #0040D0 } /* Generic.Traceback */
588 592 .kc { color: #008000; font-weight: bold } /* Keyword.Constant */
589 593 .kd { color: #008000; font-weight: bold } /* Keyword.Declaration */
590 594 .kn { color: #008000; font-weight: bold } /* Keyword.Namespace */
591 595 .kp { color: #008000 } /* Keyword.Pseudo */
592 596 .kr { color: #008000; font-weight: bold } /* Keyword.Reserved */
593 597 .kt { color: #B00040 } /* Keyword.Type */
594 598 .m { color: #666666 } /* Literal.Number */
595 599 .s { color: #BA2121 } /* Literal.String */
596 600 .na { color: #7D9029 } /* Name.Attribute */
597 601 .nb { color: #008000 } /* Name.Builtin */
598 602 .nc { color: #0000FF; font-weight: bold } /* Name.Class */
599 603 .no { color: #880000 } /* Name.Constant */
600 604 .nd { color: #AA22FF } /* Name.Decorator */
601 605 .ni { color: #999999; font-weight: bold } /* Name.Entity */
602 606 .ne { color: #D2413A; font-weight: bold } /* Name.Exception */
603 607 .nf { color: #0000FF } /* Name.Function */
604 608 .nl { color: #A0A000 } /* Name.Label */
605 609 .nn { color: #0000FF; font-weight: bold } /* Name.Namespace */
606 610 .nt { color: #008000; font-weight: bold } /* Name.Tag */
607 611 .nv { color: #19177C } /* Name.Variable */
608 612 .ow { color: #AA22FF; font-weight: bold } /* Operator.Word */
609 613 .w { color: #bbbbbb } /* Text.Whitespace */
610 614 .mf { color: #666666 } /* Literal.Number.Float */
611 615 .mh { color: #666666 } /* Literal.Number.Hex */
612 616 .mi { color: #666666 } /* Literal.Number.Integer */
613 617 .mo { color: #666666 } /* Literal.Number.Oct */
614 618 .sb { color: #BA2121 } /* Literal.String.Backtick */
615 619 .sc { color: #BA2121 } /* Literal.String.Char */
616 620 .sd { color: #BA2121; font-style: italic } /* Literal.String.Doc */
617 621 .s2 { color: #BA2121 } /* Literal.String.Double */
618 622 .se { color: #BB6622; font-weight: bold } /* Literal.String.Escape */
619 623 .sh { color: #BA2121 } /* Literal.String.Heredoc */
620 624 .si { color: #BB6688; font-weight: bold } /* Literal.String.Interpol */
621 625 .sx { color: #008000 } /* Literal.String.Other */
622 626 .sr { color: #BB6688 } /* Literal.String.Regex */
623 627 .s1 { color: #BA2121 } /* Literal.String.Single */
624 628 .ss { color: #19177C } /* Literal.String.Symbol */
625 629 .bp { color: #008000 } /* Name.Builtin.Pseudo */
626 630 .vc { color: #19177C } /* Name.Variable.Class */
627 631 .vg { color: #19177C } /* Name.Variable.Global */
628 632 .vi { color: #19177C } /* Name.Variable.Instance */
629 633 .il { color: #666666 } /* Literal.Number.Integer.Long */
630 634 }
631 635
632 636 /* customized pre blocks for markdown/rst */
633 637 pre.literal-block, .codehilite pre{
634 638 padding: @padding;
635 639 border: 1px solid @grey6;
636 640 .border-radius(@border-radius);
637 641 background-color: @grey7;
638 642 }
@@ -1,268 +1,256 b''
1 1 // summary.less
2 2 // For use in RhodeCode applications;
3 3 // Used for headers and file detail summary screens.
4 4
5 5 .summary {
6 6 float: left;
7 7 position: relative;
8 8 width: 100%;
9 9 margin: 0;
10 10 padding: 0;
11 11
12 12 .summary-detail-header {
13 13 float: left;
14 14 display: block;
15 15 width: 100%;
16 16 margin-bottom: @textmargin;
17 17 padding: 0 0 .5em 0;
18 18 border-bottom: @border-thickness solid @border-default-color;
19 19
20 20 .breadcrumbs {
21 21 float: left;
22 22 display: inline;
23 23 margin: 0;
24 24 padding: 0;
25 25 }
26 26 h4 {
27 27 float: left;
28 28 margin: 0 1em 0 0;
29 29 padding: 0;
30 30 line-height: 1.2em;
31 31 font-size: @basefontsize;
32 32 }
33 33
34 34 .action_link {
35 35 float: right;
36 36 }
37 37
38 38 .new-file {
39 39 float: right;
40 40 margin-top: -1.5em;
41 41 }
42 42 }
43 43
44 44 .summary-detail {
45 45 float: left;
46 46 position: relative;
47 47 width: 73%;
48 48 margin: 0 3% @space 0;
49 49 padding: 0;
50 50
51 51 .file_diff_buttons {
52 52 margin-top: @space;
53 53 }
54 54
55 55 // commit message
56 56 .commit {
57 57 white-space: pre-wrap;
58 58 }
59 59
60 60 #clone_url,
61 61 #clone_url_id {
62 62 min-width: 29em;
63 63 padding: @padding/4;
64 64 }
65 65
66 66 &.directory {
67 67 margin-bottom: 0;
68 68 }
69 69
70 70 .desc {
71 71 white-space: pre-wrap;
72 72 }
73 73 .disabled {
74 74 opacity: .5;
75 75 }
76 76 .help-block {
77 77 color: inherit;
78 78 margin: 0;
79 79 }
80 80 }
81 81
82 82 .sidebar-right {
83 83 float: left;
84 84 width: 24%;
85 85 margin: 0;
86 86 padding: 0;
87 87
88 88 ul {
89 89 margin-left: 0;
90 90 padding-left: 0;
91 91
92 92 li {
93 93
94 94 &:before {
95 95 content: none;
96 96 width: 0;
97 97 }
98 98 }
99 99 }
100 100 }
101 101
102 102 #clone_by_name, #clone_by_id{
103 103 display: inline-block;
104 104 margin-left: @padding;
105 105 }
106 106
107 107 .codeblock {
108 108 border: none;
109 109 background-color: transparent;
110 110 }
111 111
112 112 .code-body {
113 113 border: @border-thickness solid @border-default-color;
114 114 .border-radius(@border-radius);
115 115 }
116 116 }
117 117
118 118 // this is used outside of just the summary
119 119 .fieldset, // similar to form fieldset
120 120 .summary .sidebar-right-content { // these have to match
121 121 clear: both;
122 122 float: left;
123 123 position: relative;
124 124 display:block;
125 125 width: 100%;
126 126 min-height: 1em;
127 127 margin-bottom: @textmargin;
128 128 padding: 0;
129 129 line-height: 1.2em;
130 130
131 131 &:after { // clearfix
132 132 content: "";
133 133 clear: both;
134 134 width: 100%;
135 135 height: 1em;
136 136 }
137 137 }
138 138
139 139 .summary .sidebar-right-content {
140 140 margin-bottom: @space;
141 141 }
142 142
143 143 .fieldset {
144 144
145 145 .left-label { // similar to form legend
146 146 float: left;
147 147 display: block;
148 148 width: 25%;
149 149 margin: 0;
150 150 padding: 0;
151 151 font-family: @text-semibold;
152 152 }
153 153
154 154 .right-content { // similar to form fields
155 155 float: left;
156 156 display: block;
157 157 width: 75%;
158 158 margin: 0 0 0 -15%;
159 159 padding: 0 0 0 15%;
160 160
161 161 .truncate-wrap,
162 162 .truncate {
163 163 max-width: 100%;
164 164 width: 100%;
165 165 }
166 166
167 167 .commit-long {
168 168 overflow-x: auto;
169 169 }
170 170 }
171 171 }
172 172
173 173 // expand commit message
174 174 #message_expand {
175 175 clear: both;
176 176 display: block;
177 177 color: @rcblue;
178 178 cursor: pointer;
179 179 }
180 180
181 181 #trimmed_message_box {
182 182 max-height: floor(2 * @basefontsize * 1.2); // 2 lines * line-height
183 183 overflow: hidden;
184 184 }
185 185
186 186 // show/hide comments button
187 187 .show-inline-comments {
188 188 display: inline;
189 189 cursor: pointer;
190 190
191 191 .comments-show { display: inline; }
192 192 .comments-hide { display: none; }
193 193
194 194 &.comments-visible {
195 195 .comments-show { display: none; }
196 196 .comments-hide { display: inline; }
197 197 }
198 198 }
199 199
200 200 // Quick Start section
201 201 .quick_start {
202 202 float: left;
203 203 display: block;
204 204 position: relative;
205 205
206 206 // adds some space to make copy and paste easier
207 207 .left-label,
208 208 .right-content {
209 209 line-height: 1.6em;
210 210 }
211 211 }
212 212
213 213 .submodule {
214 214 .summary-detail {
215 215 width: 100%;
216 216
217 217 .btn-collapse {
218 218 display: none;
219 219 }
220 220 }
221 221 }
222 222
223 223 .codeblock-header {
224 224 float: left;
225 225 display: block;
226 226 width: 100%;
227 227 margin: 0;
228 228 padding: @space 0 @padding 0;
229 229 border-top: @border-thickness solid @border-default-color;
230 230
231 231 .stats {
232 232 float: left;
233 233 width: 50%;
234 234 }
235 235
236 236 .buttons {
237 237 float: right;
238 238 width: 50%;
239 239 text-align: right;
240 240 color: @grey4;
241 241 }
242 242 }
243 243
244 244 #summary-menu-stats {
245 245
246 246 .stats-bullet {
247 247 color: @grey3;
248 248 min-width: 3em;
249 249 }
250 250
251 251 .repo-size {
252 252 margin-bottom: .5em;
253 253 }
254 254
255 255 }
256 256
257 #readme {
258 width: 100%;
259
260 .readme {
261 overflow-x: auto;
262 border: @border-thickness solid @border-default-color;
263 .border-radius(@border-radius);
264 }
265 .readme_box {
266 margin: 15px;
267 }
268 }
@@ -1,130 +1,130 b''
1 1 <%inherit file="/summary/base.html"/>
2 2
3 3 <%namespace name="components" file="/summary/components.html"/>
4 4
5 5
6 6 <%def name="menu_bar_subnav()">
7 7 ${self.repo_menu(active='summary')}
8 8 </%def>
9 9
10 10 <%def name="main()">
11 11
12 12 <div class="title">
13 13 ${self.repo_page_title(c.rhodecode_db_repo)}
14 14 <ul class="links icon-only-links block-right">
15 15 <li>
16 16 %if c.rhodecode_user.username != h.DEFAULT_USER:
17 17 <a href="${h.url('atom_feed_home',repo_name=c.rhodecode_db_repo.repo_name,auth_token=c.rhodecode_user.feed_token)}" title="${_('RSS Feed')}">
18 18 %else:
19 19 <a href="${h.url('atom_feed_home',repo_name=c.rhodecode_db_repo.repo_name)}" title="${_('RSS Feed')}">
20 20 %endif
21 21 <i class="icon-rss-sign"></i></a>
22 22 </li>
23 23 </ul>
24 24 </div>
25 25
26 26 <div id="repo-summary" class="summary">
27 27 ${components.summary_detail(breadcrumbs_links=self.breadcrumbs_links(), show_downloads=True)}
28 28 ${components.summary_stats(gravatar_function=self.gravatar_with_user)}
29 29 </div><!--end repo-summary-->
30 30
31 31
32 32 <div class="box" >
33 33 %if not c.repo_commits:
34 34 <div class="title">
35 35 <h3>${_('Quick start')}</h3>
36 36 </div>
37 37 %endif
38 38 <div class="table">
39 39 <div id="shortlog_data">
40 40 <%include file='../changelog/changelog_summary_data.html'/>
41 41 </div>
42 42 </div>
43 43 </div>
44 44
45 45 %if c.readme_data:
46 46 <div id="readme" class="anchor">
47 47 <div class="box" >
48 48 <div class="title" title="${_('Readme file from commit %s:%s') % (c.rhodecode_db_repo.landing_rev[0], c.rhodecode_db_repo.landing_rev[1])}">
49 49 <h3 class="breadcrumbs">
50 50 <a href="${h.url('files_home',repo_name=c.repo_name,revision='tip',f_path=c.readme_file)}">${c.readme_file}</a>
51 51 </h3>
52 52 </div>
53 <div class="readme">
54 <div class="readme_box">
53 <div class="readme codeblock">
54 <div class="readme_box markdown-block">
55 55 ${c.readme_data|n}
56 56 </div>
57 57 </div>
58 58 </div>
59 59 </div>
60 60 %endif
61 61
62 62 <script type="text/javascript">
63 63 $(document).ready(function(){
64 64 $('#clone_by_name').on('click',function(e){
65 65 // show url by name and hide name button
66 66 $('#clone_url').show();
67 67 $('#clone_by_name').hide();
68 68
69 69 // hide url by id and show name button
70 70 $('#clone_by_id').show();
71 71 $('#clone_url_id').hide();
72 72
73 73 });
74 74 $('#clone_by_id').on('click',function(e){
75 75
76 76 // show url by id and hide id button
77 77 $('#clone_by_id').hide();
78 78 $('#clone_url_id').show();
79 79
80 80 // hide url by name and show id button
81 81 $('#clone_by_name').show();
82 82 $('#clone_url').hide();
83 83 });
84 84
85 85 var initialCommitData = {
86 86 id: null,
87 87 text: 'tip',
88 88 type: 'tag',
89 89 raw_id: null,
90 90 files_url: null
91 91 };
92 92
93 93 select2RefSwitcher('#download_options', initialCommitData);
94 94
95 95 // on change of download options
96 96 $('#download_options').on('change', function(e) {
97 97 // format of Object {text: "v0.0.3", type: "tag", id: "rev"}
98 98 var selected_cs = e.added;
99 99 var fname= e.added.raw_id + ".zip";
100 100 var href = pyroutes.url('files_archive_home', {'repo_name': templateContext.repo_name, 'fname':fname})
101 101 // set new label
102 102 $('#archive_link').html('<i class="icon-archive"></i> '+ e.added.text+".zip")
103 103
104 104 // set new url to button,
105 105 $('#archive_link').attr('href', href)
106 106 });
107 107
108 108
109 109 // load details on summary page expand
110 110 $('#summary_details_expand').on('click', function() {
111 111
112 112 var callback = function (data) {
113 113 % if c.show_stats:
114 114 showRepoStats(
115 115 'lang_stats', data);
116 116 % endif
117 117 };
118 118
119 119 showRepoSize(
120 120 'repo_size_container',
121 121 templateContext.repo_name,
122 122 templateContext.repo_landing_commit,
123 123 callback);
124 124
125 125 })
126 126
127 127 })
128 128 </script>
129 129
130 130 </%def>
General Comments 0
You need to be logged in to leave comments. Login now