cm-admin 0.1.0 → 0.4.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (129) hide show
  1. checksums.yaml +4 -4
  2. data/.gitignore +12 -0
  3. data/.rspec +3 -0
  4. data/.travis.yml +6 -0
  5. data/Gemfile +7 -1
  6. data/Gemfile.lock +121 -0
  7. data/LICENSE.txt +21 -0
  8. data/README.md +20 -21
  9. data/app/assets/images/logo.png +0 -0
  10. data/app/assets/stylesheets/cm_admin/base/auth.scss +73 -0
  11. data/app/assets/stylesheets/cm_admin/base/common.scss +237 -0
  12. data/app/assets/stylesheets/cm_admin/base/filters.scss +200 -0
  13. data/app/assets/stylesheets/cm_admin/base/form.scss +197 -0
  14. data/app/assets/stylesheets/cm_admin/base/main-nav.scss +47 -0
  15. data/app/assets/stylesheets/cm_admin/base/navbar.scss +65 -0
  16. data/app/assets/stylesheets/cm_admin/base/quicksearch.scss +76 -0
  17. data/app/assets/stylesheets/cm_admin/base/scaffold.scss +96 -0
  18. data/app/assets/stylesheets/cm_admin/base/show.scss +76 -0
  19. data/app/assets/stylesheets/cm_admin/base/sidebar.scss +225 -0
  20. data/app/assets/stylesheets/cm_admin/base/table.scss +320 -0
  21. data/app/assets/stylesheets/cm_admin/base/tabs.scss +26 -0
  22. data/{lib/generators/cm_admin/templates/assets/stylesheets/application.css.scss → app/assets/stylesheets/cm_admin/cm_admin.css.scss} +12 -16
  23. data/app/assets/stylesheets/cm_admin/components/_alerts.scss +101 -0
  24. data/app/assets/stylesheets/cm_admin/components/_buttons.scss +135 -0
  25. data/app/assets/stylesheets/cm_admin/components/_dropdown-popup.scss +153 -0
  26. data/app/assets/stylesheets/cm_admin/components/_input.scss +274 -0
  27. data/app/assets/stylesheets/cm_admin/components/_modal.scss +34 -0
  28. data/app/assets/stylesheets/cm_admin/components/_range.scss +31 -0
  29. data/app/assets/stylesheets/cm_admin/components/_status-tag.scss +68 -0
  30. data/app/assets/stylesheets/cm_admin/components/index.scss +7 -0
  31. data/app/assets/stylesheets/cm_admin/dependency/bootstrap.min.css +7 -0
  32. data/app/assets/stylesheets/cm_admin/helpers/_mixins.scss +20 -0
  33. data/app/assets/stylesheets/cm_admin/helpers/_variable.scss +87 -0
  34. data/app/assets/stylesheets/cm_admin/helpers/index.scss +2 -0
  35. data/app/controllers/cm_admin/application_controller.rb +11 -0
  36. data/app/controllers/cm_admin/exports_controller.rb +16 -0
  37. data/app/controllers/cm_admin/static_controller.rb +12 -0
  38. data/app/helpers/cm_admin/application_helper.rb +11 -0
  39. data/app/helpers/cm_admin/custom_helper.rb +4 -0
  40. data/app/javascript/packs/cm_admin/application.js +22 -0
  41. data/app/javascript/packs/cm_admin/filters.js +347 -0
  42. data/app/javascript/packs/cm_admin/quick_search.js +67 -0
  43. data/app/javascript/packs/cm_admin/scaffolds.js +43 -0
  44. data/app/javascript/stylesheets/cm_admin/application.scss +3 -0
  45. data/app/views/cm_admin/main/_associated_table.html.slim +60 -0
  46. data/app/views/cm_admin/main/_cm_pagy_nav.html.slim +23 -0
  47. data/app/views/cm_admin/main/_filters.html.slim +1 -0
  48. data/app/views/cm_admin/main/_nested_fields.html.slim +7 -0
  49. data/app/views/cm_admin/main/_nested_table_form.html.slim +6 -0
  50. data/app/views/cm_admin/main/_table.html.slim +60 -0
  51. data/app/views/cm_admin/main/_tabs.html.slim +5 -0
  52. data/app/views/cm_admin/main/_top_navbar.html.slim +25 -0
  53. data/app/views/cm_admin/main/associated_index.html.slim +6 -0
  54. data/app/views/cm_admin/main/associated_show.html.slim +6 -0
  55. data/app/views/cm_admin/main/dashboard.html.slim +1 -0
  56. data/app/views/cm_admin/main/edit.html.slim +19 -0
  57. data/app/views/cm_admin/main/index.html.slim +12 -0
  58. data/app/views/cm_admin/main/new.html.slim +22 -0
  59. data/app/views/cm_admin/main/show.html.slim +12 -0
  60. data/app/views/cm_admin/static/error_401.html.slim +4 -0
  61. data/app/views/layouts/_left_sidebar_nav.html.slim +34 -0
  62. data/app/views/layouts/_quick_links.html.slim +25 -0
  63. data/app/views/layouts/cm_admin.html.slim +41 -0
  64. data/app/views/layouts/static.html.slim +18 -0
  65. data/bin/webpack +18 -0
  66. data/bin/webpack-dev-server +18 -0
  67. data/cm_admin.gemspec +21 -31
  68. data/config/.DS_Store +0 -0
  69. data/config/initializers/active_record_extension.rb +9 -0
  70. data/config/routes.rb +19 -0
  71. data/config/webpack/development.js +5 -0
  72. data/config/webpack/environment.js +13 -0
  73. data/config/webpack/production.js +5 -0
  74. data/config/webpack/test.js +5 -0
  75. data/config/webpacker.yml +92 -0
  76. data/lib/cm_admin/constants.rb +33 -0
  77. data/lib/cm_admin/engine.rb +38 -0
  78. data/lib/cm_admin/model.rb +152 -0
  79. data/lib/cm_admin/models/action.rb +36 -0
  80. data/lib/cm_admin/models/actions/blocks.rb +25 -0
  81. data/lib/cm_admin/models/blocks.rb +19 -0
  82. data/lib/cm_admin/models/cm_show_section.rb +20 -0
  83. data/lib/cm_admin/models/column.rb +61 -0
  84. data/lib/cm_admin/models/controller_method.rb +75 -0
  85. data/lib/cm_admin/models/dsl_method.rb +122 -0
  86. data/lib/cm_admin/models/export.rb +54 -0
  87. data/lib/cm_admin/models/field.rb +15 -0
  88. data/lib/cm_admin/models/filter.rb +95 -0
  89. data/lib/cm_admin/models/form_field.rb +21 -0
  90. data/lib/cm_admin/models/tab.rb +13 -0
  91. data/lib/cm_admin/utils.rb +67 -0
  92. data/lib/cm_admin/version.rb +1 -1
  93. data/lib/cm_admin/view_helpers/column_field_helper.rb +29 -0
  94. data/lib/cm_admin/view_helpers/field_display_helper.rb +65 -0
  95. data/lib/cm_admin/view_helpers/filter_helper.rb +190 -0
  96. data/lib/cm_admin/view_helpers/form_field_helper.rb +33 -0
  97. data/lib/cm_admin/view_helpers/form_helper.rb +65 -0
  98. data/lib/cm_admin/view_helpers/manage_column_popup_helper.rb +75 -0
  99. data/lib/cm_admin/view_helpers/navigation_helper.rb +34 -0
  100. data/lib/cm_admin/view_helpers/page_info_helper.rb +57 -0
  101. data/lib/cm_admin/view_helpers.rb +74 -0
  102. data/lib/cm_admin.rb +33 -2
  103. data/lib/generators/cm_admin/install_generator.rb +11 -13
  104. data/lib/tasks/webpack_install.rake +63 -0
  105. data/package.json +23 -0
  106. data/postcss.config.js +12 -0
  107. data/tmp/cache/webpacker/last-compilation-digest-development +1 -0
  108. data/yarn.lock +6933 -0
  109. metadata +155 -42
  110. data/lib/generators/cm_admin/USAGE +0 -8
  111. data/lib/generators/cm_admin/templates/assets/images/same-logo.png +0 -0
  112. data/lib/generators/cm_admin/templates/assets/stylesheets/_variable.scss +0 -11
  113. data/lib/generators/cm_admin/templates/assets/stylesheets/alignment.scss +0 -111
  114. data/lib/generators/cm_admin/templates/assets/stylesheets/devise.scss +0 -98
  115. data/lib/generators/cm_admin/templates/assets/stylesheets/form.scss +0 -131
  116. data/lib/generators/cm_admin/templates/assets/stylesheets/products.scss +0 -21
  117. data/lib/generators/cm_admin/templates/assets/stylesheets/scaffold.scss +0 -241
  118. data/lib/generators/cm_admin/templates/assets/stylesheets/table.scss +0 -90
  119. data/lib/generators/cm_admin/templates/assets/stylesheets/user.scss +0 -25
  120. data/lib/generators/cm_admin/templates/layouts/_navbar.html.slim +0 -9
  121. data/lib/generators/cm_admin/templates/layouts/_side_navbar.html.slim +0 -16
  122. data/lib/generators/cm_admin/templates/layouts/application.html.slim +0 -25
  123. data/lib/generators/cm_admin/templates/layouts/initializer.rb +0 -2
  124. data/lib/generators/cm_admin/templates/views/_filters.html.slim +0 -0
  125. data/lib/generators/cm_admin/templates/views/_form.erb +0 -38
  126. data/lib/generators/cm_admin/templates/views/_table.erb +0 -14
  127. data/lib/generators/cm_admin/templates/views/index.erb +0 -11
  128. data/lib/generators/cm_admin/templates/views/show.erb +0 -8
  129. data/lib/generators/cm_admin/view_generator.rb +0 -57
@@ -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
+ }
@@ -0,0 +1,197 @@
1
+ @import "../helpers/index.scss";
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
38
+ .form-wrapper {
39
+ // margin-top: 60px;
40
+
41
+ &__top-bar {
42
+ position: fixed;
43
+ top: 60px;
44
+ left: 250px;
45
+ display: flex;
46
+ align-items: center;
47
+ width: calc(100% - 250px);
48
+ height: 60px;
49
+ padding: 0 20px;
50
+ background-color: $white;
51
+ box-shadow: 0 1px 0 0 rgba(0, 0, 0, 0.06);
52
+ z-index: 9;
53
+ .back-btn {
54
+ @include font($size: $t1-text, $color: #091e42);
55
+ cursor: pointer;
56
+ span {
57
+ color: #0099ff;
58
+ margin-right: 8px;
59
+ }
60
+ }
61
+ }
62
+
63
+ &__inner {
64
+ margin-top: 120px;
65
+ padding: 20px;
66
+ .paper {
67
+ padding: 20px;
68
+ background-color: $white;
69
+ box-shadow: 0 0 2px 0 rgba(0, 0, 0, 0.1);
70
+ border: 1px solid #ebecf0;
71
+ border-radius: $radius-4;
72
+ }
73
+ }
74
+
75
+ .cm-admin-form {
76
+ max-width: 600px;
77
+ .form-field {
78
+ margin-bottom: 20px;
79
+ .form-label {
80
+ font-weight: 600;
81
+ color: #172b4d;
82
+ font-size: 14px;
83
+ margin-bottom: 0.5rem;
84
+ }
85
+ .form-input {
86
+ label {
87
+ @include font($size: $t4-text, $color: #172b4d, $weight: bold);
88
+ }
89
+ input {
90
+ width: 100%;
91
+ padding: 5px 10px;
92
+ border: 1px solid #c1c7d0;
93
+ border-radius: $radius-2;
94
+ &:focus {
95
+ border-color: #66afe9 !important;
96
+ outline: 0 !important;
97
+ box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 8px rgba(102, 175, 233, 0.6) !important;
98
+ }
99
+ }
100
+ }
101
+
102
+ .file-upload {
103
+ position: relative;
104
+ display: flex;
105
+ justify-content: center;
106
+ align-items: center;
107
+ width: 250px;
108
+ height: 80px;
109
+ border: 2px dashed #c1c7d0;
110
+ border-radius: $radius-4;
111
+ cursor: pointer;
112
+ input[type="file"] {
113
+ position: absolute;
114
+ top: 0;
115
+ right: 0;
116
+ bottom: 0;
117
+ left: 0;
118
+ opacity: 0;
119
+ cursor: pointer;
120
+ }
121
+ label {
122
+ color: #0099ff;
123
+ margin: 0;
124
+ cursor: pointer;
125
+ }
126
+ i {
127
+ color: #0099ff;
128
+ margin-left: 8px;
129
+ }
130
+ }
131
+
132
+ .radio-label {
133
+ color: #172b4d;
134
+ font-size: 16px;
135
+ font-weight: 600;
136
+ margin-left: 8px;
137
+ }
138
+
139
+ .checkbox-label {
140
+ color: #172b4d;
141
+ font-size: 16px;
142
+ font-weight: 600;
143
+ margin-left: 8px;
144
+ }
145
+ }
146
+
147
+ .form-actions {
148
+ input {
149
+ padding: 5px 10px;
150
+ color: $white;
151
+ background-color: #0099ff;
152
+ border: none;
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);
189
+ }
190
+ }
191
+ }
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
+ }