Show More
@@ -1,260 +1,264 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 | float: left; |
|
6 | float: left; | |
7 | position: relative; |
|
7 | position: relative; | |
8 | width: 100%; |
|
8 | width: 100%; | |
9 | margin: 0; |
|
9 | margin: 0; | |
10 | padding: 0; |
|
10 | padding: 0; | |
11 |
|
11 | |||
12 | .summary-detail-header { |
|
12 | .summary-detail-header { | |
13 | float: left; |
|
13 | float: left; | |
14 | display: block; |
|
14 | display: block; | |
15 | width: 100%; |
|
15 | width: 100%; | |
16 | margin-bottom: @textmargin; |
|
16 | margin-bottom: @textmargin; | |
17 | padding: 0 0 .5em 0; |
|
17 | padding: 0 0 .5em 0; | |
18 | border-bottom: @border-thickness solid @border-default-color; |
|
18 | border-bottom: @border-thickness solid @border-default-color; | |
19 |
|
19 | |||
20 | .breadcrumbs { |
|
20 | .breadcrumbs { | |
21 | float: left; |
|
21 | float: left; | |
22 | display: inline; |
|
22 | display: inline; | |
23 | margin: 0; |
|
23 | margin: 0; | |
24 | padding: 0; |
|
24 | padding: 0; | |
25 | } |
|
25 | } | |
26 | h4 { |
|
26 | h4 { | |
27 | float: left; |
|
27 | float: left; | |
28 | margin: 0 1em 0 0; |
|
28 | margin: 0 1em 0 0; | |
29 | padding: 0; |
|
29 | padding: 0; | |
30 | line-height: 1.2em; |
|
30 | line-height: 1.2em; | |
31 | font-size: @basefontsize; |
|
31 | font-size: @basefontsize; | |
32 | } |
|
32 | } | |
33 |
|
33 | |||
34 | .action_link { |
|
34 | .action_link { | |
35 | float: right; |
|
35 | float: right; | |
36 | } |
|
36 | } | |
37 |
|
37 | |||
38 | .new-file { |
|
38 | .new-file { | |
39 | float: right; |
|
39 | float: right; | |
40 | margin-top: -1.5em; |
|
40 | margin-top: -1.5em; | |
41 | } |
|
41 | } | |
42 | } |
|
42 | } | |
43 |
|
43 | |||
44 | .summary-detail { |
|
44 | .summary-detail { | |
45 | float: left; |
|
45 | float: left; | |
46 | position: relative; |
|
46 | position: relative; | |
47 | width: 73%; |
|
47 | width: 73%; | |
48 | margin: 0 3% @space 0; |
|
48 | margin: 0 3% @space 0; | |
49 | padding: 0; |
|
49 | padding: 0; | |
50 |
|
50 | |||
51 | .file_diff_buttons { |
|
51 | .file_diff_buttons { | |
52 | margin-top: @space; |
|
52 | margin-top: @space; | |
53 | } |
|
53 | } | |
54 |
|
54 | |||
55 | // commit message |
|
55 | // commit message | |
56 | .commit { |
|
56 | .commit { | |
57 | white-space: pre-wrap; |
|
57 | white-space: pre-wrap; | |
58 | } |
|
58 | } | |
59 |
|
59 | |||
60 | #clone_url, |
|
60 | #clone_url, | |
61 | #clone_url_id { |
|
61 | #clone_url_id { | |
62 | min-width: 29em; |
|
62 | min-width: 29em; | |
63 | padding: @padding/4; |
|
63 | padding: @padding/4; | |
64 | } |
|
64 | } | |
65 |
|
65 | |||
66 | &.directory { |
|
66 | &.directory { | |
67 | margin-bottom: 0; |
|
67 | margin-bottom: 0; | |
68 | } |
|
68 | } | |
69 |
|
69 | |||
70 | .desc { |
|
70 | .desc { | |
71 | white-space: pre-wrap; |
|
71 | white-space: pre-wrap; | |
72 | } |
|
72 | } | |
73 | .disabled { |
|
73 | .disabled { | |
74 | opacity: .5; |
|
74 | opacity: .5; | |
75 | } |
|
75 | } | |
76 | .help-block { |
|
76 | .help-block { | |
77 | color: inherit; |
|
77 | color: inherit; | |
78 | margin: 0; |
|
78 | margin: 0; | |
79 | } |
|
79 | } | |
80 | } |
|
80 | } | |
81 |
|
81 | |||
82 | .sidebar-right { |
|
82 | .sidebar-right { | |
83 | float: left; |
|
83 | float: left; | |
84 | width: 24%; |
|
84 | width: 24%; | |
85 | margin: 0; |
|
85 | margin: 0; | |
86 | padding: 0; |
|
86 | padding: 0; | |
87 |
|
87 | |||
88 | ul { |
|
88 | ul { | |
89 | margin-left: 0; |
|
89 | margin-left: 0; | |
90 | padding-left: 0; |
|
90 | padding-left: 0; | |
91 |
|
91 | |||
92 | li { |
|
92 | li { | |
93 |
|
93 | |||
94 | &:before { |
|
94 | &:before { | |
95 | content: none; |
|
95 | content: none; | |
96 | width: 0; |
|
96 | width: 0; | |
97 | } |
|
97 | } | |
98 | } |
|
98 | } | |
99 | } |
|
99 | } | |
100 | } |
|
100 | } | |
101 |
|
101 | |||
102 | #clone_by_name, #clone_by_id{ |
|
102 | #clone_by_name, #clone_by_id{ | |
103 | display: inline-block; |
|
103 | display: inline-block; | |
104 | margin-left: @padding; |
|
104 | margin-left: @padding; | |
105 | } |
|
105 | } | |
106 |
|
106 | |||
107 | .codeblock { |
|
107 | .codeblock { | |
108 | border: none; |
|
108 | border: none; | |
109 | background-color: transparent; |
|
109 | background-color: transparent; | |
110 | } |
|
110 | } | |
111 |
|
111 | |||
112 | .code-body { |
|
112 | .code-body { | |
113 | border: @border-thickness solid @border-default-color; |
|
113 | border: @border-thickness solid @border-default-color; | |
114 | .border-radius(@border-radius); |
|
114 | .border-radius(@border-radius); | |
115 | } |
|
115 | } | |
116 | } |
|
116 | } | |
117 |
|
117 | |||
118 | // this is used outside of just the summary |
|
118 | // this is used outside of just the summary | |
119 | .fieldset, // similar to form fieldset |
|
119 | .fieldset, // similar to form fieldset | |
120 | .summary .sidebar-right-content { // these have to match |
|
120 | .summary .sidebar-right-content { // these have to match | |
121 | clear: both; |
|
121 | clear: both; | |
122 | float: left; |
|
122 | float: left; | |
123 | position: relative; |
|
123 | position: relative; | |
124 | display:block; |
|
124 | display:block; | |
125 | width: 100%; |
|
125 | width: 100%; | |
126 | min-height: 1em; |
|
126 | min-height: 1em; | |
127 | margin-bottom: @textmargin; |
|
127 | margin-bottom: @textmargin; | |
128 | padding: 0; |
|
128 | padding: 0; | |
129 | line-height: 1.2em; |
|
129 | line-height: 1.2em; | |
130 |
|
130 | |||
131 | &:after { // clearfix |
|
131 | &:after { // clearfix | |
132 | content: ""; |
|
132 | content: ""; | |
133 | clear: both; |
|
133 | clear: both; | |
134 | width: 100%; |
|
134 | width: 100%; | |
135 | height: 1em; |
|
135 | height: 1em; | |
136 | } |
|
136 | } | |
137 | } |
|
137 | } | |
138 |
|
138 | |||
139 | .summary .sidebar-right-content { |
|
139 | .summary .sidebar-right-content { | |
140 | margin-bottom: @space; |
|
140 | margin-bottom: @space; | |
141 |
|
141 | |||
142 | .rc-user { |
|
142 | .rc-user { | |
143 | min-width: 0; |
|
143 | min-width: 0; | |
144 | } |
|
144 | } | |
145 | } |
|
145 | } | |
146 |
|
146 | |||
147 | .fieldset { |
|
147 | .fieldset { | |
148 |
|
148 | |||
149 | .left-label { // similar to form legend |
|
149 | .left-label { // similar to form legend | |
150 | float: left; |
|
150 | float: left; | |
151 | display: block; |
|
151 | display: block; | |
152 | width: 25%; |
|
152 | width: 25%; | |
153 | margin: 0; |
|
153 | margin: 0; | |
154 | padding: 0; |
|
154 | padding: 0; | |
155 | font-family: @text-semibold; |
|
155 | font-family: @text-semibold; | |
156 | } |
|
156 | } | |
157 |
|
157 | |||
158 | .right-content { // similar to form fields |
|
158 | .right-content { // similar to form fields | |
159 | float: left; |
|
159 | float: left; | |
160 | display: block; |
|
160 | display: block; | |
161 | width: 75%; |
|
161 | width: 75%; | |
162 | margin: 0 0 0 -15%; |
|
162 | margin: 0 0 0 -15%; | |
163 | padding: 0 0 0 15%; |
|
163 | padding: 0 0 0 15%; | |
164 |
|
164 | |||
165 | .truncate-wrap, |
|
165 | .truncate-wrap, | |
166 | .truncate { |
|
166 | .truncate { | |
167 | max-width: 100%; |
|
167 | max-width: 100%; | |
168 | width: 100%; |
|
168 | width: 100%; | |
169 | } |
|
169 | } | |
170 |
|
170 | |||
171 | .commit-long { |
|
171 | .commit-long { | |
172 | overflow-x: auto; |
|
172 | overflow-x: auto; | |
173 | } |
|
173 | } | |
174 | } |
|
174 | } | |
|
175 | .commit.truncate-wrap { | |||
|
176 | overflow:hidden; | |||
|
177 | text-overflow: ellipsis; | |||
|
178 | } | |||
175 | } |
|
179 | } | |
176 |
|
180 | |||
177 | // expand commit message |
|
181 | // expand commit message | |
178 | #message_expand { |
|
182 | #message_expand { | |
179 | clear: both; |
|
183 | clear: both; | |
180 | display: block; |
|
184 | display: block; | |
181 | color: @rcblue; |
|
185 | color: @rcblue; | |
182 | cursor: pointer; |
|
186 | cursor: pointer; | |
183 | } |
|
187 | } | |
184 |
|
188 | |||
185 | #trimmed_message_box { |
|
189 | #trimmed_message_box { | |
186 | max-height: floor(2 * @basefontsize * 1.2); // 2 lines * line-height |
|
190 | max-height: floor(2 * @basefontsize * 1.2); // 2 lines * line-height | |
187 | overflow: hidden; |
|
191 | overflow: hidden; | |
188 | } |
|
192 | } | |
189 |
|
193 | |||
190 | // show/hide comments button |
|
194 | // show/hide comments button | |
191 | .show-inline-comments { |
|
195 | .show-inline-comments { | |
192 | display: inline; |
|
196 | display: inline; | |
193 | cursor: pointer; |
|
197 | cursor: pointer; | |
194 |
|
198 | |||
195 | .comments-show { display: inline; } |
|
199 | .comments-show { display: inline; } | |
196 | .comments-hide { display: none; } |
|
200 | .comments-hide { display: none; } | |
197 |
|
201 | |||
198 | &.comments-visible { |
|
202 | &.comments-visible { | |
199 | .comments-show { display: none; } |
|
203 | .comments-show { display: none; } | |
200 | .comments-hide { display: inline; } |
|
204 | .comments-hide { display: inline; } | |
201 | } |
|
205 | } | |
202 | } |
|
206 | } | |
203 |
|
207 | |||
204 | // Quick Start section |
|
208 | // Quick Start section | |
205 | .quick_start { |
|
209 | .quick_start { | |
206 | float: left; |
|
210 | float: left; | |
207 | display: block; |
|
211 | display: block; | |
208 | position: relative; |
|
212 | position: relative; | |
209 |
|
213 | |||
210 | // adds some space to make copy and paste easier |
|
214 | // adds some space to make copy and paste easier | |
211 | .left-label, |
|
215 | .left-label, | |
212 | .right-content { |
|
216 | .right-content { | |
213 | line-height: 1.6em; |
|
217 | line-height: 1.6em; | |
214 | } |
|
218 | } | |
215 | } |
|
219 | } | |
216 |
|
220 | |||
217 | .submodule { |
|
221 | .submodule { | |
218 | .summary-detail { |
|
222 | .summary-detail { | |
219 | width: 100%; |
|
223 | width: 100%; | |
220 |
|
224 | |||
221 | .btn-collapse { |
|
225 | .btn-collapse { | |
222 | display: none; |
|
226 | display: none; | |
223 | } |
|
227 | } | |
224 | } |
|
228 | } | |
225 | } |
|
229 | } | |
226 |
|
230 | |||
227 | .codeblock-header { |
|
231 | .codeblock-header { | |
228 | float: left; |
|
232 | float: left; | |
229 | display: block; |
|
233 | display: block; | |
230 | width: 100%; |
|
234 | width: 100%; | |
231 | margin: 0; |
|
235 | margin: 0; | |
232 | padding: @space 0 @padding 0; |
|
236 | padding: @space 0 @padding 0; | |
233 | border-top: @border-thickness solid @border-default-color; |
|
237 | border-top: @border-thickness solid @border-default-color; | |
234 |
|
238 | |||
235 | .stats { |
|
239 | .stats { | |
236 | float: left; |
|
240 | float: left; | |
237 | width: 50%; |
|
241 | width: 50%; | |
238 | } |
|
242 | } | |
239 |
|
243 | |||
240 | .buttons { |
|
244 | .buttons { | |
241 | float: right; |
|
245 | float: right; | |
242 | width: 50%; |
|
246 | width: 50%; | |
243 | text-align: right; |
|
247 | text-align: right; | |
244 | color: @grey4; |
|
248 | color: @grey4; | |
245 | } |
|
249 | } | |
246 | } |
|
250 | } | |
247 |
|
251 | |||
248 | #summary-menu-stats { |
|
252 | #summary-menu-stats { | |
249 |
|
253 | |||
250 | .stats-bullet { |
|
254 | .stats-bullet { | |
251 | color: @grey3; |
|
255 | color: @grey3; | |
252 | min-width: 3em; |
|
256 | min-width: 3em; | |
253 | } |
|
257 | } | |
254 |
|
258 | |||
255 | .repo-size { |
|
259 | .repo-size { | |
256 | margin-bottom: .5em; |
|
260 | margin-bottom: .5em; | |
257 | } |
|
261 | } | |
258 |
|
262 | |||
259 | } |
|
263 | } | |
260 |
|
264 |
General Comments 0
You need to be logged in to leave comments.
Login now