/
sensei-grid.css
142 lines (134 loc) · 2.87 KB
/
sensei-grid.css
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
/**
* sensei-grid v0.3.14
* Copyright (c) 2015 Lauris Dzilums <lauris@discuss.lv>
* Licensed under MIT
*/
.sensei-grid {
outline: none;
/** disable selection */
-moz-user-select: -moz-none;
-khtml-user-select: none;
-webkit-user-select: none;
-ms-user-select: none;
user-select: none;
}
.sensei-grid>table {
empty-cells: show;
}
.sensei-grid>table td,
.sensei-grid>table th {
white-space: nowrap;
overflow: hidden;
}
.sensei-grid>table td>div,
.sensei-grid>table th>div {
overflow: hidden;
/* transparent border fixes another firefox quirk
when cell width is calculated incorrectly */
border: 1px solid transparent;
}
.sensei-grid>table tr div::after {
content: '\00a0';
}
.sensei-grid>table thead {
background: #F5F5F5;
}
.sensei-grid>table thead>tr>th {
border-bottom-width: 1px;
font-weight: bold;
}
.sensei-grid>table .activeCell {
background: #d0e9f8;
border: 1px double #3399ff;
}
.sensei-grid>table .activeRow {
background: #eff7fc;
}
.sensei-grid>table .sensei-grid-dirty-row {
color: gray;
}
.sensei-grid-editor {
position: absolute;
background: white;
border: 2px solid #3399ff;
box-shadow: 2px 2px 2px rgba(0,0,0,0.1);
}
.sensei-grid-editor input[type=text],
.sensei-grid-editor select,
.sensei-grid-editor textarea {
border: none;
width: 100%;
height: 100%;
box-shadow: none;
outline: none;
padding: 5px 6px;
background: #fff;
}
.sensei-grid-editor.sensei-grid-boolean-editor {
/*text-align: center;*/
}
.sensei-grid-editor input[type=checkbox] {
margin: 8px 0 0 8px;
font-size: 20px;
display: inline-block;
padding: 0;
line-height: inherit;
}
.sensei-grid-editor textarea {
/** fixes bottom gap */
vertical-align: top;
}
.sensei-grid-date-editor .picker__holder {
min-width: 300px;
margin-left: -2px;
margin-top: 2px;
}
.sensei-grid-date-editor .picker {
font-size: 14px;
}
.sensei-grid-disabled-editor {
border-color: #ADADAD;
}
.sensei-grid-disabled-editor input[type=text] {
cursor: not-allowed;
background: #FAFAFA;
}
.sensei-grid th.sensei-grid-sortable {
cursor: pointer;
user-select: none;
-webkit-user-select: none;
-moz-user-select: none;
padding-right: 22px;
position: relative;
}
.sensei-grid th.sensei-grid-sortable .glyphicon {
font-size: 10px;
color: #aaa;
position: absolute;
right: 7px;
top: 12px;
}
.sensei-grid-basic-row-actions {
position: absolute;
right: 0;
width: auto;
background: white;
/*border: 1px solid #ccc;*/
margin-left: 5px;
}
.sensei-grid-basic-row-actions .btn {
margin-right: 2px;
}
.sensei-grid td.row-action {
width:1%;
white-space:nowrap;
}
/* selectable styles */
.sensei-grid th.selectable input,
.sensei-grid td.selectable input {
margin-left: 2px;
}
.sensei-grid .selectedRow,
.sensei-grid .activeRow.selectedRow {
background-color: #FFFFE0;
}