cm-admin 0.2.0 → 0.4.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +12 -0
- data/.rspec +3 -0
- data/.travis.yml +6 -0
- data/Gemfile +7 -1
- data/Gemfile.lock +121 -0
- data/LICENSE.txt +21 -0
- data/README.md +8 -19
- data/app/assets/images/logo.png +0 -0
- data/{lib/generators/cm_admin/templates/assets/stylesheets → app/assets/stylesheets/cm_admin}/base/auth.scss +4 -6
- data/app/assets/stylesheets/cm_admin/base/common.scss +237 -0
- data/app/assets/stylesheets/cm_admin/base/filters.scss +200 -0
- data/{lib/generators/cm_admin/templates/assets/stylesheets → app/assets/stylesheets/cm_admin}/base/form.scss +83 -11
- data/app/assets/stylesheets/cm_admin/base/main-nav.scss +47 -0
- data/app/assets/stylesheets/cm_admin/base/navbar.scss +65 -0
- data/app/assets/stylesheets/cm_admin/base/quicksearch.scss +76 -0
- data/app/assets/stylesheets/cm_admin/base/scaffold.scss +96 -0
- data/app/assets/stylesheets/cm_admin/base/show.scss +76 -0
- data/app/assets/stylesheets/cm_admin/base/sidebar.scss +225 -0
- data/app/assets/stylesheets/cm_admin/base/table.scss +320 -0
- data/app/assets/stylesheets/cm_admin/base/tabs.scss +26 -0
- data/app/assets/stylesheets/cm_admin/cm_admin.css.scss +26 -0
- data/app/assets/stylesheets/cm_admin/components/_alerts.scss +101 -0
- data/app/assets/stylesheets/cm_admin/components/_buttons.scss +135 -0
- data/app/assets/stylesheets/cm_admin/components/_dropdown-popup.scss +153 -0
- data/app/assets/stylesheets/cm_admin/components/_input.scss +274 -0
- data/app/assets/stylesheets/cm_admin/components/_modal.scss +34 -0
- data/app/assets/stylesheets/cm_admin/components/_range.scss +31 -0
- data/app/assets/stylesheets/cm_admin/components/_status-tag.scss +68 -0
- data/app/assets/stylesheets/cm_admin/components/index.scss +7 -0
- data/app/assets/stylesheets/cm_admin/dependency/bootstrap.min.css +7 -0
- data/app/assets/stylesheets/cm_admin/helpers/_mixins.scss +20 -0
- data/app/assets/stylesheets/cm_admin/helpers/_variable.scss +87 -0
- data/app/assets/stylesheets/cm_admin/helpers/index.scss +2 -0
- data/app/controllers/cm_admin/application_controller.rb +11 -0
- data/app/controllers/cm_admin/exports_controller.rb +16 -0
- data/app/controllers/cm_admin/static_controller.rb +12 -0
- data/app/helpers/cm_admin/application_helper.rb +11 -0
- data/app/helpers/cm_admin/custom_helper.rb +4 -0
- data/app/javascript/packs/cm_admin/application.js +22 -0
- data/app/javascript/packs/cm_admin/filters.js +347 -0
- data/app/javascript/packs/cm_admin/quick_search.js +67 -0
- data/app/javascript/packs/cm_admin/scaffolds.js +43 -0
- data/app/javascript/stylesheets/cm_admin/application.scss +3 -0
- data/app/views/cm_admin/main/_associated_table.html.slim +60 -0
- data/app/views/cm_admin/main/_cm_pagy_nav.html.slim +23 -0
- data/app/views/cm_admin/main/_filters.html.slim +1 -0
- data/app/views/cm_admin/main/_nested_fields.html.slim +7 -0
- data/app/views/cm_admin/main/_nested_table_form.html.slim +6 -0
- data/app/views/cm_admin/main/_table.html.slim +60 -0
- data/app/views/cm_admin/main/_tabs.html.slim +5 -0
- data/app/views/cm_admin/main/_top_navbar.html.slim +25 -0
- data/app/views/cm_admin/main/associated_index.html.slim +6 -0
- data/app/views/cm_admin/main/associated_show.html.slim +6 -0
- data/app/views/cm_admin/main/dashboard.html.slim +1 -0
- data/app/views/cm_admin/main/edit.html.slim +19 -0
- data/app/views/cm_admin/main/index.html.slim +12 -0
- data/app/views/cm_admin/main/new.html.slim +22 -0
- data/app/views/cm_admin/main/show.html.slim +12 -0
- data/app/views/cm_admin/static/error_401.html.slim +4 -0
- data/app/views/layouts/_left_sidebar_nav.html.slim +34 -0
- data/app/views/layouts/_quick_links.html.slim +25 -0
- data/app/views/layouts/cm_admin.html.slim +41 -0
- data/app/views/layouts/static.html.slim +18 -0
- data/bin/webpack +18 -0
- data/bin/webpack-dev-server +18 -0
- data/cm_admin.gemspec +21 -31
- data/config/.DS_Store +0 -0
- data/config/initializers/active_record_extension.rb +9 -0
- data/config/routes.rb +19 -0
- data/config/webpack/development.js +5 -0
- data/config/webpack/environment.js +13 -0
- data/config/webpack/production.js +5 -0
- data/config/webpack/test.js +5 -0
- data/config/webpacker.yml +92 -0
- data/lib/cm_admin/constants.rb +33 -0
- data/lib/cm_admin/engine.rb +38 -0
- data/lib/cm_admin/model.rb +152 -0
- data/lib/cm_admin/models/action.rb +36 -0
- data/lib/cm_admin/models/actions/blocks.rb +25 -0
- data/lib/cm_admin/models/blocks.rb +19 -0
- data/lib/cm_admin/models/cm_show_section.rb +20 -0
- data/lib/cm_admin/models/column.rb +61 -0
- data/lib/cm_admin/models/controller_method.rb +75 -0
- data/lib/cm_admin/models/dsl_method.rb +122 -0
- data/lib/cm_admin/models/export.rb +54 -0
- data/lib/cm_admin/models/field.rb +15 -0
- data/lib/cm_admin/models/filter.rb +95 -0
- data/lib/cm_admin/models/form_field.rb +21 -0
- data/lib/cm_admin/models/tab.rb +13 -0
- data/lib/cm_admin/utils.rb +67 -0
- data/lib/cm_admin/version.rb +1 -1
- data/lib/cm_admin/view_helpers/column_field_helper.rb +29 -0
- data/lib/cm_admin/view_helpers/field_display_helper.rb +65 -0
- data/lib/cm_admin/view_helpers/filter_helper.rb +190 -0
- data/lib/cm_admin/view_helpers/form_field_helper.rb +33 -0
- data/lib/cm_admin/view_helpers/form_helper.rb +65 -0
- data/lib/cm_admin/view_helpers/manage_column_popup_helper.rb +75 -0
- data/lib/cm_admin/view_helpers/navigation_helper.rb +34 -0
- data/lib/cm_admin/view_helpers/page_info_helper.rb +57 -0
- data/lib/cm_admin/view_helpers.rb +74 -0
- data/lib/cm_admin.rb +33 -2
- data/lib/generators/cm_admin/install_generator.rb +3 -13
- data/lib/tasks/webpack_install.rake +63 -0
- data/package.json +23 -0
- data/postcss.config.js +12 -0
- data/tmp/cache/webpacker/last-compilation-digest-development +1 -0
- data/yarn.lock +6933 -0
- metadata +155 -46
- data/lib/generators/cm_admin/USAGE +0 -8
- data/lib/generators/cm_admin/templates/assets/images/cm.png +0 -0
- data/lib/generators/cm_admin/templates/assets/stylesheets/application.css.scss +0 -33
- data/lib/generators/cm_admin/templates/assets/stylesheets/base/_variable.scss +0 -14
- data/lib/generators/cm_admin/templates/assets/stylesheets/base/input-styles.scss +0 -72
- data/lib/generators/cm_admin/templates/assets/stylesheets/base/main-nav.scss +0 -79
- data/lib/generators/cm_admin/templates/assets/stylesheets/base/scaffold.scss +0 -95
- data/lib/generators/cm_admin/templates/assets/stylesheets/base/show.scss +0 -88
- data/lib/generators/cm_admin/templates/assets/stylesheets/base/sidebar.scss +0 -69
- data/lib/generators/cm_admin/templates/assets/stylesheets/base/table.scss +0 -246
- data/lib/generators/cm_admin/templates/layouts/_navbar.html.slim +0 -8
- data/lib/generators/cm_admin/templates/layouts/_side_navbar.html.slim +0 -12
- data/lib/generators/cm_admin/templates/layouts/application.html.slim +0 -20
- data/lib/generators/cm_admin/templates/layouts/initializer.rb +0 -2
- data/lib/generators/cm_admin/templates/views/_form.erb +0 -67
- data/lib/generators/cm_admin/templates/views/_table.erb +0 -22
- data/lib/generators/cm_admin/templates/views/edit.erb +0 -10
- data/lib/generators/cm_admin/templates/views/index.erb +0 -11
- data/lib/generators/cm_admin/templates/views/new.erb +0 -10
- data/lib/generators/cm_admin/templates/views/reset_password.erb +0 -12
- data/lib/generators/cm_admin/templates/views/show.erb +0 -18
- data/lib/generators/cm_admin/templates/views/sign_in.erb +0 -18
- data/lib/generators/cm_admin/view_generator.rb +0 -78
@@ -0,0 +1,225 @@
|
|
1
|
+
@import "../helpers/index.scss";
|
2
|
+
|
3
|
+
.cm-sidebar {
|
4
|
+
position: fixed;
|
5
|
+
top: 0;
|
6
|
+
left: 0;
|
7
|
+
width: 225px;
|
8
|
+
height: 100%;
|
9
|
+
background-color: #252525;
|
10
|
+
// overflow: hidden;
|
11
|
+
z-index: 2;
|
12
|
+
|
13
|
+
&__logo-header {
|
14
|
+
display: flex;
|
15
|
+
align-items: center;
|
16
|
+
padding: 16px;
|
17
|
+
img {
|
18
|
+
width: 32px;
|
19
|
+
height: 32px;
|
20
|
+
object-fit: cover;
|
21
|
+
}
|
22
|
+
}
|
23
|
+
|
24
|
+
&__quick-search {
|
25
|
+
position: relative;
|
26
|
+
padding: 12px;
|
27
|
+
box-shadow: inset 0px -1px 0px rgba(255, 255, 255, 0.15);
|
28
|
+
input {
|
29
|
+
width: 100%;
|
30
|
+
position: relative;
|
31
|
+
@include font($size: $t4-text, $color: $ink-lightest-clr);
|
32
|
+
line-height: 22px;
|
33
|
+
padding-left: 34px;
|
34
|
+
background-color: transparent;
|
35
|
+
border: none;
|
36
|
+
&:focus {
|
37
|
+
outline: none;
|
38
|
+
}
|
39
|
+
}
|
40
|
+
span {
|
41
|
+
position: absolute;
|
42
|
+
top: 14px;
|
43
|
+
left: 24px;
|
44
|
+
font-size: $t4-text;
|
45
|
+
color: $ink-lightest-clr;
|
46
|
+
}
|
47
|
+
}
|
48
|
+
|
49
|
+
&__menu-wrapper {
|
50
|
+
height: calc(100vh - 180px);
|
51
|
+
padding: 16px 0;
|
52
|
+
overflow-y: auto;
|
53
|
+
.menu-item {
|
54
|
+
font-size: $t4-text;
|
55
|
+
color: $ink-lightest-clr;
|
56
|
+
padding: 8px 24px;
|
57
|
+
transition: all 0.2s linear;
|
58
|
+
cursor: pointer;
|
59
|
+
.menu-icon {
|
60
|
+
margin-right: 8px;
|
61
|
+
}
|
62
|
+
.list-arrow {
|
63
|
+
font-size: 10px;
|
64
|
+
margin-left: 8px;
|
65
|
+
vertical-align: text-bottom;
|
66
|
+
}
|
67
|
+
&:hover {
|
68
|
+
color: $white;
|
69
|
+
background: rgba(255, 255, 255, 0.1);
|
70
|
+
}
|
71
|
+
}
|
72
|
+
|
73
|
+
.menu-sub-list {
|
74
|
+
.menu-sub-item {
|
75
|
+
font-size: $t4-text;
|
76
|
+
color: $ink-lightest-clr;
|
77
|
+
padding: 8px 8px 8px 45px;
|
78
|
+
transition: all 0.2s linear;
|
79
|
+
&:hover {
|
80
|
+
color: $white;
|
81
|
+
background: rgba(255, 255, 255, 0.1);
|
82
|
+
}
|
83
|
+
}
|
84
|
+
}
|
85
|
+
.menu-link {
|
86
|
+
color: inherit;
|
87
|
+
text-decoration: none;
|
88
|
+
}
|
89
|
+
}
|
90
|
+
|
91
|
+
&__tabs-wrapper {
|
92
|
+
height: calc(100vh - 115px);
|
93
|
+
padding: 16px 0;
|
94
|
+
overflow-y: auto;
|
95
|
+
|
96
|
+
.tab-link {
|
97
|
+
padding: 0;
|
98
|
+
text-decoration: none;
|
99
|
+
color: $white;
|
100
|
+
cursor: pointer;
|
101
|
+
.tab-item {
|
102
|
+
position: relative;
|
103
|
+
padding: 10px 0;
|
104
|
+
transition: all 0.2s linear;
|
105
|
+
cursor: pointer;
|
106
|
+
&:hover {
|
107
|
+
background-color: #4b4b4b;
|
108
|
+
}
|
109
|
+
&.active {
|
110
|
+
background-color: $black;
|
111
|
+
border-left: 4px solid $brand-color;
|
112
|
+
}
|
113
|
+
.tab-name {
|
114
|
+
color: $white;
|
115
|
+
}
|
116
|
+
}
|
117
|
+
}
|
118
|
+
}
|
119
|
+
|
120
|
+
&__footer {
|
121
|
+
position: absolute;
|
122
|
+
bottom: 0;
|
123
|
+
width: 100%;
|
124
|
+
padding: 20px 24px;
|
125
|
+
box-shadow: inset 0px 1px 0px rgba(255, 255, 255, 0.15);
|
126
|
+
.profile-name {
|
127
|
+
display: inline-flex;
|
128
|
+
align-items: center;
|
129
|
+
position: relative;
|
130
|
+
font-size: $t4-text;
|
131
|
+
line-height: 22px;
|
132
|
+
color: $ink-lightest-clr;
|
133
|
+
cursor: pointer;
|
134
|
+
.profile-avatar {
|
135
|
+
display: inline-flex;
|
136
|
+
align-items: center;
|
137
|
+
justify-content: center;
|
138
|
+
width: 22px;
|
139
|
+
height: 22px;
|
140
|
+
margin-right: 8px;
|
141
|
+
color: $white;
|
142
|
+
font-size: 10px;
|
143
|
+
font-weight: 900;
|
144
|
+
background-color: $brand-color;
|
145
|
+
border-radius: $circle;
|
146
|
+
vertical-align: middle;
|
147
|
+
}
|
148
|
+
}
|
149
|
+
.profile-popup {
|
150
|
+
position: absolute;
|
151
|
+
left: 228px;
|
152
|
+
bottom: 10px;
|
153
|
+
width: 268px;
|
154
|
+
height: 186px;
|
155
|
+
background-color: $white;
|
156
|
+
box-shadow: 0px 4px 16px rgba(0, 0, 0, 0.16);
|
157
|
+
border-radius: $radius-4;
|
158
|
+
animation: fadeIn 0.2s linear;
|
159
|
+
.profile-info {
|
160
|
+
display: grid;
|
161
|
+
grid-template-columns: 1fr 32px;
|
162
|
+
grid-gap: 9px;
|
163
|
+
padding: 8px 16px;
|
164
|
+
box-shadow: inset 0px -1px 0px rgba(148, 151, 155, 0.15);
|
165
|
+
&__left {
|
166
|
+
.name-text {
|
167
|
+
font-size: $t4-text;
|
168
|
+
line-height: 22px;
|
169
|
+
color: $primary-text-clr;
|
170
|
+
margin: 0;
|
171
|
+
}
|
172
|
+
.email-text {
|
173
|
+
font-size: $t4-text;
|
174
|
+
line-height: 22px;
|
175
|
+
color: $ink-lightest-clr;
|
176
|
+
margin: 0;
|
177
|
+
}
|
178
|
+
}
|
179
|
+
&__right {
|
180
|
+
display: inline-flex;
|
181
|
+
align-items: center;
|
182
|
+
justify-content: center;
|
183
|
+
width: 32px;
|
184
|
+
height: 32px;
|
185
|
+
@include font($size: $t3-text, $color: $white, $weight: 600);
|
186
|
+
background-color: $brand-color;
|
187
|
+
border-radius: $circle;
|
188
|
+
vertical-align: middle;
|
189
|
+
}
|
190
|
+
}
|
191
|
+
.page-options {
|
192
|
+
padding: 8px 0;
|
193
|
+
box-shadow: inset 0px -1px 0px rgba(148, 151, 155, 0.15);
|
194
|
+
.page-link {
|
195
|
+
display: block;
|
196
|
+
font-size: $t4-text;
|
197
|
+
line-height: 22px;
|
198
|
+
color: $primary-text-clr;
|
199
|
+
padding: 4px 16px;
|
200
|
+
border: none;
|
201
|
+
transition: all 0.2s linear;
|
202
|
+
&:hover {
|
203
|
+
background-color: $grey-lighter-clr;
|
204
|
+
}
|
205
|
+
}
|
206
|
+
}
|
207
|
+
.auth-option {
|
208
|
+
padding: 8px 0;
|
209
|
+
.auth-link {
|
210
|
+
display: block;
|
211
|
+
font-size: $t4-text;
|
212
|
+
line-height: 22px;
|
213
|
+
color: $primary-text-clr;
|
214
|
+
padding: 4px 16px;
|
215
|
+
transition: all 0.2s linear;
|
216
|
+
&:hover {
|
217
|
+
background-color: $grey-lighter-clr;
|
218
|
+
}
|
219
|
+
}
|
220
|
+
}
|
221
|
+
}
|
222
|
+
}
|
223
|
+
}
|
224
|
+
|
225
|
+
|
@@ -0,0 +1,320 @@
|
|
1
|
+
@import "../helpers/index.scss";
|
2
|
+
|
3
|
+
.cm-index-page {
|
4
|
+
.index-page {
|
5
|
+
background-color: $white;
|
6
|
+
overflow: auto;
|
7
|
+
|
8
|
+
&__filters {
|
9
|
+
// If you want to overwrite filters styles ---> add styles here
|
10
|
+
}
|
11
|
+
|
12
|
+
&__table-container {
|
13
|
+
padding: 20px;
|
14
|
+
height: 100%;
|
15
|
+
}
|
16
|
+
|
17
|
+
.admin-table {
|
18
|
+
background-color: $white;
|
19
|
+
border-radius: $radius-5;
|
20
|
+
.record-found {
|
21
|
+
padding: 10px;
|
22
|
+
color: #31383d;
|
23
|
+
font-size: 14px;
|
24
|
+
opacity: 0.5;
|
25
|
+
}
|
26
|
+
.cm-table {
|
27
|
+
width: 100%;
|
28
|
+
&__header {
|
29
|
+
tr > th {
|
30
|
+
width: 20%;
|
31
|
+
color: #172b4d;
|
32
|
+
background-color: #fafbfc;
|
33
|
+
box-shadow: inset 0 1px 0 0 #ebecf0;
|
34
|
+
font-weight: 600;
|
35
|
+
font-size: 14px;
|
36
|
+
border-bottom: none;
|
37
|
+
height: 40px;
|
38
|
+
padding: 0 10px;
|
39
|
+
}
|
40
|
+
}
|
41
|
+
|
42
|
+
&__body {
|
43
|
+
tr {
|
44
|
+
transition: all 0.2s linear;
|
45
|
+
&:hover {
|
46
|
+
background-color: #dfe4e7;
|
47
|
+
}
|
48
|
+
}
|
49
|
+
|
50
|
+
tr > td {
|
51
|
+
color: #172b4d;
|
52
|
+
font-size: 14px;
|
53
|
+
padding: 8px 10px;
|
54
|
+
}
|
55
|
+
.edit-icon {
|
56
|
+
font-size: 20px;
|
57
|
+
cursor: pointer;
|
58
|
+
@include transition-linear;
|
59
|
+
&:hover {
|
60
|
+
box-shadow: 0px 37px 20px -20px rgba(0, 0, 0, 0.2);
|
61
|
+
transform: scale(1.2);
|
62
|
+
}
|
63
|
+
}
|
64
|
+
}
|
65
|
+
}
|
66
|
+
}
|
67
|
+
|
68
|
+
.new-admin-table {
|
69
|
+
overflow: auto;
|
70
|
+
margin-top: 40px;
|
71
|
+
margin-bottom: 50px;
|
72
|
+
.cm-table {
|
73
|
+
table-layout: fixed;
|
74
|
+
position: relative;
|
75
|
+
min-width: fit-content;
|
76
|
+
border-collapse: collapse;
|
77
|
+
white-space: nowrap;
|
78
|
+
border: 1px solid $grey-lighter-clr;
|
79
|
+
border-radius: $radius-8;
|
80
|
+
&__header {
|
81
|
+
.header-row {
|
82
|
+
display: block;
|
83
|
+
position: relative;
|
84
|
+
width: 100%;
|
85
|
+
box-shadow: inset 0px -1px 0px rgba(148, 151, 155, 0.15);
|
86
|
+
th {
|
87
|
+
@include font($size: $t6-text, $color: $ink-lighter-clr, $weight: bold);
|
88
|
+
text-transform: uppercase;
|
89
|
+
min-width: 200px;
|
90
|
+
max-width: 200px;
|
91
|
+
padding: 12px 16px 12px 16px;
|
92
|
+
}
|
93
|
+
.check-box-space {
|
94
|
+
min-width: fit-content;
|
95
|
+
max-width: fit-content;
|
96
|
+
padding: 12px 8px 12px 16px;
|
97
|
+
span {
|
98
|
+
vertical-align: text-top;
|
99
|
+
}
|
100
|
+
}
|
101
|
+
}
|
102
|
+
}
|
103
|
+
&__body {
|
104
|
+
display: block;
|
105
|
+
position: relative;
|
106
|
+
width: 100%; .body-row {
|
107
|
+
box-shadow: inset 0px -1px 0px rgba(148, 151, 155, 0.15);
|
108
|
+
transition: all .2s linear;
|
109
|
+
&:nth-last-child(1) {
|
110
|
+
box-shadow: none;
|
111
|
+
}
|
112
|
+
&:hover {
|
113
|
+
background-color: $grey-lighter-clr;
|
114
|
+
.row-action-cell {
|
115
|
+
opacity: 1;
|
116
|
+
}
|
117
|
+
}
|
118
|
+
.check-box-space {
|
119
|
+
min-width: fit-content;
|
120
|
+
max-width: fit-content;
|
121
|
+
padding: 16px 8px 16px 16px;
|
122
|
+
span {
|
123
|
+
vertical-align: text-top;
|
124
|
+
}
|
125
|
+
}
|
126
|
+
td {
|
127
|
+
@include font($size: $t4-text, $color: $primary-text-clr);
|
128
|
+
min-width: 200px;
|
129
|
+
max-width: 200px;
|
130
|
+
padding: 16px;
|
131
|
+
}
|
132
|
+
.row-action-cell {
|
133
|
+
position: absolute;
|
134
|
+
// left: 1225px;
|
135
|
+
right: 0;
|
136
|
+
width: 88px;
|
137
|
+
max-width: inherit;
|
138
|
+
min-width: inherit;
|
139
|
+
height: 56px;
|
140
|
+
padding: 0;
|
141
|
+
background: linear-gradient(270deg, #F3F4F6 81.75%, rgba(243, 244, 246, 0) 100%);
|
142
|
+
opacity: 0;
|
143
|
+
transition: all .1s linear;
|
144
|
+
.row-action-tool {
|
145
|
+
display: flex;
|
146
|
+
align-items: center;
|
147
|
+
justify-content: center;
|
148
|
+
height: 100%;
|
149
|
+
.tool-btn {
|
150
|
+
background-color: transparent;
|
151
|
+
border: none;
|
152
|
+
}
|
153
|
+
}
|
154
|
+
}
|
155
|
+
}
|
156
|
+
}
|
157
|
+
}
|
158
|
+
}
|
159
|
+
|
160
|
+
.admin-table-index {
|
161
|
+
|
162
|
+
position: fixed;
|
163
|
+
width: calc(100% - 285px);
|
164
|
+
left: 245px;
|
165
|
+
background-color: #fff;
|
166
|
+
z-index: 1;
|
167
|
+
.table-sticky-top {
|
168
|
+
position: sticky;
|
169
|
+
top: 254px;
|
170
|
+
}
|
171
|
+
.table-top {
|
172
|
+
display: flex;
|
173
|
+
justify-content: space-between;
|
174
|
+
align-items: center;
|
175
|
+
padding-bottom: 16px;
|
176
|
+
&__total-count {
|
177
|
+
font-size: $t4-text;
|
178
|
+
line-height: 22px;
|
179
|
+
color: $ink-lighter-clr;
|
180
|
+
margin: 0;
|
181
|
+
}
|
182
|
+
&__column-action {
|
183
|
+
.column-btn {
|
184
|
+
padding: 4px 8px;
|
185
|
+
span:nth-child(2) {
|
186
|
+
margin: 0 0 0 4px;
|
187
|
+
}
|
188
|
+
}
|
189
|
+
}
|
190
|
+
}
|
191
|
+
}
|
192
|
+
|
193
|
+
// table-column-modal
|
194
|
+
.table-column-modal {
|
195
|
+
|
196
|
+
//modal overwritten styles
|
197
|
+
.modal-dialog {
|
198
|
+
.modal-content {
|
199
|
+
.modal-header {
|
200
|
+
position: relative;
|
201
|
+
padding: 24px 32px 18px;
|
202
|
+
border: none;
|
203
|
+
box-shadow: inset 0px -1px 0px rgba(148, 151, 155, 0.15);
|
204
|
+
.modal-title {
|
205
|
+
@include font($size: 24px, $color: $primary-text-clr, $weight: 600);
|
206
|
+
line-height: 32px;
|
207
|
+
}
|
208
|
+
.close {
|
209
|
+
position: absolute;
|
210
|
+
top: 4px;
|
211
|
+
right: 8px;
|
212
|
+
padding: 4px;
|
213
|
+
margin: 0;
|
214
|
+
}
|
215
|
+
}
|
216
|
+
.modal-body {
|
217
|
+
padding: 0;
|
218
|
+
}
|
219
|
+
.modal-footer {
|
220
|
+
padding: 16px 32px;
|
221
|
+
border: none;
|
222
|
+
box-shadow: inset 0px 1px 0px rgba(148, 151, 155, 0.15);
|
223
|
+
}
|
224
|
+
}
|
225
|
+
}
|
226
|
+
|
227
|
+
.columns-list {
|
228
|
+
.column-item {
|
229
|
+
position: relative;
|
230
|
+
display: flex;
|
231
|
+
align-items: center;
|
232
|
+
justify-content: space-between;
|
233
|
+
padding: 8px 24px;
|
234
|
+
box-shadow: inset 0px -1px 0px rgba(148, 151, 155, 0.15);
|
235
|
+
&:hover {
|
236
|
+
.dragger {
|
237
|
+
display: block;
|
238
|
+
}
|
239
|
+
}
|
240
|
+
&__name {
|
241
|
+
font-size: $t4-text;
|
242
|
+
line-height: 22px;
|
243
|
+
margin-left: 4px;
|
244
|
+
color: $primary-text-clr;
|
245
|
+
p {
|
246
|
+
margin: 0;
|
247
|
+
}
|
248
|
+
}
|
249
|
+
&__action {
|
250
|
+
padding: 5px 8px;
|
251
|
+
font-size: $t4-text;
|
252
|
+
color: $ink-lightest-clr;
|
253
|
+
}
|
254
|
+
.dragger {
|
255
|
+
display: none;
|
256
|
+
position: absolute;
|
257
|
+
left: 4px;
|
258
|
+
top: 8px;
|
259
|
+
padding: 5px;
|
260
|
+
color: $ink-lightest-clr;
|
261
|
+
border-radius: $radius-4;
|
262
|
+
animation: fadeIn .1s ease-in-out;
|
263
|
+
cursor: grab;
|
264
|
+
&:hover {
|
265
|
+
background: $grey-lighter-clr;
|
266
|
+
}
|
267
|
+
}
|
268
|
+
}
|
269
|
+
}
|
270
|
+
}
|
271
|
+
|
272
|
+
.cm-pagination {
|
273
|
+
position: fixed;
|
274
|
+
background-color: #FFF;
|
275
|
+
bottom: 0;
|
276
|
+
width: calc(100% - 225px);
|
277
|
+
display: flex;
|
278
|
+
justify-content: space-between;
|
279
|
+
align-items: center;
|
280
|
+
padding: 16px 24px;
|
281
|
+
border: 1px solid $grey-lighter-clr;
|
282
|
+
&__lhs {
|
283
|
+
@include font($size: $t4-text, $color: $ink-lightest-clr, $weight: bold);
|
284
|
+
line-height: 22px;
|
285
|
+
}
|
286
|
+
&__rhs {
|
287
|
+
display: inline-flex;
|
288
|
+
align-items: center;
|
289
|
+
.page-move-btn {
|
290
|
+
font-size: 10px;
|
291
|
+
line-height: 12px;
|
292
|
+
color: $primary-text-clr;
|
293
|
+
padding: 10px 11px;
|
294
|
+
cursor: pointer;
|
295
|
+
color: #0d6efd;
|
296
|
+
&.disabled {
|
297
|
+
color: #9CA7AE;
|
298
|
+
cursor: initial;
|
299
|
+
pointer-events: none;
|
300
|
+
}
|
301
|
+
}
|
302
|
+
.page-num-btn {
|
303
|
+
@include font($size: $t4-text, $color: $primary-text-clr, $weight: bold);
|
304
|
+
margin: 0 8px;
|
305
|
+
padding: 5px 11px;
|
306
|
+
cursor: pointer;
|
307
|
+
color: #0d6efd;
|
308
|
+
&.active {
|
309
|
+
color: $primary-text-clr;
|
310
|
+
background-color: $grey-lightest-clr;
|
311
|
+
border: 1px solid $grey-light-clr;
|
312
|
+
border-radius: $radius-4;
|
313
|
+
cursor: initial;
|
314
|
+
pointer-events: none;
|
315
|
+
}
|
316
|
+
}
|
317
|
+
}
|
318
|
+
}
|
319
|
+
}
|
320
|
+
}
|
@@ -0,0 +1,26 @@
|
|
1
|
+
@import "../helpers/index.scss";
|
2
|
+
|
3
|
+
.cm-tabs-bar {
|
4
|
+
position: fixed;
|
5
|
+
top: 140px;
|
6
|
+
display: flex;
|
7
|
+
align-items: center;
|
8
|
+
width: 100%;
|
9
|
+
height: 54px;
|
10
|
+
padding: 0 24px;
|
11
|
+
background-color: $white;
|
12
|
+
box-shadow: inset 0px -1px 0px rgba(148, 151, 155, 0.15);
|
13
|
+
z-index: 1;
|
14
|
+
|
15
|
+
.tab-item {
|
16
|
+
font-size: 14px;
|
17
|
+
color: $ink-lighter-clr;
|
18
|
+
padding: 16px 0;
|
19
|
+
margin-right: 24px;
|
20
|
+
cursor: pointer;
|
21
|
+
&.active {
|
22
|
+
color: $brand-color;
|
23
|
+
box-shadow: inset 0px -2px 0px $brand-color;
|
24
|
+
}
|
25
|
+
}
|
26
|
+
}
|
@@ -0,0 +1,26 @@
|
|
1
|
+
/*
|
2
|
+
* This is a manifest file that'll be compiled into application.css, which will include all the files
|
3
|
+
* listed below.
|
4
|
+
*
|
5
|
+
* Any CSS and SCSS file within this directory, lib/assets/stylesheets, or any plugin's
|
6
|
+
* vendor/assets/stylesheets directory can be referenced here using a relative path.
|
7
|
+
*
|
8
|
+
* You're free to add application-wide styles to this file and they'll appear at the bottom of the
|
9
|
+
* compiled file so the styles you add here take precedence over styles defined in any other CSS/SCSS
|
10
|
+
* files in this directory. Styles in this file should be added after the last require_* statement.
|
11
|
+
* It is generally better to create a new file per style scope.
|
12
|
+
*
|
13
|
+
*= require 'cm_admin/base/table'
|
14
|
+
*= require 'cm_admin/base/navbar'
|
15
|
+
*= require 'cm_admin/base/sidebar'
|
16
|
+
*= require 'cm_admin/base/show'
|
17
|
+
*= require 'cm_admin/base/form'
|
18
|
+
*= require 'cm_admin/base/quicksearch'
|
19
|
+
*= require 'cm_admin/base/scaffold'
|
20
|
+
*= require 'cm_admin/base/auth'
|
21
|
+
*= require 'cm_admin/base/filters'
|
22
|
+
*= require 'cm_admin/base/common'
|
23
|
+
*= require 'cm_admin/components/index'
|
24
|
+
*= require 'cm_admin/dependency/bootstrap.min'
|
25
|
+
*= require_self
|
26
|
+
*/
|
@@ -0,0 +1,101 @@
|
|
1
|
+
@import "../helpers/index.scss";
|
2
|
+
|
3
|
+
.flag-alert {
|
4
|
+
max-width: 752px;
|
5
|
+
padding: 24px;
|
6
|
+
background: $red-lightest-clr;
|
7
|
+
border-radius: $radius-4;
|
8
|
+
.alert-header {
|
9
|
+
@include font($size: $t6-text, $color: $red-regular-clr, $weight: bold);
|
10
|
+
line-height: 16px;
|
11
|
+
text-transform: uppercase;
|
12
|
+
margin: 0;
|
13
|
+
span {
|
14
|
+
margin-right: 4px;
|
15
|
+
}
|
16
|
+
}
|
17
|
+
.alert-body {
|
18
|
+
margin-top: 16px;
|
19
|
+
.body-title {
|
20
|
+
@include font($size: $t3-text, $color: $primary-text-clr, $weight: bold);
|
21
|
+
line-height: 24px;
|
22
|
+
margin: 0 0 8px;
|
23
|
+
}
|
24
|
+
.body-info {
|
25
|
+
@include font($size: $t4-text, $color: $primary-text-clr);
|
26
|
+
line-height: 22px;
|
27
|
+
margin: 0;
|
28
|
+
}
|
29
|
+
.body-list-info {
|
30
|
+
padding-inline-start: 20px;
|
31
|
+
margin: 0;
|
32
|
+
li {
|
33
|
+
@include font($size: $t4-text, $color: $primary-text-clr);
|
34
|
+
line-height: 22px;
|
35
|
+
margin-bottom: 8px;
|
36
|
+
&:nth-last-child(1) {
|
37
|
+
margin-bottom: 0;
|
38
|
+
}
|
39
|
+
}
|
40
|
+
}
|
41
|
+
}
|
42
|
+
}
|
43
|
+
|
44
|
+
.toast-alert {
|
45
|
+
display: flex;
|
46
|
+
align-items: center;
|
47
|
+
max-width: 225px;
|
48
|
+
padding: 8px 16px;
|
49
|
+
border-radius: $radius-4;
|
50
|
+
&.informative {
|
51
|
+
background: $blue-light-clr;
|
52
|
+
}
|
53
|
+
&.successful {
|
54
|
+
background: $green-light-clr;
|
55
|
+
}
|
56
|
+
&.warning {
|
57
|
+
background: $yellow-light-clr;
|
58
|
+
}
|
59
|
+
&.error {
|
60
|
+
background: $red-light-clr;
|
61
|
+
}
|
62
|
+
.toast-info {
|
63
|
+
@include font($size: $t4-text, $color: $primary-text-clr);
|
64
|
+
line-height: 22px;
|
65
|
+
margin: 0;
|
66
|
+
}
|
67
|
+
.toast-close {
|
68
|
+
@include font($size: $t4-text, $color: $ink-lighter-clr);
|
69
|
+
margin-left: 24px;
|
70
|
+
cursor: pointer;
|
71
|
+
}
|
72
|
+
}
|
73
|
+
|
74
|
+
.inline-alert {
|
75
|
+
@include font($size: $t4-text, $color: $primary-text-clr);
|
76
|
+
line-height: 22px;
|
77
|
+
span {
|
78
|
+
margin-right: 4px;
|
79
|
+
}
|
80
|
+
&.informative {
|
81
|
+
span {
|
82
|
+
color: $blue-regular-clr;
|
83
|
+
}
|
84
|
+
}
|
85
|
+
&.successful {
|
86
|
+
span {
|
87
|
+
color: $green-regular-clr;
|
88
|
+
}
|
89
|
+
}
|
90
|
+
&.warning {
|
91
|
+
span {
|
92
|
+
color: $yellow-regular-clr;
|
93
|
+
}
|
94
|
+
}
|
95
|
+
&.error {
|
96
|
+
color: $red-regular-clr;
|
97
|
+
span {
|
98
|
+
color: $red-regular-clr;
|
99
|
+
}
|
100
|
+
}
|
101
|
+
}
|