Project

General

Profile

1
// Base styles for jTable.
2
// All themes must inherit from jtable_theme_base.
3
// Created by Halil İbrahim Kalkan
4
// http://www.jtable.org
5

    
6
// GENERAL MIXINGS ////////////////////////////////////////////////////////////
7

    
8
.centered()
9
{
10
    text-align: center;
11
    vertical-align: middle;
12
}
13

    
14
.clear-margin-padding()
15
{
16
    margin: 0px;
17
    padding: 0px;
18
}
19

    
20
.clear-list-styles()
21
{
22
    .clear-margin-padding;
23
    list-style: none;
24
}
25

    
26
.border-radius(@radius)
27
{
28
    -webkit-border-radius: @radius;
29
    -moz-border-radius: @radius;
30
    border-radius: @radius;
31
}
32

    
33
.text-shadow(@shadow)
34
{
35
    -webkit-text-shadow: @shadow;
36
    text-shadow: @shadow;
37
}
38

    
39
.box-shadow(@shadow)
40
{
41
    -webkit-box-shadow: @shadow;
42
    -moz-box-shadow: @shadow;
43
    box-shadow: @shadow;
44
}
45

    
46
.opacity(@value)
47
{
48
    opacity: @value;
49
    //for IE8 and earlier
50
    @ieValue: @value * 100;
51
    filter: alpha(opacity=@ieValue);
52
}
53

    
54
.vertical-gradient(@top_color, @bottom_color)
55
{
56
    background: @top_color; // Old browsers
57
    background: -moz-linear-gradient(top, @top_color 0%, @bottom_color 100%); // FF3.6+
58
    background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,@top_color), color-stop(100%,@bottom_color)); // Chrome,Safari4+
59
    background: -webkit-linear-gradient(top, @top_color 0%,@bottom_color 100%); // Chrome10+,Safari5.1+
60
    background: -o-linear-gradient(top, @top_color 0%,@bottom_color 100%); // Opera 11.10+
61
    background: -ms-linear-gradient(top, @top_color 0%,@bottom_color 100%); // IE10+
62
    background: linear-gradient(to bottom, @top_color 0%,@bottom_color 100%); // W3C
63
    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='@{top_color}', endColorstr='@{bottom_color}',GradientType=0 ); // IE6-9
64
}
65

    
66
// Docking
67

    
68
@default-dock-margin: 0px;
69

    
70
.dock(top, @margin: @default-dock-margin)
71
{
72
    left: @margin;
73
    top: @margin;
74
    right: @margin;
75
}
76

    
77
.dock(right, @margin: @default-dock-margin)
78
{
79
    right: @margin;
80
    top: @margin;
81
    bottom: @margin;
82
}
83

    
84
.dock(bottom, @margin: @default-dock-margin)
85
{
86
    left: @margin;
87
    right: @margin;
88
    bottom: @margin;
89
}
90

    
91
.dock(left, @margin: @default-dock-margin)
92
{
93
    left: @margin;
94
    top: @margin;
95
    bottom: @margin;
96
}
97

    
98
.dock(top-left, @margin: @default-dock-margin)
99
{
100
    left: @margin;
101
    top: @margin;
102
}
103

    
104
.dock(top-right, @margin: @default-dock-margin)
105
{
106
    top: @margin;
107
    right: @margin;
108
}
109

    
110
.dock(bottom-right, @margin: @default-dock-margin)
111
{
112
    bottom: @margin;
113
    right: @margin;
114
}
115

    
116
.dock(bottom-left, @margin: @default-dock-margin)
117
{
118
    bottom: @margin;
119
    left: @margin;
120
}
121

    
122
.dock(@direction, @margin: @default-dock-margin)
123
{
124
    position: absolute;
125
}
126

    
127
// JTABLE THEME BASE STYLES ///////////////////////////////////////////////////
128

    
129
.jtable_theme_base()
130
{
131
    div.jtable-main-container
132
    {
133
        position: relative;
134

    
135
        div.jtable-title
136
        {
137
            position: relative;
138
            text-align: left;
139

    
140
            .jtable-close-button
141
            {
142
                .dock(right);
143
            }
144

    
145
			// Toolbar -------------------------------------------------------------
146

    
147
			div.jtable-toolbar
148
			{
149
				.dock(bottom-right);
150

    
151
				display: inline-block;
152
				margin-right: 5px;
153

    
154
				span.jtable-toolbar-item
155
				{
156
					position: relative;
157
					display: inline-block;
158
					margin: 0px 0px 0px 5px;
159
					cursor: pointer;
160
					font-size: 0.9em;
161
					padding: 2px;
162
					vertical-align: bottom;
163

    
164
					span.jtable-toolbar-item-icon
165
					{
166
						display: inline-block;
167
						margin: 2px;
168
						vertical-align: middle;
169
						width: 16px;
170
						height: 16px;
171
					}
172

    
173
					span.jtable-toolbar-item-text
174
					{
175
						display: inline-block;
176
						margin: 2px;
177
						vertical-align: middle;
178
					}
179
				}
180
			}
181

    
182
			.jtable-close-button+div.jtable-toolbar
183
			{
184
				margin-right: 30px;
185
			}
186
        }
187

    
188
        table.jtable
189
        {
190
            width: 100%;
191

    
192
            thead
193
            {
194
                th
195
                {
196
                    vertical-align: middle;
197
                    text-align: left;
198

    
199
                    &.jtable-column-header
200
                    {
201
                        div.jtable-column-header-container
202
                        {
203
                            position: relative;
204

    
205
                            span.jtable-column-header-text
206
                            {
207
                                display: inline-block;
208
                            }
209

    
210
                            div.jtable-column-resize-handler
211
                            {
212
                                position: absolute;
213
                                height: 24px;
214
                                width: 8px;
215
                                right: -8px;
216
                                top: -2px;
217
                                z-index: 2;
218
                                cursor: col-resize;
219
                            }
220
                        }
221
                    }
222

    
223
                    &.jtable-command-column-header
224
                    {
225
                        text-align: center;
226
                    }
227

    
228
                    &.jtable-column-header-selecting
229
                    {
230
                        text-align: center;
231
                        width: 1%;
232

    
233
                        input
234
                        {
235
                            cursor: pointer;
236
                        }
237
                    }
238

    
239
                    &.jtable-column-header-sortable
240
                    {
241
                        cursor: pointer;
242
                    }
243
                }
244
            }
245

    
246
            tbody
247
            {
248
                tr
249
                {
250
                    > td
251
                    {
252
                        .jtable-command-button
253
                        {
254
                            .clear-margin-padding;
255
                            cursor: pointer;
256
                            border: none;
257
                            display: inline;
258

    
259
                            span
260
                            {
261
                                display: none;
262
                            }
263
                        }
264

    
265
                        &.jtable-command-column
266
                        {
267
                            .centered;
268
                        }
269

    
270
                        &.jtable-selecting-column
271
                        {
272
                            .centered;
273

    
274
                            input
275
                            {
276
                                cursor: pointer;
277
                            }
278
                        }
279
                    }
280

    
281
                    &.jtable-no-data-row
282
                    {
283
                        text-align: center;
284
                    }
285

    
286
                    &.jtable-row-created
287
                    {
288
                    }
289

    
290
                    &.jtable-row-updated
291
                    {
292
                    }
293

    
294
                    &.jtable-row-deleting
295
                    {
296
                    }
297
                }
298
            }
299
        }
300

    
301
        > div.jtable-bottom-panel
302
        {
303
            position: relative;
304
            min-height: 24px;
305
			text-align: left;
306

    
307
            div.jtable-right-area
308
            {
309
                .dock(right);
310
            }
311

    
312
            .jtable-page-list
313
            {
314
                display: inline-block;
315

    
316
                .jtable-page-number,
317
                .jtable-page-number-space,
318
                .jtable-page-number-first,
319
                .jtable-page-number-last,
320
                .jtable-page-number-previous,
321
                .jtable-page-number-next,
322
                .jtable-page-number-active
323
                {
324
                    padding: 2px 5px;
325
                    display: inline-block;
326
                    cursor: pointer;
327
                }
328

    
329
                .jtable-page-number-space,
330
                .jtable-page-number-active,
331
				.jtable-page-number-disabled
332
                {
333
                    cursor: default;
334
                }
335
            }
336

    
337
            span.jtable-page-size-change
338
            {
339
                margin-left: 5px;
340
            }
341

    
342
			span.jtable-goto-page
343
			{
344
                margin-left: 5px;
345

    
346
				input[type=text]
347
				{
348
					width:22px;
349
				}
350
			}
351

    
352
			span.jtable-page-info
353
			{
354
				vertical-align: middle;
355
			}
356
        }
357

    
358
        div.jtable-column-resize-bar
359
        {
360
            .opacity(0.5);
361
            position: absolute;
362
            display: none;
363
            width: 1px;
364
            background-color: #000;
365
        }
366

    
367
        div.jtable-column-selection-container
368
        {
369
            position: absolute;
370
            display: none;
371
            border: 1px solid #C8C8C8;
372
            background: #fff;
373
            color: #000;
374
            z-index: 101;
375
            padding: 5px;
376

    
377
            ul.jtable-column-select-list
378
            {
379
                .clear-list-styles;
380

    
381
                li
382
                {
383
                    margin: 0px;
384
                    padding: 2px 0px;
385

    
386
                    label
387
                    {
388
                        span
389
                        {
390
                            position: relative;
391
                            top: -1px;
392
                            margin-left: 4px;
393
                        }
394
                    }
395

    
396
                    input[type="checkbox"]
397
                    {
398
                        cursor: pointer;
399
                    }
400
                }
401
            }
402
        }
403
    }
404

    
405
    form.jtable-dialog-form
406
    {
407
        div.jtable-input-field-container
408
        {
409
            padding: 2px 0px 3px 0px;
410
            border-bottom: 1px solid #ddd;
411

    
412
            &:last-child
413
            {
414
                border: none;
415
            }
416
        }
417

    
418
        div.jtable-input-label
419
        {
420
            padding: 2px 3px;
421
            font-size: 1.1em;
422
            color: #666;
423
        }
424

    
425
        div.jtable-input
426
        {
427
            padding: 2px;
428
        }
429

    
430
        div.jtable-date-input
431
        {
432
            /* No additional style */
433
        }
434

    
435
        div.jtable-text-input
436
        {
437
            /* No additional style */
438
        }
439

    
440
        span.jtable-option-text-clickable
441
        {
442
            position: relative;
443
            top: -2px;
444
        }
445

    
446
        div.jtable-textarea-input textarea
447
        {
448
            width: 300px;
449
            min-height: 60px;
450
        }
451

    
452
        div.jtable-password-input
453
        {
454
        }
455

    
456
        div.jtable-dropdown-input
457
        {
458
        }
459

    
460
        div.jtable-radiobuttonlist-input
461
        {
462
        }
463

    
464
        div.jtable-checkbox-input span,
465
        div.jtable-radio-input span
466
        {
467
            padding-left: 4px;
468
        }
469

    
470
        div.jtable-radio-input input,
471
        div.jtable-checkbox-input input,
472
        span.jtable-option-text-clickable
473
        {
474
            cursor: pointer;
475
        }
476
    }
477

    
478
    form.jtable-create-form
479
    {
480
    }
481

    
482
    form.jtable-edit-form
483
    {
484
    }
485

    
486
    div.jtable-busy-panel-background
487
    {
488
        .opacity(0.1);
489
        z-index: 998;
490
        position: absolute;
491
        background-color: #000;
492

    
493
		&.jtable-busy-panel-background-invisible
494
		{
495
			background-color: transparent;
496
		}
497
    }
498

    
499
    div.jtable-busy-message
500
    {
501
        cursor: wait;
502
        z-index: 999;
503
        position: absolute;
504
        margin: 5px;
505
    }
506

    
507
    div.jtable-contextmenu-overlay
508
    {
509
        position: fixed;
510
        left: 0px;
511
        top: 0px;
512
        width: 100%;
513
        height: 100%;
514
        z-index: 100;
515
    }
516

    
517
    .jtable-delete-confirm-message
518
    {
519
    }
520

    
521
    .jtable-row-ready-to-remove
522
    {
523
    }
524
}
(16-16/18)