Issue #23607: Changed wrapping of description in item site widget.
[xtuple] / lib / enyo-x / source / less / grid.less
1 /*
2   Styles relating to the grid box
3 */
4
5
6 /* Entire box including the grid and the summary panel */
7 .xv-grid-box {
8
9   &.small-panel {
10     width: 600px;
11   }
12
13   &.medium-panel {
14     width: 700px;
15   }
16
17   &.large-panel {
18     width: 800px;
19   }
20
21   .enyo-list-page {
22     > *:first-child {
23       .xv-grid-row {
24         border-top: 0;
25       }
26     }
27   }
28
29   .xv-above-grid-list {
30     border: 0;
31   }
32
33   .xv-scroller {
34     background: @ghost;
35   }
36
37   .xv-grid-attr {
38     &.bold {
39     font-weight: bold;
40     }
41     &.error {
42       color: @bright-red;
43     }
44     &.emphasis {
45       color: @green;
46     }
47     &.warn {
48       color: @light-orange;
49     }
50     &.italic {
51       font-style: italic;
52     }
53     &.placeholder {
54       font-style: italic;
55       color: @blue-gray;
56     }
57     &.hyperlink {
58       color: blue;
59     }
60   }
61
62   .xv-gridbox-button {
63     color: @slate-blue;
64     font-size: 18px;
65     border: none;
66     background: transparent;
67   }
68
69
70   /**
71     This is the most general grid row that
72     is not specific to read-only or selected
73   */
74   .xv-grid-row {
75     font-size: 12px;
76     background-color: @gray;
77     border-bottom: 1px solid @silver;
78     > * {
79       display: inline-block;
80     }
81     vertical-align: top;
82
83     /**
84       This is the grid header row
85     */
86     .xv-grid-header {
87       background-color: @smoke;
88       color: @near-black;
89       font-size: .8em;
90       font-weight: bold;
91       text-transform: uppercase;
92       padding-top: 4px;
93       &.last {
94         border-right: none;
95       }
96     }
97     > * {
98       padding: 6px 4px;
99       border: none;
100     }
101
102     .line-number {
103       vertical-align: top;
104       width: 30px;
105       text-align: right;
106     }
107     .grid-actions {
108       display: block;
109       padding-left: 30px;
110       border-radius: 4px;
111       border-width: 0;
112       background: @earl-grey;
113       margin: 6px;
114       > * {
115         display: inline-block;
116         width: 100%;
117       }
118     }
119     .grid-item {
120       vertical-align: top;
121       width: 175px;
122     }
123     .quantity {
124       vertical-align: top;
125       text-align: right;
126       width: 100px;
127     }
128     .percent {
129       vertical-align: top;
130       text-align: right;
131       width: 90px;
132     }
133     .price {
134       vertical-align: top;
135       text-align: right;
136       width: 90px;
137     }
138     .date {
139       vertical-align: top;
140       width: 105px;
141     }
142     .user {
143       vertical-align: top;
144       width: 100px;
145     }
146
147     &.readonly {
148       background: @ghost;
149       min-height: 56px;
150     }
151
152     &.selected {
153       background-color: @white;
154       border: 1px solid @bright-orange;
155       .xv-grid-column {
156         .onyx-input-decorator {
157           .tightened-input-decorator;
158         }
159         .onyx-picker-decorator {
160           padding-top: 6px;
161           width: 100%;
162           .onyx-button {
163             height: 26px;
164             padding-top: 3px;
165             width: 100%;
166             font-size: 13px;
167           }
168         }
169         .xv-input {
170           border: none;
171         }
172         .xv-picker-label {
173           display: none;
174         }
175         .xv-datewidget {
176           margin-right: 10px;
177           padding-top: 0;
178           .onyx-input-decorator {
179             padding: 0;
180             width: 100%;
181             input {
182               width: 85%;
183               font-size: 13px;
184             }
185           }
186         }
187         .xv-numberwidget {
188           padding-top: 6px;
189           .onyx-input-decorator {
190             .tightened-input-decorator;
191           }
192         }
193         .xv-combobox {
194           padding-left: 0;
195           input {
196             padding-top: 3px;
197             width: 80px;
198             font-size: 13px;
199           }
200         }
201         .xv-moneywidget {
202           padding-bottom: 0;
203           .onyx-input-decorator {
204             .tightened-input-decorator;
205           }
206         }
207         .xv-relationwidget {
208           .onyx-input-decorator {
209             width: 100%;
210             padding-top: 6px;
211           }
212           .onyx-input {
213             width: 85%;
214             padding-right: 4px;
215           }
216         }
217         .xv-useraccount-widget {
218           // Hack: we shouldn't have to force this.
219           .xv-subinput {
220             width: 80px;
221             height: 16px;
222           }
223         }
224         .xv-subinput {
225           width: 100%;
226         }
227         .xv-input {
228           padding-top: 6px;
229           width: 100%;
230           border: none;
231         }
232         .xv-label, .xv-flexible-label, .xv-relationwidget-secondarydescription {
233           display: none;
234         }
235         .xv-relationwidget-description {
236           margin: 0;
237           margin-top: 5px;
238         }
239         .xv-private-item-site-widget {
240           border-bottom: 0;
241         }
242       }
243     }
244   }
245   &.xv-groupbox {
246     .xv-sales-summary-panel {
247       border: none;
248       margin-top: 0;
249       padding-left: 0;
250       padding-right: 0;
251       .xv-sales-summary-total-group {
252         padding: 0;
253         border: none;
254         .xv-moneywidget {
255           padding-bottom: 0;
256           padding-top: 0;
257           .xv-input-decorator {
258             padding-bottom: 0;
259             padding-top: 0;
260           }
261         }
262         .xv-numberwidget {
263           padding-bottom: 0;
264           padding-top: 0;
265           .xv-input-decorator {
266             width: 163px;
267             padding-bottom: 0;
268             padding-top: 0;
269           }
270         }
271       }
272     }
273   }
274 }
275
276 .xv-grid-list {
277   .xv-list-column {
278     vertical-align: top !important;
279   }
280 }
281
282 .tightened-input-decorator (@width: 100%) {
283   padding: 0;
284   width: @width;
285   margin: 0;
286   input {
287     width: (@width);
288     font-size: 13px;
289   }
290 }