Merge pull request #1785 from bendiy/4_6_x
[xtuple] / lib / enyo-x / source / less / screen.less
1 /*
2   To compile this .less file to .css:
3   lessc screen.less > ../stylesheets/screen.css
4   Use -compress for a compressed .css with no comments
5 */
6
7 // Colors
8 @highlight: #d6f1ff;
9 @orange: #f60;
10 @bright-orange: #ff6529;
11 @sky-blue: #9Cf;
12 @light-blue: #35a8ee;
13 @blue: #0000ff;
14 @slate-blue: #357ec7;
15 @dark-slate-blue: #1a4f77;
16 @lightest-gray: #efefef;
17 @button-gray: #e1e1e1;
18 @earl-grey: #f3f3f3;
19 @silver: #aaa;
20 @smoke: #d7d7d7;
21 @gray: #d8d8d8;
22 @med-gray: #939393;
23 @charcoal: #666;
24 @header-gray: #505050;
25 @dim-gray: #777;
26 @dark-gray: #373737;
27 @blue-gray: #93a1a1;
28 @near-black: #0e0e0e;
29 @black: #070707;
30 @white: #fdfdfd;
31 @ghost: #f8f8f8;
32 @red: #c51616;
33 @bright-red: #ff0000;
34 @green: #009000;
35 @light-orange: #ff9c00;
36 @item-hilite-background: #226b9a;
37
38 @text-shadow: fade(#222, 45%);
39
40 // For calendar popup
41 @control-bg: @header-gray;
42
43 // Fonts
44 // ------
45 @baseFont: 'Helvetica Neue', Helvetica, 'Nimbus Sans L', Arial, sans-serif;
46 @groupboxFont: "Lucida Sans Unicode", "Lucida Grande", arial, sans-serif;
47 @startupFont: Segoe UI, Prelude Medium, Helvetica, Verdana, sans-serif;
48 @baseFontSize: 100%;
49 @panelsFontSize: 5em;
50 @iconFontSize: 60%;
51 @totalsFontSize: 14px;
52 @buttonFontSize: 20px;
53 @buttonTextFontSize: 17px;
54
55 // sizing
56 @defaultPanelWidth: 320px;
57 @toolbarHeight: 55px;
58 @searchLength: 185px;
59
60 // libs
61 @import "../../lib/font-awesome/less/font-awesome.less";
62 @import "../../lib/font-onyx/lib/Icon.less";
63
64 body {
65   font-family: @baseFont;
66   font-size: @baseFontSize;
67   background-color: @white;
68 }
69
70 .enyo-fit {
71   bottom: 4px !important;
72 }
73
74 .disabled {
75   opacity: 0.8;
76   cursor: default;
77 }
78
79 a, .hyperlink {
80   color: @slate-blue;
81   cursor: pointer;
82 }
83
84 .xv-invisible-wrapper {
85   padding: 0;
86   border: none;
87 }
88
89   // This gives them 4 lines of description
90 .xv-limit-description {
91   overflow: hidden;
92   display: -webkit-box;
93   -webkit-line-clamp: 4;
94   -webkit-box-orient: vertical;
95 }
96
97 .xv-app-panel {
98   /* Setting this as min-width overrides enyo-narrow 100% */
99   width: @defaultPanelWidth;
100   // TODO: replace with textured background?
101   background-color: @white;
102   .box-shadow(-2px -2px 6px rgba(0,0,0,0.20));
103 }
104
105 /*
106   Media query for responsive design. This adapts to smaller
107   displays.
108 */
109 @media (max-width: 480px) {
110   .pullout-menu {
111     display: block;
112     margin: 0;
113   }
114   .xv-app-panel > * {
115     min-width: 100%;
116     max-width: 100%;
117   }
118   .enyo-fit {
119     margin-bottom: -4px !important;
120   }
121 }
122
123 .wide > * {
124   min-width: 50%;
125 }
126
127 .scroll-ios {
128   overflow: auto;
129   -webkit-overflow-scrolling: touch;
130 }
131
132 .wide > * {
133   min-width: 50%;
134 }
135
136 .xv-version-label {
137   padding: 10px;
138 }
139
140 .xv-popup-button {
141   margin: 4px;
142 }
143
144 .xv-error, .xv-negative {
145   color: @bright-red;
146 }
147
148 /**
149   Default button bar with margins and border-radius
150 */
151 .xv-buttons {
152   margin: 5px;
153   &.center {
154     text-align: center;
155   }
156
157   .onyx-button {
158     margin: 2px;
159     min-height: 40px;
160     min-width: 60px;
161     background: @button-gray;
162     color: @charcoal;
163     font-size: @buttonFontSize;
164
165     &[class^="icon-"]:before, &[class*=" icon-"]:before {
166       vertical-align: middle;
167       margin-right: 5px;
168     }
169     &.text {
170       font-size: @buttonTextFontSize;
171     }
172     &.selected {
173       background: @slate-blue;
174       color: @white;
175     }
176   }
177 }
178
179 .xv-assignment-box {
180   .xv-flexible-label {
181     width: 85%;
182   }
183   .xv-label {
184     width: 250px;
185   }
186 }
187
188 .xv-parameter-title {
189   padding-top: 8px;
190   font-size: large;
191   text-align: center;
192 }
193
194 /**
195   Default popup style
196 */
197 .xv-popup {
198   background: @header-gray;
199   margin: 0;
200   max-height: 400px;
201   width: 400px;
202   min-width: @defaultPanelWidth;
203   padding: 7px;
204   text-align: center;
205
206   &.xv-groupbox-popup {
207     .xv-workspace-container > .xv-workspace > .xv-workspace-panel;
208     color: @black;
209     padding: 7px;
210
211     .xv-message {
212       color: @red;
213       padding: 5px;
214     }
215   }
216 }
217
218 .xv-my-account-popup {
219   background-color: @white;
220   color: #000;
221   .xv-message {
222     color:red;
223     padding: 5px;
224   }
225   .onyx-button {
226     margin: 0 auto 0 auto;
227   }
228   .onyx-input {
229     padding-left: 10px;
230     float: right;
231   }
232 }
233
234 .xv-sort-popup {
235   background-color: @white;
236   color: @black;
237   .xv-groupbox > *:last-child {
238     text-align: center;
239     padding: 5px;
240     .onyx-button {
241       margin: 3px;
242     }
243   }
244 }
245
246 .xv-comment-box {
247   .xv-comment-box-repeater {
248     background: @white;
249   }
250   .xv-comment-box-label {
251     padding: 5px;
252     font-size: small;
253     font-weight: bold;
254     white-space: nowrap;
255     overflow: hidden;
256     text-overflow: ellipsis;
257   }
258   .xv-comment-box-textblock {
259     font-size: small;
260     &.disabled {
261       color: @dim-gray;
262     }
263   }
264   /* Resets the margin/padding value for blockquote tag in comments */
265   blockquote {
266     margin: 0 15px 10px 15px;
267     padding: 0;
268   }
269 }
270
271 .icon-folder-open-alt, .icon-calendar, .icon-sort, .icon-angle-up, .icon-angle-down {
272   color: @slate-blue;
273   vertical-align: middle;
274   text-align: center;
275 }
276
277 .xv-short-textarea {
278   .xv-textarea-input {
279     min-height: 0;
280   }
281 }
282 .xv-textarea-input {
283   width: 90%;
284   min-height: 100px;
285   margin: 6px;
286   border: #eee 2px solid;
287 }
288
289 .xv-documents-picker-label {
290   width: 85px;
291   padding: 16px 8px 8px 8px;
292   text-align: right;
293 }
294
295 .xv-documents-picker {
296   width: 120px;
297   margin: 6px;
298 }
299
300 .xv-half-check {
301   // TODO: replace this image with font
302   background:
303     transparent
304     url(../../../../../../assets/checkbox.png)
305     no-repeat
306     0 -96px
307     scroll;
308 }
309
310 .xv-menuitem {
311   &.disabled {
312     color: @dim-gray;
313   }
314 }
315
316 /* This is for styling the moved items in the more toolbar */
317 .xv-toolbar-moved {
318   width: 220px;
319 }
320
321 .icon-folder-open-alt, .icon-calendar, .icon-sort, .icon-angle-up, .icon-angle-down, .icon-save {
322   color: @slate-blue;
323   vertical-align: middle;
324 }
325
326 .onyx-toolbar {
327   height: @toolbarHeight;
328   padding: 4px;
329   background: @header-gray;
330   border: none;
331
332   .onyx-icon-button, .onyx-popup-decorator {
333     margin: 0 5px 0 3px;
334     div {
335       text-shadow: none;
336       color: @white;
337     }
338     &.lock {
339       div {
340         color: @light-orange;
341       }
342     }
343   }
344
345   .onyx-popup-decorator {
346     // cancel the margin that
347     // is on the icon if there's a menu
348     .onyx-icon-button {
349       margin: 0;
350     }
351     text-align: center;
352     width: 50px;
353     height: 40px;
354   }
355
356   .onyx-menu {
357     margin-top: 10px;
358   }
359
360   .spacer {
361     margin: 0;
362   }
363
364   .xv-toolbar-label, .xv-search {
365     width: @searchLength;
366     margin: 0;
367     margin-left: 6px;
368   }
369   .xv-search {
370     color: @med-gray;
371   }
372 }
373
374 // local imports
375 @import "mixins.less";
376
377 @import "navigator.less";
378 @import "startup.less";
379 @import "workspace.less";
380 @import "model-decorator.less";
381 @import "picker.less";
382 @import "grid.less";
383 @import "dashboard.less";
384 @import "list.less";
385 @import "pullout.less";
386 @import "relations.less";
387 @import "address.less";
388 @import "search.less";