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