This repository has been archived by the owner on Oct 4, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathdatatable.editable.css
222 lines (196 loc) · 4.13 KB
/
datatable.editable.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
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
/*! Editable 0.1.1
* © 2016-2017 Karl Saunders
*/
/**
* @summary Editable
* @description Allow editing of cells and rows
* @version 0.1.1
* @file datatable.editable.js
* @author Karl Saunders
* @contact [email protected]
* @copyright Copyright 2016-2017 Karl Saunders
*
* Double-click a cell to edit and hit enter to submit.
* Right click to show context menu of editor options (Edit Cell, Edit Row, Remove Row).
*
* This source file is free software, available under the following license:
* MIT license - https://github.com/Mobius1/Vanilla-DataTables/blob/master/LICENSE
*
* This source file is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
* or FITNESS FOR A PARTICULAR PURPOSE. See the license files for details.
*
* For details please refer to: https://github.com/Mobius1/Vanilla-DataTables
*/
.dt-editor-modal {
position: absolute;
left: 0;
top: 0;
width: 100%;
height: 100%;
background-color: rgba(0, 0, 0, 0.6);
-webkit-animation: 250ms ease 0ms fadeIn;
animation: 250ms ease 0ms fadeIn;
}
.dt-editor-modal.closed {
-webkit-animation: 250ms ease 0ms fadeIn;
animation: 250ms ease 0ms fadeIn;
}
.dt-editor-modal.closed .dt-editor-inner {
-webkit-animation: 250ms ease 0ms slideIn;
animation: 250ms ease 0ms slideIn;
}
.dt-editor-inner {
width: 30%;
margin: 10% auto;
background-color: #fff;
border-radius: 5px;
-webkit-animation: 250ms ease 0ms slideIn;
animation: 250ms ease 0ms slideIn;
}
.dt-editor-header {
position: relative;
border-bottom: 1px solid #ccc;
}
.dt-editor-header h4 {
font-size: 20px;
margin: 0;
}
.dt-editor-header button {
position: absolute;
right: 10px;
top: 10px;
background-color: transparent;
border: none;
cursor: pointer;
font-size: 24px;
padding: 5px;
line-height: 1;
opacity: 0.6;
}
.dt-editor-header button:hover {
opacity: 1;
}
.dt-editor-header {
padding: 15px 30px;
}
.dt-editor-block {
padding: 15px 60px;
}
.dt-editor-row {
margin: 0 0 15px;
}
.dt-editor-row:last-child {
margin: 0 0 5px;
}
.dt-editor-row:last-child {
text-align: right;
}
.dt-editor-label {
width: 25%;
text-align: right;
padding: 0 15px;
}
.dt-editor-label, .dt-editor-input {
display: inline-block;
}
.dt-editor-input {
padding: 4px 6px;
border: 1px solid #ccc;
width: 100%;
box-sizing: border-box;
margin: -5px 0;
font-size: inherit;
font-family: inherit;
font-weight: inherit;
color: inherit;
}
.dt-editor-row .dt-editor-input {
margin: 0;
width: 75%;
}
.dt-editor-save {
background-color: #27ae60;
border: 1px solid #27ae60;
padding: 6px 12px;
font-size: inherit;
font-family: inherit;
font-weight: inherit;
color: #fff;
cursor: pointer;
border-radius: 3px;
}
.dt-editor-save:hover {
background-color: #2cc36b;
border-color: #2cc36b;
}
/* ContextMenu */
.dt-editor-wrapper {
position: absolute;
}
.dt-editor-menu {
background: #fff none repeat scroll 0 0;
border-radius: 3px;
margin: 0;
min-width: 220px;
padding: 5px 0;
box-shadow: 0px 0px 10px 2px #aaa;
}
.dt-editor-menu li {
list-style: none;
}
.dt-editor-menu a {
box-sizing: border-box;
color: inherit;
display: block;
padding: 5px 15px;
text-decoration: none;
width: 100%;
}
.dt-editor-menu a:hover {
background-color: #ddd;
}
.dt-editor-separator {
border-bottom: 1px solid #aaa;
margin: 5px 0;
}
@-webkit-keyframes fadeIn {
from {
opacity: 0;
}
to {
opacity: 1;
}
}
@keyframes fadeIn {
from {
opacity: 0;
}
to {
opacity: 1;
}
}
@-webkit-keyframes slideIn {
from {
opacity: 0;
-webkit-transform: translate3d(0, -10%, 0);
transform: translate3d(0, -10%, 0);
}
to {
opacity: 1;
-webkit-transform: translate3d(0, 0%, 0);
transform: translate3d(0, 0%, 0);
}
}
@keyframes slideIn {
from {
opacity: 0;
-webkit-transform: translate3d(0, -10%, 0);
transform: translate3d(0, -10%, 0);
}
to {
opacity: 1;
-webkit-transform: translate3d(0, 0%, 0);
transform: translate3d(0, 0%, 0);
}
}