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