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