| 1 |
/* Data Table Builder admin styles */ |
| 2 |
|
| 3 |
.kng-table-tabs .ka-tab { |
| 4 |
display: inline-flex; |
| 5 |
align-items: center; |
| 6 |
gap: 6px; |
| 7 |
text-decoration: none; |
| 8 |
} |
| 9 |
|
| 10 |
.ka-alert { |
| 11 |
display: flex; |
| 12 |
align-items: center; |
| 13 |
gap: 10px; |
| 14 |
padding: 14px 18px; |
| 15 |
border-radius: 14px; |
| 16 |
margin-bottom: 24px; |
| 17 |
font-size: 14px; |
| 18 |
font-weight: 500; |
| 19 |
background: rgba(124, 58, 237, 0.12); |
| 20 |
color: #7c3aed; |
| 21 |
} |
| 22 |
|
| 23 |
.ka-alert-error { |
| 24 |
background: rgba(255, 59, 48, 0.12); |
| 25 |
color: #ff3b30; |
| 26 |
} |
| 27 |
|
| 28 |
.kng-table-editor-actions { |
| 29 |
display: flex; |
| 30 |
align-items: center; |
| 31 |
justify-content: space-between; |
| 32 |
gap: 20px; |
| 33 |
margin-bottom: 24px; |
| 34 |
} |
| 35 |
|
| 36 |
.kng-table-editor-actions-left { |
| 37 |
flex: 1; |
| 38 |
} |
| 39 |
|
| 40 |
.kng-table-title-input { |
| 41 |
width: 100%; |
| 42 |
max-width: 420px; |
| 43 |
padding: 12px 16px; |
| 44 |
border-radius: 12px; |
| 45 |
border: 1px solid rgba(0, 0, 0, 0.12); |
| 46 |
font-size: 16px; |
| 47 |
background: #fff; |
| 48 |
} |
| 49 |
|
| 50 |
.kng-table-editor-actions-right { |
| 51 |
display: flex; |
| 52 |
align-items: center; |
| 53 |
gap: 12px; |
| 54 |
} |
| 55 |
|
| 56 |
.kng-table-editor { |
| 57 |
display: grid; |
| 58 |
grid-template-columns: 280px minmax(0, 1fr) 260px; |
| 59 |
gap: 24px; |
| 60 |
align-items: start; |
| 61 |
} |
| 62 |
|
| 63 |
.kng-table-sidebar, |
| 64 |
.kng-table-inspector { |
| 65 |
display: flex; |
| 66 |
flex-direction: column; |
| 67 |
gap: 16px; |
| 68 |
} |
| 69 |
|
| 70 |
.kng-table-main { |
| 71 |
display: flex; |
| 72 |
flex-direction: column; |
| 73 |
gap: 20px; |
| 74 |
} |
| 75 |
|
| 76 |
.kng-table-grid-wrap { |
| 77 |
border-radius: 18px; |
| 78 |
border: 1px solid rgba(0, 0, 0, 0.08); |
| 79 |
overflow: auto; |
| 80 |
background: #fff; |
| 81 |
box-shadow: 0 2px 20px rgba(0, 0, 0, 0.04); |
| 82 |
} |
| 83 |
|
| 84 |
.kng-table-grid { |
| 85 |
width: 100%; |
| 86 |
border-collapse: collapse; |
| 87 |
min-width: 520px; |
| 88 |
} |
| 89 |
|
| 90 |
.kng-table-grid th, |
| 91 |
.kng-table-grid td { |
| 92 |
padding: 12px 14px; |
| 93 |
border-bottom: 1px solid rgba(0, 0, 0, 0.06); |
| 94 |
font-size: 14px; |
| 95 |
} |
| 96 |
|
| 97 |
.kng-table-grid th { |
| 98 |
background: rgba(0, 0, 0, 0.04); |
| 99 |
font-weight: 600; |
| 100 |
} |
| 101 |
|
| 102 |
.kng-table-grid td[contenteditable="true"] { |
| 103 |
background: #fff; |
| 104 |
cursor: text; |
| 105 |
} |
| 106 |
|
| 107 |
.kng-table-grid td.kng-selected, |
| 108 |
.kng-table-grid th.kng-selected { |
| 109 |
outline: 2px solid #7c3aed; |
| 110 |
outline-offset: -2px; |
| 111 |
} |
| 112 |
|
| 113 |
.kng-column-list { |
| 114 |
display: flex; |
| 115 |
flex-direction: column; |
| 116 |
gap: 12px; |
| 117 |
} |
| 118 |
|
| 119 |
.kng-column-item { |
| 120 |
display: grid; |
| 121 |
grid-template-columns: 1fr auto; |
| 122 |
gap: 8px; |
| 123 |
align-items: center; |
| 124 |
} |
| 125 |
|
| 126 |
.kng-column-item input, |
| 127 |
.kng-column-item select { |
| 128 |
width: 100%; |
| 129 |
} |
| 130 |
|
| 131 |
.kng-column-item label { |
| 132 |
display: flex; |
| 133 |
align-items: center; |
| 134 |
gap: 6px; |
| 135 |
font-size: 12px; |
| 136 |
color: #6e6e73; |
| 137 |
} |
| 138 |
|
| 139 |
.kng-field { |
| 140 |
display: flex; |
| 141 |
flex-direction: column; |
| 142 |
gap: 6px; |
| 143 |
margin-bottom: 12px; |
| 144 |
} |
| 145 |
|
| 146 |
.kng-table-import { |
| 147 |
border-radius: 18px; |
| 148 |
border: 1px solid rgba(0, 0, 0, 0.08); |
| 149 |
padding: 16px; |
| 150 |
background: #fff; |
| 151 |
} |
| 152 |
|
| 153 |
.kng-table-import-header { |
| 154 |
display: flex; |
| 155 |
align-items: center; |
| 156 |
justify-content: space-between; |
| 157 |
margin-bottom: 12px; |
| 158 |
} |
| 159 |
|
| 160 |
.kng-table-import-text { |
| 161 |
width: 100%; |
| 162 |
border-radius: 12px; |
| 163 |
border: 1px solid rgba(0, 0, 0, 0.12); |
| 164 |
padding: 12px; |
| 165 |
font-family: monospace; |
| 166 |
} |
| 167 |
|
| 168 |
.kng-template-grid { |
| 169 |
display: grid; |
| 170 |
grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); |
| 171 |
gap: 20px; |
| 172 |
} |
| 173 |
|
| 174 |
.kng-template-card { |
| 175 |
background: #fff; |
| 176 |
border-radius: 18px; |
| 177 |
border: 1px solid rgba(0, 0, 0, 0.08); |
| 178 |
padding: 16px; |
| 179 |
display: flex; |
| 180 |
flex-direction: column; |
| 181 |
gap: 14px; |
| 182 |
box-shadow: 0 6px 20px rgba(0, 0, 0, 0.04); |
| 183 |
} |
| 184 |
|
| 185 |
.kng-template-preview { |
| 186 |
background: linear-gradient(135deg, rgba(124, 58, 237, 0.08), rgba(236, 72, 153, 0.08)); |
| 187 |
border-radius: 14px; |
| 188 |
padding: 16px; |
| 189 |
display: grid; |
| 190 |
gap: 8px; |
| 191 |
} |
| 192 |
|
| 193 |
.kng-template-line { |
| 194 |
height: 8px; |
| 195 |
border-radius: 999px; |
| 196 |
background: rgba(0, 0, 0, 0.15); |
| 197 |
} |
| 198 |
|
| 199 |
.kng-table-actions { |
| 200 |
display: flex; |
| 201 |
flex-wrap: wrap; |
| 202 |
gap: 8px; |
| 203 |
} |
| 204 |
|
| 205 |
.kng-table-actions a { |
| 206 |
color: #7c3aed; |
| 207 |
text-decoration: none; |
| 208 |
font-size: 13px; |
| 209 |
} |
| 210 |
|
| 211 |
.kng-table-actions a:hover { |
| 212 |
text-decoration: underline; |
| 213 |
} |
| 214 |
|
| 215 |
body.ka-v3-dark .kng-table-title-input, |
| 216 |
body.ka-v3-dark .kng-table-grid td[contenteditable="true"], |
| 217 |
body.ka-v3-dark .kng-table-grid-wrap, |
| 218 |
body.ka-v3-dark .kng-table-import, |
| 219 |
body.ka-v3-dark .kng-template-card, |
| 220 |
body.ka-v3-dark .kng-table-import-text { |
| 221 |
background: #0f0f12; |
| 222 |
border-color: rgba(255, 255, 255, 0.08); |
| 223 |
color: #f5f5f7; |
| 224 |
} |
| 225 |
|
| 226 |
body.ka-v3-dark .kng-table-grid th { |
| 227 |
background: rgba(255, 255, 255, 0.08); |
| 228 |
} |
| 229 |
|
| 230 |
body.ka-v3-dark .kng-table-grid th, |
| 231 |
body.ka-v3-dark .kng-table-grid td { |
| 232 |
border-bottom-color: rgba(255, 255, 255, 0.08); |
| 233 |
} |
| 234 |
|
| 235 |
body.ka-v3-dark .kng-column-item label, |
| 236 |
body.ka-v3-dark .kng-template-line { |
| 237 |
color: #a1a1a6; |
| 238 |
background: rgba(255, 255, 255, 0.2); |
| 239 |
} |
| 240 |
|
| 241 |
body.ka-v3-dark .ka-alert { |
| 242 |
background: rgba(124, 58, 237, 0.2); |
| 243 |
color: #c4b5fd; |
| 244 |
} |
| 245 |
|
| 246 |
body.ka-v3-dark .ka-alert-error { |
| 247 |
background: rgba(255, 69, 58, 0.2); |
| 248 |
color: #ff453a; |
| 249 |
} |
| 250 |
|
| 251 |
@media (max-width: 1200px) { |
| 252 |
.kng-table-editor { |
| 253 |
grid-template-columns: 1fr; |
| 254 |
} |
| 255 |
} |
| 256 |
|