Show More
@@ -1,1263 +1,1261 b'' | |||||
1 | // Default styles |
|
1 | // Default styles | |
2 |
|
2 | |||
3 | .diff-collapse { |
|
3 | .diff-collapse { | |
4 | margin: @padding 0; |
|
4 | margin: @padding 0; | |
5 | text-align: right; |
|
5 | text-align: right; | |
6 | } |
|
6 | } | |
7 |
|
7 | |||
8 | .diff-container { |
|
8 | .diff-container { | |
9 | margin-bottom: @space; |
|
9 | margin-bottom: @space; | |
10 |
|
10 | |||
11 | .diffblock { |
|
11 | .diffblock { | |
12 | margin-bottom: @space; |
|
12 | margin-bottom: @space; | |
13 | } |
|
13 | } | |
14 |
|
14 | |||
15 | &.hidden { |
|
15 | &.hidden { | |
16 | display: none; |
|
16 | display: none; | |
17 | overflow: hidden; |
|
17 | overflow: hidden; | |
18 | } |
|
18 | } | |
19 | } |
|
19 | } | |
20 |
|
20 | |||
21 |
|
21 | |||
22 | div.diffblock .sidebyside { |
|
22 | div.diffblock .sidebyside { | |
23 | background: #ffffff; |
|
23 | background: #ffffff; | |
24 | } |
|
24 | } | |
25 |
|
25 | |||
26 | div.diffblock { |
|
26 | div.diffblock { | |
27 | overflow-x: auto; |
|
27 | overflow-x: auto; | |
28 | overflow-y: hidden; |
|
28 | overflow-y: hidden; | |
29 | clear: both; |
|
29 | clear: both; | |
30 | padding: 0px; |
|
30 | padding: 0px; | |
31 | background: @grey6; |
|
31 | background: @grey6; | |
32 | border: @border-thickness solid @grey5; |
|
32 | border: @border-thickness solid @grey5; | |
33 | -webkit-border-radius: @border-radius @border-radius 0px 0px; |
|
33 | -webkit-border-radius: @border-radius @border-radius 0px 0px; | |
34 | border-radius: @border-radius @border-radius 0px 0px; |
|
34 | border-radius: @border-radius @border-radius 0px 0px; | |
35 |
|
35 | |||
36 |
|
36 | |||
37 | .comments-number { |
|
37 | .comments-number { | |
38 | float: right; |
|
38 | float: right; | |
39 | } |
|
39 | } | |
40 |
|
40 | |||
41 | // BEGIN CODE-HEADER STYLES |
|
41 | // BEGIN CODE-HEADER STYLES | |
42 |
|
42 | |||
43 | .code-header { |
|
43 | .code-header { | |
44 | background: @grey6; |
|
44 | background: @grey6; | |
45 | padding: 10px 0 10px 0; |
|
45 | padding: 10px 0 10px 0; | |
46 | height: auto; |
|
46 | height: auto; | |
47 | width: 100%; |
|
47 | width: 100%; | |
48 |
|
48 | |||
49 | .hash { |
|
49 | .hash { | |
50 | float: left; |
|
50 | float: left; | |
51 | padding: 2px 0 0 2px; |
|
51 | padding: 2px 0 0 2px; | |
52 | } |
|
52 | } | |
53 |
|
53 | |||
54 | .date { |
|
54 | .date { | |
55 | float: left; |
|
55 | float: left; | |
56 | text-transform: uppercase; |
|
56 | text-transform: uppercase; | |
57 | padding: 4px 0px 0px 2px; |
|
57 | padding: 4px 0px 0px 2px; | |
58 | } |
|
58 | } | |
59 |
|
59 | |||
60 | div { |
|
60 | div { | |
61 | margin-left: 4px; |
|
61 | margin-left: 4px; | |
62 | } |
|
62 | } | |
63 |
|
63 | |||
64 | div.compare_header { |
|
64 | div.compare_header { | |
65 | min-height: 40px; |
|
65 | min-height: 40px; | |
66 | margin: 0; |
|
66 | margin: 0; | |
67 | padding: 0 @padding; |
|
67 | padding: 0 @padding; | |
68 |
|
68 | |||
69 | .drop-menu { |
|
69 | .drop-menu { | |
70 | float:left; |
|
70 | float:left; | |
71 | display: block; |
|
71 | display: block; | |
72 | margin:0 0 @padding 0; |
|
72 | margin:0 0 @padding 0; | |
73 | } |
|
73 | } | |
74 |
|
74 | |||
75 | .compare-label { |
|
75 | .compare-label { | |
76 | float: left; |
|
76 | float: left; | |
77 | clear: both; |
|
77 | clear: both; | |
78 | display: inline-block; |
|
78 | display: inline-block; | |
79 | min-width: 5em; |
|
79 | min-width: 5em; | |
80 | margin: 0; |
|
80 | margin: 0; | |
81 | padding: @button-padding @button-padding @button-padding 0; |
|
81 | padding: @button-padding @button-padding @button-padding 0; | |
82 | font-weight: @text-semibold-weight; |
|
82 | font-weight: @text-semibold-weight; | |
83 | font-family: @text-semibold; |
|
83 | font-family: @text-semibold; | |
84 | } |
|
84 | } | |
85 |
|
85 | |||
86 | .compare-buttons { |
|
86 | .compare-buttons { | |
87 | float: left; |
|
87 | float: left; | |
88 | margin: 0; |
|
88 | margin: 0; | |
89 | padding: 0 0 @padding; |
|
89 | padding: 0 0 @padding; | |
90 |
|
90 | |||
91 | .btn { |
|
91 | .btn { | |
92 | margin: 0 @padding 0 0; |
|
92 | margin: 0 @padding 0 0; | |
93 | } |
|
93 | } | |
94 | } |
|
94 | } | |
95 | } |
|
95 | } | |
96 |
|
96 | |||
97 | } |
|
97 | } | |
98 |
|
98 | |||
99 | .parents { |
|
99 | .parents { | |
100 | float: left; |
|
100 | float: left; | |
101 | width: 100px; |
|
101 | width: 100px; | |
102 | font-weight: 400; |
|
102 | font-weight: 400; | |
103 | vertical-align: middle; |
|
103 | vertical-align: middle; | |
104 | padding: 0px 2px 0px 2px; |
|
104 | padding: 0px 2px 0px 2px; | |
105 | background-color: @grey6; |
|
105 | background-color: @grey6; | |
106 |
|
106 | |||
107 | #parent_link { |
|
107 | #parent_link { | |
108 | margin: 00px 2px; |
|
108 | margin: 00px 2px; | |
109 |
|
109 | |||
110 | &.double { |
|
110 | &.double { | |
111 | margin: 0px 2px; |
|
111 | margin: 0px 2px; | |
112 | } |
|
112 | } | |
113 |
|
113 | |||
114 | &.disabled{ |
|
114 | &.disabled{ | |
115 | margin-right: @padding; |
|
115 | margin-right: @padding; | |
116 | } |
|
116 | } | |
117 | } |
|
117 | } | |
118 | } |
|
118 | } | |
119 |
|
119 | |||
120 | .children { |
|
120 | .children { | |
121 | float: right; |
|
121 | float: right; | |
122 | width: 100px; |
|
122 | width: 100px; | |
123 | font-weight: 400; |
|
123 | font-weight: 400; | |
124 | vertical-align: middle; |
|
124 | vertical-align: middle; | |
125 | text-align: right; |
|
125 | text-align: right; | |
126 | padding: 0px 2px 0px 2px; |
|
126 | padding: 0px 2px 0px 2px; | |
127 | background-color: @grey6; |
|
127 | background-color: @grey6; | |
128 |
|
128 | |||
129 | #child_link { |
|
129 | #child_link { | |
130 | margin: 0px 2px; |
|
130 | margin: 0px 2px; | |
131 |
|
131 | |||
132 | &.double { |
|
132 | &.double { | |
133 | margin: 0px 2px; |
|
133 | margin: 0px 2px; | |
134 | } |
|
134 | } | |
135 |
|
135 | |||
136 | &.disabled{ |
|
136 | &.disabled{ | |
137 | margin-right: @padding; |
|
137 | margin-right: @padding; | |
138 | } |
|
138 | } | |
139 | } |
|
139 | } | |
140 | } |
|
140 | } | |
141 |
|
141 | |||
142 | .changeset_header { |
|
142 | .changeset_header { | |
143 | height: 16px; |
|
143 | height: 16px; | |
144 |
|
144 | |||
145 | & > div{ |
|
145 | & > div{ | |
146 | margin-right: @padding; |
|
146 | margin-right: @padding; | |
147 | } |
|
147 | } | |
148 | } |
|
148 | } | |
149 |
|
149 | |||
150 | .changeset_file { |
|
150 | .changeset_file { | |
151 | text-align: left; |
|
151 | text-align: left; | |
152 | float: left; |
|
152 | float: left; | |
153 | padding: 0; |
|
153 | padding: 0; | |
154 |
|
154 | |||
155 | a{ |
|
155 | a{ | |
156 | display: inline-block; |
|
156 | display: inline-block; | |
157 | margin-right: 0.5em; |
|
157 | margin-right: 0.5em; | |
158 | } |
|
158 | } | |
159 |
|
159 | |||
160 | #selected_mode{ |
|
160 | #selected_mode{ | |
161 | margin-left: 0; |
|
161 | margin-left: 0; | |
162 | } |
|
162 | } | |
163 | } |
|
163 | } | |
164 |
|
164 | |||
165 | .diff-menu-wrapper { |
|
165 | .diff-menu-wrapper { | |
166 | float: left; |
|
166 | float: left; | |
167 | } |
|
167 | } | |
168 |
|
168 | |||
169 | .diff-menu { |
|
169 | .diff-menu { | |
170 | position: absolute; |
|
170 | position: absolute; | |
171 | background: none repeat scroll 0 0 #FFFFFF; |
|
171 | background: none repeat scroll 0 0 #FFFFFF; | |
172 | border-color: #003367 @grey3 @grey3; |
|
172 | border-color: #003367 @grey3 @grey3; | |
173 | border-right: 1px solid @grey3; |
|
173 | border-right: 1px solid @grey3; | |
174 | border-style: solid solid solid; |
|
174 | border-style: solid solid solid; | |
175 | border-width: @border-thickness; |
|
175 | border-width: @border-thickness; | |
176 | box-shadow: 2px 8px 4px rgba(0, 0, 0, 0.2); |
|
176 | box-shadow: 2px 8px 4px rgba(0, 0, 0, 0.2); | |
177 | margin-top: 5px; |
|
177 | margin-top: 5px; | |
178 | margin-left: 1px; |
|
178 | margin-left: 1px; | |
179 | } |
|
179 | } | |
180 |
|
180 | |||
181 | .diff-actions, .editor-actions { |
|
181 | .diff-actions, .editor-actions { | |
182 | float: left; |
|
182 | float: left; | |
183 |
|
183 | |||
184 | input{ |
|
184 | input{ | |
185 | margin: 0 0.5em 0 0; |
|
185 | margin: 0 0.5em 0 0; | |
186 | } |
|
186 | } | |
187 | } |
|
187 | } | |
188 |
|
188 | |||
189 | // END CODE-HEADER STYLES |
|
189 | // END CODE-HEADER STYLES | |
190 |
|
190 | |||
191 | // BEGIN CODE-BODY STYLES |
|
191 | // BEGIN CODE-BODY STYLES | |
192 |
|
192 | |||
193 | .code-body { |
|
193 | .code-body { | |
194 | padding: 0; |
|
194 | padding: 0; | |
195 | background-color: #ffffff; |
|
195 | background-color: #ffffff; | |
196 | position: relative; |
|
196 | position: relative; | |
197 | max-width: none; |
|
197 | max-width: none; | |
198 | box-sizing: border-box; |
|
198 | box-sizing: border-box; | |
199 | // TODO: johbo: Parent has overflow: auto, this forces the child here |
|
199 | // TODO: johbo: Parent has overflow: auto, this forces the child here | |
200 | // to have the intended size and to scroll. Should be simplified. |
|
200 | // to have the intended size and to scroll. Should be simplified. | |
201 | width: 100%; |
|
201 | width: 100%; | |
202 | overflow-x: auto; |
|
202 | overflow-x: auto; | |
203 | } |
|
203 | } | |
204 |
|
204 | |||
205 | pre.raw { |
|
205 | pre.raw { | |
206 | background: white; |
|
206 | background: white; | |
207 | color: @grey1; |
|
207 | color: @grey1; | |
208 | } |
|
208 | } | |
209 | // END CODE-BODY STYLES |
|
209 | // END CODE-BODY STYLES | |
210 |
|
210 | |||
211 | } |
|
211 | } | |
212 |
|
212 | |||
213 |
|
213 | |||
214 | table.code-difftable { |
|
214 | table.code-difftable { | |
215 | border-collapse: collapse; |
|
215 | border-collapse: collapse; | |
216 | width: 99%; |
|
216 | width: 99%; | |
217 | border-radius: 0px !important; |
|
217 | border-radius: 0px !important; | |
218 |
|
218 | |||
219 | td { |
|
219 | td { | |
220 | padding: 0 !important; |
|
220 | padding: 0 !important; | |
221 | background: none !important; |
|
221 | background: none !important; | |
222 | border: 0 !important; |
|
222 | border: 0 !important; | |
223 | } |
|
223 | } | |
224 |
|
224 | |||
225 | .context { |
|
225 | .context { | |
226 | background: none repeat scroll 0 0 #DDE7EF; |
|
226 | background: none repeat scroll 0 0 #DDE7EF; | |
227 | } |
|
227 | } | |
228 |
|
228 | |||
229 | .add { |
|
229 | .add { | |
230 | background: none repeat scroll 0 0 #DDFFDD; |
|
230 | background: none repeat scroll 0 0 #DDFFDD; | |
231 |
|
231 | |||
232 | ins { |
|
232 | ins { | |
233 | background: none repeat scroll 0 0 #AAFFAA; |
|
233 | background: none repeat scroll 0 0 #AAFFAA; | |
234 | text-decoration: none; |
|
234 | text-decoration: none; | |
235 | } |
|
235 | } | |
236 | } |
|
236 | } | |
237 |
|
237 | |||
238 | .del { |
|
238 | .del { | |
239 | background: none repeat scroll 0 0 #FFDDDD; |
|
239 | background: none repeat scroll 0 0 #FFDDDD; | |
240 |
|
240 | |||
241 | del { |
|
241 | del { | |
242 | background: none repeat scroll 0 0 #FFAAAA; |
|
242 | background: none repeat scroll 0 0 #FFAAAA; | |
243 | text-decoration: none; |
|
243 | text-decoration: none; | |
244 | } |
|
244 | } | |
245 | } |
|
245 | } | |
246 |
|
246 | |||
247 | /** LINE NUMBERS **/ |
|
247 | /** LINE NUMBERS **/ | |
248 | .lineno { |
|
248 | .lineno { | |
249 | padding-left: 2px !important; |
|
249 | padding-left: 2px !important; | |
250 | padding-right: 2px; |
|
250 | padding-right: 2px; | |
251 | text-align: right; |
|
251 | text-align: right; | |
252 | width: 32px; |
|
252 | width: 32px; | |
253 | -moz-user-select: none; |
|
253 | -moz-user-select: none; | |
254 | -webkit-user-select: none; |
|
254 | -webkit-user-select: none; | |
255 | border-right: @border-thickness solid @grey5 !important; |
|
255 | border-right: @border-thickness solid @grey5 !important; | |
256 | border-left: 0px solid #CCC !important; |
|
256 | border-left: 0px solid #CCC !important; | |
257 | border-top: 0px solid #CCC !important; |
|
257 | border-top: 0px solid #CCC !important; | |
258 | border-bottom: none !important; |
|
258 | border-bottom: none !important; | |
259 |
|
259 | |||
260 | a { |
|
260 | a { | |
261 | &:extend(pre); |
|
261 | &:extend(pre); | |
262 | text-align: right; |
|
262 | text-align: right; | |
263 | padding-right: 2px; |
|
263 | padding-right: 2px; | |
264 | cursor: pointer; |
|
264 | cursor: pointer; | |
265 | display: block; |
|
265 | display: block; | |
266 | width: 32px; |
|
266 | width: 32px; | |
267 | } |
|
267 | } | |
268 | } |
|
268 | } | |
269 |
|
269 | |||
270 | .context { |
|
270 | .context { | |
271 | cursor: auto; |
|
271 | cursor: auto; | |
272 | &:extend(pre); |
|
272 | &:extend(pre); | |
273 | } |
|
273 | } | |
274 |
|
274 | |||
275 | .lineno-inline { |
|
275 | .lineno-inline { | |
276 | background: none repeat scroll 0 0 #FFF !important; |
|
276 | background: none repeat scroll 0 0 #FFF !important; | |
277 | padding-left: 2px; |
|
277 | padding-left: 2px; | |
278 | padding-right: 2px; |
|
278 | padding-right: 2px; | |
279 | text-align: right; |
|
279 | text-align: right; | |
280 | width: 30px; |
|
280 | width: 30px; | |
281 | -moz-user-select: none; |
|
281 | -moz-user-select: none; | |
282 | -webkit-user-select: none; |
|
282 | -webkit-user-select: none; | |
283 | } |
|
283 | } | |
284 |
|
284 | |||
285 | /** CODE **/ |
|
285 | /** CODE **/ | |
286 | .code { |
|
286 | .code { | |
287 | display: block; |
|
287 | display: block; | |
288 | width: 100%; |
|
288 | width: 100%; | |
289 |
|
289 | |||
290 | td { |
|
290 | td { | |
291 | margin: 0; |
|
291 | margin: 0; | |
292 | padding: 0; |
|
292 | padding: 0; | |
293 | } |
|
293 | } | |
294 |
|
294 | |||
295 | pre { |
|
295 | pre { | |
296 | margin: 0; |
|
296 | margin: 0; | |
297 | padding: 0; |
|
297 | padding: 0; | |
298 | margin-left: .5em; |
|
298 | margin-left: .5em; | |
299 | } |
|
299 | } | |
300 | } |
|
300 | } | |
301 | } |
|
301 | } | |
302 |
|
302 | |||
303 |
|
303 | |||
304 | // Comments |
|
304 | // Comments | |
305 |
|
305 | |||
306 | div.comment:target { |
|
306 | div.comment:target { | |
307 | border-left: 6px solid @comment-highlight-color !important; |
|
307 | border-left: 6px solid @comment-highlight-color !important; | |
308 | padding-left: 3px; |
|
308 | padding-left: 3px; | |
309 | margin-left: -9px; |
|
309 | margin-left: -9px; | |
310 | } |
|
310 | } | |
311 |
|
311 | |||
312 | //TODO: anderson: can't get an absolute number out of anything, so had to put the |
|
312 | //TODO: anderson: can't get an absolute number out of anything, so had to put the | |
313 | //current values that might change. But to make it clear I put as a calculation |
|
313 | //current values that might change. But to make it clear I put as a calculation | |
314 | @comment-max-width: 1065px; |
|
314 | @comment-max-width: 1065px; | |
315 | @pr-extra-margin: 34px; |
|
315 | @pr-extra-margin: 34px; | |
316 | @pr-border-spacing: 4px; |
|
316 | @pr-border-spacing: 4px; | |
317 | @pr-comment-width: @comment-max-width - @pr-extra-margin - @pr-border-spacing; |
|
317 | @pr-comment-width: @comment-max-width - @pr-extra-margin - @pr-border-spacing; | |
318 |
|
318 | |||
319 | // Pull Request |
|
319 | // Pull Request | |
320 | .cs_files .code-difftable { |
|
320 | .cs_files .code-difftable { | |
321 | border: @border-thickness solid @grey5; //borders only on PRs |
|
321 | border: @border-thickness solid @grey5; //borders only on PRs | |
322 |
|
322 | |||
323 | .comment-inline-form, |
|
323 | .comment-inline-form, | |
324 | div.comment { |
|
324 | div.comment { | |
325 | width: @pr-comment-width; |
|
325 | width: @pr-comment-width; | |
326 | } |
|
326 | } | |
327 | } |
|
327 | } | |
328 |
|
328 | |||
329 | // Changeset |
|
329 | // Changeset | |
330 | .code-difftable { |
|
330 | .code-difftable { | |
331 | .comment-inline-form, |
|
331 | .comment-inline-form, | |
332 | div.comment { |
|
332 | div.comment { | |
333 | width: @comment-max-width; |
|
333 | width: @comment-max-width; | |
334 | } |
|
334 | } | |
335 | } |
|
335 | } | |
336 |
|
336 | |||
337 | //Style page |
|
337 | //Style page | |
338 | @style-extra-margin: @sidebar-width + (@sidebarpadding * 3) + @padding; |
|
338 | @style-extra-margin: @sidebar-width + (@sidebarpadding * 3) + @padding; | |
339 | #style-page .code-difftable{ |
|
339 | #style-page .code-difftable{ | |
340 | .comment-inline-form, |
|
340 | .comment-inline-form, | |
341 | div.comment { |
|
341 | div.comment { | |
342 | width: @comment-max-width - @style-extra-margin; |
|
342 | width: @comment-max-width - @style-extra-margin; | |
343 | } |
|
343 | } | |
344 | } |
|
344 | } | |
345 |
|
345 | |||
346 | #context-bar > h2 { |
|
346 | #context-bar > h2 { | |
347 | font-size: 20px; |
|
347 | font-size: 20px; | |
348 | } |
|
348 | } | |
349 |
|
349 | |||
350 | #context-bar > h2> a { |
|
350 | #context-bar > h2> a { | |
351 | font-size: 20px; |
|
351 | font-size: 20px; | |
352 | } |
|
352 | } | |
353 | // end of defaults |
|
353 | // end of defaults | |
354 |
|
354 | |||
355 | .file_diff_buttons { |
|
355 | .file_diff_buttons { | |
356 | padding: 0 0 @padding; |
|
356 | padding: 0 0 @padding; | |
357 |
|
357 | |||
358 | .drop-menu { |
|
358 | .drop-menu { | |
359 | float: left; |
|
359 | float: left; | |
360 | margin: 0 @padding 0 0; |
|
360 | margin: 0 @padding 0 0; | |
361 | } |
|
361 | } | |
362 | .btn { |
|
362 | .btn { | |
363 | margin: 0 @padding 0 0; |
|
363 | margin: 0 @padding 0 0; | |
364 | } |
|
364 | } | |
365 | } |
|
365 | } | |
366 |
|
366 | |||
367 | .code-body.textarea.editor { |
|
367 | .code-body.textarea.editor { | |
368 | max-width: none; |
|
368 | max-width: none; | |
369 | padding: 15px; |
|
369 | padding: 15px; | |
370 | } |
|
370 | } | |
371 |
|
371 | |||
372 | td.injected_diff{ |
|
372 | td.injected_diff{ | |
373 | max-width: 1178px; |
|
373 | max-width: 1178px; | |
374 | overflow-x: auto; |
|
374 | overflow-x: auto; | |
375 | overflow-y: hidden; |
|
375 | overflow-y: hidden; | |
376 |
|
376 | |||
377 | div.diff-container, |
|
377 | div.diff-container, | |
378 | div.diffblock{ |
|
378 | div.diffblock{ | |
379 | max-width: 100%; |
|
379 | max-width: 100%; | |
380 | } |
|
380 | } | |
381 |
|
381 | |||
382 | div.code-body { |
|
382 | div.code-body { | |
383 | max-width: 1124px; |
|
383 | max-width: 1124px; | |
384 | overflow-x: auto; |
|
384 | overflow-x: auto; | |
385 | overflow-y: hidden; |
|
385 | overflow-y: hidden; | |
386 | padding: 0; |
|
386 | padding: 0; | |
387 | } |
|
387 | } | |
388 | div.diffblock { |
|
388 | div.diffblock { | |
389 | border: none; |
|
389 | border: none; | |
390 | } |
|
390 | } | |
391 |
|
391 | |||
392 | &.inline-form { |
|
392 | &.inline-form { | |
393 | width: 99% |
|
393 | width: 99% | |
394 | } |
|
394 | } | |
395 | } |
|
395 | } | |
396 |
|
396 | |||
397 |
|
397 | |||
398 | table.code-difftable { |
|
398 | table.code-difftable { | |
399 | width: 100%; |
|
399 | width: 100%; | |
400 | } |
|
400 | } | |
401 |
|
401 | |||
402 | /** PYGMENTS COLORING **/ |
|
402 | /** PYGMENTS COLORING **/ | |
403 | div.codeblock { |
|
403 | div.codeblock { | |
404 |
|
404 | |||
405 | // TODO: johbo: Added interim to get rid of the margin around |
|
405 | // TODO: johbo: Added interim to get rid of the margin around | |
406 | // Select2 widgets. This needs further cleanup. |
|
406 | // Select2 widgets. This needs further cleanup. | |
407 | margin-top: @padding; |
|
|||
408 |
|
||||
409 | overflow: auto; |
|
407 | overflow: auto; | |
410 | padding: 0px; |
|
408 | padding: 0px; | |
411 | border: @border-thickness solid @grey6; |
|
409 | border: @border-thickness solid @grey6; | |
412 | background: @grey7; |
|
410 | background: @grey7; | |
413 | .border-radius(@border-radius); |
|
411 | .border-radius(@border-radius); | |
414 |
|
412 | |||
415 | #remove_gist { |
|
413 | #remove_gist { | |
416 | float: right; |
|
414 | float: right; | |
417 | } |
|
415 | } | |
418 |
|
416 | |||
419 | .gist_url { |
|
417 | .gist_url { | |
420 | padding: 0px 0px 10px 0px; |
|
418 | padding: 0px 0px 10px 0px; | |
421 | } |
|
419 | } | |
422 |
|
420 | |||
423 | .author { |
|
421 | .author { | |
424 | clear: both; |
|
422 | clear: both; | |
425 | vertical-align: middle; |
|
423 | vertical-align: middle; | |
426 | font-weight: @text-bold-weight; |
|
424 | font-weight: @text-bold-weight; | |
427 | font-family: @text-bold; |
|
425 | font-family: @text-bold; | |
428 | } |
|
426 | } | |
429 |
|
427 | |||
430 | .btn-mini { |
|
428 | .btn-mini { | |
431 | float: left; |
|
429 | float: left; | |
432 | margin: 0 5px 0 0; |
|
430 | margin: 0 5px 0 0; | |
433 | } |
|
431 | } | |
434 |
|
432 | |||
435 | .code-header { |
|
433 | .code-header { | |
436 | padding: @padding; |
|
434 | padding: @padding; | |
437 | border-bottom: @border-thickness solid @grey5; |
|
435 | border-bottom: @border-thickness solid @grey5; | |
438 |
|
436 | |||
439 | .rc-user { |
|
437 | .rc-user { | |
440 | min-width: 0; |
|
438 | min-width: 0; | |
441 | margin-right: .5em; |
|
439 | margin-right: .5em; | |
442 | } |
|
440 | } | |
443 |
|
441 | |||
444 | .stats { |
|
442 | .stats { | |
445 | clear: both; |
|
443 | clear: both; | |
446 | margin: 0 0 @padding 0; |
|
444 | margin: 0 0 @padding 0; | |
447 | padding: 0; |
|
445 | padding: 0; | |
448 | .left { |
|
446 | .left { | |
449 | float: left; |
|
447 | float: left; | |
450 | clear: left; |
|
448 | clear: left; | |
451 | max-width: 75%; |
|
449 | max-width: 75%; | |
452 | margin: 0 0 @padding 0; |
|
450 | margin: 0 0 @padding 0; | |
453 |
|
451 | |||
454 | &.item { |
|
452 | &.item { | |
455 | margin-right: @padding; |
|
453 | margin-right: @padding; | |
456 | &.last { border-right: none; } |
|
454 | &.last { border-right: none; } | |
457 | } |
|
455 | } | |
458 | } |
|
456 | } | |
459 | .buttons { float: right; } |
|
457 | .buttons { float: right; } | |
460 | .author { |
|
458 | .author { | |
461 | height: 25px; margin-left: 15px; font-weight: bold; |
|
459 | height: 25px; margin-left: 15px; font-weight: bold; | |
462 | } |
|
460 | } | |
463 | } |
|
461 | } | |
464 |
|
462 | |||
465 | .commit { |
|
463 | .commit { | |
466 | margin: 5px 0 0 26px; |
|
464 | margin: 5px 0 0 26px; | |
467 | font-weight: normal; |
|
465 | font-weight: normal; | |
468 | white-space: pre-wrap; |
|
466 | white-space: pre-wrap; | |
469 | } |
|
467 | } | |
470 | } |
|
468 | } | |
471 |
|
469 | |||
472 | .message { |
|
470 | .message { | |
473 | position: relative; |
|
471 | position: relative; | |
474 | margin: @padding; |
|
472 | margin: @padding; | |
475 |
|
473 | |||
476 | .codeblock-label { |
|
474 | .codeblock-label { | |
477 | margin: 0 0 1em 0; |
|
475 | margin: 0 0 1em 0; | |
478 | } |
|
476 | } | |
479 | } |
|
477 | } | |
480 |
|
478 | |||
481 | .code-body { |
|
479 | .code-body { | |
482 | padding: @padding; |
|
480 | padding: @padding; | |
483 | background-color: #ffffff; |
|
481 | background-color: #ffffff; | |
484 | min-width: 100%; |
|
482 | min-width: 100%; | |
485 | box-sizing: border-box; |
|
483 | box-sizing: border-box; | |
486 | // TODO: johbo: Parent has overflow: auto, this forces the child here |
|
484 | // TODO: johbo: Parent has overflow: auto, this forces the child here | |
487 | // to have the intended size and to scroll. Should be simplified. |
|
485 | // to have the intended size and to scroll. Should be simplified. | |
488 | width: 100%; |
|
486 | width: 100%; | |
489 | overflow-x: auto; |
|
487 | overflow-x: auto; | |
490 |
|
488 | |||
491 | img.rendered-binary { |
|
489 | img.rendered-binary { | |
492 | height: auto; |
|
490 | height: auto; | |
493 | width: 100%; |
|
491 | width: 100%; | |
494 | } |
|
492 | } | |
495 | } |
|
493 | } | |
496 |
|
494 | |||
497 | .codeblock-header { |
|
495 | .codeblock-header { | |
498 | border-bottom: 1px solid #eaeaea; |
|
496 | border-bottom: 1px solid #eaeaea; | |
499 | } |
|
497 | } | |
500 | } |
|
498 | } | |
501 |
|
499 | |||
502 | .code-highlighttable, |
|
500 | .code-highlighttable, | |
503 | div.codeblock { |
|
501 | div.codeblock { | |
504 |
|
502 | |||
505 | &.readme { |
|
503 | &.readme { | |
506 | background-color: white; |
|
504 | background-color: white; | |
507 | } |
|
505 | } | |
508 |
|
506 | |||
509 | .markdown-block table { |
|
507 | .markdown-block table { | |
510 | border-collapse: collapse; |
|
508 | border-collapse: collapse; | |
511 |
|
509 | |||
512 | th, |
|
510 | th, | |
513 | td { |
|
511 | td { | |
514 | padding: .5em; |
|
512 | padding: .5em; | |
515 | border: @border-thickness solid @border-default-color; |
|
513 | border: @border-thickness solid @border-default-color; | |
516 | } |
|
514 | } | |
517 | } |
|
515 | } | |
518 |
|
516 | |||
519 | table { |
|
517 | table { | |
520 | border: 0px; |
|
518 | border: 0px; | |
521 | margin: 0; |
|
519 | margin: 0; | |
522 | letter-spacing: normal; |
|
520 | letter-spacing: normal; | |
523 |
|
521 | |||
524 |
|
522 | |||
525 | td { |
|
523 | td { | |
526 | border: 0px; |
|
524 | border: 0px; | |
527 | vertical-align: top; |
|
525 | vertical-align: top; | |
528 | } |
|
526 | } | |
529 | } |
|
527 | } | |
530 | } |
|
528 | } | |
531 |
|
529 | |||
532 | div.codeblock .code-header .search-path { padding: 0 0 0 10px; } |
|
530 | div.codeblock .code-header .search-path { padding: 0 0 0 10px; } | |
533 | div.search-code-body { |
|
531 | div.search-code-body { | |
534 | background-color: #ffffff; padding: 5px 0 5px 10px; |
|
532 | background-color: #ffffff; padding: 5px 0 5px 10px; | |
535 | pre { |
|
533 | pre { | |
536 | .match { background-color: #faffa6;} |
|
534 | .match { background-color: #faffa6;} | |
537 | .break { display: block; width: 100%; background-color: #DDE7EF; color: #747474; } |
|
535 | .break { display: block; width: 100%; background-color: #DDE7EF; color: #747474; } | |
538 | } |
|
536 | } | |
539 | .code-highlighttable { |
|
537 | .code-highlighttable { | |
540 | border-collapse: collapse; |
|
538 | border-collapse: collapse; | |
541 |
|
539 | |||
542 | tr:hover { |
|
540 | tr:hover { | |
543 | background: #fafafa; |
|
541 | background: #fafafa; | |
544 | } |
|
542 | } | |
545 | td.code { |
|
543 | td.code { | |
546 | padding-left: 10px; |
|
544 | padding-left: 10px; | |
547 | } |
|
545 | } | |
548 | td.line { |
|
546 | td.line { | |
549 | border-right: 1px solid #ccc !important; |
|
547 | border-right: 1px solid #ccc !important; | |
550 | padding-right: 10px; |
|
548 | padding-right: 10px; | |
551 | text-align: right; |
|
549 | text-align: right; | |
552 | font-family: @text-monospace; |
|
550 | font-family: @text-monospace; | |
553 | span { |
|
551 | span { | |
554 | white-space: pre-wrap; |
|
552 | white-space: pre-wrap; | |
555 | color: #666666; |
|
553 | color: #666666; | |
556 | } |
|
554 | } | |
557 | } |
|
555 | } | |
558 | } |
|
556 | } | |
559 | } |
|
557 | } | |
560 |
|
558 | |||
561 | div.annotatediv { margin-left: 2px; margin-right: 4px; } |
|
559 | div.annotatediv { margin-left: 2px; margin-right: 4px; } | |
562 | .code-highlight { |
|
560 | .code-highlight { | |
563 | margin: 0; padding: 0; border-left: @border-thickness solid @grey5; |
|
561 | margin: 0; padding: 0; border-left: @border-thickness solid @grey5; | |
564 | pre, .linenodiv pre { padding: 0 5px; margin: 0; } |
|
562 | pre, .linenodiv pre { padding: 0 5px; margin: 0; } | |
565 | pre div:target {background-color: @comment-highlight-color !important;} |
|
563 | pre div:target {background-color: @comment-highlight-color !important;} | |
566 | } |
|
564 | } | |
567 |
|
565 | |||
568 | .linenos a { text-decoration: none; } |
|
566 | .linenos a { text-decoration: none; } | |
569 |
|
567 | |||
570 | .CodeMirror-selected { background: @rchighlightblue; } |
|
568 | .CodeMirror-selected { background: @rchighlightblue; } | |
571 | .CodeMirror-focused .CodeMirror-selected { background: @rchighlightblue; } |
|
569 | .CodeMirror-focused .CodeMirror-selected { background: @rchighlightblue; } | |
572 | .CodeMirror ::selection { background: @rchighlightblue; } |
|
570 | .CodeMirror ::selection { background: @rchighlightblue; } | |
573 | .CodeMirror ::-moz-selection { background: @rchighlightblue; } |
|
571 | .CodeMirror ::-moz-selection { background: @rchighlightblue; } | |
574 |
|
572 | |||
575 | .code { display: block; border:0px !important; } |
|
573 | .code { display: block; border:0px !important; } | |
576 | .code-highlight, /* TODO: dan: merge codehilite into code-highlight */ |
|
574 | .code-highlight, /* TODO: dan: merge codehilite into code-highlight */ | |
577 | /* This can be generated with `pygmentize -S default -f html` */ |
|
575 | /* This can be generated with `pygmentize -S default -f html` */ | |
578 | .codehilite { |
|
576 | .codehilite { | |
579 | .c-ElasticMatch { background-color: #faffa6; padding: 0.2em;} |
|
577 | .c-ElasticMatch { background-color: #faffa6; padding: 0.2em;} | |
580 | .hll { background-color: #ffffcc } |
|
578 | .hll { background-color: #ffffcc } | |
581 | .c { color: #408080; font-style: italic } /* Comment */ |
|
579 | .c { color: #408080; font-style: italic } /* Comment */ | |
582 | .err, .codehilite .err { border: none } /* Error */ |
|
580 | .err, .codehilite .err { border: none } /* Error */ | |
583 | .k { color: #008000; font-weight: bold } /* Keyword */ |
|
581 | .k { color: #008000; font-weight: bold } /* Keyword */ | |
584 | .o { color: #666666 } /* Operator */ |
|
582 | .o { color: #666666 } /* Operator */ | |
585 | .ch { color: #408080; font-style: italic } /* Comment.Hashbang */ |
|
583 | .ch { color: #408080; font-style: italic } /* Comment.Hashbang */ | |
586 | .cm { color: #408080; font-style: italic } /* Comment.Multiline */ |
|
584 | .cm { color: #408080; font-style: italic } /* Comment.Multiline */ | |
587 | .cp { color: #BC7A00 } /* Comment.Preproc */ |
|
585 | .cp { color: #BC7A00 } /* Comment.Preproc */ | |
588 | .cpf { color: #408080; font-style: italic } /* Comment.PreprocFile */ |
|
586 | .cpf { color: #408080; font-style: italic } /* Comment.PreprocFile */ | |
589 | .c1 { color: #408080; font-style: italic } /* Comment.Single */ |
|
587 | .c1 { color: #408080; font-style: italic } /* Comment.Single */ | |
590 | .cs { color: #408080; font-style: italic } /* Comment.Special */ |
|
588 | .cs { color: #408080; font-style: italic } /* Comment.Special */ | |
591 | .gd { color: #A00000 } /* Generic.Deleted */ |
|
589 | .gd { color: #A00000 } /* Generic.Deleted */ | |
592 | .ge { font-style: italic } /* Generic.Emph */ |
|
590 | .ge { font-style: italic } /* Generic.Emph */ | |
593 | .gr { color: #FF0000 } /* Generic.Error */ |
|
591 | .gr { color: #FF0000 } /* Generic.Error */ | |
594 | .gh { color: #000080; font-weight: bold } /* Generic.Heading */ |
|
592 | .gh { color: #000080; font-weight: bold } /* Generic.Heading */ | |
595 | .gi { color: #00A000 } /* Generic.Inserted */ |
|
593 | .gi { color: #00A000 } /* Generic.Inserted */ | |
596 | .go { color: #888888 } /* Generic.Output */ |
|
594 | .go { color: #888888 } /* Generic.Output */ | |
597 | .gp { color: #000080; font-weight: bold } /* Generic.Prompt */ |
|
595 | .gp { color: #000080; font-weight: bold } /* Generic.Prompt */ | |
598 | .gs { font-weight: bold } /* Generic.Strong */ |
|
596 | .gs { font-weight: bold } /* Generic.Strong */ | |
599 | .gu { color: #800080; font-weight: bold } /* Generic.Subheading */ |
|
597 | .gu { color: #800080; font-weight: bold } /* Generic.Subheading */ | |
600 | .gt { color: #0044DD } /* Generic.Traceback */ |
|
598 | .gt { color: #0044DD } /* Generic.Traceback */ | |
601 | .kc { color: #008000; font-weight: bold } /* Keyword.Constant */ |
|
599 | .kc { color: #008000; font-weight: bold } /* Keyword.Constant */ | |
602 | .kd { color: #008000; font-weight: bold } /* Keyword.Declaration */ |
|
600 | .kd { color: #008000; font-weight: bold } /* Keyword.Declaration */ | |
603 | .kn { color: #008000; font-weight: bold } /* Keyword.Namespace */ |
|
601 | .kn { color: #008000; font-weight: bold } /* Keyword.Namespace */ | |
604 | .kp { color: #008000 } /* Keyword.Pseudo */ |
|
602 | .kp { color: #008000 } /* Keyword.Pseudo */ | |
605 | .kr { color: #008000; font-weight: bold } /* Keyword.Reserved */ |
|
603 | .kr { color: #008000; font-weight: bold } /* Keyword.Reserved */ | |
606 | .kt { color: #B00040 } /* Keyword.Type */ |
|
604 | .kt { color: #B00040 } /* Keyword.Type */ | |
607 | .m { color: #666666 } /* Literal.Number */ |
|
605 | .m { color: #666666 } /* Literal.Number */ | |
608 | .s { color: #BA2121 } /* Literal.String */ |
|
606 | .s { color: #BA2121 } /* Literal.String */ | |
609 | .na { color: #7D9029 } /* Name.Attribute */ |
|
607 | .na { color: #7D9029 } /* Name.Attribute */ | |
610 | .nb { color: #008000 } /* Name.Builtin */ |
|
608 | .nb { color: #008000 } /* Name.Builtin */ | |
611 | .nc { color: #0000FF; font-weight: bold } /* Name.Class */ |
|
609 | .nc { color: #0000FF; font-weight: bold } /* Name.Class */ | |
612 | .no { color: #880000 } /* Name.Constant */ |
|
610 | .no { color: #880000 } /* Name.Constant */ | |
613 | .nd { color: #AA22FF } /* Name.Decorator */ |
|
611 | .nd { color: #AA22FF } /* Name.Decorator */ | |
614 | .ni { color: #999999; font-weight: bold } /* Name.Entity */ |
|
612 | .ni { color: #999999; font-weight: bold } /* Name.Entity */ | |
615 | .ne { color: #D2413A; font-weight: bold } /* Name.Exception */ |
|
613 | .ne { color: #D2413A; font-weight: bold } /* Name.Exception */ | |
616 | .nf { color: #0000FF } /* Name.Function */ |
|
614 | .nf { color: #0000FF } /* Name.Function */ | |
617 | .nl { color: #A0A000 } /* Name.Label */ |
|
615 | .nl { color: #A0A000 } /* Name.Label */ | |
618 | .nn { color: #0000FF; font-weight: bold } /* Name.Namespace */ |
|
616 | .nn { color: #0000FF; font-weight: bold } /* Name.Namespace */ | |
619 | .nt { color: #008000; font-weight: bold } /* Name.Tag */ |
|
617 | .nt { color: #008000; font-weight: bold } /* Name.Tag */ | |
620 | .nv { color: #19177C } /* Name.Variable */ |
|
618 | .nv { color: #19177C } /* Name.Variable */ | |
621 | .ow { color: #AA22FF; font-weight: bold } /* Operator.Word */ |
|
619 | .ow { color: #AA22FF; font-weight: bold } /* Operator.Word */ | |
622 | .w { color: #bbbbbb } /* Text.Whitespace */ |
|
620 | .w { color: #bbbbbb } /* Text.Whitespace */ | |
623 | .mb { color: #666666 } /* Literal.Number.Bin */ |
|
621 | .mb { color: #666666 } /* Literal.Number.Bin */ | |
624 | .mf { color: #666666 } /* Literal.Number.Float */ |
|
622 | .mf { color: #666666 } /* Literal.Number.Float */ | |
625 | .mh { color: #666666 } /* Literal.Number.Hex */ |
|
623 | .mh { color: #666666 } /* Literal.Number.Hex */ | |
626 | .mi { color: #666666 } /* Literal.Number.Integer */ |
|
624 | .mi { color: #666666 } /* Literal.Number.Integer */ | |
627 | .mo { color: #666666 } /* Literal.Number.Oct */ |
|
625 | .mo { color: #666666 } /* Literal.Number.Oct */ | |
628 | .sa { color: #BA2121 } /* Literal.String.Affix */ |
|
626 | .sa { color: #BA2121 } /* Literal.String.Affix */ | |
629 | .sb { color: #BA2121 } /* Literal.String.Backtick */ |
|
627 | .sb { color: #BA2121 } /* Literal.String.Backtick */ | |
630 | .sc { color: #BA2121 } /* Literal.String.Char */ |
|
628 | .sc { color: #BA2121 } /* Literal.String.Char */ | |
631 | .dl { color: #BA2121 } /* Literal.String.Delimiter */ |
|
629 | .dl { color: #BA2121 } /* Literal.String.Delimiter */ | |
632 | .sd { color: #BA2121; font-style: italic } /* Literal.String.Doc */ |
|
630 | .sd { color: #BA2121; font-style: italic } /* Literal.String.Doc */ | |
633 | .s2 { color: #BA2121 } /* Literal.String.Double */ |
|
631 | .s2 { color: #BA2121 } /* Literal.String.Double */ | |
634 | .se { color: #BB6622; font-weight: bold } /* Literal.String.Escape */ |
|
632 | .se { color: #BB6622; font-weight: bold } /* Literal.String.Escape */ | |
635 | .sh { color: #BA2121 } /* Literal.String.Heredoc */ |
|
633 | .sh { color: #BA2121 } /* Literal.String.Heredoc */ | |
636 | .si { color: #BB6688; font-weight: bold } /* Literal.String.Interpol */ |
|
634 | .si { color: #BB6688; font-weight: bold } /* Literal.String.Interpol */ | |
637 | .sx { color: #008000 } /* Literal.String.Other */ |
|
635 | .sx { color: #008000 } /* Literal.String.Other */ | |
638 | .sr { color: #BB6688 } /* Literal.String.Regex */ |
|
636 | .sr { color: #BB6688 } /* Literal.String.Regex */ | |
639 | .s1 { color: #BA2121 } /* Literal.String.Single */ |
|
637 | .s1 { color: #BA2121 } /* Literal.String.Single */ | |
640 | .ss { color: #19177C } /* Literal.String.Symbol */ |
|
638 | .ss { color: #19177C } /* Literal.String.Symbol */ | |
641 | .bp { color: #008000 } /* Name.Builtin.Pseudo */ |
|
639 | .bp { color: #008000 } /* Name.Builtin.Pseudo */ | |
642 | .fm { color: #0000FF } /* Name.Function.Magic */ |
|
640 | .fm { color: #0000FF } /* Name.Function.Magic */ | |
643 | .vc { color: #19177C } /* Name.Variable.Class */ |
|
641 | .vc { color: #19177C } /* Name.Variable.Class */ | |
644 | .vg { color: #19177C } /* Name.Variable.Global */ |
|
642 | .vg { color: #19177C } /* Name.Variable.Global */ | |
645 | .vi { color: #19177C } /* Name.Variable.Instance */ |
|
643 | .vi { color: #19177C } /* Name.Variable.Instance */ | |
646 | .vm { color: #19177C } /* Name.Variable.Magic */ |
|
644 | .vm { color: #19177C } /* Name.Variable.Magic */ | |
647 | .il { color: #666666 } /* Literal.Number.Integer.Long */ |
|
645 | .il { color: #666666 } /* Literal.Number.Integer.Long */ | |
648 |
|
646 | |||
649 | } |
|
647 | } | |
650 |
|
648 | |||
651 | /* customized pre blocks for markdown/rst */ |
|
649 | /* customized pre blocks for markdown/rst */ | |
652 | pre.literal-block, .codehilite pre{ |
|
650 | pre.literal-block, .codehilite pre{ | |
653 | padding: @padding; |
|
651 | padding: @padding; | |
654 | border: 1px solid @grey6; |
|
652 | border: 1px solid @grey6; | |
655 | .border-radius(@border-radius); |
|
653 | .border-radius(@border-radius); | |
656 | background-color: @grey7; |
|
654 | background-color: @grey7; | |
657 | } |
|
655 | } | |
658 |
|
656 | |||
659 |
|
657 | |||
660 | /* START NEW CODE BLOCK CSS */ |
|
658 | /* START NEW CODE BLOCK CSS */ | |
661 |
|
659 | |||
662 | @cb-line-height: 18px; |
|
660 | @cb-line-height: 18px; | |
663 | @cb-line-code-padding: 10px; |
|
661 | @cb-line-code-padding: 10px; | |
664 | @cb-text-padding: 5px; |
|
662 | @cb-text-padding: 5px; | |
665 |
|
663 | |||
666 | @pill-padding: 2px 7px; |
|
664 | @pill-padding: 2px 7px; | |
667 | @pill-padding-small: 2px 2px 1px 2px; |
|
665 | @pill-padding-small: 2px 2px 1px 2px; | |
668 |
|
666 | |||
669 | input.filediff-collapse-state { |
|
667 | input.filediff-collapse-state { | |
670 | display: none; |
|
668 | display: none; | |
671 |
|
669 | |||
672 | &:checked + .filediff { /* file diff is collapsed */ |
|
670 | &:checked + .filediff { /* file diff is collapsed */ | |
673 | .cb { |
|
671 | .cb { | |
674 | display: none |
|
672 | display: none | |
675 | } |
|
673 | } | |
676 | .filediff-collapse-indicator { |
|
674 | .filediff-collapse-indicator { | |
677 | width: 0; |
|
675 | width: 0; | |
678 | height: 0; |
|
676 | height: 0; | |
679 | border-style: solid; |
|
677 | border-style: solid; | |
680 | border-width: 4.5px 0 4.5px 9.3px; |
|
678 | border-width: 4.5px 0 4.5px 9.3px; | |
681 | border-color: transparent transparent transparent #aaa; |
|
679 | border-color: transparent transparent transparent #aaa; | |
682 | margin: 6px 0px; |
|
680 | margin: 6px 0px; | |
683 | } |
|
681 | } | |
684 | .filediff-menu { |
|
682 | .filediff-menu { | |
685 | display: none; |
|
683 | display: none; | |
686 | } |
|
684 | } | |
687 |
|
685 | |||
688 | } |
|
686 | } | |
689 |
|
687 | |||
690 | &+ .filediff { /* file diff is expanded */ |
|
688 | &+ .filediff { /* file diff is expanded */ | |
691 | .filediff-collapse-indicator { |
|
689 | .filediff-collapse-indicator { | |
692 | width: 0; |
|
690 | width: 0; | |
693 | height: 0; |
|
691 | height: 0; | |
694 | border-style: solid; |
|
692 | border-style: solid; | |
695 | border-width: 9.3px 4.5px 0 4.5px; |
|
693 | border-width: 9.3px 4.5px 0 4.5px; | |
696 | border-color: #aaa transparent transparent transparent; |
|
694 | border-color: #aaa transparent transparent transparent; | |
697 | margin: 6px 0px; |
|
695 | margin: 6px 0px; | |
698 |
|
696 | |||
699 | } |
|
697 | } | |
700 | .filediff-menu { |
|
698 | .filediff-menu { | |
701 | display: block; |
|
699 | display: block; | |
702 | } |
|
700 | } | |
703 | margin: 10px 0; |
|
701 | margin: 10px 0; | |
704 | &:nth-child(2) { |
|
702 | &:nth-child(2) { | |
705 | margin: 0; |
|
703 | margin: 0; | |
706 | } |
|
704 | } | |
707 | } |
|
705 | } | |
708 | } |
|
706 | } | |
709 |
|
707 | |||
710 | .filediffs .anchor { |
|
708 | .filediffs .anchor { | |
711 | display: block; |
|
709 | display: block; | |
712 | height: 40px; |
|
710 | height: 40px; | |
713 | margin-top: -40px; |
|
711 | margin-top: -40px; | |
714 | visibility: hidden; |
|
712 | visibility: hidden; | |
715 | } |
|
713 | } | |
716 |
|
714 | |||
717 | .filediffs .anchor:nth-of-type(1) { |
|
715 | .filediffs .anchor:nth-of-type(1) { | |
718 | display: block; |
|
716 | display: block; | |
719 | height: 80px; |
|
717 | height: 80px; | |
720 | margin-top: -80px; |
|
718 | margin-top: -80px; | |
721 | visibility: hidden; |
|
719 | visibility: hidden; | |
722 | } |
|
720 | } | |
723 |
|
721 | |||
724 | .cs_files { |
|
722 | .cs_files { | |
725 | clear: both; |
|
723 | clear: both; | |
726 | } |
|
724 | } | |
727 |
|
725 | |||
728 | #diff-file-sticky{ |
|
726 | #diff-file-sticky{ | |
729 | will-change: min-height; |
|
727 | will-change: min-height; | |
730 | } |
|
728 | } | |
731 |
|
729 | |||
732 | .sidebar__inner{ |
|
730 | .sidebar__inner{ | |
733 | transform: translate(0, 0); /* For browsers don't support translate3d. */ |
|
731 | transform: translate(0, 0); /* For browsers don't support translate3d. */ | |
734 | transform: translate3d(0, 0, 0); |
|
732 | transform: translate3d(0, 0, 0); | |
735 | will-change: position, transform; |
|
733 | will-change: position, transform; | |
736 | height: 70px; |
|
734 | height: 70px; | |
737 | z-index: 30; |
|
735 | z-index: 30; | |
738 | background-color: #fff; |
|
736 | background-color: #fff; | |
739 | padding: 5px 0px; |
|
737 | padding: 5px 0px; | |
740 | } |
|
738 | } | |
741 |
|
739 | |||
742 | .sidebar__bar { |
|
740 | .sidebar__bar { | |
743 | padding: 5px 0px 0px 0px |
|
741 | padding: 5px 0px 0px 0px | |
744 | } |
|
742 | } | |
745 |
|
743 | |||
746 | .fpath-placeholder { |
|
744 | .fpath-placeholder { | |
747 | clear: both; |
|
745 | clear: both; | |
748 | visibility: hidden |
|
746 | visibility: hidden | |
749 | } |
|
747 | } | |
750 |
|
748 | |||
751 | .is-affixed { |
|
749 | .is-affixed { | |
752 | .sidebar_inner_shadow { |
|
750 | .sidebar_inner_shadow { | |
753 | position: fixed; |
|
751 | position: fixed; | |
754 | top: 75px; |
|
752 | top: 75px; | |
755 | right: -100%; |
|
753 | right: -100%; | |
756 | left: -100%; |
|
754 | left: -100%; | |
757 | z-index: 28; |
|
755 | z-index: 28; | |
758 | display: block; |
|
756 | display: block; | |
759 | height: 5px; |
|
757 | height: 5px; | |
760 | content: ""; |
|
758 | content: ""; | |
761 | background: linear-gradient(rgba(0, 0, 0, 0.075), rgba(0, 0, 0, 0.001)) repeat-x 0 0; |
|
759 | background: linear-gradient(rgba(0, 0, 0, 0.075), rgba(0, 0, 0, 0.001)) repeat-x 0 0; | |
762 | border-top: 1px solid rgba(0, 0, 0, 0.15); |
|
760 | border-top: 1px solid rgba(0, 0, 0, 0.15); | |
763 | } |
|
761 | } | |
764 | .fpath-placeholder { |
|
762 | .fpath-placeholder { | |
765 | visibility: visible !important; |
|
763 | visibility: visible !important; | |
766 | } |
|
764 | } | |
767 | } |
|
765 | } | |
768 |
|
766 | |||
769 | .diffset-menu { |
|
767 | .diffset-menu { | |
770 | margin-bottom: 20px; |
|
768 | margin-bottom: 20px; | |
771 | } |
|
769 | } | |
772 | .diffset { |
|
770 | .diffset { | |
773 | margin: 20px auto; |
|
771 | margin: 20px auto; | |
774 | .diffset-heading { |
|
772 | .diffset-heading { | |
775 | border: 1px solid @grey5; |
|
773 | border: 1px solid @grey5; | |
776 | margin-bottom: -1px; |
|
774 | margin-bottom: -1px; | |
777 | // margin-top: 20px; |
|
775 | // margin-top: 20px; | |
778 | h2 { |
|
776 | h2 { | |
779 | margin: 0; |
|
777 | margin: 0; | |
780 | line-height: 38px; |
|
778 | line-height: 38px; | |
781 | padding-left: 10px; |
|
779 | padding-left: 10px; | |
782 | } |
|
780 | } | |
783 | .btn { |
|
781 | .btn { | |
784 | margin: 0; |
|
782 | margin: 0; | |
785 | } |
|
783 | } | |
786 | background: @grey6; |
|
784 | background: @grey6; | |
787 | display: block; |
|
785 | display: block; | |
788 | padding: 5px; |
|
786 | padding: 5px; | |
789 | } |
|
787 | } | |
790 | .diffset-heading-warning { |
|
788 | .diffset-heading-warning { | |
791 | background: @alert3-inner; |
|
789 | background: @alert3-inner; | |
792 | border: 1px solid @alert3; |
|
790 | border: 1px solid @alert3; | |
793 | } |
|
791 | } | |
794 | &.diffset-comments-disabled { |
|
792 | &.diffset-comments-disabled { | |
795 | .cb-comment-box-opener, .comment-inline-form, .cb-comment-add-button { |
|
793 | .cb-comment-box-opener, .comment-inline-form, .cb-comment-add-button { | |
796 | display: none !important; |
|
794 | display: none !important; | |
797 | } |
|
795 | } | |
798 | } |
|
796 | } | |
799 | } |
|
797 | } | |
800 |
|
798 | |||
801 | .filelist { |
|
799 | .filelist { | |
802 | .pill { |
|
800 | .pill { | |
803 | display: block; |
|
801 | display: block; | |
804 | float: left; |
|
802 | float: left; | |
805 | padding: @pill-padding-small; |
|
803 | padding: @pill-padding-small; | |
806 | } |
|
804 | } | |
807 | } |
|
805 | } | |
808 |
|
806 | |||
809 | .pill { |
|
807 | .pill { | |
810 | display: block; |
|
808 | display: block; | |
811 | float: left; |
|
809 | float: left; | |
812 | padding: @pill-padding; |
|
810 | padding: @pill-padding; | |
813 | } |
|
811 | } | |
814 |
|
812 | |||
815 | .pill-group { |
|
813 | .pill-group { | |
816 | .pill { |
|
814 | .pill { | |
817 | opacity: .8; |
|
815 | opacity: .8; | |
818 | margin-right: 3px; |
|
816 | margin-right: 3px; | |
819 | font-size: 12px; |
|
817 | font-size: 12px; | |
820 | font-weight: normal; |
|
818 | font-weight: normal; | |
821 |
|
819 | |||
822 | &:first-child { |
|
820 | &:first-child { | |
823 | border-radius: @border-radius 0 0 @border-radius; |
|
821 | border-radius: @border-radius 0 0 @border-radius; | |
824 | } |
|
822 | } | |
825 | &:last-child { |
|
823 | &:last-child { | |
826 | border-radius: 0 @border-radius @border-radius 0; |
|
824 | border-radius: 0 @border-radius @border-radius 0; | |
827 | } |
|
825 | } | |
828 | &:only-child { |
|
826 | &:only-child { | |
829 | border-radius: @border-radius; |
|
827 | border-radius: @border-radius; | |
830 | margin-right: 0; |
|
828 | margin-right: 0; | |
831 | } |
|
829 | } | |
832 | } |
|
830 | } | |
833 | } |
|
831 | } | |
834 |
|
832 | |||
835 | /* Main comments*/ |
|
833 | /* Main comments*/ | |
836 | #comments { |
|
834 | #comments { | |
837 | .comment-selected { |
|
835 | .comment-selected { | |
838 | border-left: 6px solid @comment-highlight-color; |
|
836 | border-left: 6px solid @comment-highlight-color; | |
839 | padding-left: 3px; |
|
837 | padding-left: 3px; | |
840 | margin-left: -9px; |
|
838 | margin-left: -9px; | |
841 | } |
|
839 | } | |
842 | } |
|
840 | } | |
843 |
|
841 | |||
844 | .filediff { |
|
842 | .filediff { | |
845 | border: 1px solid @grey5; |
|
843 | border: 1px solid @grey5; | |
846 |
|
844 | |||
847 | /* START OVERRIDES */ |
|
845 | /* START OVERRIDES */ | |
848 | .code-highlight { |
|
846 | .code-highlight { | |
849 | border: none; // TODO: remove this border from the global |
|
847 | border: none; // TODO: remove this border from the global | |
850 | // .code-highlight, it doesn't belong there |
|
848 | // .code-highlight, it doesn't belong there | |
851 | } |
|
849 | } | |
852 | label { |
|
850 | label { | |
853 | margin: 0; // TODO: remove this margin definition from global label |
|
851 | margin: 0; // TODO: remove this margin definition from global label | |
854 | // it doesn't belong there - if margin on labels |
|
852 | // it doesn't belong there - if margin on labels | |
855 | // are needed for a form they should be defined |
|
853 | // are needed for a form they should be defined | |
856 | // in the form's class |
|
854 | // in the form's class | |
857 | } |
|
855 | } | |
858 | /* END OVERRIDES */ |
|
856 | /* END OVERRIDES */ | |
859 |
|
857 | |||
860 | * { |
|
858 | * { | |
861 | box-sizing: border-box; |
|
859 | box-sizing: border-box; | |
862 | } |
|
860 | } | |
863 | .filediff-anchor { |
|
861 | .filediff-anchor { | |
864 | visibility: hidden; |
|
862 | visibility: hidden; | |
865 | } |
|
863 | } | |
866 | &:hover { |
|
864 | &:hover { | |
867 | .filediff-anchor { |
|
865 | .filediff-anchor { | |
868 | visibility: visible; |
|
866 | visibility: visible; | |
869 | } |
|
867 | } | |
870 | } |
|
868 | } | |
871 |
|
869 | |||
872 | .filediff-collapse-indicator { |
|
870 | .filediff-collapse-indicator { | |
873 | border-style: solid; |
|
871 | border-style: solid; | |
874 | float: left; |
|
872 | float: left; | |
875 | margin: 4px 0px 0 0; |
|
873 | margin: 4px 0px 0 0; | |
876 | cursor: pointer; |
|
874 | cursor: pointer; | |
877 | } |
|
875 | } | |
878 |
|
876 | |||
879 | .filediff-heading { |
|
877 | .filediff-heading { | |
880 | background: @grey7; |
|
878 | background: @grey7; | |
881 | cursor: pointer; |
|
879 | cursor: pointer; | |
882 | display: block; |
|
880 | display: block; | |
883 | padding: 5px 10px; |
|
881 | padding: 5px 10px; | |
884 | } |
|
882 | } | |
885 | .filediff-heading:after { |
|
883 | .filediff-heading:after { | |
886 | content: ""; |
|
884 | content: ""; | |
887 | display: table; |
|
885 | display: table; | |
888 | clear: both; |
|
886 | clear: both; | |
889 | } |
|
887 | } | |
890 | .filediff-heading:hover { |
|
888 | .filediff-heading:hover { | |
891 | background: #e1e9f4 !important; |
|
889 | background: #e1e9f4 !important; | |
892 | } |
|
890 | } | |
893 |
|
891 | |||
894 | .filediff-menu { |
|
892 | .filediff-menu { | |
895 | float: right; |
|
893 | float: right; | |
896 | text-align: right; |
|
894 | text-align: right; | |
897 | padding: 5px 5px 5px 0px; |
|
895 | padding: 5px 5px 5px 0px; | |
898 |
|
896 | |||
899 | &> a, |
|
897 | &> a, | |
900 | &> span { |
|
898 | &> span { | |
901 | padding: 1px; |
|
899 | padding: 1px; | |
902 | } |
|
900 | } | |
903 | } |
|
901 | } | |
904 |
|
902 | |||
905 | .filediff-collapse-button, .filediff-expand-button { |
|
903 | .filediff-collapse-button, .filediff-expand-button { | |
906 | cursor: pointer; |
|
904 | cursor: pointer; | |
907 | } |
|
905 | } | |
908 | .filediff-collapse-button { |
|
906 | .filediff-collapse-button { | |
909 | display: inline; |
|
907 | display: inline; | |
910 | } |
|
908 | } | |
911 | .filediff-expand-button { |
|
909 | .filediff-expand-button { | |
912 | display: none; |
|
910 | display: none; | |
913 | } |
|
911 | } | |
914 | .filediff-collapsed .filediff-collapse-button { |
|
912 | .filediff-collapsed .filediff-collapse-button { | |
915 | display: none; |
|
913 | display: none; | |
916 | } |
|
914 | } | |
917 | .filediff-collapsed .filediff-expand-button { |
|
915 | .filediff-collapsed .filediff-expand-button { | |
918 | display: inline; |
|
916 | display: inline; | |
919 | } |
|
917 | } | |
920 |
|
918 | |||
921 | /**** COMMENTS ****/ |
|
919 | /**** COMMENTS ****/ | |
922 |
|
920 | |||
923 | .filediff-menu { |
|
921 | .filediff-menu { | |
924 | .show-comment-button { |
|
922 | .show-comment-button { | |
925 | display: none; |
|
923 | display: none; | |
926 | } |
|
924 | } | |
927 | } |
|
925 | } | |
928 | &.hide-comments { |
|
926 | &.hide-comments { | |
929 | .inline-comments { |
|
927 | .inline-comments { | |
930 | display: none; |
|
928 | display: none; | |
931 | } |
|
929 | } | |
932 | .filediff-menu { |
|
930 | .filediff-menu { | |
933 | .show-comment-button { |
|
931 | .show-comment-button { | |
934 | display: inline; |
|
932 | display: inline; | |
935 | } |
|
933 | } | |
936 | .hide-comment-button { |
|
934 | .hide-comment-button { | |
937 | display: none; |
|
935 | display: none; | |
938 | } |
|
936 | } | |
939 | } |
|
937 | } | |
940 | } |
|
938 | } | |
941 |
|
939 | |||
942 | .hide-line-comments { |
|
940 | .hide-line-comments { | |
943 | .inline-comments { |
|
941 | .inline-comments { | |
944 | display: none; |
|
942 | display: none; | |
945 | } |
|
943 | } | |
946 | } |
|
944 | } | |
947 |
|
945 | |||
948 | /**** END COMMENTS ****/ |
|
946 | /**** END COMMENTS ****/ | |
949 |
|
947 | |||
950 | } |
|
948 | } | |
951 |
|
949 | |||
952 |
|
950 | |||
953 |
|
951 | |||
954 | .filediff, .filelist { |
|
952 | .filediff, .filelist { | |
955 | .pill { |
|
953 | .pill { | |
956 | &[op="name"] { |
|
954 | &[op="name"] { | |
957 | background: none; |
|
955 | background: none; | |
958 | opacity: 1; |
|
956 | opacity: 1; | |
959 | color: white; |
|
957 | color: white; | |
960 | } |
|
958 | } | |
961 | &[op="limited"] { |
|
959 | &[op="limited"] { | |
962 | background: @grey2; |
|
960 | background: @grey2; | |
963 | color: white; |
|
961 | color: white; | |
964 | } |
|
962 | } | |
965 | &[op="binary"] { |
|
963 | &[op="binary"] { | |
966 | background: @color7; |
|
964 | background: @color7; | |
967 | color: white; |
|
965 | color: white; | |
968 | } |
|
966 | } | |
969 | &[op="modified"] { |
|
967 | &[op="modified"] { | |
970 | background: @alert1; |
|
968 | background: @alert1; | |
971 | color: white; |
|
969 | color: white; | |
972 | } |
|
970 | } | |
973 | &[op="renamed"] { |
|
971 | &[op="renamed"] { | |
974 | background: @color4; |
|
972 | background: @color4; | |
975 | color: white; |
|
973 | color: white; | |
976 | } |
|
974 | } | |
977 | &[op="copied"] { |
|
975 | &[op="copied"] { | |
978 | background: @color4; |
|
976 | background: @color4; | |
979 | color: white; |
|
977 | color: white; | |
980 | } |
|
978 | } | |
981 | &[op="mode"] { |
|
979 | &[op="mode"] { | |
982 | background: @grey3; |
|
980 | background: @grey3; | |
983 | color: white; |
|
981 | color: white; | |
984 | } |
|
982 | } | |
985 | &[op="symlink"] { |
|
983 | &[op="symlink"] { | |
986 | background: @color8; |
|
984 | background: @color8; | |
987 | color: white; |
|
985 | color: white; | |
988 | } |
|
986 | } | |
989 |
|
987 | |||
990 | &[op="added"] { /* added lines */ |
|
988 | &[op="added"] { /* added lines */ | |
991 | background: @alert1; |
|
989 | background: @alert1; | |
992 | color: white; |
|
990 | color: white; | |
993 | } |
|
991 | } | |
994 | &[op="deleted"] { /* deleted lines */ |
|
992 | &[op="deleted"] { /* deleted lines */ | |
995 | background: @alert2; |
|
993 | background: @alert2; | |
996 | color: white; |
|
994 | color: white; | |
997 | } |
|
995 | } | |
998 |
|
996 | |||
999 | &[op="created"] { /* created file */ |
|
997 | &[op="created"] { /* created file */ | |
1000 | background: @alert1; |
|
998 | background: @alert1; | |
1001 | color: white; |
|
999 | color: white; | |
1002 | } |
|
1000 | } | |
1003 | &[op="removed"] { /* deleted file */ |
|
1001 | &[op="removed"] { /* deleted file */ | |
1004 | background: @color5; |
|
1002 | background: @color5; | |
1005 | color: white; |
|
1003 | color: white; | |
1006 | } |
|
1004 | } | |
1007 | } |
|
1005 | } | |
1008 | } |
|
1006 | } | |
1009 |
|
1007 | |||
1010 |
|
1008 | |||
1011 | .filediff-outdated { |
|
1009 | .filediff-outdated { | |
1012 | padding: 8px 0; |
|
1010 | padding: 8px 0; | |
1013 |
|
1011 | |||
1014 | .filediff-heading { |
|
1012 | .filediff-heading { | |
1015 | opacity: .5; |
|
1013 | opacity: .5; | |
1016 | } |
|
1014 | } | |
1017 | } |
|
1015 | } | |
1018 |
|
1016 | |||
1019 | table.cb { |
|
1017 | table.cb { | |
1020 | width: 100%; |
|
1018 | width: 100%; | |
1021 | border-collapse: collapse; |
|
1019 | border-collapse: collapse; | |
1022 |
|
1020 | |||
1023 | .cb-text { |
|
1021 | .cb-text { | |
1024 | padding: @cb-text-padding; |
|
1022 | padding: @cb-text-padding; | |
1025 | } |
|
1023 | } | |
1026 | .cb-hunk { |
|
1024 | .cb-hunk { | |
1027 | padding: @cb-text-padding; |
|
1025 | padding: @cb-text-padding; | |
1028 | } |
|
1026 | } | |
1029 | .cb-expand { |
|
1027 | .cb-expand { | |
1030 | display: none; |
|
1028 | display: none; | |
1031 | } |
|
1029 | } | |
1032 | .cb-collapse { |
|
1030 | .cb-collapse { | |
1033 | display: inline; |
|
1031 | display: inline; | |
1034 | } |
|
1032 | } | |
1035 | &.cb-collapsed { |
|
1033 | &.cb-collapsed { | |
1036 | .cb-line { |
|
1034 | .cb-line { | |
1037 | display: none; |
|
1035 | display: none; | |
1038 | } |
|
1036 | } | |
1039 | .cb-expand { |
|
1037 | .cb-expand { | |
1040 | display: inline; |
|
1038 | display: inline; | |
1041 | } |
|
1039 | } | |
1042 | .cb-collapse { |
|
1040 | .cb-collapse { | |
1043 | display: none; |
|
1041 | display: none; | |
1044 | } |
|
1042 | } | |
1045 | .cb-hunk { |
|
1043 | .cb-hunk { | |
1046 | display: none; |
|
1044 | display: none; | |
1047 | } |
|
1045 | } | |
1048 | } |
|
1046 | } | |
1049 |
|
1047 | |||
1050 | /* intentionally general selector since .cb-line-selected must override it |
|
1048 | /* intentionally general selector since .cb-line-selected must override it | |
1051 | and they both use !important since the td itself may have a random color |
|
1049 | and they both use !important since the td itself may have a random color | |
1052 | generated by annotation blocks. TLDR: if you change it, make sure |
|
1050 | generated by annotation blocks. TLDR: if you change it, make sure | |
1053 | annotated block selection and line selection in file view still work */ |
|
1051 | annotated block selection and line selection in file view still work */ | |
1054 | .cb-line-fresh .cb-content { |
|
1052 | .cb-line-fresh .cb-content { | |
1055 | background: white !important; |
|
1053 | background: white !important; | |
1056 | } |
|
1054 | } | |
1057 | .cb-warning { |
|
1055 | .cb-warning { | |
1058 | background: #fff4dd; |
|
1056 | background: #fff4dd; | |
1059 | } |
|
1057 | } | |
1060 |
|
1058 | |||
1061 | &.cb-diff-sideside { |
|
1059 | &.cb-diff-sideside { | |
1062 | td { |
|
1060 | td { | |
1063 | &.cb-content { |
|
1061 | &.cb-content { | |
1064 | width: 50%; |
|
1062 | width: 50%; | |
1065 | } |
|
1063 | } | |
1066 | } |
|
1064 | } | |
1067 | } |
|
1065 | } | |
1068 |
|
1066 | |||
1069 | tr { |
|
1067 | tr { | |
1070 | &.cb-annotate { |
|
1068 | &.cb-annotate { | |
1071 | border-top: 1px solid #eee; |
|
1069 | border-top: 1px solid #eee; | |
1072 | } |
|
1070 | } | |
1073 |
|
1071 | |||
1074 | &.cb-comment-info { |
|
1072 | &.cb-comment-info { | |
1075 | border-top: 1px solid #eee; |
|
1073 | border-top: 1px solid #eee; | |
1076 | color: rgba(0, 0, 0, 0.3); |
|
1074 | color: rgba(0, 0, 0, 0.3); | |
1077 | background: #edf2f9; |
|
1075 | background: #edf2f9; | |
1078 |
|
1076 | |||
1079 | td { |
|
1077 | td { | |
1080 |
|
1078 | |||
1081 | } |
|
1079 | } | |
1082 | } |
|
1080 | } | |
1083 |
|
1081 | |||
1084 | &.cb-hunk { |
|
1082 | &.cb-hunk { | |
1085 | font-family: @text-monospace; |
|
1083 | font-family: @text-monospace; | |
1086 | color: rgba(0, 0, 0, 0.3); |
|
1084 | color: rgba(0, 0, 0, 0.3); | |
1087 |
|
1085 | |||
1088 | td { |
|
1086 | td { | |
1089 | &:first-child { |
|
1087 | &:first-child { | |
1090 | background: #edf2f9; |
|
1088 | background: #edf2f9; | |
1091 | } |
|
1089 | } | |
1092 | &:last-child { |
|
1090 | &:last-child { | |
1093 | background: #f4f7fb; |
|
1091 | background: #f4f7fb; | |
1094 | } |
|
1092 | } | |
1095 | } |
|
1093 | } | |
1096 | } |
|
1094 | } | |
1097 | } |
|
1095 | } | |
1098 |
|
1096 | |||
1099 |
|
1097 | |||
1100 | td { |
|
1098 | td { | |
1101 | vertical-align: top; |
|
1099 | vertical-align: top; | |
1102 | padding: 0; |
|
1100 | padding: 0; | |
1103 |
|
1101 | |||
1104 | &.cb-content { |
|
1102 | &.cb-content { | |
1105 | font-size: 12.35px; |
|
1103 | font-size: 12.35px; | |
1106 |
|
1104 | |||
1107 | &.cb-line-selected .cb-code { |
|
1105 | &.cb-line-selected .cb-code { | |
1108 | background: @comment-highlight-color !important; |
|
1106 | background: @comment-highlight-color !important; | |
1109 | } |
|
1107 | } | |
1110 |
|
1108 | |||
1111 | span.cb-code { |
|
1109 | span.cb-code { | |
1112 | line-height: @cb-line-height; |
|
1110 | line-height: @cb-line-height; | |
1113 | padding-left: @cb-line-code-padding; |
|
1111 | padding-left: @cb-line-code-padding; | |
1114 | padding-right: @cb-line-code-padding; |
|
1112 | padding-right: @cb-line-code-padding; | |
1115 | display: block; |
|
1113 | display: block; | |
1116 | white-space: pre-wrap; |
|
1114 | white-space: pre-wrap; | |
1117 | font-family: @text-monospace; |
|
1115 | font-family: @text-monospace; | |
1118 | word-break: break-all; |
|
1116 | word-break: break-all; | |
1119 | .nonl { |
|
1117 | .nonl { | |
1120 | color: @color5; |
|
1118 | color: @color5; | |
1121 | } |
|
1119 | } | |
1122 | .cb-action { |
|
1120 | .cb-action { | |
1123 | &:before { |
|
1121 | &:before { | |
1124 | content: " "; |
|
1122 | content: " "; | |
1125 | } |
|
1123 | } | |
1126 | &.cb-deletion:before { |
|
1124 | &.cb-deletion:before { | |
1127 | content: "- "; |
|
1125 | content: "- "; | |
1128 | } |
|
1126 | } | |
1129 | &.cb-addition:before { |
|
1127 | &.cb-addition:before { | |
1130 | content: "+ "; |
|
1128 | content: "+ "; | |
1131 | } |
|
1129 | } | |
1132 | } |
|
1130 | } | |
1133 | } |
|
1131 | } | |
1134 |
|
1132 | |||
1135 | &> button.cb-comment-box-opener { |
|
1133 | &> button.cb-comment-box-opener { | |
1136 |
|
1134 | |||
1137 | padding: 2px 2px 1px 3px; |
|
1135 | padding: 2px 2px 1px 3px; | |
1138 | margin-left: -6px; |
|
1136 | margin-left: -6px; | |
1139 | margin-top: -1px; |
|
1137 | margin-top: -1px; | |
1140 |
|
1138 | |||
1141 | border-radius: @border-radius; |
|
1139 | border-radius: @border-radius; | |
1142 | position: absolute; |
|
1140 | position: absolute; | |
1143 | display: none; |
|
1141 | display: none; | |
1144 | } |
|
1142 | } | |
1145 | .cb-comment { |
|
1143 | .cb-comment { | |
1146 | margin-top: 10px; |
|
1144 | margin-top: 10px; | |
1147 | white-space: normal; |
|
1145 | white-space: normal; | |
1148 | } |
|
1146 | } | |
1149 | } |
|
1147 | } | |
1150 | &:hover { |
|
1148 | &:hover { | |
1151 | button.cb-comment-box-opener { |
|
1149 | button.cb-comment-box-opener { | |
1152 | display: block; |
|
1150 | display: block; | |
1153 | } |
|
1151 | } | |
1154 | &+ td button.cb-comment-box-opener { |
|
1152 | &+ td button.cb-comment-box-opener { | |
1155 | display: block |
|
1153 | display: block | |
1156 | } |
|
1154 | } | |
1157 | } |
|
1155 | } | |
1158 |
|
1156 | |||
1159 | &.cb-data { |
|
1157 | &.cb-data { | |
1160 | text-align: right; |
|
1158 | text-align: right; | |
1161 | width: 30px; |
|
1159 | width: 30px; | |
1162 | font-family: @text-monospace; |
|
1160 | font-family: @text-monospace; | |
1163 |
|
1161 | |||
1164 | .icon-comment { |
|
1162 | .icon-comment { | |
1165 | cursor: pointer; |
|
1163 | cursor: pointer; | |
1166 | } |
|
1164 | } | |
1167 | &.cb-line-selected { |
|
1165 | &.cb-line-selected { | |
1168 | background: @comment-highlight-color !important; |
|
1166 | background: @comment-highlight-color !important; | |
1169 | } |
|
1167 | } | |
1170 | &.cb-line-selected > div { |
|
1168 | &.cb-line-selected > div { | |
1171 | display: block; |
|
1169 | display: block; | |
1172 | background: @comment-highlight-color !important; |
|
1170 | background: @comment-highlight-color !important; | |
1173 | line-height: @cb-line-height; |
|
1171 | line-height: @cb-line-height; | |
1174 | color: rgba(0, 0, 0, 0.3); |
|
1172 | color: rgba(0, 0, 0, 0.3); | |
1175 | } |
|
1173 | } | |
1176 | } |
|
1174 | } | |
1177 |
|
1175 | |||
1178 | &.cb-lineno { |
|
1176 | &.cb-lineno { | |
1179 | padding: 0; |
|
1177 | padding: 0; | |
1180 | width: 50px; |
|
1178 | width: 50px; | |
1181 | color: rgba(0, 0, 0, 0.3); |
|
1179 | color: rgba(0, 0, 0, 0.3); | |
1182 | text-align: right; |
|
1180 | text-align: right; | |
1183 | border-right: 1px solid #eee; |
|
1181 | border-right: 1px solid #eee; | |
1184 | font-family: @text-monospace; |
|
1182 | font-family: @text-monospace; | |
1185 | -webkit-user-select: none; |
|
1183 | -webkit-user-select: none; | |
1186 | -moz-user-select: none; |
|
1184 | -moz-user-select: none; | |
1187 | user-select: none; |
|
1185 | user-select: none; | |
1188 |
|
1186 | |||
1189 | a::before { |
|
1187 | a::before { | |
1190 | content: attr(data-line-no); |
|
1188 | content: attr(data-line-no); | |
1191 | } |
|
1189 | } | |
1192 | &.cb-line-selected { |
|
1190 | &.cb-line-selected { | |
1193 | background: @comment-highlight-color !important; |
|
1191 | background: @comment-highlight-color !important; | |
1194 | } |
|
1192 | } | |
1195 |
|
1193 | |||
1196 | a { |
|
1194 | a { | |
1197 | display: block; |
|
1195 | display: block; | |
1198 | padding-right: @cb-line-code-padding; |
|
1196 | padding-right: @cb-line-code-padding; | |
1199 | padding-left: @cb-line-code-padding; |
|
1197 | padding-left: @cb-line-code-padding; | |
1200 | line-height: @cb-line-height; |
|
1198 | line-height: @cb-line-height; | |
1201 | color: rgba(0, 0, 0, 0.3); |
|
1199 | color: rgba(0, 0, 0, 0.3); | |
1202 | } |
|
1200 | } | |
1203 | } |
|
1201 | } | |
1204 |
|
1202 | |||
1205 | &.cb-empty { |
|
1203 | &.cb-empty { | |
1206 | background: @grey7; |
|
1204 | background: @grey7; | |
1207 | } |
|
1205 | } | |
1208 |
|
1206 | |||
1209 | ins { |
|
1207 | ins { | |
1210 | color: black; |
|
1208 | color: black; | |
1211 | background: #a6f3a6; |
|
1209 | background: #a6f3a6; | |
1212 | text-decoration: none; |
|
1210 | text-decoration: none; | |
1213 | } |
|
1211 | } | |
1214 | del { |
|
1212 | del { | |
1215 | color: black; |
|
1213 | color: black; | |
1216 | background: #f8cbcb; |
|
1214 | background: #f8cbcb; | |
1217 | text-decoration: none; |
|
1215 | text-decoration: none; | |
1218 | } |
|
1216 | } | |
1219 | &.cb-addition { |
|
1217 | &.cb-addition { | |
1220 | background: #ecffec; |
|
1218 | background: #ecffec; | |
1221 |
|
1219 | |||
1222 | &.blob-lineno { |
|
1220 | &.blob-lineno { | |
1223 | background: #ddffdd; |
|
1221 | background: #ddffdd; | |
1224 | } |
|
1222 | } | |
1225 | } |
|
1223 | } | |
1226 | &.cb-deletion { |
|
1224 | &.cb-deletion { | |
1227 | background: #ffecec; |
|
1225 | background: #ffecec; | |
1228 |
|
1226 | |||
1229 | &.blob-lineno { |
|
1227 | &.blob-lineno { | |
1230 | background: #ffdddd; |
|
1228 | background: #ffdddd; | |
1231 | } |
|
1229 | } | |
1232 | } |
|
1230 | } | |
1233 | &.cb-annotate-message-spacer { |
|
1231 | &.cb-annotate-message-spacer { | |
1234 | width:8px; |
|
1232 | width:8px; | |
1235 | padding: 1px 0px 0px 3px; |
|
1233 | padding: 1px 0px 0px 3px; | |
1236 | } |
|
1234 | } | |
1237 | &.cb-annotate-info { |
|
1235 | &.cb-annotate-info { | |
1238 | width: 320px; |
|
1236 | width: 320px; | |
1239 | min-width: 320px; |
|
1237 | min-width: 320px; | |
1240 | max-width: 320px; |
|
1238 | max-width: 320px; | |
1241 | padding: 5px 2px; |
|
1239 | padding: 5px 2px; | |
1242 | font-size: 13px; |
|
1240 | font-size: 13px; | |
1243 |
|
1241 | |||
1244 | .cb-annotate-message { |
|
1242 | .cb-annotate-message { | |
1245 | padding: 2px 0px 0px 0px; |
|
1243 | padding: 2px 0px 0px 0px; | |
1246 | white-space: pre-line; |
|
1244 | white-space: pre-line; | |
1247 | overflow: hidden; |
|
1245 | overflow: hidden; | |
1248 | } |
|
1246 | } | |
1249 | .rc-user { |
|
1247 | .rc-user { | |
1250 | float: none; |
|
1248 | float: none; | |
1251 | padding: 0 6px 0 17px; |
|
1249 | padding: 0 6px 0 17px; | |
1252 | min-width: unset; |
|
1250 | min-width: unset; | |
1253 | min-height: unset; |
|
1251 | min-height: unset; | |
1254 | } |
|
1252 | } | |
1255 | } |
|
1253 | } | |
1256 |
|
1254 | |||
1257 | &.cb-annotate-revision { |
|
1255 | &.cb-annotate-revision { | |
1258 | cursor: pointer; |
|
1256 | cursor: pointer; | |
1259 | text-align: right; |
|
1257 | text-align: right; | |
1260 | padding: 1px 3px 0px 3px; |
|
1258 | padding: 1px 3px 0px 3px; | |
1261 | } |
|
1259 | } | |
1262 | } |
|
1260 | } | |
1263 | } |
|
1261 | } |
@@ -1,476 +1,478 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: 10px; |
|
20 | margin-bottom: 10px; | |
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: 10px 0 5px 20px; |
|
32 | padding: 10px 0 5px 20px; | |
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 0 20px 0; |
|
52 | padding: 0 0 20px 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: 0; |
|
186 | margin-bottom: 0; | |
187 |
|
187 | |||
188 | .rc-user { |
|
188 | .rc-user { | |
189 | min-width: 0; |
|
189 | min-width: 0; | |
190 | } |
|
190 | } | |
191 |
|
191 | |||
192 | li { |
|
192 | li { | |
193 | list-style: none; |
|
193 | list-style: none; | |
194 | line-height: normal; |
|
194 | line-height: normal; | |
195 | } |
|
195 | } | |
196 | } |
|
196 | } | |
197 |
|
197 | |||
198 | .summary { |
|
198 | .summary { | |
199 | .fieldset { |
|
199 | .fieldset { | |
200 | margin-bottom: 0; |
|
200 | margin-bottom: 0; | |
201 | } |
|
201 | } | |
202 | } |
|
202 | } | |
203 |
|
203 | |||
204 | .fieldset { |
|
204 | .fieldset { | |
205 |
|
205 | |||
206 | .left-label { // similar to form legend |
|
206 | .left-label { // similar to form legend | |
207 | display: block; |
|
207 | display: block; | |
208 | margin: 0; |
|
208 | margin: 0; | |
209 | padding: 0; |
|
209 | padding: 0; | |
210 | font-weight: @text-semibold-weight; |
|
210 | font-weight: @text-semibold-weight; | |
211 | font-family: @text-semibold; |
|
211 | font-family: @text-semibold; | |
212 | } |
|
212 | } | |
213 |
|
213 | |||
214 | .left-label-summary { |
|
214 | .left-label-summary { | |
215 | padding-left: 20px; |
|
215 | padding-left: 20px; | |
216 | margin-bottom: 5px; |
|
216 | margin-bottom: 5px; | |
217 |
|
217 | |||
218 | p { |
|
218 | p { | |
219 | margin-bottom: 5px; |
|
219 | margin-bottom: 5px; | |
220 | color: @grey1; |
|
220 | color: @grey1; | |
221 | float: left; |
|
221 | float: left; | |
222 | width: 130px; |
|
222 | width: 130px; | |
223 |
|
223 | |||
224 | &.spacing { |
|
224 | &.spacing { | |
225 | margin-top: 10px; |
|
225 | margin-top: 10px; | |
226 | } |
|
226 | } | |
227 | } |
|
227 | } | |
228 |
|
228 | |||
229 | .right-label-summary { |
|
229 | .right-label-summary { | |
230 | float: left; |
|
230 | float: left; | |
231 | margin-top: 7px; |
|
231 | margin-top: 7px; | |
232 | width: ~"calc(100% - 160px)"; |
|
232 | width: ~"calc(100% - 160px)"; | |
233 | } |
|
233 | } | |
234 | } |
|
234 | } | |
235 |
|
235 | |||
236 | .left-label-summary-files { |
|
236 | .left-label-summary-files { | |
237 | padding-left: 45px; |
|
237 | padding-left: 45px; | |
238 | margin-top: 5px; |
|
238 | margin-top: 5px; | |
239 |
|
239 | |||
240 | p { |
|
240 | p { | |
241 | margin-bottom: 5px; |
|
241 | margin-bottom: 5px; | |
242 | color: @grey1; |
|
242 | color: @grey1; | |
243 | float: left; |
|
243 | float: left; | |
244 | width: 130px; |
|
244 | width: 130px; | |
245 |
|
245 | |||
246 | &.spacing { |
|
246 | &.spacing { | |
247 | margin-top: 10px; |
|
247 | margin-top: 10px; | |
248 | } |
|
248 | } | |
249 | } |
|
249 | } | |
250 |
|
250 | |||
251 | .right-label-summary { |
|
251 | .right-label-summary { | |
252 | float: left; |
|
252 | float: left; | |
253 | margin-top: 7px; |
|
253 | margin-top: 7px; | |
254 | } |
|
254 | } | |
255 | } |
|
255 | } | |
256 |
|
256 | |||
257 | .left-content { |
|
257 | .left-content { | |
258 | width: ~"calc(60% - 20px)"; |
|
258 | width: ~"calc(60% - 20px)"; | |
259 | float: left; |
|
259 | float: left; | |
260 | margin: 15px 0 15px 20px; |
|
260 | margin: 15px 0 15px 20px; | |
261 |
|
261 | |||
262 | .rc-user { |
|
262 | .rc-user { | |
263 | min-width: auto; |
|
263 | min-width: auto; | |
264 | max-width: none; |
|
264 | max-width: none; | |
265 | min-height: auto; |
|
265 | min-height: auto; | |
266 | padding-right: 5px; |
|
266 | padding-right: 5px; | |
267 | } |
|
267 | } | |
268 |
|
268 | |||
269 | .left-content-avatar { |
|
269 | .left-content-avatar { | |
270 | width: 45px; |
|
270 | width: 45px; | |
271 | float: left; |
|
271 | float: left; | |
272 | margin-top: 8px; |
|
272 | margin-top: 8px; | |
273 | } |
|
273 | } | |
274 |
|
274 | |||
275 | .left-content-message { |
|
275 | .left-content-message { | |
276 | float: left; |
|
276 | float: left; | |
277 | width: ~"calc(100% - 45px)"; |
|
277 | width: ~"calc(100% - 45px)"; | |
278 | } |
|
278 | } | |
279 | } |
|
279 | } | |
280 |
|
280 | |||
281 | .right-content { // similar to form fields |
|
281 | .right-content { // similar to form fields | |
282 | float: left; |
|
282 | float: left; | |
283 | display: block; |
|
283 | display: block; | |
284 | width: ~"calc(40% - 20px)"; |
|
284 | width: ~"calc(40% - 20px)"; | |
285 | text-align: right; |
|
285 | text-align: right; | |
286 | margin: 15px 20px 15px 0; |
|
286 | margin: 15px 20px 15px 0; | |
287 |
|
287 | |||
288 | .truncate-wrap, |
|
288 | .truncate-wrap, | |
289 | .truncate { |
|
289 | .truncate { | |
290 | max-width: 100%; |
|
290 | max-width: 100%; | |
291 | width: 100%; |
|
291 | width: 100%; | |
292 | } |
|
292 | } | |
293 |
|
293 | |||
294 | .commit-long { |
|
294 | .commit-long { | |
295 | overflow-x: auto; |
|
295 | overflow-x: auto; | |
296 | } |
|
296 | } | |
297 |
|
297 | |||
298 | .commit-info { |
|
298 | .commit-info { | |
299 | margin-top: 7px; |
|
299 | margin-top: 7px; | |
300 | } |
|
300 | } | |
301 |
|
301 | |||
302 | .tag, .tagtag, .branchtag, .booktag, .metatag, .perm_tag { |
|
302 | .tag, .tagtag, .branchtag, .booktag, .metatag, .perm_tag { | |
303 | background:transparent; |
|
303 | background:transparent; | |
304 | border: none; |
|
304 | border: none; | |
305 | box-shadow: none; |
|
305 | box-shadow: none; | |
306 | margin-left: 10px; |
|
306 | margin-left: 10px; | |
307 | font-size: 13px; |
|
307 | font-size: 13px; | |
308 | } |
|
308 | } | |
309 |
|
309 | |||
310 | .tag span, .tag i { |
|
310 | .tag span, .tag i { | |
311 | color: @grey1; |
|
311 | color: @grey1; | |
312 | } |
|
312 | } | |
313 | } |
|
313 | } | |
314 | .commit { |
|
314 | .commit { | |
315 | color: @grey1; |
|
315 | color: @grey1; | |
316 | margin-bottom: 5px; |
|
316 | margin-bottom: 5px; | |
317 | white-space: pre; |
|
317 | white-space: pre; | |
318 | } |
|
318 | } | |
319 | .commit.truncate-wrap { |
|
319 | .commit.truncate-wrap { | |
320 | overflow:hidden; |
|
320 | overflow:hidden; | |
321 | text-overflow: ellipsis; |
|
321 | text-overflow: ellipsis; | |
322 | } |
|
322 | } | |
323 | .commit-author { |
|
323 | .commit-author { | |
324 | color: @grey1; |
|
324 | color: @grey1; | |
325 | } |
|
325 | } | |
326 | .commit-date { |
|
326 | .commit-date { | |
327 | color: @grey4; |
|
327 | color: @grey4; | |
328 | } |
|
328 | } | |
329 | } |
|
329 | } | |
330 |
|
330 | |||
331 | // expand commit message |
|
331 | // expand commit message | |
332 | #message_expand { |
|
332 | #message_expand { | |
333 | clear: both; |
|
333 | clear: both; | |
334 | display: block; |
|
334 | display: block; | |
335 | color: @rcblue; |
|
335 | color: @rcblue; | |
336 | cursor: pointer; |
|
336 | cursor: pointer; | |
337 | } |
|
337 | } | |
338 |
|
338 | |||
339 | #trimmed_message_box { |
|
339 | #trimmed_message_box { | |
340 | max-height: floor(2 * @basefontsize * 1.2); // 2 lines * line-height |
|
340 | max-height: floor(2 * @basefontsize * 1.2); // 2 lines * line-height | |
341 | overflow: hidden; |
|
341 | overflow: hidden; | |
342 | } |
|
342 | } | |
343 |
|
343 | |||
344 | // show/hide comments button |
|
344 | // show/hide comments button | |
345 | .show-inline-comments { |
|
345 | .show-inline-comments { | |
346 | display: inline; |
|
346 | display: inline; | |
347 | cursor: pointer; |
|
347 | cursor: pointer; | |
348 |
|
348 | |||
349 | .comments-show { display: inline; } |
|
349 | .comments-show { display: inline; } | |
350 | .comments-hide { display: none; } |
|
350 | .comments-hide { display: none; } | |
351 |
|
351 | |||
352 | &.comments-visible { |
|
352 | &.comments-visible { | |
353 | .comments-show { display: none; } |
|
353 | .comments-show { display: none; } | |
354 | .comments-hide { display: inline; } |
|
354 | .comments-hide { display: inline; } | |
355 | } |
|
355 | } | |
356 | } |
|
356 | } | |
357 |
|
357 | |||
358 | // Quick Start section |
|
358 | // Quick Start section | |
359 |
|
359 | |||
360 | .empty-repo { |
|
360 | .empty-repo { | |
361 | border: 1px solid #EAEAEA; |
|
361 | border: 1px solid #EAEAEA; | |
362 | border-bottom: 0; |
|
362 | border-bottom: 0; | |
363 | border-radius: @border-radius; |
|
363 | border-radius: @border-radius; | |
364 | padding: 0 20px; |
|
364 | padding: 0 20px; | |
365 | } |
|
365 | } | |
366 |
|
366 | |||
367 | .empty-repo h3, .quick_start p { |
|
367 | .empty-repo h3, .quick_start p { | |
368 | margin-bottom: 10px; |
|
368 | margin-bottom: 10px; | |
369 | } |
|
369 | } | |
370 |
|
370 | |||
371 | .quick_start pre { |
|
371 | .quick_start pre { | |
372 | background: #FCFEFF; |
|
372 | background: #FCFEFF; | |
373 | border: 1px solid #CBDBEB; |
|
373 | border: 1px solid #CBDBEB; | |
374 | box-shadow: @button-shadow; |
|
374 | box-shadow: @button-shadow; | |
375 | padding: 10px 15px; |
|
375 | padding: 10px 15px; | |
376 | border-radius: 4px; |
|
376 | border-radius: 4px; | |
377 | color: @grey2; |
|
377 | color: @grey2; | |
378 | } |
|
378 | } | |
379 |
|
379 | |||
380 | .clear-fix { |
|
380 | .clear-fix { | |
381 | clear: both; |
|
381 | clear: both; | |
382 | } |
|
382 | } | |
383 |
|
383 | |||
384 | .quick_start { |
|
384 | .quick_start { | |
385 | display: block; |
|
385 | display: block; | |
386 | position: relative; |
|
386 | position: relative; | |
387 | border: 1px solid #EAEAEA; |
|
387 | border: 1px solid #EAEAEA; | |
388 | border-top: 0; |
|
388 | border-top: 0; | |
389 | border-radius: @border-radius; |
|
389 | border-radius: @border-radius; | |
390 | padding: 0 20px; |
|
390 | padding: 0 20px; | |
391 |
|
391 | |||
392 | // adds some space to make copy and paste easier |
|
392 | // adds some space to make copy and paste easier | |
393 | .left-label, |
|
393 | .left-label, | |
394 | .right-content { |
|
394 | .right-content { | |
395 | line-height: 1.6em; |
|
395 | line-height: 1.6em; | |
396 | } |
|
396 | } | |
397 | } |
|
397 | } | |
398 |
|
398 | |||
399 |
|
399 | |||
400 | .submodule { |
|
400 | .submodule { | |
401 | .summary-detail { |
|
401 | .summary-detail { | |
402 | width: 100%; |
|
402 | width: 100%; | |
403 |
|
403 | |||
404 | .btn-collapse { |
|
404 | .btn-collapse { | |
405 | display: none; |
|
405 | display: none; | |
406 | } |
|
406 | } | |
407 | } |
|
407 | } | |
408 | } |
|
408 | } | |
409 |
|
409 | |||
410 | .codeblock-header { |
|
410 | .codeblock-header { | |
411 | float: left; |
|
411 | float: left; | |
412 | display: block; |
|
412 | display: block; | |
413 | width: 100%; |
|
413 | width: 100%; | |
414 | margin: 0; |
|
414 | margin: 0; | |
415 |
|
415 | |||
416 | .stats { |
|
416 | .stats { | |
417 | float: left; |
|
417 | float: left; | |
418 | padding: 10px; |
|
418 | padding: 10px; | |
419 | } |
|
419 | } | |
420 | .stats-filename { |
|
420 | .stats-filename { | |
421 | font-size: 120%; |
|
421 | font-size: 120%; | |
422 | } |
|
422 | } | |
423 | .stats-first-item { |
|
423 | .stats-first-item { | |
424 | padding: 0px 0px 0px 3px; |
|
424 | padding: 0px 0px 0px 3px; | |
425 | } |
|
425 | } | |
426 |
|
426 | |||
427 | .stats-info { |
|
427 | .stats-info { | |
|
428 | margin-top: 5px; | |||
|
429 | font-size: 11px; | |||
428 | color: @grey4; |
|
430 | color: @grey4; | |
429 | } |
|
431 | } | |
430 |
|
432 | |||
431 | .buttons { |
|
433 | .buttons { | |
432 | float: right; |
|
434 | float: right; | |
433 | text-align: right; |
|
435 | text-align: right; | |
434 | color: @grey4; |
|
436 | color: @grey4; | |
435 | padding: 10px; |
|
437 | padding: 10px; | |
436 | } |
|
438 | } | |
437 |
|
439 | |||
438 | .file-container { |
|
440 | .file-container { | |
439 | display: inline-block; |
|
441 | display: inline-block; | |
440 | width: 100%; |
|
442 | width: 100%; | |
441 | } |
|
443 | } | |
442 |
|
444 | |||
443 | } |
|
445 | } | |
444 |
|
446 | |||
445 | #summary-menu-stats { |
|
447 | #summary-menu-stats { | |
446 |
|
448 | |||
447 | .stats-bullet { |
|
449 | .stats-bullet { | |
448 | color: @grey3; |
|
450 | color: @grey3; | |
449 | min-width: 3em; |
|
451 | min-width: 3em; | |
450 | } |
|
452 | } | |
451 |
|
453 | |||
452 | .repo-size { |
|
454 | .repo-size { | |
453 | margin-bottom: .5em; |
|
455 | margin-bottom: .5em; | |
454 | } |
|
456 | } | |
455 |
|
457 | |||
456 | } |
|
458 | } | |
457 |
|
459 | |||
458 | .rctable.repo_summary { |
|
460 | .rctable.repo_summary { | |
459 | border: 1px solid #eaeaea; |
|
461 | border: 1px solid #eaeaea; | |
460 | border-radius: 2px; |
|
462 | border-radius: 2px; | |
461 | border-collapse: inherit; |
|
463 | border-collapse: inherit; | |
462 | border-bottom: 0; |
|
464 | border-bottom: 0; | |
463 |
|
465 | |||
464 | th { |
|
466 | th { | |
465 | background: @grey7; |
|
467 | background: @grey7; | |
466 | border-bottom: 0; |
|
468 | border-bottom: 0; | |
467 | } |
|
469 | } | |
468 |
|
470 | |||
469 | td { |
|
471 | td { | |
470 | border-color: #eaeaea; |
|
472 | border-color: #eaeaea; | |
471 | } |
|
473 | } | |
472 |
|
474 | |||
473 | td.td-status { |
|
475 | td.td-status { | |
474 | padding: 0 0 0 10px; |
|
476 | padding: 0 0 0 10px; | |
475 | } |
|
477 | } | |
476 | } |
|
478 | } |
@@ -1,148 +1,148 b'' | |||||
1 | <%namespace name="sourceblock" file="/codeblocks/source.mako"/> |
|
1 | <%namespace name="sourceblock" file="/codeblocks/source.mako"/> | |
2 |
|
2 | |||
3 | <div id="codeblock" class="browserblock"> |
|
3 | <div id="codeblock" class="browserblock"> | |
4 | <div class="browser-header"> |
|
4 | <div class="browser-header"> | |
5 | <div class="browser-nav"> |
|
5 | <div class="browser-nav"> | |
6 | <div class="pull-left"> |
|
6 | <div class="pull-left"> | |
7 | ## loads the history for a file |
|
7 | ## loads the history for a file | |
8 | ${h.hidden('file_refs_filter')} |
|
8 | ${h.hidden('file_refs_filter')} | |
9 | </div> |
|
9 | </div> | |
10 |
|
10 | |||
11 | <div class="pull-right"> |
|
11 | <div class="pull-right"> | |
12 |
|
12 | |||
13 | ## Download |
|
13 | ## Download | |
14 | % if c.lf_node: |
|
14 | % if c.lf_node: | |
15 | <a class="btn btn-default" href="${h.route_path('repo_file_download',repo_name=c.repo_name,commit_id=c.commit.raw_id,f_path=c.f_path, _query=dict(lf=1))}"> |
|
15 | <a class="btn btn-default" href="${h.route_path('repo_file_download',repo_name=c.repo_name,commit_id=c.commit.raw_id,f_path=c.f_path, _query=dict(lf=1))}"> | |
16 | ${_('Download largefile')} |
|
16 | ${_('Download largefile')} | |
17 | </a> |
|
17 | </a> | |
18 | % else: |
|
18 | % else: | |
19 | <a class="btn btn-default" href="${h.route_path('repo_file_download',repo_name=c.repo_name,commit_id=c.commit.raw_id,f_path=c.f_path)}"> |
|
19 | <a class="btn btn-default" href="${h.route_path('repo_file_download',repo_name=c.repo_name,commit_id=c.commit.raw_id,f_path=c.f_path)}"> | |
20 | ${_('Download file')} |
|
20 | ${_('Download file')} | |
21 | </a> |
|
21 | </a> | |
22 | % endif |
|
22 | % endif | |
23 |
|
23 | |||
24 | %if h.HasRepoPermissionAny('repository.write','repository.admin')(c.repo_name): |
|
24 | %if h.HasRepoPermissionAny('repository.write','repository.admin')(c.repo_name): | |
25 | ## on branch head, can edit files |
|
25 | ## on branch head, can edit files | |
26 | %if c.on_branch_head and c.branch_or_raw_id and not c.file.is_binary: |
|
26 | %if c.on_branch_head and c.branch_or_raw_id and not c.file.is_binary: | |
27 | ## binary files are delete only |
|
27 | ## binary files are delete only | |
28 | % if c.file.is_binary: |
|
28 | % if c.file.is_binary: | |
29 | ${h.link_to(_('Edit'), '#Edit', class_="btn btn-default disabled tooltip", title=_('Editing binary files not allowed'))} |
|
29 | ${h.link_to(_('Edit'), '#Edit', class_="btn btn-default disabled tooltip", title=_('Editing binary files not allowed'))} | |
30 | ${h.link_to(_('Delete'), h.route_path('repo_files_remove_file',repo_name=c.repo_name,commit_id=c.branch_or_raw_id,f_path=c.f_path, _anchor='edit'),class_="btn btn-danger")} |
|
30 | ${h.link_to(_('Delete'), h.route_path('repo_files_remove_file',repo_name=c.repo_name,commit_id=c.branch_or_raw_id,f_path=c.f_path, _anchor='edit'),class_="btn btn-danger")} | |
31 | % else: |
|
31 | % else: | |
32 | <a class="btn btn-default" href="${h.route_path('repo_files_edit_file',repo_name=c.repo_name,commit_id=c.branch_or_raw_id,f_path=c.f_path, _anchor='edit')}"> |
|
32 | <a class="btn btn-default" href="${h.route_path('repo_files_edit_file',repo_name=c.repo_name,commit_id=c.branch_or_raw_id,f_path=c.f_path, _anchor='edit')}"> | |
33 | ${_('Edit on branch: ')}<code>${c.branch_name}</code> |
|
33 | ${_('Edit on branch: ')}<code>${c.branch_name}</code> | |
34 | </a> |
|
34 | </a> | |
35 |
|
35 | |||
36 | <a class="btn btn-danger" href="${h.route_path('repo_files_remove_file',repo_name=c.repo_name,commit_id=c.branch_or_raw_id,f_path=c.f_path, _anchor='edit')}"> |
|
36 | <a class="btn btn-danger" href="${h.route_path('repo_files_remove_file',repo_name=c.repo_name,commit_id=c.branch_or_raw_id,f_path=c.f_path, _anchor='edit')}"> | |
37 | ${_('Delete')} |
|
37 | ${_('Delete')} | |
38 | </a> |
|
38 | </a> | |
39 | % endif |
|
39 | % endif | |
40 | ## not on head, forbid all |
|
40 | ## not on head, forbid all | |
41 | % else: |
|
41 | % else: | |
42 | ${h.link_to(_('Edit'), '#Edit', class_="btn btn-default disabled tooltip", title=_('Editing files allowed only when on branch head commit'))} |
|
42 | ${h.link_to(_('Edit'), '#Edit', class_="btn btn-default disabled tooltip", title=_('Editing files allowed only when on branch head commit'))} | |
43 | ${h.link_to(_('Delete'), '#Delete', class_="btn btn-default btn-danger disabled tooltip", title=_('Deleting files allowed only when on branch head commit'))} |
|
43 | ${h.link_to(_('Delete'), '#Delete', class_="btn btn-default btn-danger disabled tooltip", title=_('Deleting files allowed only when on branch head commit'))} | |
44 | % endif |
|
44 | % endif | |
45 | %endif |
|
45 | %endif | |
46 |
|
46 | |||
47 | </div> |
|
47 | </div> | |
48 | </div> |
|
48 | </div> | |
49 | <div id="file_history_container"></div> |
|
49 | <div id="file_history_container"></div> | |
50 |
|
50 | |||
51 | </div> |
|
51 | </div> | |
52 | </div> |
|
52 | </div> | |
53 |
|
53 | |||
54 | <div class="codeblock codeblock-header"> |
|
54 | <div class="codeblock codeblock-header"> | |
|
55 | <div class="stats"> | |||
55 | <div> |
|
56 | <div> | |
56 | ${h.files_breadcrumbs(c.repo_name,c.commit.raw_id,c.file.path, request.GET.get('at'))} |
|
57 | ${h.files_breadcrumbs(c.repo_name,c.commit.raw_id,c.file.path, request.GET.get('at'))} | |
57 | </div> |
|
58 | </div> | |
58 | <div class="stats"> |
|
|||
59 |
|
59 | |||
60 | % if c.lf_node: |
|
60 | % if c.lf_node: | |
61 | <span title="${_('This file is a pointer to large binary file')}"> | ${_('LargeFile')} ${h.format_byte_size_binary(c.lf_node.size)} </span> |
|
61 | <span title="${_('This file is a pointer to large binary file')}"> | ${_('LargeFile')} ${h.format_byte_size_binary(c.lf_node.size)} </span> | |
62 | % endif |
|
62 | % endif | |
63 |
|
63 | |||
64 | <div class="stats-info"> |
|
64 | <div class="stats-info"> | |
65 | <span class="stats-first-item">${c.file.lines()[0]} ${_ungettext('line', 'lines', c.file.lines()[0])}</span> |
|
65 | <span class="stats-first-item">${c.file.lines()[0]} ${_ungettext('line', 'lines', c.file.lines()[0])}</span> | |
66 | <span> | ${h.format_byte_size_binary(c.file.size)}</span> |
|
66 | <span> | ${h.format_byte_size_binary(c.file.size)}</span> | |
67 | <span> | ${c.file.mimetype} </span> |
|
67 | <span> | ${c.file.mimetype} </span> | |
68 | <span> | ${h.get_lexer_for_filenode(c.file).__class__.__name__}</span> |
|
68 | <span> | ${h.get_lexer_for_filenode(c.file).__class__.__name__}</span> | |
69 | </div> |
|
69 | </div> | |
70 |
|
70 | |||
71 | </div> |
|
71 | </div> | |
72 | <div class="pull-right"> |
|
72 | <div class="pull-right stats"> | |
73 | <a id="file_history_overview" href="#loadHistory"> |
|
73 | <a id="file_history_overview" href="#loadHistory"> | |
74 | ${_('History')} |
|
74 | ${_('History')} | |
75 | </a> |
|
75 | </a> | |
76 | | |
|
76 | | | |
77 | %if c.annotate: |
|
77 | %if c.annotate: | |
78 | ${h.link_to(_('Source'), h.route_path('repo_files', repo_name=c.repo_name,commit_id=c.commit.raw_id,f_path=c.f_path))} |
|
78 | ${h.link_to(_('Source'), h.route_path('repo_files', repo_name=c.repo_name,commit_id=c.commit.raw_id,f_path=c.f_path))} | |
79 | %else: |
|
79 | %else: | |
80 | ${h.link_to(_('Annotation'), h.route_path('repo_files:annotated',repo_name=c.repo_name,commit_id=c.commit.raw_id,f_path=c.f_path))} |
|
80 | ${h.link_to(_('Annotation'), h.route_path('repo_files:annotated',repo_name=c.repo_name,commit_id=c.commit.raw_id,f_path=c.f_path))} | |
81 | %endif |
|
81 | %endif | |
82 | | ${h.link_to(_('Raw'), h.route_path('repo_file_raw',repo_name=c.repo_name,commit_id=c.commit.raw_id,f_path=c.f_path))} |
|
82 | | ${h.link_to(_('Raw'), h.route_path('repo_file_raw',repo_name=c.repo_name,commit_id=c.commit.raw_id,f_path=c.f_path))} | |
83 |
|
83 | |||
84 | </div> |
|
84 | </div> | |
85 |
|
85 | |||
86 | <div class="code-body"> |
|
86 | <div class="code-body"> | |
87 | %if c.file.is_binary: |
|
87 | %if c.file.is_binary: | |
88 | <% rendered_binary = h.render_binary(c.repo_name, c.file)%> |
|
88 | <% rendered_binary = h.render_binary(c.repo_name, c.file)%> | |
89 | % if rendered_binary: |
|
89 | % if rendered_binary: | |
90 | ${rendered_binary} |
|
90 | ${rendered_binary} | |
91 | % else: |
|
91 | % else: | |
92 | <div> |
|
92 | <div> | |
93 | ${_('Binary file (%s)') % c.file.mimetype} |
|
93 | ${_('Binary file (%s)') % c.file.mimetype} | |
94 | </div> |
|
94 | </div> | |
95 | % endif |
|
95 | % endif | |
96 | %else: |
|
96 | %else: | |
97 | % if c.file.size < c.visual.cut_off_limit_file: |
|
97 | % if c.file.size < c.visual.cut_off_limit_file: | |
98 | %if c.renderer and not c.annotate: |
|
98 | %if c.renderer and not c.annotate: | |
99 | ## pick relative url based on renderer |
|
99 | ## pick relative url based on renderer | |
100 | <% |
|
100 | <% | |
101 | relative_urls = { |
|
101 | relative_urls = { | |
102 | 'raw': h.route_path('repo_file_raw',repo_name=c.repo_name,commit_id=c.commit.raw_id,f_path=c.f_path), |
|
102 | 'raw': h.route_path('repo_file_raw',repo_name=c.repo_name,commit_id=c.commit.raw_id,f_path=c.f_path), | |
103 | 'standard': h.route_path('repo_files',repo_name=c.repo_name,commit_id=c.commit.raw_id,f_path=c.f_path), |
|
103 | 'standard': h.route_path('repo_files',repo_name=c.repo_name,commit_id=c.commit.raw_id,f_path=c.f_path), | |
104 | } |
|
104 | } | |
105 | %> |
|
105 | %> | |
106 | ${h.render(c.file.content, renderer=c.renderer, relative_urls=relative_urls)} |
|
106 | ${h.render(c.file.content, renderer=c.renderer, relative_urls=relative_urls)} | |
107 | %else: |
|
107 | %else: | |
108 | <table class="cb codehilite"> |
|
108 | <table class="cb codehilite"> | |
109 | %if c.annotate: |
|
109 | %if c.annotate: | |
110 | <% color_hasher = h.color_hasher() %> |
|
110 | <% color_hasher = h.color_hasher() %> | |
111 | %for annotation, lines in c.annotated_lines: |
|
111 | %for annotation, lines in c.annotated_lines: | |
112 | ${sourceblock.render_annotation_lines(annotation, lines, color_hasher)} |
|
112 | ${sourceblock.render_annotation_lines(annotation, lines, color_hasher)} | |
113 | %endfor |
|
113 | %endfor | |
114 | %else: |
|
114 | %else: | |
115 | %for line_num, tokens in enumerate(c.lines, 1): |
|
115 | %for line_num, tokens in enumerate(c.lines, 1): | |
116 | ${sourceblock.render_line(line_num, tokens)} |
|
116 | ${sourceblock.render_line(line_num, tokens)} | |
117 | %endfor |
|
117 | %endfor | |
118 | %endif |
|
118 | %endif | |
119 | </table> |
|
119 | </table> | |
120 | %endif |
|
120 | %endif | |
121 | %else: |
|
121 | %else: | |
122 | ${_('File size {} is bigger then allowed limit {}. ').format(h.format_byte_size_binary(c.file.size), h.format_byte_size_binary(c.visual.cut_off_limit_file))} ${h.link_to(_('Show as raw'), |
|
122 | ${_('File size {} is bigger then allowed limit {}. ').format(h.format_byte_size_binary(c.file.size), h.format_byte_size_binary(c.visual.cut_off_limit_file))} ${h.link_to(_('Show as raw'), | |
123 | h.route_path('repo_file_raw',repo_name=c.repo_name,commit_id=c.commit.raw_id,f_path=c.f_path))} |
|
123 | h.route_path('repo_file_raw',repo_name=c.repo_name,commit_id=c.commit.raw_id,f_path=c.f_path))} | |
124 | %endif |
|
124 | %endif | |
125 | %endif |
|
125 | %endif | |
126 | </div> |
|
126 | </div> | |
127 | </div> |
|
127 | </div> | |
128 |
|
128 | |||
129 | <script type="text/javascript"> |
|
129 | <script type="text/javascript"> | |
130 | % if request.GET.get('mark'): |
|
130 | % if request.GET.get('mark'): | |
131 |
|
131 | |||
132 | $(function(){ |
|
132 | $(function(){ | |
133 | $(".codehilite").mark( |
|
133 | $(".codehilite").mark( | |
134 | "${request.GET.get('mark')}", |
|
134 | "${request.GET.get('mark')}", | |
135 | { |
|
135 | { | |
136 | "className": 'match', |
|
136 | "className": 'match', | |
137 | "accuracy": "complementary", |
|
137 | "accuracy": "complementary", | |
138 | "ignorePunctuation": ":._(){}[]!'+=".split(""), |
|
138 | "ignorePunctuation": ":._(){}[]!'+=".split(""), | |
139 | "each": function(el) { |
|
139 | "each": function(el) { | |
140 | // and also highlight lines ! |
|
140 | // and also highlight lines ! | |
141 | $($(el).closest('tr')).find('td.cb-lineno').addClass('cb-line-selected'); |
|
141 | $($(el).closest('tr')).find('td.cb-lineno').addClass('cb-line-selected'); | |
142 | } |
|
142 | } | |
143 | } |
|
143 | } | |
144 | ); |
|
144 | ); | |
145 |
|
145 | |||
146 | }); |
|
146 | }); | |
147 | % endif |
|
147 | % endif | |
148 | </script> |
|
148 | </script> |
General Comments 0
You need to be logged in to leave comments.
Login now