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