solidcrud 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/LICENSE +21 -0
- data/README.md +1285 -0
- data/app/assets/javascripts/controllers/dashboard_controller.js +96 -0
- data/app/assets/javascripts/controllers/modal_controller.js +217 -0
- data/app/assets/javascripts/controllers/navigation_controller.js +117 -0
- data/app/assets/javascripts/controllers/notification_controller.js +85 -0
- data/app/assets/javascripts/controllers/search_controller.js +189 -0
- data/app/assets/javascripts/controllers/table_controller.js +272 -0
- data/app/assets/javascripts/solidcrud/application.js +9475 -0
- data/app/assets/stylesheets/solidcrud/_components.scss +267 -0
- data/app/assets/stylesheets/solidcrud/_forms.scss +69 -0
- data/app/assets/stylesheets/solidcrud/_layout.scss +149 -0
- data/app/assets/stylesheets/solidcrud/_tables.scss +90 -0
- data/app/assets/stylesheets/solidcrud/_variables.scss +21 -0
- data/app/assets/stylesheets/solidcrud/application.css +10 -0
- data/app/assets/stylesheets/solidcrud/application.css.map +1 -0
- data/app/assets/stylesheets/solidcrud/application.scss +10 -0
- data/app/assets/stylesheets/solidcrud/temp.css.map +1 -0
- data/app/assets/stylesheets/solidcrud/temp2.css.map +1 -0
- data/app/assets/stylesheets/solidcrud/webfonts/fa-brands-400.ttf +0 -0
- data/app/assets/stylesheets/solidcrud/webfonts/fa-brands-400.woff2 +0 -0
- data/app/assets/stylesheets/solidcrud/webfonts/fa-regular-400.ttf +0 -0
- data/app/assets/stylesheets/solidcrud/webfonts/fa-regular-400.woff2 +0 -0
- data/app/assets/stylesheets/solidcrud/webfonts/fa-solid-900.ttf +0 -0
- data/app/assets/stylesheets/solidcrud/webfonts/fa-solid-900.woff2 +0 -0
- data/app/assets/stylesheets/solidcrud/webfonts/fa-v4compatibility.ttf +0 -0
- data/app/assets/stylesheets/solidcrud/webfonts/fa-v4compatibility.woff2 +0 -0
- data/app/assets/stylesheets/webfonts/fa-brands-400.ttf +0 -0
- data/app/assets/stylesheets/webfonts/fa-brands-400.woff2 +0 -0
- data/app/assets/stylesheets/webfonts/fa-regular-400.ttf +0 -0
- data/app/assets/stylesheets/webfonts/fa-regular-400.woff2 +0 -0
- data/app/assets/stylesheets/webfonts/fa-solid-900.ttf +0 -0
- data/app/assets/stylesheets/webfonts/fa-solid-900.woff2 +0 -0
- data/app/assets/stylesheets/webfonts/fa-v4compatibility.ttf +0 -0
- data/app/assets/stylesheets/webfonts/fa-v4compatibility.woff2 +0 -0
- data/app/controllers/solidcrud/admin_controller.rb +215 -0
- data/app/controllers/solidcrud/application_controller.rb +19 -0
- data/app/controllers/solidcrud/assets_controller.rb +59 -0
- data/app/controllers/solidcrud/sessions_controller.rb +84 -0
- data/app/helpers/solidcrud/application_helper.rb +153 -0
- data/app/javascript/solidcrud/application.js +14 -0
- data/app/javascript/solidcrud/controllers/crud_controller.js +64 -0
- data/app/javascript/solidcrud/controllers/index.js +33 -0
- data/app/views/layouts/solidcrud/application.html.erb +70 -0
- data/app/views/solidcrud/admin/edit.html.erb +294 -0
- data/app/views/solidcrud/admin/index.html.erb +128 -0
- data/app/views/solidcrud/admin/model.html.erb +353 -0
- data/app/views/solidcrud/admin/new.html.erb +275 -0
- data/app/views/solidcrud/admin/shared/_dashboard_stats.html.erb +49 -0
- data/app/views/solidcrud/admin/shared/_edit_form_sidebar.html.erb +9 -0
- data/app/views/solidcrud/admin/shared/_flash_messages.html.erb +27 -0
- data/app/views/solidcrud/admin/shared/_full_sidebar.html.erb +56 -0
- data/app/views/solidcrud/admin/shared/_modal.html.erb +45 -0
- data/app/views/solidcrud/admin/shared/_new_form_sidebar.html.erb +6 -0
- data/app/views/solidcrud/admin/shared/_record_row.html.erb +35 -0
- data/app/views/solidcrud/admin/shared/_records_table.html.erb +85 -0
- data/app/views/solidcrud/sessions/new.html.erb +262 -0
- data/config/routes.rb +24 -0
- data/lib/generators/solidcrud/install/install_generator.rb +21 -0
- data/lib/generators/solidcrud/install/templates/INSTALL.md +80 -0
- data/lib/generators/solidcrud/install/templates/solidcrud.rb +31 -0
- data/lib/generators/solidcrud/install_generator.rb +17 -0
- data/lib/generators/solidcrud/templates/solidcrud.rb +4 -0
- data/lib/solidcrud/authentication.rb +143 -0
- data/lib/solidcrud/configuration.rb +64 -0
- data/lib/solidcrud/engine.rb +49 -0
- data/lib/solidcrud/version.rb +5 -0
- data/lib/solidcrud.rb +10 -0
- metadata +177 -0
|
@@ -0,0 +1,267 @@
|
|
|
1
|
+
/* SolidCRUD Custom Styles */
|
|
2
|
+
.sortable-header:hover {
|
|
3
|
+
background-color: rgba(0, 0, 0, 0.02);
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
.list-group-item-action:hover {
|
|
7
|
+
transform: translateX(2px);
|
|
8
|
+
transition: transform 0.2s ease;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.card {
|
|
12
|
+
border: 1px solid rgba(0, 0, 0, 0.08);
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.navbar-brand {
|
|
16
|
+
font-weight: 700 !important;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.table-responsive {
|
|
20
|
+
border-radius: 0.375rem;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.badge {
|
|
24
|
+
font-size: 0.75rem;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.btn-group-sm > .btn {
|
|
28
|
+
padding: 0.25rem 0.5rem;
|
|
29
|
+
font-size: 0.875rem;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
.form-check-input:checked {
|
|
33
|
+
background-color: #0d6efd;
|
|
34
|
+
border-color: #0d6efd;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.pagination-sm .page-link {
|
|
38
|
+
padding: 0.25rem 0.5rem;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
.text-truncate-custom {
|
|
42
|
+
max-width: 200px;
|
|
43
|
+
white-space: nowrap;
|
|
44
|
+
overflow: hidden;
|
|
45
|
+
text-overflow: ellipsis;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
@media (max-width: 768px) {
|
|
49
|
+
.btn-group-sm {
|
|
50
|
+
flex-direction: column;
|
|
51
|
+
}
|
|
52
|
+
.table-responsive {
|
|
53
|
+
font-size: 0.875rem;
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
.glass {
|
|
58
|
+
background: rgba(255, 255, 255, 0.25);
|
|
59
|
+
backdrop-filter: blur(10px);
|
|
60
|
+
border: 1px solid rgba(255, 255, 255, 0.18);
|
|
61
|
+
}
|
|
62
|
+
.dark-glass {
|
|
63
|
+
background: rgba(0, 0, 0, 0.25);
|
|
64
|
+
backdrop-filter: blur(10px);
|
|
65
|
+
border: 1px solid rgba(255, 255, 255, 0.1);
|
|
66
|
+
}
|
|
67
|
+
.column-hidden {
|
|
68
|
+
display: none !important;
|
|
69
|
+
}
|
|
70
|
+
/* Icon styles */
|
|
71
|
+
.icon-cubes { color: #6b7280; font-weight: normal; }
|
|
72
|
+
.icon-list, .icon-logout { margin-right: 0.5rem; color: #6b7280; }
|
|
73
|
+
.icon-check { color: #10b981; }
|
|
74
|
+
.icon-error { color: #ef4444; }
|
|
75
|
+
.icon-notification { font-size: 1.2em; color: #6b7280; }
|
|
76
|
+
.icon-close { font-size: 1.2em; color: #6b7280; }
|
|
77
|
+
|
|
78
|
+
// SolidCRUD Component Styles
|
|
79
|
+
.btn {
|
|
80
|
+
display: inline-block;
|
|
81
|
+
font-weight: 400;
|
|
82
|
+
text-align: center;
|
|
83
|
+
vertical-align: middle;
|
|
84
|
+
user-select: none;
|
|
85
|
+
border: 1px solid transparent;
|
|
86
|
+
padding: 0.375rem 0.75rem;
|
|
87
|
+
font-size: 1rem;
|
|
88
|
+
line-height: 1.5;
|
|
89
|
+
border-radius: $border-radius;
|
|
90
|
+
transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out;
|
|
91
|
+
|
|
92
|
+
&.btn-primary {
|
|
93
|
+
color: #fff;
|
|
94
|
+
background-color: $primary-color;
|
|
95
|
+
border-color: $primary-color;
|
|
96
|
+
|
|
97
|
+
&:hover {
|
|
98
|
+
background-color: darken($primary-color, 7.5%);
|
|
99
|
+
border-color: darken($primary-color, 10%);
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
&.btn-danger {
|
|
104
|
+
color: #fff;
|
|
105
|
+
background-color: $danger-color;
|
|
106
|
+
border-color: $danger-color;
|
|
107
|
+
|
|
108
|
+
&:hover {
|
|
109
|
+
background-color: darken($danger-color, 7.5%);
|
|
110
|
+
border-color: darken($danger-color, 10%);
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
&.btn-secondary {
|
|
115
|
+
color: #fff;
|
|
116
|
+
background-color: $secondary-color;
|
|
117
|
+
border-color: $secondary-color;
|
|
118
|
+
|
|
119
|
+
&:hover {
|
|
120
|
+
background-color: darken($secondary-color, 7.5%);
|
|
121
|
+
border-color: darken($secondary-color, 10%);
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
&:disabled {
|
|
126
|
+
opacity: 0.65;
|
|
127
|
+
pointer-events: none;
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
.alert {
|
|
132
|
+
padding: 0.75rem 1rem;
|
|
133
|
+
margin-bottom: 1rem;
|
|
134
|
+
border: 1px solid transparent;
|
|
135
|
+
border-radius: $border-radius;
|
|
136
|
+
|
|
137
|
+
&.alert-success {
|
|
138
|
+
color: darken($success-color, 20%);
|
|
139
|
+
background-color: lighten($success-color, 40%);
|
|
140
|
+
border-color: lighten($success-color, 30%);
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
&.alert-danger {
|
|
144
|
+
color: darken($danger-color, 20%);
|
|
145
|
+
background-color: lighten($danger-color, 40%);
|
|
146
|
+
border-color: lighten($danger-color, 30%);
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
&.alert-warning {
|
|
150
|
+
color: darken($warning-color, 10%);
|
|
151
|
+
background-color: lighten($warning-color, 35%);
|
|
152
|
+
border-color: lighten($warning-color, 25%);
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
&.alert-info {
|
|
156
|
+
color: darken($info-color, 20%);
|
|
157
|
+
background-color: lighten($info-color, 40%);
|
|
158
|
+
border-color: lighten($info-color, 30%);
|
|
159
|
+
}
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
.badge {
|
|
163
|
+
display: inline-block;
|
|
164
|
+
padding: 0.35em 0.65em;
|
|
165
|
+
font-size: 0.75em;
|
|
166
|
+
font-weight: 700;
|
|
167
|
+
line-height: 1;
|
|
168
|
+
text-align: center;
|
|
169
|
+
white-space: nowrap;
|
|
170
|
+
vertical-align: baseline;
|
|
171
|
+
border-radius: 0.375rem;
|
|
172
|
+
|
|
173
|
+
&.badge-primary {
|
|
174
|
+
color: #fff;
|
|
175
|
+
background-color: $primary-color;
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
&.badge-secondary {
|
|
179
|
+
color: #fff;
|
|
180
|
+
background-color: $secondary-color;
|
|
181
|
+
}
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
.notification-container {
|
|
185
|
+
position: fixed;
|
|
186
|
+
top: 1rem;
|
|
187
|
+
right: 1rem;
|
|
188
|
+
z-index: 50;
|
|
189
|
+
max-width: 400px;
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
.notification {
|
|
193
|
+
margin-bottom: 0.5rem;
|
|
194
|
+
animation: slideIn 0.3s ease-out;
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
@keyframes slideIn {
|
|
198
|
+
from {
|
|
199
|
+
transform: translateX(100%);
|
|
200
|
+
opacity: 0;
|
|
201
|
+
}
|
|
202
|
+
to {
|
|
203
|
+
transform: translateX(0);
|
|
204
|
+
opacity: 1;
|
|
205
|
+
}
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
.alert {
|
|
209
|
+
padding: 0.75rem 1rem;
|
|
210
|
+
margin-bottom: 1rem;
|
|
211
|
+
border: 1px solid transparent;
|
|
212
|
+
border-radius: $border-radius;
|
|
213
|
+
display: flex;
|
|
214
|
+
align-items: flex-start;
|
|
215
|
+
gap: 0.75rem;
|
|
216
|
+
|
|
217
|
+
&.alert-success {
|
|
218
|
+
color: darken($success-color, 20%);
|
|
219
|
+
background-color: lighten($success-color, 40%);
|
|
220
|
+
border-color: lighten($success-color, 30%);
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
&.alert-danger {
|
|
224
|
+
color: darken($danger-color, 20%);
|
|
225
|
+
background-color: lighten($danger-color, 40%);
|
|
226
|
+
border-color: lighten($danger-color, 30%);
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
&.alert-warning {
|
|
230
|
+
color: darken($warning-color, 10%);
|
|
231
|
+
background-color: lighten($warning-color, 35%);
|
|
232
|
+
border-color: lighten($warning-color, 25%);
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
&.alert-info {
|
|
236
|
+
color: darken($info-color, 20%);
|
|
237
|
+
background-color: lighten($info-color, 40%);
|
|
238
|
+
border-color: lighten($info-color, 30%);
|
|
239
|
+
}
|
|
240
|
+
|
|
241
|
+
.alert-icon {
|
|
242
|
+
flex-shrink: 0;
|
|
243
|
+
}
|
|
244
|
+
|
|
245
|
+
.alert-content {
|
|
246
|
+
flex: 1;
|
|
247
|
+
}
|
|
248
|
+
|
|
249
|
+
.alert-message {
|
|
250
|
+
margin: 0;
|
|
251
|
+
font-weight: 500;
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
.alert-close {
|
|
255
|
+
flex-shrink: 0;
|
|
256
|
+
background: none;
|
|
257
|
+
border: none;
|
|
258
|
+
cursor: pointer;
|
|
259
|
+
padding: 0.25rem;
|
|
260
|
+
opacity: 0.7;
|
|
261
|
+
transition: opacity 0.2s;
|
|
262
|
+
|
|
263
|
+
&:hover {
|
|
264
|
+
opacity: 1;
|
|
265
|
+
}
|
|
266
|
+
}
|
|
267
|
+
}
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
// SolidCRUD Form Styles
|
|
2
|
+
.form-group {
|
|
3
|
+
margin-bottom: 1rem;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
.form-label {
|
|
7
|
+
margin-bottom: 0.5rem;
|
|
8
|
+
font-weight: 500;
|
|
9
|
+
color: $dark-color;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
.form-control {
|
|
13
|
+
display: block;
|
|
14
|
+
width: 100%;
|
|
15
|
+
padding: 0.375rem 0.75rem;
|
|
16
|
+
font-size: 1rem;
|
|
17
|
+
line-height: 1.5;
|
|
18
|
+
color: $dark-color;
|
|
19
|
+
background-color: #fff;
|
|
20
|
+
background-clip: padding-box;
|
|
21
|
+
border: 1px solid #ced4da;
|
|
22
|
+
border-radius: $border-radius;
|
|
23
|
+
transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
|
|
24
|
+
|
|
25
|
+
&:focus {
|
|
26
|
+
color: $dark-color;
|
|
27
|
+
background-color: #fff;
|
|
28
|
+
border-color: lighten($primary-color, 25%);
|
|
29
|
+
outline: 0;
|
|
30
|
+
box-shadow: 0 0 0 0.2rem rgba($primary-color, 0.25);
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
&.is-invalid {
|
|
34
|
+
border-color: $danger-color;
|
|
35
|
+
|
|
36
|
+
&:focus {
|
|
37
|
+
border-color: $danger-color;
|
|
38
|
+
box-shadow: 0 0 0 0.2rem rgba($danger-color, 0.25);
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
.form-text {
|
|
44
|
+
margin-top: 0.25rem;
|
|
45
|
+
font-size: 0.875rem;
|
|
46
|
+
color: $secondary-color;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
.invalid-feedback {
|
|
50
|
+
width: 100%;
|
|
51
|
+
margin-top: 0.25rem;
|
|
52
|
+
font-size: 0.875rem;
|
|
53
|
+
color: $danger-color;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
.checkbox,
|
|
57
|
+
.radio {
|
|
58
|
+
position: relative;
|
|
59
|
+
display: block;
|
|
60
|
+
margin-bottom: 0.5rem;
|
|
61
|
+
|
|
62
|
+
input {
|
|
63
|
+
margin-right: 0.5rem;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
label {
|
|
67
|
+
margin-bottom: 0;
|
|
68
|
+
}
|
|
69
|
+
}
|
|
@@ -0,0 +1,149 @@
|
|
|
1
|
+
// SolidCRUD Layout Styles
|
|
2
|
+
.solidcrud-body {
|
|
3
|
+
font-family: $font-family;
|
|
4
|
+
background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
|
|
5
|
+
min-height: 100vh;
|
|
6
|
+
margin: 0;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
.solidcrud-container {
|
|
10
|
+
max-width: 1200px;
|
|
11
|
+
margin: 0 auto;
|
|
12
|
+
padding: 0 15px;
|
|
13
|
+
|
|
14
|
+
// Ensure proper centering on all screen sizes
|
|
15
|
+
@media (max-width: 768px) {
|
|
16
|
+
padding: 0 10px;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.solidcrud-header {
|
|
21
|
+
background: rgba(255, 255, 255, 0.9);
|
|
22
|
+
backdrop-filter: blur(10px);
|
|
23
|
+
border-bottom: 1px solid rgba(0, 0, 0, 0.08);
|
|
24
|
+
position: sticky;
|
|
25
|
+
top: 0;
|
|
26
|
+
z-index: 50;
|
|
27
|
+
|
|
28
|
+
// Ensure header is always visible
|
|
29
|
+
@media (max-width: 768px) {
|
|
30
|
+
position: relative;
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.navbar {
|
|
35
|
+
max-width: 1200px;
|
|
36
|
+
margin: 0 auto;
|
|
37
|
+
padding: 1rem;
|
|
38
|
+
display: flex;
|
|
39
|
+
justify-content: space-between;
|
|
40
|
+
align-items: center;
|
|
41
|
+
|
|
42
|
+
// Responsive navbar for mobile
|
|
43
|
+
@media (max-width: 768px) {
|
|
44
|
+
flex-direction: column;
|
|
45
|
+
gap: 1rem;
|
|
46
|
+
align-items: stretch;
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
.navbar-brand {
|
|
51
|
+
display: flex;
|
|
52
|
+
align-items: center;
|
|
53
|
+
gap: 0.75rem;
|
|
54
|
+
font-size: 1.25rem;
|
|
55
|
+
font-weight: 700;
|
|
56
|
+
color: $primary-color;
|
|
57
|
+
text-decoration: none;
|
|
58
|
+
|
|
59
|
+
// Responsive brand
|
|
60
|
+
@media (max-width: 768px) {
|
|
61
|
+
justify-content: center;
|
|
62
|
+
font-size: 1.125rem;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
i, span {
|
|
66
|
+
font-size: 1.5rem;
|
|
67
|
+
|
|
68
|
+
@media (max-width: 768px) {
|
|
69
|
+
font-size: 1.25rem;
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
.navbar-nav {
|
|
75
|
+
display: flex;
|
|
76
|
+
align-items: center;
|
|
77
|
+
gap: 1.5rem;
|
|
78
|
+
|
|
79
|
+
// Responsive navbar nav
|
|
80
|
+
@media (max-width: 768px) {
|
|
81
|
+
justify-content: center;
|
|
82
|
+
flex-wrap: wrap;
|
|
83
|
+
gap: 1rem;
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
.nav-link {
|
|
88
|
+
display: flex;
|
|
89
|
+
align-items: center;
|
|
90
|
+
gap: 0.5rem;
|
|
91
|
+
color: $dark-color;
|
|
92
|
+
text-decoration: none;
|
|
93
|
+
padding: 0.5rem 1rem;
|
|
94
|
+
border-radius: $border-radius;
|
|
95
|
+
font-weight: 500;
|
|
96
|
+
transition: all 0.2s ease;
|
|
97
|
+
|
|
98
|
+
&:hover {
|
|
99
|
+
color: $primary-color;
|
|
100
|
+
background-color: rgba(0, 0, 0, 0.05);
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
&.active {
|
|
104
|
+
color: $primary-color;
|
|
105
|
+
font-weight: 600;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
// Responsive nav links
|
|
109
|
+
@media (max-width: 768px) {
|
|
110
|
+
justify-content: center;
|
|
111
|
+
padding: 0.75rem 1rem;
|
|
112
|
+
min-width: 120px;
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
.solidcrud-main {
|
|
117
|
+
padding: 2rem 0;
|
|
118
|
+
min-height: calc(100vh - 200px);
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
.solidcrud-sidebar {
|
|
122
|
+
background: $light-color;
|
|
123
|
+
border: 1px solid #dee2e6;
|
|
124
|
+
border-radius: $border-radius;
|
|
125
|
+
padding: 1rem;
|
|
126
|
+
|
|
127
|
+
.nav-link {
|
|
128
|
+
color: $dark-color;
|
|
129
|
+
padding: 0.5rem 0;
|
|
130
|
+
|
|
131
|
+
&:hover {
|
|
132
|
+
color: $primary-color;
|
|
133
|
+
text-decoration: none;
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
&.active {
|
|
137
|
+
color: $primary-color;
|
|
138
|
+
font-weight: 600;
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
.solidcrud-content {
|
|
144
|
+
background: white;
|
|
145
|
+
border: 1px solid #dee2e6;
|
|
146
|
+
border-radius: $border-radius;
|
|
147
|
+
padding: 2rem;
|
|
148
|
+
box-shadow: $box-shadow;
|
|
149
|
+
}
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
// SolidCRUD Table Styles
|
|
2
|
+
.table {
|
|
3
|
+
width: 100%;
|
|
4
|
+
margin-bottom: 1rem;
|
|
5
|
+
color: $dark-color;
|
|
6
|
+
background-color: transparent;
|
|
7
|
+
|
|
8
|
+
th,
|
|
9
|
+
td {
|
|
10
|
+
padding: 0.75rem;
|
|
11
|
+
vertical-align: top;
|
|
12
|
+
border-top: 1px solid #dee2e6;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
thead th {
|
|
16
|
+
vertical-align: bottom;
|
|
17
|
+
border-bottom: 2px solid #dee2e6;
|
|
18
|
+
background-color: $light-color;
|
|
19
|
+
font-weight: 600;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
tbody {
|
|
23
|
+
tr {
|
|
24
|
+
&:hover {
|
|
25
|
+
background-color: rgba(0, 0, 0, 0.075);
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.table-actions {
|
|
31
|
+
white-space: nowrap;
|
|
32
|
+
width: 1%;
|
|
33
|
+
|
|
34
|
+
.btn {
|
|
35
|
+
margin-right: 0.25rem;
|
|
36
|
+
|
|
37
|
+
&:last-child {
|
|
38
|
+
margin-right: 0;
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
.table-responsive {
|
|
45
|
+
display: block;
|
|
46
|
+
width: 100%;
|
|
47
|
+
overflow-x: auto;
|
|
48
|
+
-webkit-overflow-scrolling: touch;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
// DataTables integration
|
|
52
|
+
.dataTables_wrapper {
|
|
53
|
+
.dataTables_length,
|
|
54
|
+
.dataTables_filter,
|
|
55
|
+
.dataTables_info,
|
|
56
|
+
.dataTables_paginate {
|
|
57
|
+
margin-bottom: 1rem;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
.dataTables_filter {
|
|
61
|
+
text-align: right;
|
|
62
|
+
|
|
63
|
+
input {
|
|
64
|
+
margin-left: 0.5rem;
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
// Empty state
|
|
70
|
+
.table-empty {
|
|
71
|
+
text-align: center;
|
|
72
|
+
padding: 3rem 1rem;
|
|
73
|
+
color: $secondary-color;
|
|
74
|
+
|
|
75
|
+
.empty-icon {
|
|
76
|
+
font-size: 3rem;
|
|
77
|
+
margin-bottom: 1rem;
|
|
78
|
+
opacity: 0.5;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
.empty-title {
|
|
82
|
+
font-size: 1.25rem;
|
|
83
|
+
font-weight: 600;
|
|
84
|
+
margin-bottom: 0.5rem;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
.empty-text {
|
|
88
|
+
font-size: 1rem;
|
|
89
|
+
}
|
|
90
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
// SolidCRUD Variables
|
|
2
|
+
$primary-color: #007bff;
|
|
3
|
+
$secondary-color: #6c757d;
|
|
4
|
+
$success-color: #28a745;
|
|
5
|
+
$danger-color: #dc3545;
|
|
6
|
+
$warning-color: #ffc107;
|
|
7
|
+
$info-color: #17a2b8;
|
|
8
|
+
$light-color: #f8f9fa;
|
|
9
|
+
$dark-color: #343a40;
|
|
10
|
+
|
|
11
|
+
$font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
|
|
12
|
+
$border-radius: 0.375rem;
|
|
13
|
+
$box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
|
|
14
|
+
|
|
15
|
+
$grid-breakpoints: (
|
|
16
|
+
xs: 0,
|
|
17
|
+
sm: 576px,
|
|
18
|
+
md: 768px,
|
|
19
|
+
lg: 992px,
|
|
20
|
+
xl: 1200px
|
|
21
|
+
);
|