036452c8c7f806e5ec4386952f024cd4f10b2ff9
[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: 17px;
53
54 // sizing
55 @defaultPanelWidth: 320px;
56 @toolbarHeight: 55px;
57 @searchLength: 185px;
58
59 // libs
60 @import "../../lib/font-awesome/less/font-awesome.less";
61 @import "../../lib/font-onyx/lib/Icon.less";
62
63 body {
64   font-family: @baseFont;
65   font-size: @baseFontSize;
66   background-color: @white;
67 }
68
69 .enyo-fit {
70   bottom: 4px !important;
71 }
72
73 .disabled {
74   opacity: 0.8;
75   cursor: default;
76 }
77
78 a, .hyperlink {
79   color: @slate-blue;
80   cursor: pointer;
81 }
82
83 .xv-app-panel {
84   /* Setting this as min-width overrides enyo-narrow 100% */
85   width: @defaultPanelWidth;
86   // TODO: replace with textured background?
87   background-color: @white;
88   .box-shadow(-2px -2px 6px rgba(0,0,0,0.20));
89 }
90
91 /*
92   Media query for responsive design. This adapts to smaller
93   displays.
94 */
95 @media (max-width: 480px) {
96   .pullout-menu {
97     display: block;
98     margin: 0;
99   }
100   .xv-app-panel > * {
101     min-width: 100%;
102     max-width: 100%;
103   }
104   .enyo-fit {
105     margin-bottom: -4px !important;
106   }
107 }
108
109 .wide > * {
110   min-width: 50%;
111 }
112
113 .scroll-ios {
114   overflow: auto;
115   -webkit-overflow-scrolling: touch;
116 }
117
118 .wide > * {
119   min-width: 50%;
120 }
121
122 .xv-version-label {
123   padding: 10px;
124 }
125
126 .xv-popup-button {
127   margin: 4px;
128 }
129
130 .xv-error, .xv-negative {
131   color: @bright-red;
132 }
133
134 /**
135   Default button bar with margins and border-radius
136 */
137 .xv-buttons {
138   margin: 5px;
139   &.center {
140     text-align: center;
141   }
142
143   .onyx-button {
144     margin: 2px;
145     min-width: 60px;
146     background: @button-gray;
147     color: @charcoal;
148     font-size: 20px;
149     &.text {
150       font-size: @buttonFontSize;
151       font-family: @baseFont;
152     }
153     &.selected {
154       background: @slate-blue;
155       color: @white;
156     }
157   }
158 }
159
160 .xv-assignment-box {
161   .xv-flexible-label {
162     width: 85%;
163   }
164   .xv-label {
165     width: 250px;
166   }
167 }
168
169 .xv-parameter-title {
170   padding-top: 8px;
171   font-size: large;
172   text-align: center;
173 }
174
175 /**
176   Default popup style
177 */
178 .xv-popup {
179   background: @header-gray;
180   margin: 0;
181   max-height: 400px;
182   width: 400px;
183   min-width: @defaultPanelWidth;
184   padding: 7px;
185   text-align: center;
186
187   &.xv-groupbox-popup {
188     .xv-workspace-container > .xv-workspace > .xv-workspace-panel;
189     color: @black;
190     padding: 7px;
191
192     .xv-message {
193       color: @red;
194       padding: 5px;
195     }
196   }
197 }
198
199 .xv-my-account-popup {
200   background-color: @white;
201   color: #000;
202   .xv-message {
203     color:red;
204     padding: 5px;
205   }
206   .onyx-button {
207     margin: 0 auto 0 auto;
208   }
209   .onyx-input {
210     padding-left: 10px;
211     float: right;
212   }
213 }
214
215 .xv-sort-popup {
216   background-color: @white;
217   color: @black;
218   .xv-groupbox > *:last-child {
219     text-align: center;
220     padding: 5px;
221     .onyx-button {
222       margin: 3px;
223     }
224   }
225 }
226
227 .xv-comment-box {
228   .xv-comment-box-repeater {
229     background: @white;
230   }
231   .xv-comment-box-label {
232     padding: 5px;
233     font-size: small;
234     font-weight: bold;
235     white-space: nowrap;
236     overflow: hidden;
237     text-overflow: ellipsis;
238   }
239   .xv-comment-box-textblock {
240     font-size: small;
241     &.disabled {
242       color: @dim-gray;
243     }
244   }
245   /* Resets the margin/padding value for blockquote tag in comments */
246   blockquote {
247     margin: 0 15px 10px 15px;
248     padding: 0;
249   }
250 }
251
252 .icon-folder-open-alt, .icon-calendar, .icon-sort {
253   color: @slate-blue;
254   vertical-align: middle;
255 }
256
257 .xv-short-textarea {
258   .xv-textarea-input {
259     min-height: 0;
260   }
261 }
262 .xv-textarea-input {
263   width: 90%;
264   min-height: 100px;
265   margin: 6px;
266   border: #eee 2px solid;
267 }
268
269 .xv-documents-picker-label {
270   width: 85px;
271   padding: 16px 8px 8px 8px;
272   text-align: right;
273 }
274
275 .xv-documents-picker {
276   width: 120px;
277   margin: 6px;
278 }
279
280 .xv-half-check {
281   // TODO: replace this image with font
282   background:
283     transparent
284     url(../../../../../../assets/checkbox.png)
285     no-repeat
286     0 -96px
287     scroll;
288 }
289
290 .xv-menuitem {
291   &.disabled {
292     color: @dim-gray;
293   }
294 }
295
296 /* This is for styling the moved items in the more toolbar */
297 .xv-toolbar-moved {
298   width: 220px;
299 }
300
301 .icon-folder-open-alt, .icon-calendar, .icon-sort, .icon-angle-up, .icon-angle-down, .icon-save {
302   color: @slate-blue;
303   vertical-align: middle;
304 }
305
306 .onyx-toolbar {
307   height: @toolbarHeight;
308   padding: 4px;
309   background: @header-gray;
310   border: none;
311
312   .onyx-icon-button, .onyx-popup-decorator {
313     margin: 0 5px 0 3px;
314     div {
315       text-shadow: none;
316       color: @white;
317     }
318     &.lock {
319       div {
320         color: @light-orange;
321       }
322     }
323   }
324
325   .onyx-popup-decorator {
326     // cancel the margin that
327     // is on the icon if there's a menu
328     .onyx-icon-button {
329       margin: 0;
330     }
331     text-align: center;
332     width: 50px;
333     height: 40px;
334   }
335
336   .onyx-menu {
337     margin-top: 10px;
338   }
339
340   .spacer {
341     margin: 0;
342   }
343
344   .xv-toolbar-label, .xv-search {
345     width: @searchLength;
346     margin: 0;
347     margin-left: 6px;
348   }
349   .xv-search {
350     color: @med-gray;
351   }
352 }
353
354 // local imports
355 @import "mixins.less";
356
357 @import "navigator.less";
358 @import "startup.less";
359 @import "workspace.less";
360 @import "model-decorator.less";
361 @import "picker.less";
362 @import "grid.less";
363 @import "dashboard.less";
364 @import "list.less";
365 @import "pullout.less";
366 @import "relations.less";
367 @import "address.less";
368 @import "search.less";