##// END OF EJS Templates
header-labels: fixed small spacing issues
dan -
r4040:33448043 default
parent child Browse files
Show More
@@ -1,497 +1,499 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 clear: both;
7 7 float: none;
8 8 position: relative;
9 9 width: 100%;
10 10 margin: 0;
11 11 padding: 0;
12 12 background: #FCFCFC;
13 13 border: 1px solid #EAEAEA;
14 14 border-radius: @border-radius;
15 15 margin-bottom: 20px;
16 16
17 17 .summary-detail-header {
18 18 display: block;
19 19 width: 100%;
20 20 margin-bottom: 10px;
21 21 padding: 0 0 .5em 0;
22 22 border-bottom: @border-thickness solid @border-default-color;
23 23
24 24 .breadcrumbs {
25 25 display: inline;
26 26 margin: 0;
27 27 padding: 0;
28 28 }
29 29
30 30 h4 {
31 31 margin: 0 1em 0 0;
32 32 padding: 10px 0 5px 20px;
33 33 line-height: 1.2em;
34 34 font-size: @basefontsize;
35 35 }
36 36
37 37 .action_link {
38 38 float: right;
39 39 }
40 40
41 41 .new-file {
42 42 float: right;
43 43 margin-top: -1.5em;
44 44 }
45 45 }
46 46
47 47 .summary-detail {
48 48 float: none;
49 49 position: relative;
50 50 width: 100%;
51 51 margin: 0;
52 52 padding: 0 0 20px 0;
53 53
54 54 .file_diff_buttons {
55 55 margin-top: @space;
56 56 }
57 57
58 58 // commit message
59 59 .commit {
60 60 white-space: pre-wrap;
61 61 }
62 62
63 63 .left-clone {
64 64 float: left;
65 65 height: 30px;
66 66 margin: 0;
67 67 padding: 0;
68 68 width: 130px;
69 69 font-weight: @text-semibold-weight;
70 70 font-family: @text-semibold;
71 71 }
72 72 .left-clone select {
73 73 width: 130px;
74 74 margin-right: 0;
75 75 background-color: @grey7;
76 76 border-color: @grey4;
77 77 color: #5C5C5C;
78 78 border-top-right-radius: 0;
79 79 border-bottom-right-radius: 0;
80 80 }
81 81
82 82 .right-clone {
83 83 float: left;
84 84 width: ~"calc(100% - 170px)";
85 85
86 86 .clipboard-action {
87 87 margin-left: -30px;
88 88 }
89 89 }
90 90
91 91 .clone_url_input {
92 92 width: ~"calc(100% - 90px)";
93 93 padding: 6px 30px 6px 10px;
94 94 height: 14px;
95 95 box-shadow: 0 1px 1px 0 rgba(0,0,0,0.07);
96 96 border-top-left-radius: 0;
97 97 border-bottom-left-radius: 0;
98 98 margin-left: -1px;
99 99 }
100 100
101 101 &.directory {
102 102 margin-bottom: 0;
103 103 }
104 104
105 105 .desc {
106 106 white-space: pre-wrap;
107 107 }
108 108 .disabled {
109 109 opacity: .5;
110 110 cursor: inherit;
111 111 }
112 112 .help-block {
113 113 color: inherit;
114 114 margin: 0;
115 115 }
116 116 }
117 117
118 118 .sidebar-right {
119 119 float: left;
120 120 width: 24%;
121 121 margin: 0;
122 122 padding: 0;
123 123
124 124 ul {
125 125 margin-left: 0;
126 126 padding-left: 0;
127 127
128 128 li {
129 129 list-style-type: none;
130 130 }
131 131 }
132 132 }
133 133
134 134 #clone_by_name, #clone_by_id{
135 135 display: inline-block;
136 136 margin-left: 0px;
137 137 }
138 138
139 139 .codeblock {
140 140 border: none;
141 141 background-color: transparent;
142 142 }
143 143
144 144 .code-body {
145 145 border: @border-thickness solid @border-default-color;
146 146 .border-radius(@border-radius);
147 147 }
148 148
149 149 .btn-collapse {
150 150 clear: both;
151 151 float: none;
152 152 background: #F7F7F7;
153 153 text-align: center;
154 154 color: #949494;
155 155 font-size: 11px;
156 156 line-height: 1.3em;
157 157
158 158 &:hover {
159 159 background: #f1f1f1;
160 160 color: #2B2B2D;
161 161 }
162 162 }
163 163 }
164 164
165 165 // this is used outside of just the summary
166 166 .fieldset, // similar to form fieldset
167 167 .summary .sidebar-right-content { // these have to match
168 168 clear: both;
169 169 float: none;
170 170 position: relative;
171 171 display:block;
172 172 width: 100%;
173 173 min-height: 20px;
174 174 margin-bottom: 10px;
175 175 padding: 0;
176 176 line-height: 1.2em;
177 177
178 178 &:after { // clearfix
179 179 content: "";
180 180 clear: both;
181 181 width: 100%;
182 182 height: 1em;
183 183 }
184 184 }
185 185
186 186 .summary .sidebar-right-content {
187 187 margin-bottom: 0;
188 188
189 189 .rc-user {
190 190 min-width: 0;
191 191 }
192 192
193 193 li {
194 194 list-style: none;
195 195 line-height: normal;
196 196 }
197 197 }
198 198
199 199 .summary {
200 200 .fieldset {
201 201 margin-bottom: 0;
202 202 }
203 203
204 204 .tags-main {
205 205 margin-bottom: 5px;
206 206 }
207 207 }
208 208
209 209 .fieldset {
210 210
211 211 .left-label { // similar to form legend
212 212 display: block;
213 213 margin: 0;
214 214 padding: 0;
215 215 font-weight: @text-semibold-weight;
216 216 font-family: @text-semibold;
217 217 }
218 218
219 219 .left-label-summary {
220 220 padding-left: 20px;
221 221 margin-bottom: 5px;
222 222
223 223 p {
224 224 margin-bottom: 5px;
225 225 color: @grey1;
226 226 float: left;
227 227 width: 130px;
228 228
229 229 &.spacing {
230 230 margin-top: 10px;
231 231 }
232 232 }
233 233
234 234 .right-label-summary {
235 235 float: left;
236 margin-top: 7px;
236 margin-top: 0px;
237 line-height: 2em;
237 238 width: ~"calc(100% - 160px)";
238 239 }
239 240 }
240 241
241 242 .left-label-summary-files {
242 243 padding-left: 45px;
243 244 margin-top: 5px;
244 245
245 246 p {
246 247 margin-bottom: 5px;
247 248 color: @grey1;
248 249 float: left;
249 250 width: 130px;
250 251
251 252 &.spacing {
252 253 margin-top: 10px;
253 254 }
254 255 }
255 256
256 257 .right-label-summary {
257 258 float: left;
258 margin-top: 7px;
259 margin-top: 0px;
260 line-height: 2em;
259 261 }
260 262 }
261 263
262 264 .left-content {
263 265 width: ~"calc(60% - 20px)";
264 266 float: left;
265 267 margin: 15px 0 15px 20px;
266 268
267 269 .rc-user {
268 270 min-width: auto;
269 271 max-width: none;
270 272 min-height: auto;
271 273 padding-right: 5px;
272 274 }
273 275
274 276 .left-content-avatar {
275 277 width: 45px;
276 278 float: left;
277 279 margin-top: 8px;
278 280 }
279 281
280 282 .left-content-message {
281 283 float: left;
282 284 width: ~"calc(100% - 45px)";
283 285 }
284 286 }
285 287
286 288 .right-content { // similar to form fields
287 289 float: left;
288 290 display: block;
289 291 width: ~"calc(40% - 20px)";
290 292 text-align: right;
291 293 margin: 15px 20px 15px 0;
292 294
293 295 .truncate-wrap,
294 296 .truncate {
295 297 max-width: 100%;
296 298 width: 100%;
297 299 }
298 300
299 301 .commit-long {
300 302 overflow-x: auto;
301 303 }
302 304
303 305 .commit-info {
304 306 margin-top: 7px;
305 307 }
306 308
307 309 .summary-tag,
308 310 .summary-tagtag,
309 311 .summary-branchtag,
310 312 .summary-booktag,
311 313 .summary-metatag,
312 314 .summary-perm_tag {
313 315 background:transparent;
314 316 border: none;
315 317 box-shadow: none;
316 318 margin-left: 10px;
317 319 font-size: 13px;
318 320 }
319 321
320 322 .summary-tag span,
321 323 .summary-tag i,
322 324 .summary-tag a {
323 325 color: @grey1;
324 326 }
325 327
326 328 }
327 329 .commit {
328 330 color: @grey1;
329 331 margin-bottom: 5px;
330 332 white-space: pre;
331 333 }
332 334 .commit.truncate-wrap {
333 335 overflow:hidden;
334 336 text-overflow: ellipsis;
335 337 }
336 338 .commit-author {
337 339 color: @grey1;
338 340 }
339 341 .commit-date {
340 342 color: @grey4;
341 343 }
342 344 .fieldset-text-line {
343 345 line-height: 36px;
344 346 }
345 347 }
346 348
347 349 // expand commit message
348 350 #message_expand {
349 351 clear: both;
350 352 display: block;
351 353 color: @rcblue;
352 354 cursor: pointer;
353 355 }
354 356
355 357 #trimmed_message_box {
356 358 max-height: floor(2 * @basefontsize * 1.2); // 2 lines * line-height
357 359 overflow: hidden;
358 360 }
359 361
360 362 // show/hide comments button
361 363 .show-inline-comments {
362 364 display: inline;
363 365 cursor: pointer;
364 366
365 367 .comments-show { display: inline; }
366 368 .comments-hide { display: none; }
367 369
368 370 &.comments-visible {
369 371 .comments-show { display: none; }
370 372 .comments-hide { display: inline; }
371 373 }
372 374 }
373 375
374 376 // Quick Start section
375 377
376 378 .empty-repo {
377 379 border: 1px solid #EAEAEA;
378 380 border-bottom: 0;
379 381 border-radius: @border-radius;
380 382 padding: 0 20px;
381 383 }
382 384
383 385 .empty-repo h3, .quick_start p {
384 386 margin-bottom: 10px;
385 387 }
386 388
387 389 .quick_start pre {
388 390 background: #FCFEFF;
389 391 border: 1px solid #CBDBEB;
390 392 box-shadow: @button-shadow;
391 393 padding: 10px 15px;
392 394 border-radius: 4px;
393 395 color: @grey2;
394 396 }
395 397
396 398 .clear-fix {
397 399 clear: both;
398 400 }
399 401
400 402 .quick_start {
401 403 display: block;
402 404 position: relative;
403 405 border: 1px solid #EAEAEA;
404 406 border-top: 0;
405 407 border-radius: @border-radius;
406 408 padding: 0 20px;
407 409
408 410 // adds some space to make copy and paste easier
409 411 .left-label,
410 412 .right-content {
411 413 line-height: 1.6em;
412 414 }
413 415 }
414 416
415 417
416 418 .submodule {
417 419 .summary-detail {
418 420 width: 100%;
419 421
420 422 .btn-collapse {
421 423 display: none;
422 424 }
423 425 }
424 426 }
425 427
426 428 .codeblock-header {
427 429 float: left;
428 430 display: block;
429 431 width: 100%;
430 432 margin: 0;
431 433
432 434 .file-filename {
433 435 float:left;
434 436 padding: 10px;
435 437 }
436 438
437 439 .file-stats {
438 440 padding: 10px;
439 441 float:right;
440 442 }
441 443
442 444
443 445 .stats-first-item {
444 446 padding: 0px 0px 0px 3px;
445 447 }
446 448
447 449 .stats-info {
448 450 font-size: 11px;
449 451 color: @grey4;
450 452 }
451 453
452 454 .buttons {
453 455 float: right;
454 456 text-align: right;
455 457 color: @grey4;
456 458 padding: 10px;
457 459 }
458 460
459 461 .file-container {
460 462 display: inline-block;
461 463 width: 100%;
462 464 }
463 465
464 466 }
465 467
466 468 #summary-menu-stats {
467 469
468 470 .stats-bullet {
469 471 color: @grey3;
470 472 min-width: 3em;
471 473 }
472 474
473 475 .repo-size {
474 476 margin-bottom: .5em;
475 477 }
476 478
477 479 }
478 480
479 481 .rctable.repo_summary {
480 482 border: 1px solid #eaeaea;
481 483 border-radius: 2px;
482 484 border-collapse: inherit;
483 485 border-bottom: 0;
484 486
485 487 th {
486 488 background: @grey7;
487 489 border-bottom: 0;
488 490 }
489 491
490 492 td {
491 493 border-color: #eaeaea;
492 494 }
493 495
494 496 td.td-status {
495 497 padding: 0 0 0 10px;
496 498 }
497 499 }
@@ -1,63 +1,63 b''
1 1 <%namespace name="base" file="/base/base.mako"/>
2 2 <%namespace name="file_base" file="/files/base.mako"/>
3 3
4 4 <div class="summary">
5 5 <div class="fieldset">
6 6 <div class="left-content">
7 7
8 8 <div class="left-content-avatar">
9 9 ${base.gravatar(c.file_last_commit.author_email, 30)}
10 10 </div>
11 11
12 12 <div class="left-content-message">
13 13 <div class="fieldset collapsable-content no-hide" data-toggle="summary-details">
14 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 15 </div>
16 16
17 17 <div class="fieldset collapsable-content" data-toggle="summary-details">
18 18 <div class="commit">${h.urlify_commit_message(c.commit.message,c.repo_name)}</div>
19 19 </div>
20 20
21 21 <div class="fieldset" data-toggle="summary-details">
22 22 <div class="" id="file_authors">
23 23 ## loads single author, or ALL
24 24 <%include file='file_authors_box.mako'/>
25 25 </div>
26 26 </div>
27 27 </div>
28 28
29 29 <div class="fieldset collapsable-content" data-toggle="summary-details">
30 30 <div class="left-label-summary-files">
31 <p>${_('File last commit')}</p>
31 <p>${_('File last commit')}:</p>
32 32 <div class="right-label-summary">
33 33 <code><a href="${h.route_path('repo_commit',repo_name=c.repo_name,commit_id=c.file_last_commit.raw_id)}">${h.show_id(c.file_last_commit)}</a></code>
34 34 ${file_base.refs(c.file_last_commit)}
35 35 </div>
36 36 </div>
37 37 </div>
38 38 </div>
39 39
40 40 <div class="right-content">
41 41 <div data-toggle="summary-details">
42 42 <div class="tags tags-main">
43 43 <code>
44 44 <a href="${h.route_path('repo_commit',repo_name=c.repo_name,commit_id=c.commit.raw_id)}">${h.show_id(c.commit)}</a>
45 45 </code>
46 46 <i class="tooltip icon-clipboard clipboard-action" data-clipboard-text="${c.commit.raw_id}" title="${_('Copy the full commit id')}"></i>
47 47 ${file_base.refs(c.commit)}
48 48 </div>
49 49 </div>
50 50 </div>
51 51
52 52 <div class="clear-fix"></div>
53 53
54 54 <div class="btn-collapse" data-toggle="summary-details">
55 55 ${_('Show More')}
56 56 </div>
57 57
58 58 </div>
59 59 </div>
60 60
61 61 <script>
62 62 collapsableContent();
63 63 </script>
General Comments 0
You need to be logged in to leave comments. Login now