##// END OF EJS Templates
prevent avatar jumping on new line when commit message is expanded
Liviu -
r3651:937c33f4 new-ui
parent child Browse files
Show More
@@ -1,439 +1,440 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: @textmargin;
20 margin-bottom: @textmargin;
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: 0;
32 padding: 0;
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;
52 padding: 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: 1em;
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: @space;
186 margin-bottom: @space;
187
187
188 .rc-user {
188 .rc-user {
189 min-width: 0;
189 min-width: 0;
190 }
190 }
191 }
191 }
192
192
193 .summary {
193 .summary {
194 .fieldset {
194 .fieldset {
195 margin-bottom: 0;
195 margin-bottom: 0;
196 }
196 }
197 }
197 }
198
198
199 .fieldset {
199 .fieldset {
200
200
201 .left-label { // similar to form legend
201 .left-label { // similar to form legend
202 display: block;
202 display: block;
203 margin: 0;
203 margin: 0;
204 padding: 0;
204 padding: 0;
205 font-weight: @text-semibold-weight;
205 font-weight: @text-semibold-weight;
206 font-family: @text-semibold;
206 font-family: @text-semibold;
207 }
207 }
208
208
209 .left-label-summary {
209 .left-label-summary {
210 padding-left: 20px;
210 padding-left: 20px;
211 margin-bottom: 5px;
211 margin-bottom: 5px;
212
212
213 p {
213 p {
214 margin-bottom: 5px;
214 margin-bottom: 5px;
215 color: @grey1;
215 color: @grey1;
216 float: left;
216 float: left;
217 width: 130px;
217 width: 130px;
218 }
218 }
219
219
220 .right-label-summary {
220 .right-label-summary {
221 float: left;
221 float: left;
222 margin-top: 7px;
222 margin-top: 7px;
223 }
223 }
224 }
224 }
225
225
226 .left-content {
226 .left-content {
227 width: ~"calc(50% - 20px)";
227 width: ~"calc(50% - 20px)";
228 float: left;
228 float: left;
229 margin: 15px 0 15px 20px;
229 margin: 15px 0 15px 20px;
230
230
231 .rc-user {
231 .rc-user {
232 min-width: auto;
232 min-width: auto;
233 max-width: none;
233 max-width: none;
234 min-height: auto;
234 min-height: auto;
235 padding-right: 5px;
235 padding-right: 5px;
236 }
236 }
237
237
238 .left-content-avatar {
238 .left-content-avatar {
239 width: 45px;
239 width: 45px;
240 float: left;
240 float: left;
241 margin-top: 8px;
241 margin-top: 8px;
242 }
242 }
243
243
244 .left-content-message {
244 .left-content-message {
245 float: left;
245 float: left;
246 width: ~"calc(100% - 45px)";
246 }
247 }
247 }
248 }
248
249
249 .right-content { // similar to form fields
250 .right-content { // similar to form fields
250 float: left;
251 float: left;
251 display: block;
252 display: block;
252 width: ~"calc(50% - 20px)";
253 width: ~"calc(50% - 20px)";
253 text-align: right;
254 text-align: right;
254 margin: 15px 20px 15px 0;
255 margin: 15px 20px 15px 0;
255
256
256 .truncate-wrap,
257 .truncate-wrap,
257 .truncate {
258 .truncate {
258 max-width: 100%;
259 max-width: 100%;
259 width: 100%;
260 width: 100%;
260 }
261 }
261
262
262 .commit-long {
263 .commit-long {
263 overflow-x: auto;
264 overflow-x: auto;
264 }
265 }
265
266
266 .commit-info {
267 .commit-info {
267 margin-top: 7px;
268 margin-top: 7px;
268 }
269 }
269
270
270 .tag, .tagtag, .branchtag, .booktag, .metatag, .perm_tag {
271 .tag, .tagtag, .branchtag, .booktag, .metatag, .perm_tag {
271 background:transparent;
272 background:transparent;
272 border: none;
273 border: none;
273 box-shadow: none;
274 box-shadow: none;
274 margin-left: 10px;
275 margin-left: 10px;
275 font-size: 13px;
276 font-size: 13px;
276 }
277 }
277
278
278 .tag span, .tag i {
279 .tag span, .tag i {
279 color: @grey1;
280 color: @grey1;
280 }
281 }
281 }
282 }
282 .commit {
283 .commit {
283 color: @grey1;
284 color: @grey1;
284 margin-bottom: 5px;
285 margin-bottom: 5px;
285 }
286 }
286 .commit.truncate-wrap {
287 .commit.truncate-wrap {
287 overflow:hidden;
288 overflow:hidden;
288 text-overflow: ellipsis;
289 text-overflow: ellipsis;
289 }
290 }
290 .commit-author {
291 .commit-author {
291 color: @grey1;
292 color: @grey1;
292 }
293 }
293 .commit-date {
294 .commit-date {
294 color: @grey4;
295 color: @grey4;
295 }
296 }
296 }
297 }
297
298
298 // expand commit message
299 // expand commit message
299 #message_expand {
300 #message_expand {
300 clear: both;
301 clear: both;
301 display: block;
302 display: block;
302 color: @rcblue;
303 color: @rcblue;
303 cursor: pointer;
304 cursor: pointer;
304 }
305 }
305
306
306 #trimmed_message_box {
307 #trimmed_message_box {
307 max-height: floor(2 * @basefontsize * 1.2); // 2 lines * line-height
308 max-height: floor(2 * @basefontsize * 1.2); // 2 lines * line-height
308 overflow: hidden;
309 overflow: hidden;
309 }
310 }
310
311
311 // show/hide comments button
312 // show/hide comments button
312 .show-inline-comments {
313 .show-inline-comments {
313 display: inline;
314 display: inline;
314 cursor: pointer;
315 cursor: pointer;
315
316
316 .comments-show { display: inline; }
317 .comments-show { display: inline; }
317 .comments-hide { display: none; }
318 .comments-hide { display: none; }
318
319
319 &.comments-visible {
320 &.comments-visible {
320 .comments-show { display: none; }
321 .comments-show { display: none; }
321 .comments-hide { display: inline; }
322 .comments-hide { display: inline; }
322 }
323 }
323 }
324 }
324
325
325 // Quick Start section
326 // Quick Start section
326
327
327 .empty-repo {
328 .empty-repo {
328 border: 1px solid #EAEAEA;
329 border: 1px solid #EAEAEA;
329 border-bottom: 0;
330 border-bottom: 0;
330 border-radius: @border-radius;
331 border-radius: @border-radius;
331 padding: 0 20px;
332 padding: 0 20px;
332 }
333 }
333
334
334 .empty-repo h3, .quick_start p {
335 .empty-repo h3, .quick_start p {
335 margin-bottom: 10px;
336 margin-bottom: 10px;
336 }
337 }
337
338
338 .quick_start pre {
339 .quick_start pre {
339 background: #FCFEFF;
340 background: #FCFEFF;
340 border: 1px solid #CBDBEB;
341 border: 1px solid #CBDBEB;
341 box-shadow: @button-shadow;
342 box-shadow: @button-shadow;
342 padding: 10px 15px;
343 padding: 10px 15px;
343 border-radius: 4px;
344 border-radius: 4px;
344 color: @grey2;
345 color: @grey2;
345 }
346 }
346
347
347 .clear-fix {
348 .clear-fix {
348 clear: both;
349 clear: both;
349 }
350 }
350
351
351 .quick_start {
352 .quick_start {
352 display: block;
353 display: block;
353 position: relative;
354 position: relative;
354 border: 1px solid #EAEAEA;
355 border: 1px solid #EAEAEA;
355 border-top: 0;
356 border-top: 0;
356 border-radius: @border-radius;
357 border-radius: @border-radius;
357 padding: 0 20px;
358 padding: 0 20px;
358
359
359 // adds some space to make copy and paste easier
360 // adds some space to make copy and paste easier
360 .left-label,
361 .left-label,
361 .right-content {
362 .right-content {
362 line-height: 1.6em;
363 line-height: 1.6em;
363 }
364 }
364 }
365 }
365
366
366
367
367 .submodule {
368 .submodule {
368 .summary-detail {
369 .summary-detail {
369 width: 100%;
370 width: 100%;
370
371
371 .btn-collapse {
372 .btn-collapse {
372 display: none;
373 display: none;
373 }
374 }
374 }
375 }
375 }
376 }
376
377
377 .codeblock-header {
378 .codeblock-header {
378 float: left;
379 float: left;
379 display: block;
380 display: block;
380 width: 100%;
381 width: 100%;
381 margin: 0;
382 margin: 0;
382 padding: @space 0 10px 0;
383 padding: @space 0 10px 0;
383 border-top: @border-thickness solid @border-default-color;
384 border-top: @border-thickness solid @border-default-color;
384
385
385 .stats {
386 .stats {
386 float: left;
387 float: left;
387 }
388 }
388 .stats-filename {
389 .stats-filename {
389 font-size: 120%;
390 font-size: 120%;
390 }
391 }
391 .stats-first-item {
392 .stats-first-item {
392 padding: 0px 0px 0px 3px;
393 padding: 0px 0px 0px 3px;
393 }
394 }
394
395
395 .buttons {
396 .buttons {
396 float: right;
397 float: right;
397 text-align: right;
398 text-align: right;
398 color: @grey4;
399 color: @grey4;
399 }
400 }
400
401
401 .file-container {
402 .file-container {
402 display: inline-block;
403 display: inline-block;
403 width: 100%;
404 width: 100%;
404 }
405 }
405
406
406 }
407 }
407
408
408 #summary-menu-stats {
409 #summary-menu-stats {
409
410
410 .stats-bullet {
411 .stats-bullet {
411 color: @grey3;
412 color: @grey3;
412 min-width: 3em;
413 min-width: 3em;
413 }
414 }
414
415
415 .repo-size {
416 .repo-size {
416 margin-bottom: .5em;
417 margin-bottom: .5em;
417 }
418 }
418
419
419 }
420 }
420
421
421 .rctable.repo_summary {
422 .rctable.repo_summary {
422 border: 1px solid #eaeaea;
423 border: 1px solid #eaeaea;
423 border-radius: 2px;
424 border-radius: 2px;
424 border-collapse: inherit;
425 border-collapse: inherit;
425 border-bottom: 0;
426 border-bottom: 0;
426
427
427 th {
428 th {
428 background: @grey7;
429 background: @grey7;
429 border-bottom: 0;
430 border-bottom: 0;
430 }
431 }
431
432
432 td {
433 td {
433 border-color: #eaeaea;
434 border-color: #eaeaea;
434 }
435 }
435
436
436 td.td-status {
437 td.td-status {
437 padding: 0 0 0 10px;
438 padding: 0 0 0 10px;
438 }
439 }
439 }
440 }
General Comments 0
You need to be logged in to leave comments. Login now