-
Notifications
You must be signed in to change notification settings - Fork 46
/
grid.styl
320 lines (269 loc) · 5.33 KB
/
grid.styl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
@import 'lib/nib'
body
padding:80px
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif
font-size: 13px
line-height: 18px
color: #333
.left {float:left}
.right {float:right}
.fc {overflow:hidden}
div.gridWrapper
width:800px
min-width:515px
border: 1px solid #DDD
border-radius: 4px
border-radius: 4px
height:280px
position:relative
background:white;
margin-bottom:70px;
&.resizing, &.resizing input
user-select: none
//overflow:hidden;
&.moving
user-select: none
.dialog
position absolute
top: 50px
left: 50%
padding:20px
border-radius: 7px
color:#333
font-size:11px
width:200px
height:80px
margin-left:-100px
background:white
//border: 1px solid rgba(0,0,0,.2)
box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.4);
opacity 0
transition opacity 200ms ease-out
&.show
opacity 1
span.body
display:block
margin-bottom:5px
span.label
top: -10px;
position: relative;
padding-top: 2px;
.buttons
bottom: 12px;
position: absolute;
right: 15px;
button
outline:none
&.gridNotify
width: 100px;
height: 30px;
text-align: center;
margin-left: -50px;
.gridLoading
text-align:center
display:block
width:100%
font-size:11px
height:100%
.gridResizer
position:absolute
right:0px
top:0px
bottom:0px
width:10px
cursor:e-resize
.columns
height:inherit
overflow-x:hidden
-webkit-overflow-scrolling: touch
opacity 1
&.blur
//-webkit-filter: blur(20px);
opacity .2
.cell
padding:5px
border-left:1px solid #DDD
white-space:nowrap
height:24px
position:relative;
overflow:hidden;
//background-color #e5e5e5
&:nth-child(2), &.topMargin
margin-top:40px
&:nth-child(2n+1)
//background-color #eee
&.level2
height:160px;
overflow:visible;
.level2Grid
background: blue;
height: 147px;
width: 793px;
z-index: 5;
position: absolute;
img
max-width: 100%;
max-height: 100%;
&.row-hover
background:rgba(0,0,0,.05)
&.input
padding-right:15px
&.select
padding-right 5px
&.center
text-align:center
&.editable input[type="text"]
width: 100%
box-shadow: inset 0px 1px 3px #ccc
border:0px
margin:0px
&.blankCell
zoom:1;
//padding-bottom: 15px
&.headerCell
position:absolute
width:inherit
height:inherit
overflow:hidden
border-bottom:1px solid #DDD
padding:0px
cursor:pointer
user-select : none
background: linear-gradient(top, #ffffff 0%,rgb(228,228,228) 100%)
z-index 2
min-width 50px
span
font-weight:bold
padding:9px
display:block
.sortbar
position:absolute
height:10px
width:100%
bottom:0px
left:0px
font-size:13px
line-height: 9px
text-align: center
display:none
transform: rotate(0deg)
&.desc
transform: rotate(180deg)
.resizer
position:absolute
top:0px
right:0px
height:100%
width:10px
background:transparent
cursor:move
.col
float:left
min-width 50px
//max-width 150px
//overflow:hidden
//display inline-block
&.dynamic
min-width 20px
.headerCell
min-width 20px
&._checkbox .headerCell
text-align:center
&:first-child .cell
border-left:0px
&.small
.cell.headerCell
text-align:center
span
padding 4.5px // half of the original span padding
.gridPager
.slider span
width:70px;
.search input:focus
width:120px;
&.small, &.small input
font-size:10px
.gridPager
margin-top:15px
user-select: none
.slider
span
border: 1px solid #DDD;
float:left;
height:34px;
border-left:none;
width:150px;
.slider
width:88%
padding-left:6%;
padding-right:6%;
.sliderTrack
width: auto
height: 4px
box-shadow: inset 0px 2px 5px #333
margin-top: 15px
background: #CCC
border-radius: 5px
.sliderThumb
width:13px
height:13px
margin-top: -7px;
border-radius:6px
box-shadow: 0px 0px 4px #333
background: linear-gradient(top, #ffffff 0%,#f1f1f1 50%,#e1e1e1 51%,#f6f6f6 100%)
cursor:pointer
.currentPage, .search
input
float: left;
height: 26px;
width: 30px;
margin-left: 2px;
text-align: center;
.pagination
margin:0
li a, li span
background:white;
&.left li
white-space:no-wrap
ul,ol
margin:0
.btn
padding: 8px 10px;
margin-left:5px;
.pager_showing
min-width 108px
text-align center
.search
position:relative;
input
transition:width, 200ms ease-out
text-align:left;
&:focus
width:150px
.search.icon:after, .search input:focus:after
content : ''
width: 14px;
height:14px;
display:block;
position:absolute;
top 10px;
left -27px;
background-image: url('http://twitter.github.com/bootstrap/assets/img/glyphicons-halflings.png');
background-position: -48px 0px;
select
width 100%
&.touch
.gridPager .slider .sliderThumb
width:23px
height:23px
margin-top: -13px;
.ui-datepicker
z-index 2
// bootstrap button fix
.btn:hover
transition: none
@-moz-document url-prefix() {
div.gridWrapper .gridPager .search.icon:after, .search input:focus:after {
top:25px
}
}