1
|
/* These file is a start point for who wants to create a fully custom
|
2
|
* theme for jTable. jtable_theme_base.less (or css) file is needed
|
3
|
* for functionality of jTable. This file does not add any color or shape
|
4
|
* modifications. It just shows how to set icons. You can change them too.
|
5
|
* Halil ibrahim Kalkan / http://www.jtable.org
|
6
|
*/
|
7
|
@import "jtable_theme_base.less";
|
8
|
|
9
|
.jtable_theme_base;
|
10
|
|
11
|
div.jtable-main-container {
|
12
|
overflow: auto;
|
13
|
div.jtable-title {
|
14
|
div.jtable-title-text {
|
15
|
font-size: 14px;
|
16
|
color: #999;
|
17
|
margin-bottom: 8px;
|
18
|
}
|
19
|
.jtable-close-button {
|
20
|
background: url('close.png') no-repeat;
|
21
|
width: 18px;
|
22
|
height: 18px;
|
23
|
}
|
24
|
}
|
25
|
table.jtable {
|
26
|
border-collapse: collapse;
|
27
|
border-spacing: 0;
|
28
|
width: 100%;
|
29
|
thead th {
|
30
|
border-bottom: 2px solid #d0d0d0;
|
31
|
&.jtable-column-header-sortable div.jtable-column-header-container {
|
32
|
background: url('column-sortable.png') no-repeat right;
|
33
|
}
|
34
|
&.jtable-column-header-sorted-asc div.jtable-column-header-container {
|
35
|
background: url('column-asc.png') no-repeat right;
|
36
|
}
|
37
|
&.jtable-column-header-sorted-desc div.jtable-column-header-container {
|
38
|
background: url('column-desc.png') no-repeat right;
|
39
|
}
|
40
|
&.jtable-column-header-sortable div.jtable-column-header-container,
|
41
|
&.jtable-column-header-sorted-asc div.jtable-column-header-container,
|
42
|
&.jtable-column-header-sorted-desc div.jtable-column-header-container {
|
43
|
padding-right: 22px;
|
44
|
}
|
45
|
}
|
46
|
thead th,
|
47
|
tfoot td,
|
48
|
tfoot th {
|
49
|
font-style: normal;
|
50
|
font-weight: 400;
|
51
|
color: #727272;
|
52
|
font-size: 14px;
|
53
|
padding: 8px;
|
54
|
white-space: nowrap;
|
55
|
&.jtable-column-header {
|
56
|
border-right: 1px solid #e0e0e0;
|
57
|
}
|
58
|
}
|
59
|
tfoot td,
|
60
|
tfoot th {
|
61
|
border-top: 2px solid #d0d0d0;
|
62
|
border-bottom: none;
|
63
|
}
|
64
|
tbody {
|
65
|
> tr {
|
66
|
&.jtable-row-even {
|
67
|
background-color: #ededed;
|
68
|
}
|
69
|
&:hover {
|
70
|
background: #e0e0e0;
|
71
|
td {
|
72
|
|
73
|
}
|
74
|
}
|
75
|
&.jtable-row-selected {
|
76
|
background-color: #f1f8e9;
|
77
|
}
|
78
|
&.jtable-row-created,
|
79
|
&.jtable-row-updated {
|
80
|
background-color: #aed581;
|
81
|
}
|
82
|
&.jtable-row-deleting {
|
83
|
background-color: #f44336;
|
84
|
color: #fff;
|
85
|
}
|
86
|
}
|
87
|
td {
|
88
|
border-bottom-color: #e0e0e0;
|
89
|
border-left: 1px solid #e0e0e0;
|
90
|
vertical-align: middle;
|
91
|
padding: 8px;
|
92
|
white-space: nowrap;
|
93
|
&:first-child {
|
94
|
border-left: none;
|
95
|
}
|
96
|
.jtable-command-button {
|
97
|
background-position: 50% 50%;
|
98
|
background-repeat: no-repeat;
|
99
|
background-color: transparent;
|
100
|
width: 24px;
|
101
|
height: 24px;
|
102
|
opacity: 0.6;
|
103
|
transition: opacity 280ms ease-in;
|
104
|
display: block !important;
|
105
|
&:hover {
|
106
|
opacity: 1;
|
107
|
}
|
108
|
}
|
109
|
.jtable-edit-command-button {
|
110
|
background-image: url('edit.png');
|
111
|
}
|
112
|
.jtable-delete-command-button {
|
113
|
background-image: url('delete.png');
|
114
|
}
|
115
|
}
|
116
|
}
|
117
|
.jtable-no-data-row {
|
118
|
td {
|
119
|
padding: 48px 0;
|
120
|
font-size: 18px;
|
121
|
}
|
122
|
}
|
123
|
}
|
124
|
> div.jtable-bottom-panel {
|
125
|
border-top: 1px solid #e0e0e0;
|
126
|
padding: 16px 0 0;
|
127
|
min-height: 28px;
|
128
|
span.jtable-goto-page,
|
129
|
span.jtable-page-size-change {
|
130
|
margin-left: 16px;
|
131
|
}
|
132
|
div.jtable-left-area {
|
133
|
float: left;
|
134
|
}
|
135
|
div.jtable-right-area {
|
136
|
position: static;
|
137
|
float: right;
|
138
|
font-size: 12px;
|
139
|
line-height: 28px;
|
140
|
}
|
141
|
@media only screen and (max-width: 767px) {
|
142
|
div.jtable-left-area,
|
143
|
div.jtable-right-area {
|
144
|
float: none;
|
145
|
text-align: center;
|
146
|
> span {
|
147
|
display: block;
|
148
|
margin: 16px 0 0;
|
149
|
}
|
150
|
}
|
151
|
}
|
152
|
}
|
153
|
.jtable-busy-message {
|
154
|
padding: 12px 12px 12px 56px;
|
155
|
font-size: 20px;
|
156
|
background: #fff url('spinner.gif') no-repeat 10px 50%;
|
157
|
color: #212121;
|
158
|
box-shadow: 0 3px 6px rgba(0,0,0,0.16), 0 3px 6px rgba(0,0,0,0.23);
|
159
|
left: 50%;
|
160
|
transform: translateX(-50%);
|
161
|
}
|
162
|
}
|
163
|
|
164
|
div.jtable-busy-message {
|
165
|
color: #000;
|
166
|
background-color: #ddd;
|
167
|
font-size: 1.25em;
|
168
|
}
|
169
|
|
170
|
form.jtable-dialog-form {
|
171
|
div.jtable-input-field-container {
|
172
|
padding: 4px 0;
|
173
|
border: none;
|
174
|
min-width: 320px;
|
175
|
+ div.jtable-input-field-container {
|
176
|
margin-top: 16px;
|
177
|
}
|
178
|
}
|
179
|
div.jtable-input-label {
|
180
|
font-size: 13px;
|
181
|
color: #727272;
|
182
|
padding: 0 0 4px;
|
183
|
}
|
184
|
div.jtable-input {
|
185
|
padding: 0;
|
186
|
}
|
187
|
.jtable-radio-input {
|
188
|
> span {
|
189
|
vertical-align: -3px;
|
190
|
margin-left: 8px;
|
191
|
}
|
192
|
+ .jtable-radio-input {
|
193
|
margin-top: 8px;
|
194
|
}
|
195
|
}
|
196
|
.jtable-checkbox-input {
|
197
|
> span {
|
198
|
vertical-align: -3px;
|
199
|
margin-left: 8px;
|
200
|
}
|
201
|
+ .jtable-checkbox-input {
|
202
|
margin-top: 8px;
|
203
|
}
|
204
|
}
|
205
|
}
|
206
|
|
207
|
|
208
|
.jtable-page-list {
|
209
|
> span {
|
210
|
border: none;
|
211
|
padding: 4px 4px;
|
212
|
min-width: 28px;
|
213
|
height: 28px;
|
214
|
line-height: 24px;
|
215
|
box-sizing: border-box;
|
216
|
text-shadow: none;
|
217
|
color: #1e88e5;
|
218
|
border-radius: 4px;
|
219
|
display: inline-block;
|
220
|
text-align: center;
|
221
|
}
|
222
|
.jtable-page-number-first,
|
223
|
.jtable-page-number-last {
|
224
|
|
225
|
}
|
226
|
.jtable-page-number-disabled {
|
227
|
color: #999;
|
228
|
}
|
229
|
.jtable-page-number-previous,
|
230
|
.jtable-page-number-next {
|
231
|
|
232
|
}
|
233
|
.jtable-page-number {
|
234
|
|
235
|
}
|
236
|
.jtable-page-number-active {
|
237
|
color: #fff;
|
238
|
background-color: #7cb342;
|
239
|
}
|
240
|
.jtable-page-number-disabled {
|
241
|
|
242
|
}
|
243
|
.jtable-page-number-space {
|
244
|
|
245
|
}
|
246
|
}
|
247
|
|
248
|
|
249
|
/* jqueryui customize */
|
250
|
.ui-widget-overlay {
|
251
|
background: rgba(0,0,0,.5);
|
252
|
z-index: 1207;
|
253
|
}
|
254
|
.ui-dialog {
|
255
|
border-radius: 2px;
|
256
|
box-shadow: 0 19px 38px rgba(0, 0, 0, 0.3), 0 15px 12px rgba(0, 0, 0, 0.22);
|
257
|
padding: 24px 24px 16px;
|
258
|
z-index: 1208;
|
259
|
.ui-dialog-titlebar {
|
260
|
margin: -24px -24px 0;
|
261
|
padding: 24px 32px 16px 24px;
|
262
|
border: none;
|
263
|
.ui-dialog-title {
|
264
|
display: block;
|
265
|
margin: 0;
|
266
|
font: 500 18px / 28px "Roboto", sans-serif;
|
267
|
}
|
268
|
}
|
269
|
.ui-dialog-content {
|
270
|
padding: 16px 32px 0 0;
|
271
|
max-height: 400px !important;
|
272
|
.ui-icon {
|
273
|
display: none;
|
274
|
}
|
275
|
> p {
|
276
|
font-size: 15px;
|
277
|
}
|
278
|
}
|
279
|
.ui-dialog-buttonpane {
|
280
|
border: none;
|
281
|
padding: 16px 0 0;
|
282
|
button {
|
283
|
margin: 0 !important;
|
284
|
}
|
285
|
}
|
286
|
.ui-dialog-titlebar-close {
|
287
|
background: none;
|
288
|
border: none;
|
289
|
top: 16px;
|
290
|
right: 6px;
|
291
|
text-indent: 9999px;
|
292
|
}
|
293
|
}
|