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