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,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
+ }
@@ -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
+ }
@@ -10,21 +10,17 @@
10
10
  * files in this directory. Styles in this file should be added after the last require_* statement.
11
11
  * It is generally better to create a new file per style scope.
12
12
  *
13
- *= require_tree .
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'
14
25
  *= require_self
15
- *= require font-awesome
16
- *= require 'select2'
17
- *= require bootstrap/dist/css/bootstrap
18
26
  */
19
-
20
- .error-color {
21
- color: red;
22
- }
23
-
24
- .select2.select2-container {
25
- width: 100% !important;
26
- }
27
-
28
- .select2-selection {
29
- height: 40px !important;
30
- }