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,200 @@
|
|
1
|
+
@import "../helpers/index.scss";
|
2
|
+
|
3
|
+
.cm-filters-v2 {
|
4
|
+
min-height: 64px;
|
5
|
+
padding: 16px 24px;
|
6
|
+
background-color: $white;
|
7
|
+
z-index: 1;
|
8
|
+
&__inner {
|
9
|
+
@include flex(row, flex-start, center, wrap);
|
10
|
+
.filter-chips-wrapper {
|
11
|
+
.filter-chip {
|
12
|
+
margin-left: 16px;
|
13
|
+
}
|
14
|
+
}
|
15
|
+
.add-filter-btn {
|
16
|
+
font-size: $t4-text;
|
17
|
+
line-height: 22px;
|
18
|
+
font-weight: 600;
|
19
|
+
color: $primary-text-clr;
|
20
|
+
cursor: pointer;
|
21
|
+
span {
|
22
|
+
margin-right: 4px;
|
23
|
+
}
|
24
|
+
&:hover {
|
25
|
+
color: $brand-color;
|
26
|
+
}
|
27
|
+
}
|
28
|
+
.clear-btn {
|
29
|
+
position: relative;
|
30
|
+
font-size: $t4-text;
|
31
|
+
line-height: 22px;
|
32
|
+
font-weight: 600;
|
33
|
+
color: $ink-lighter-clr;
|
34
|
+
margin-left: 32px;
|
35
|
+
cursor: pointer;
|
36
|
+
&::before {
|
37
|
+
content: '';
|
38
|
+
position: absolute;
|
39
|
+
top: -5px;
|
40
|
+
left: -16px;
|
41
|
+
height: 32px;
|
42
|
+
border-left: 1px solid $grey-regular-clr;
|
43
|
+
}
|
44
|
+
&:hover {
|
45
|
+
color: $primary-text-clr;
|
46
|
+
}
|
47
|
+
}
|
48
|
+
}
|
49
|
+
}
|
50
|
+
|
51
|
+
.cm-filters {
|
52
|
+
@include flex(row, space-between, flex-start, nowrap);
|
53
|
+
position: fixed;
|
54
|
+
top: 140px;
|
55
|
+
width: 100%;
|
56
|
+
min-height: 60px;
|
57
|
+
padding: 10px 20px;
|
58
|
+
background-color: $white;
|
59
|
+
box-shadow: 0 1px 0 0 rgba(0, 0, 0, 0.06);
|
60
|
+
z-index: 1;
|
61
|
+
@media screen and (max-width: 1280px) {
|
62
|
+
flex-wrap: wrap;
|
63
|
+
}
|
64
|
+
&__lhs {
|
65
|
+
@include flex(row, flex-start, center, wrap);
|
66
|
+
width: 75%;
|
67
|
+
.filter-field {
|
68
|
+
position: relative;
|
69
|
+
width: 250px;
|
70
|
+
margin: 4px 10px 4px 0;
|
71
|
+
align-self: center;
|
72
|
+
@media screen and (max-width: 1280px) {
|
73
|
+
margin-bottom: 10px;
|
74
|
+
}
|
75
|
+
|
76
|
+
//input-styles
|
77
|
+
input {
|
78
|
+
width: 100%;
|
79
|
+
height: 39px;
|
80
|
+
border: 1px solid #ccc;
|
81
|
+
border-radius: $radius-4;
|
82
|
+
box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
|
83
|
+
&:focus {
|
84
|
+
border-color: $brand-color !important;
|
85
|
+
outline: 0 !important;
|
86
|
+
box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 8px rgba(102, 175, 233, 0.6) !important;
|
87
|
+
}
|
88
|
+
}
|
89
|
+
|
90
|
+
//select2 styles
|
91
|
+
.select2 {
|
92
|
+
width: 100% !important;
|
93
|
+
.selection {
|
94
|
+
//single-select-styles
|
95
|
+
.select2-selection--single {
|
96
|
+
height: 39px;
|
97
|
+
border: 1px solid #ccc;
|
98
|
+
border-radius: $radius-4;
|
99
|
+
box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
|
100
|
+
&:focus {
|
101
|
+
border-color: $brand-color;
|
102
|
+
outline: 0;
|
103
|
+
box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 8px rgba(102, 175, 233, 0.6);
|
104
|
+
}
|
105
|
+
.select2-selection__rendered {
|
106
|
+
color: #555555;
|
107
|
+
line-height: 36px;
|
108
|
+
.select2-search--inline {
|
109
|
+
.select2-search__field {
|
110
|
+
height: 26px !important;
|
111
|
+
}
|
112
|
+
}
|
113
|
+
}
|
114
|
+
.select2-selection__arrow {
|
115
|
+
top: 7px;
|
116
|
+
b {
|
117
|
+
border-color: $brand-color transparent transparent transparent;
|
118
|
+
}
|
119
|
+
}
|
120
|
+
}
|
121
|
+
//multi-select-styles
|
122
|
+
.select2-selection--multiple {
|
123
|
+
max-height: 39px;
|
124
|
+
border: 1px solid #ccc;
|
125
|
+
border-radius: $radius-4;
|
126
|
+
box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
|
127
|
+
overflow-y: auto;
|
128
|
+
.select2-selection__rendered {
|
129
|
+
.select2-search--inline {
|
130
|
+
.select2-search__field {
|
131
|
+
height: 26px !important;
|
132
|
+
border: none;
|
133
|
+
}
|
134
|
+
}
|
135
|
+
}
|
136
|
+
}
|
137
|
+
}
|
138
|
+
}
|
139
|
+
|
140
|
+
//single-select-arrow-styles
|
141
|
+
.select2-container--open {
|
142
|
+
.selection {
|
143
|
+
.select2-selection--single {
|
144
|
+
.select2-selection__arrow {
|
145
|
+
top: 7px;
|
146
|
+
b {
|
147
|
+
border-color: transparent transparent $brand-color transparent;
|
148
|
+
}
|
149
|
+
}
|
150
|
+
}
|
151
|
+
}
|
152
|
+
}
|
153
|
+
|
154
|
+
.filter-rangepicker {
|
155
|
+
padding: 6px 12px;
|
156
|
+
color: #172b4d;
|
157
|
+
font-size: 16px;
|
158
|
+
}
|
159
|
+
|
160
|
+
.field-area {
|
161
|
+
display: block;
|
162
|
+
padding: 6px 12px;
|
163
|
+
font-size: 16px;
|
164
|
+
color: #555555;
|
165
|
+
}
|
166
|
+
.search-icon {
|
167
|
+
position: absolute;
|
168
|
+
top: 10px;
|
169
|
+
right: 15px;
|
170
|
+
color: $brand-color;
|
171
|
+
}
|
172
|
+
.down-arrow-icon {
|
173
|
+
position: absolute;
|
174
|
+
top: 10px;
|
175
|
+
right: 15px;
|
176
|
+
font-size: 20px;
|
177
|
+
color: $brand-color;
|
178
|
+
}
|
179
|
+
}
|
180
|
+
}
|
181
|
+
&__rhs {
|
182
|
+
width: 25%;
|
183
|
+
text-align: right;
|
184
|
+
.filter-btn {
|
185
|
+
padding: 5px 10px;
|
186
|
+
color: $white;
|
187
|
+
font-size: 16px;
|
188
|
+
background-color: $brand-color;
|
189
|
+
border: none;
|
190
|
+
border-radius: $radius-4;
|
191
|
+
transition: all 0.2s linear;
|
192
|
+
&:hover {
|
193
|
+
transform: scale(1.2);
|
194
|
+
}
|
195
|
+
span {
|
196
|
+
margin-right: 5px;
|
197
|
+
}
|
198
|
+
}
|
199
|
+
}
|
200
|
+
}
|
@@ -1,7 +1,42 @@
|
|
1
|
-
@import "
|
1
|
+
@import "../helpers/index.scss";
|
2
2
|
|
3
|
+
@function size($size) {
|
4
|
+
@return map-get($font-size, $size);
|
5
|
+
}
|
6
|
+
|
7
|
+
@function weight($weight) {
|
8
|
+
@return map-get($font-weight, $weight);
|
9
|
+
}
|
10
|
+
|
11
|
+
.form-page {
|
12
|
+
margin-top: 140px;
|
13
|
+
padding: 24px;
|
14
|
+
background-color: $white;
|
15
|
+
&__inner {
|
16
|
+
max-width: 752px;
|
17
|
+
}
|
18
|
+
.form-wrapper {
|
19
|
+
.form-container {
|
20
|
+
.form-title {
|
21
|
+
@include font($size: $t3-text, $color: $primary-text-clr, $weight: bold);
|
22
|
+
line-height: 24px;
|
23
|
+
margin: 0 0 16px;
|
24
|
+
}
|
25
|
+
&__inner {
|
26
|
+
padding: 24px;
|
27
|
+
border: 1px solid $grey-light-clr;
|
28
|
+
border-radius: $radius-4;
|
29
|
+
.form-field {
|
30
|
+
max-width: 320px;
|
31
|
+
}
|
32
|
+
}
|
33
|
+
}
|
34
|
+
}
|
35
|
+
}
|
36
|
+
|
37
|
+
//Old form code
|
3
38
|
.form-wrapper {
|
4
|
-
margin-top: 60px;
|
39
|
+
// margin-top: 60px;
|
5
40
|
|
6
41
|
&__top-bar {
|
7
42
|
position: fixed;
|
@@ -16,8 +51,7 @@
|
|
16
51
|
box-shadow: 0 1px 0 0 rgba(0, 0, 0, 0.06);
|
17
52
|
z-index: 9;
|
18
53
|
.back-btn {
|
19
|
-
color: #091e42;
|
20
|
-
font-size: 20px;
|
54
|
+
@include font($size: $t1-text, $color: #091e42);
|
21
55
|
cursor: pointer;
|
22
56
|
span {
|
23
57
|
color: #0099ff;
|
@@ -34,7 +68,7 @@
|
|
34
68
|
background-color: $white;
|
35
69
|
box-shadow: 0 0 2px 0 rgba(0, 0, 0, 0.1);
|
36
70
|
border: 1px solid #ebecf0;
|
37
|
-
border-radius:
|
71
|
+
border-radius: $radius-4;
|
38
72
|
}
|
39
73
|
}
|
40
74
|
|
@@ -50,15 +84,13 @@
|
|
50
84
|
}
|
51
85
|
.form-input {
|
52
86
|
label {
|
53
|
-
font-weight:
|
54
|
-
color: #172b4d;
|
55
|
-
font-size: 14px;
|
87
|
+
@include font($size: $t4-text, $color: #172b4d, $weight: bold);
|
56
88
|
}
|
57
89
|
input {
|
58
90
|
width: 100%;
|
59
91
|
padding: 5px 10px;
|
60
92
|
border: 1px solid #c1c7d0;
|
61
|
-
border-radius:
|
93
|
+
border-radius: $radius-2;
|
62
94
|
&:focus {
|
63
95
|
border-color: #66afe9 !important;
|
64
96
|
outline: 0 !important;
|
@@ -75,7 +107,7 @@
|
|
75
107
|
width: 250px;
|
76
108
|
height: 80px;
|
77
109
|
border: 2px dashed #c1c7d0;
|
78
|
-
border-radius:
|
110
|
+
border-radius: $radius-4;
|
79
111
|
cursor: pointer;
|
80
112
|
input[type="file"] {
|
81
113
|
position: absolute;
|
@@ -118,8 +150,48 @@
|
|
118
150
|
color: $white;
|
119
151
|
background-color: #0099ff;
|
120
152
|
border: none;
|
121
|
-
border-radius:
|
153
|
+
border-radius: $radius-4;
|
154
|
+
}
|
155
|
+
}
|
156
|
+
}
|
157
|
+
}
|
158
|
+
|
159
|
+
//cocoon field styles
|
160
|
+
.fields-group {
|
161
|
+
display: flex;
|
162
|
+
align-items: center;
|
163
|
+
margin: 16px 0;
|
164
|
+
.field-item {
|
165
|
+
margin: 0 5px;
|
166
|
+
label {
|
167
|
+
@include font($size: $t4-text, $color: #172b4d, $weight: bold);
|
168
|
+
margin-bottom: 4px;
|
169
|
+
}
|
170
|
+
input {
|
171
|
+
width: 100%;
|
172
|
+
padding: 5px 10px;
|
173
|
+
border: 1px solid #c1c7d0;
|
174
|
+
border-radius: $radius-2;
|
175
|
+
&:focus {
|
176
|
+
border-color: #66afe9 !important;
|
177
|
+
outline: 0 !important;
|
178
|
+
box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 8px rgba(102, 175, 233, 0.6) !important;
|
179
|
+
}
|
180
|
+
}
|
181
|
+
}
|
182
|
+
.field-remove {
|
183
|
+
margin-top: 25px;
|
184
|
+
a {
|
185
|
+
@include font($size: $t1-text, $color: #ff5656);
|
186
|
+
@include transition-linear;
|
187
|
+
&:hover {
|
188
|
+
transform: scale(1.1);
|
122
189
|
}
|
123
190
|
}
|
124
191
|
}
|
125
192
|
}
|
193
|
+
|
194
|
+
.add-field-btn {
|
195
|
+
font-size: 14px;
|
196
|
+
margin: 10px 0;
|
197
|
+
}
|
@@ -0,0 +1,47 @@
|
|
1
|
+
@import "../helpers/index.scss";
|
2
|
+
|
3
|
+
.main-nav {
|
4
|
+
position: fixed;
|
5
|
+
top: 0;
|
6
|
+
right: 0;
|
7
|
+
left: 225px;
|
8
|
+
display: flex;
|
9
|
+
justify-content: space-between;
|
10
|
+
width: calc(100% - 225px);
|
11
|
+
height: 140px;
|
12
|
+
padding: 24px 24px 16px;
|
13
|
+
background-color: $white;
|
14
|
+
z-index: 2;
|
15
|
+
&__lhs {
|
16
|
+
.bread-crumb-area {
|
17
|
+
.breadcrumb-text {
|
18
|
+
font-size: $t4-text;
|
19
|
+
line-height: 22px;
|
20
|
+
color: $ink-lighter-clr;
|
21
|
+
margin: 0 0 16px;
|
22
|
+
a {
|
23
|
+
color: inherit;
|
24
|
+
}
|
25
|
+
}
|
26
|
+
}
|
27
|
+
.nav-title-area {
|
28
|
+
.title-text {
|
29
|
+
font-size: 24px;
|
30
|
+
font-weight: 600;
|
31
|
+
line-height: 32px;
|
32
|
+
color: $primary-text-clr;
|
33
|
+
margin: 0 0 8px;
|
34
|
+
}
|
35
|
+
.title-sub-text {
|
36
|
+
font-size: $t4-text;
|
37
|
+
line-height: 22px;
|
38
|
+
color: $primary-text-clr;
|
39
|
+
margin: 0;
|
40
|
+
}
|
41
|
+
}
|
42
|
+
}
|
43
|
+
|
44
|
+
&__rhs {
|
45
|
+
|
46
|
+
}
|
47
|
+
}
|
@@ -0,0 +1,65 @@
|
|
1
|
+
@import "../helpers/index.scss";
|
2
|
+
|
3
|
+
.cm-navbar {
|
4
|
+
top: 0;
|
5
|
+
right: 0;
|
6
|
+
left: 225px;
|
7
|
+
display: flex;
|
8
|
+
justify-content: space-between;
|
9
|
+
min-height: 140px;
|
10
|
+
padding: 24px 24px 16px;
|
11
|
+
background-color: $white;
|
12
|
+
z-index: 2;
|
13
|
+
&__lhs {
|
14
|
+
.bread-crumb-area {
|
15
|
+
.breadcrumb-text {
|
16
|
+
@include font($size: $t4-text, $color: $ink-lighter-clr);
|
17
|
+
line-height: 22px;
|
18
|
+
margin: 0 0 16px;
|
19
|
+
a {
|
20
|
+
color: inherit;
|
21
|
+
}
|
22
|
+
}
|
23
|
+
}
|
24
|
+
.nav-title-area {
|
25
|
+
.title-text {
|
26
|
+
@include font($size: 24px, $color: $primary-text-clr, $weight: 600);
|
27
|
+
line-height: 32px;
|
28
|
+
margin: 0 0 8px;
|
29
|
+
}
|
30
|
+
.title-sub-text {
|
31
|
+
@include font($size: $t4-text, $color: $primary-text-clr);
|
32
|
+
line-height: 22px;
|
33
|
+
margin: 0;
|
34
|
+
}
|
35
|
+
}
|
36
|
+
}
|
37
|
+
|
38
|
+
&__rhs {
|
39
|
+
display: flex;
|
40
|
+
align-items: center;
|
41
|
+
|
42
|
+
.export-container {
|
43
|
+
position: relative;
|
44
|
+
.export-popup {
|
45
|
+
top: 45px;
|
46
|
+
width: 156px;
|
47
|
+
padding: 8px 0;
|
48
|
+
animation: fadeIn .2s ease-in-out;
|
49
|
+
.popup-option {
|
50
|
+
padding: 8px 16px;
|
51
|
+
@include font($size: $t4-text, $color: $primary-text-clr);
|
52
|
+
line-height: 22px;
|
53
|
+
transition: all .2s linear;
|
54
|
+
cursor: pointer;
|
55
|
+
&:hover {
|
56
|
+
background-color: $grey-lighter-clr;
|
57
|
+
}
|
58
|
+
span {
|
59
|
+
margin-right: 8px;
|
60
|
+
}
|
61
|
+
}
|
62
|
+
}
|
63
|
+
}
|
64
|
+
}
|
65
|
+
}
|
@@ -0,0 +1,76 @@
|
|
1
|
+
@import "../helpers/index.scss";
|
2
|
+
|
3
|
+
.quick-search-modal {
|
4
|
+
.modal-dialog {
|
5
|
+
max-width: 526px;
|
6
|
+
height: auto;
|
7
|
+
.modal-content {
|
8
|
+
.modal-body {
|
9
|
+
padding: 24px 24px 0;
|
10
|
+
}
|
11
|
+
}
|
12
|
+
}
|
13
|
+
.quick-search-field {
|
14
|
+
.clear-search {
|
15
|
+
position: absolute;
|
16
|
+
top: 8px;
|
17
|
+
right: 16px;
|
18
|
+
font-size: $t4-text;
|
19
|
+
line-height: 22px;
|
20
|
+
color: $ink-lighter-clr;
|
21
|
+
cursor: pointer;
|
22
|
+
}
|
23
|
+
}
|
24
|
+
.search-results-container {
|
25
|
+
margin: 16px 0;
|
26
|
+
.result-item {
|
27
|
+
padding: 8px 16px;
|
28
|
+
font-size: $t4-text;
|
29
|
+
line-height: 22px;
|
30
|
+
span:nth-child(1) {
|
31
|
+
color: #828282;
|
32
|
+
}
|
33
|
+
span:nth-child(2) {
|
34
|
+
margin-left: 8px;
|
35
|
+
color: $primary-text-clr;
|
36
|
+
}
|
37
|
+
}
|
38
|
+
}
|
39
|
+
.results-action {
|
40
|
+
display: flex;
|
41
|
+
align-items: center;
|
42
|
+
padding: 4px 16px;
|
43
|
+
box-shadow: inset 0px 1px 0px rgba(148, 151, 155, 0.15);
|
44
|
+
.select {
|
45
|
+
font-size: $t6-text;
|
46
|
+
line-height: 16px;
|
47
|
+
color: $ink-lightest-clr;
|
48
|
+
cursor: pointer;
|
49
|
+
.move-arrow {
|
50
|
+
font-size: 10px;
|
51
|
+
margin-right: 4px;
|
52
|
+
&:nth-child(2) {
|
53
|
+
margin-right: 8px;
|
54
|
+
}
|
55
|
+
}
|
56
|
+
}
|
57
|
+
.enter-btn {
|
58
|
+
@include font($size: $t6-text, $color: $ink-lightest-clr, $weight: 600);
|
59
|
+
line-height: 16px;
|
60
|
+
margin: 0 8px 0 24px;
|
61
|
+
padding: 0;
|
62
|
+
}
|
63
|
+
.open-btn {
|
64
|
+
@include font($size: $t6-text, $color: $ink-lightest-clr);
|
65
|
+
line-height: 16px;
|
66
|
+
padding: 0;
|
67
|
+
}
|
68
|
+
}
|
69
|
+
.active-item {
|
70
|
+
background: #D9DEE3;
|
71
|
+
width: 100%;
|
72
|
+
height: 40px;
|
73
|
+
float: left;
|
74
|
+
border-radius: 2px;
|
75
|
+
}
|
76
|
+
}
|
@@ -0,0 +1,96 @@
|
|
1
|
+
@import "../helpers/index.scss";
|
2
|
+
|
3
|
+
html {
|
4
|
+
overflow: hidden;
|
5
|
+
}
|
6
|
+
|
7
|
+
body {
|
8
|
+
box-sizing: border-box;
|
9
|
+
width: 100%;
|
10
|
+
margin: 0px;
|
11
|
+
padding: 0px;
|
12
|
+
font-family: 'Open Sans', sans-serif !important;
|
13
|
+
background-color: $grey-lightest-clr !important;
|
14
|
+
}
|
15
|
+
|
16
|
+
//main-layout-styles
|
17
|
+
.cm-admin {
|
18
|
+
display: flex;
|
19
|
+
width: 100%;
|
20
|
+
height: 100%;
|
21
|
+
|
22
|
+
.panel-area {
|
23
|
+
width: calc(100% - 225px);
|
24
|
+
margin-left: 225px;
|
25
|
+
}
|
26
|
+
|
27
|
+
.components {
|
28
|
+
margin-top: 140px;
|
29
|
+
padding: 10px 30px;
|
30
|
+
.field-container {
|
31
|
+
max-width: 400px;
|
32
|
+
}
|
33
|
+
}
|
34
|
+
}
|
35
|
+
|
36
|
+
|
37
|
+
a:hover,
|
38
|
+
a {
|
39
|
+
text-decoration: none !important;
|
40
|
+
}
|
41
|
+
|
42
|
+
// daterangepicker theme styles
|
43
|
+
.daterangepicker {
|
44
|
+
.active {
|
45
|
+
background-color: $brand-color !important;
|
46
|
+
}
|
47
|
+
.drp-buttons {
|
48
|
+
.btn-primary {
|
49
|
+
background-color: $brand-color !important;
|
50
|
+
}
|
51
|
+
}
|
52
|
+
}
|
53
|
+
|
54
|
+
// datepicker theme styles
|
55
|
+
.datepicker {
|
56
|
+
.active {
|
57
|
+
background-color: $brand-color !important;
|
58
|
+
}
|
59
|
+
}
|
60
|
+
|
61
|
+
.opacity-1 {
|
62
|
+
opacity: 1 !important;
|
63
|
+
}
|
64
|
+
|
65
|
+
.page-container {
|
66
|
+
height: 100vh;
|
67
|
+
}
|
68
|
+
|
69
|
+
.sticky-container {
|
70
|
+
position: sticky;
|
71
|
+
top: 0;
|
72
|
+
background-color: #fff;
|
73
|
+
z-index: 1;
|
74
|
+
}
|
75
|
+
|
76
|
+
.scrollable {
|
77
|
+
overflow: auto;
|
78
|
+
}
|
79
|
+
|
80
|
+
.datetime-wrapper {
|
81
|
+
position: relative;
|
82
|
+
}
|
83
|
+
|
84
|
+
.cm-admin-static {
|
85
|
+
width: auto;
|
86
|
+
text-align: center;
|
87
|
+
padding: 0 15px;
|
88
|
+
}
|
89
|
+
|
90
|
+
.date-filter-wrapper {
|
91
|
+
position: absolute;
|
92
|
+
line-height: 28px;
|
93
|
+
top: 0;
|
94
|
+
opacity: 0;
|
95
|
+
z-index: -1;
|
96
|
+
}
|
@@ -0,0 +1,76 @@
|
|
1
|
+
@import "../helpers/index.scss";
|
2
|
+
|
3
|
+
.show-page {
|
4
|
+
overflow: auto;
|
5
|
+
|
6
|
+
&__tabs {
|
7
|
+
.cm-tabs-bar {
|
8
|
+
background-color: #FFF;
|
9
|
+
width: 100%;
|
10
|
+
.nav-pills {
|
11
|
+
margin-left: 20px;
|
12
|
+
}
|
13
|
+
.nav-link {
|
14
|
+
position: static;
|
15
|
+
left: 0%;
|
16
|
+
right: 0%;
|
17
|
+
font-size: 14px;
|
18
|
+
line-height: 22px;
|
19
|
+
flex: none;
|
20
|
+
order: 0;
|
21
|
+
flex-grow: 0;
|
22
|
+
color: #6B7586;
|
23
|
+
background-color: #FFF;
|
24
|
+
border-radius: 0px;
|
25
|
+
}
|
26
|
+
.nav-link.active {
|
27
|
+
color: #6554E0;
|
28
|
+
border-bottom: 3px #6554E0 solid;
|
29
|
+
background-color: #FFF;
|
30
|
+
}
|
31
|
+
}
|
32
|
+
}
|
33
|
+
|
34
|
+
&__inner {
|
35
|
+
padding: 24px;
|
36
|
+
.info-section {
|
37
|
+
margin-bottom: 32px;
|
38
|
+
|
39
|
+
.section-heading {
|
40
|
+
@include font($size: $t3-text, $color: $primary-text-clr, $weight: 600);
|
41
|
+
line-height: 24px;
|
42
|
+
margin: 0 0 16px;
|
43
|
+
}
|
44
|
+
.paper {
|
45
|
+
max-width: 752px;
|
46
|
+
padding: 24px;
|
47
|
+
background-color: $white;
|
48
|
+
border: 1px solid $grey-light-clr;
|
49
|
+
border-radius: $radius-4;
|
50
|
+
}
|
51
|
+
.info-split {
|
52
|
+
display: flex;
|
53
|
+
margin-bottom: 24px;
|
54
|
+
&:nth-last-child(1) {
|
55
|
+
margin-bottom: 0;
|
56
|
+
}
|
57
|
+
&__lhs {
|
58
|
+
width: 20%;
|
59
|
+
p {
|
60
|
+
@include font($size: $t4-text, $color: $ink-lighter-clr);
|
61
|
+
line-height: 22px;
|
62
|
+
margin: 0;
|
63
|
+
}
|
64
|
+
}
|
65
|
+
&__rhs {
|
66
|
+
width: 80%;
|
67
|
+
p {
|
68
|
+
@include font($size: $t4-text, $color: #172b4d);
|
69
|
+
line-height: 19px;
|
70
|
+
margin: 0;
|
71
|
+
}
|
72
|
+
}
|
73
|
+
}
|
74
|
+
}
|
75
|
+
}
|
76
|
+
}
|