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