lotus_admin 0.1.0 → 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (24) hide show
  1. checksums.yaml +4 -4
  2. data/lib/lotus_admin/version.rb +1 -1
  3. data/vendor/assets/javascripts/lotus_admin/theme/app.js +231 -0
  4. data/vendor/assets/stylesheets/lotus_admin/theme/app.scss +18 -0
  5. data/vendor/assets/stylesheets/lotus_admin/theme/inc/404.scss +66 -0
  6. data/vendor/assets/stylesheets/lotus_admin/theme/inc/actions.scss +62 -0
  7. data/vendor/assets/stylesheets/lotus_admin/theme/inc/base.scss +76 -0
  8. data/vendor/assets/stylesheets/lotus_admin/theme/inc/button.scss +36 -0
  9. data/vendor/assets/stylesheets/lotus_admin/theme/inc/card.scss +41 -0
  10. data/vendor/assets/stylesheets/lotus_admin/theme/inc/dropdown.scss +42 -0
  11. data/vendor/assets/stylesheets/lotus_admin/theme/inc/footer.scss +35 -0
  12. data/vendor/assets/stylesheets/lotus_admin/theme/inc/form.scss +318 -0
  13. data/vendor/assets/stylesheets/lotus_admin/theme/inc/header.scss +231 -0
  14. data/vendor/assets/stylesheets/lotus_admin/theme/inc/lists.scss +76 -0
  15. data/vendor/assets/stylesheets/lotus_admin/theme/inc/login.scss +154 -0
  16. data/vendor/assets/stylesheets/lotus_admin/theme/inc/misc.scss +108 -0
  17. data/vendor/assets/stylesheets/lotus_admin/theme/inc/mixin.scss +148 -0
  18. data/vendor/assets/stylesheets/lotus_admin/theme/inc/modal.scss +55 -0
  19. data/vendor/assets/stylesheets/lotus_admin/theme/inc/pagination.scss +114 -0
  20. data/vendor/assets/stylesheets/lotus_admin/theme/inc/sidebar.scss +234 -0
  21. data/vendor/assets/stylesheets/lotus_admin/theme/inc/table.scss +85 -0
  22. data/vendor/assets/stylesheets/lotus_admin/theme/inc/variables.scss +174 -0
  23. data/vendor/assets/stylesheets/theme/inc/sidebar.scss +234 -0
  24. metadata +22 -1
@@ -0,0 +1,85 @@
1
+ .table {
2
+ margin-bottom: 0;
3
+
4
+ & > thead > tr > th {
5
+ background-color: #fff;
6
+ vertical-align: middle;
7
+ font-weight: 500;
8
+ color: #333;
9
+ border-width: 1px;
10
+ text-transform: uppercase;
11
+ }
12
+
13
+ &.table-inner {
14
+ border: 0;
15
+ }
16
+
17
+ & > thead > tr,
18
+ & > tbody > tr,
19
+ & > tfoot > tr {
20
+ & > th, & > td {
21
+ &:first-child {
22
+ padding-left: 30px;
23
+ }
24
+
25
+ &:last-child {
26
+ padding-right: 30px;
27
+ }
28
+
29
+ }
30
+ }
31
+
32
+ & > tbody, & > tfoot {
33
+ & > tr {
34
+ &.active,
35
+ &.info,
36
+ &.warning,
37
+ &.succes,
38
+ &.danger {
39
+ & > td {
40
+ border: 0;
41
+ }
42
+ }
43
+
44
+ &:last-child > td > {
45
+ padding-bottom: 20px;
46
+ }
47
+ }
48
+ }
49
+ }
50
+
51
+ .table-striped {
52
+ td, th {
53
+ border: 0 !important;
54
+ }
55
+ }
56
+
57
+ .table-bordered {
58
+ border-bottom: 0;
59
+ border-left: 0;
60
+ border-right: 0;
61
+
62
+ & > tbody > tr {
63
+ & > td, & > th {
64
+ border-bottom: 0;
65
+ border-left: 0;
66
+
67
+ &:last-child {
68
+ border-right: 0;
69
+ }
70
+ }
71
+ }
72
+
73
+ & > thead > tr > th {
74
+ border-left: 0;
75
+
76
+ &:last-child {
77
+ border-right: 0;
78
+ }
79
+ }
80
+ }
81
+
82
+ .table-responsive {
83
+ border: 0;
84
+ }
85
+
@@ -0,0 +1,174 @@
1
+ /*-------------------------
2
+ Material Colors
3
+ --------------------------*/
4
+ $m-white: #ffffff;
5
+ $m-black: #000000;
6
+ $m-blue: #2196F3;
7
+ $m-red: #F44336;
8
+ $m-purple: #BA68C8;
9
+ $m-deeppurple: #673AB7;
10
+ $m-lightblue: #03A9F4;
11
+ $m-cyan: #00BCD4;
12
+ $m-teal: #009688;
13
+ $m-green: #4CAF50;
14
+ $m-lightgreen: #8BC34A;
15
+ $m-lime: #CDDC39;
16
+ $m-yellow: #FFEB3B;
17
+ $m-amber: #FFC107;
18
+ $m-orange: #FF9800;
19
+ $m-deeporange: #FF5722;
20
+ $m-gray: #9E9E9E;
21
+ $m-bluegray: #607D8B;
22
+ $m-indigo: #3F51B5;
23
+ $m-pink: #E91E63;
24
+ $m-brown: #795548;
25
+
26
+ /*-------------------------
27
+ Font Icon Family
28
+ --------------------------*/
29
+ $font-icon-md: 'Material-Design-Iconic-Font';
30
+
31
+
32
+ /*-------------------------
33
+ Grid System
34
+ --------------------------*/
35
+ $container-large-desktop: 100%;
36
+ $container-tablet: 100%;
37
+ $container-desktop: 100%;
38
+
39
+
40
+ /*-------------------------
41
+ Typography
42
+ --------------------------*/
43
+ $body-bg: #f3f3f3;
44
+ $text-color: #5E5E5E;
45
+ $font-family-sans-serif: roboto;
46
+ $font-size-base: 13px;
47
+ $link-hover-decoration: none;
48
+ $headings-color: #333;
49
+ $headings-small-color: #AEAEAE;
50
+
51
+
52
+ /*-------------------------
53
+ Border Radius
54
+ --------------------------*/
55
+ $border-radius-base: 2px;
56
+ $border-radius-large: 4px;
57
+ $border-radius-small: 2px;
58
+
59
+
60
+ /*-------------------------
61
+ Form
62
+ --------------------------*/
63
+ $input-border: #f0f0f0;
64
+ $input-color: #2e353b;
65
+ $input-border-radius: 0;
66
+ $input-border-radius-large: 0;
67
+ $input-height-large: 40px;
68
+ $input-height-base: 35px;
69
+ $input-height-small: 30px;
70
+ $input-border-focus: #b4b4b4;
71
+ $input-bg: transparent;
72
+
73
+
74
+ /*-------------------------
75
+ Table
76
+ --------------------------*/
77
+ $table-bg: transparent;
78
+ $table-border-color: #F5F5F5;
79
+ $table-cell-padding: 15px;
80
+ $table-condensed-cell-padding: 10px;
81
+ $table-bg-accent: #f9f9f9;
82
+ $table-bg-active: #FFFCBE;
83
+ $table-bg-hover: $table-bg-accent;
84
+
85
+
86
+ /*-------------------------
87
+ Input Group
88
+ --------------------------*/
89
+ $input-group-addon-bg: transparent;
90
+ $input-group-addon-border-color: transparent;
91
+
92
+
93
+ /*-------------------------
94
+ Dropdown
95
+ --------------------------*/
96
+ $dropdown-fallback-border: transparent;
97
+ $dropdown-border: transparent;
98
+ $dropdown-divider-bg: '';
99
+ $dropdown-link-hover-bg: rgba(0,0,0,0.075);
100
+ $dropdown-link-color: #333;
101
+ $dropdown-link-hover-color: #333;
102
+ $dropdown-link-disabled-color: #e4e4e4;
103
+ $dropdown-divider-bg: rgba(0,0,0,0.08);
104
+ $dropdown-link-active-color: #333;
105
+ $dropdown-link-active-bg: rgba(0, 0, 0, 0.075);
106
+ $zindex-dropdown: 9;
107
+ $dropdown-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
108
+
109
+
110
+ /*-------------------------
111
+ Form Validations
112
+ --------------------------*/
113
+ $state-success-text: lighten($m-green, 8%);
114
+ $state-warning-text: lighten($m-orange, 8%);
115
+ $state-danger-text: lighten($m-red, 8%);
116
+
117
+ $state-success-bg: lighten($m-green, 8%);
118
+ $state-warning-bg: lighten($m-orange, 8%);
119
+ $state-danger-bg: lighten($m-red, 8%);
120
+
121
+
122
+ /*-------------------------
123
+ Buttons
124
+ --------------------------*/
125
+ $border-radius-base: 2px;
126
+ $border-radius-large: 2px;
127
+ $border-radius-small: 2px;
128
+ $btn-font-weight: 400;
129
+
130
+
131
+ /*-------------------------
132
+ Modal
133
+ --------------------------*/
134
+ $modal-content-fallback-border-color: transparent;
135
+ $modal-content-border-color: transparent;
136
+ $modal-backdrop-bg: #000;
137
+ $modal-backdrop-opacity: 0.2;
138
+ $modal-header-border-color: transparent;
139
+ $modal-title-line-height: transparent;
140
+ $modal-footer-border-color: transparent;
141
+ $zindex-modal-background: 11;
142
+
143
+
144
+
145
+ /*-------------------------
146
+ Bootstrap Branding
147
+ --------------------------*/
148
+ $brand-primary: $m-blue;
149
+ $brand-success: $m-green;
150
+ $brand-info: $m-cyan;
151
+ $brand-warning: $m-orange;
152
+ $brand-danger: $m-red;
153
+ $app-gray: #F7F7F7;
154
+
155
+
156
+ /*-------------------------
157
+ Colors
158
+ --------------------------*/
159
+ $ace: #F7F7F7;
160
+
161
+
162
+ /*-------------------------
163
+ Blocks
164
+ --------------------------*/
165
+ $sidebar-left-width: 268px;
166
+ $sidebar-right-width: 280px;
167
+ $footer-height: 110px;
168
+ $header-height: 70px;
169
+
170
+
171
+ /*-------------------------
172
+ Card
173
+ --------------------------*/
174
+ $card-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
@@ -0,0 +1,234 @@
1
+ .sidebar {
2
+ position: fixed;
3
+ background: #fff;
4
+ height: #{"calc(100% - 70px)"};
5
+ top: $header-height;
6
+ @include transition(all);
7
+ @include transition-duration(300ms);
8
+ z-index: 10;
9
+ overflow-y: auto;
10
+ box-shadow: $card-shadow;
11
+ }
12
+
13
+ #sidebar {
14
+ width: $sidebar-left-width;
15
+
16
+ @media(max-width: ($screen-md-max + 80)) {
17
+ @include translate3d(-($sidebar-left-width + 20), 0, 0);
18
+ box-shadow: 0 0 20px rgba(14, 18, 21, 0.38);
19
+
20
+
21
+ &.toggled {
22
+ @include translate3d(0, 0, 0);
23
+
24
+ }
25
+ }
26
+ }
27
+
28
+ .sidebar-alt {
29
+ top: 0;
30
+ height: 100%;
31
+
32
+ @include translate3d(-$sidebar-left-width, 0, 0);
33
+
34
+ &.toggled {
35
+ @include translate3d(0, 0, 0);
36
+ }
37
+ }
38
+
39
+ .s-profile {
40
+ & > a {
41
+ display: block;
42
+ height: 129px;
43
+ margin-bottom: 5px;
44
+ width: 100%;
45
+ background: asset-url("lotus_admin/profile-menu.png") no-repeat left top;
46
+ background-size: 100%;
47
+
48
+ .sp-pic {
49
+ padding: 12px;
50
+
51
+ & > img {
52
+ width: 47px;
53
+ height: 47px;
54
+ border-radius: 50%;
55
+ border: 3px solid rgba(0, 0, 0, 0.14);
56
+ box-sizing: content-box;
57
+ }
58
+ }
59
+
60
+ .sp-info {
61
+ background: rgba(0, 0, 0, 0.37);
62
+ padding: 7px 14px;
63
+ color: #fff;
64
+ margin-top: 20px;
65
+ position: relative;
66
+
67
+ & > i {
68
+ font-size: 19px;
69
+ line-height: 100%;
70
+ position: absolute;
71
+ right: 15px;
72
+ top: 7px;
73
+ @include transition(all);
74
+ @include transition-duration(300ms);
75
+ }
76
+ }
77
+ }
78
+
79
+ .main-menu {
80
+ display: none;
81
+ margin: 0 0 0;
82
+
83
+ }
84
+
85
+ &.toggled {
86
+ .sp-info {
87
+ & > i {
88
+ @include rotate(180deg);
89
+ }
90
+ }
91
+ }
92
+ }
93
+
94
+ .main-menu {
95
+ list-style: none;
96
+ padding-left: 0;
97
+ margin: 20px 0 0 0;
98
+
99
+ a {
100
+ @include transition(color);
101
+ @include transition-duration(300ms);
102
+ }
103
+
104
+ a:hover,
105
+ .active > a,
106
+ a.active {
107
+ color: #262626;
108
+ }
109
+
110
+ & > li {
111
+ & > a {
112
+ padding: 14px 20px 14px 65px;
113
+ display: block;
114
+ font-weight: 500;
115
+ position: relative;
116
+ color: #4C4C4C;
117
+
118
+ & > i {
119
+ position: absolute;
120
+ left: 25px;
121
+ font-size: 18px;
122
+ top: 2px;
123
+ width: 25px;
124
+ text-align: center;
125
+ padding: 13px 0;
126
+ }
127
+ }
128
+
129
+ & > a:hover,
130
+ &.active > a {
131
+ background-color: #f7f7f7;
132
+ }
133
+ }
134
+ }
135
+
136
+ .sub-menu {
137
+ & > a {
138
+ position: relative;
139
+
140
+ &:before, &:after {
141
+ position: absolute;
142
+ top: 50%;
143
+ margin-top: -11px;
144
+ font-family: $font-icon-md;
145
+ font-size: 17px;
146
+ right: 15px;
147
+ @include transition(all);
148
+ @include transition-duration(250ms);
149
+ }
150
+
151
+ &:before {
152
+ content: "\f278";
153
+ @include scale(1);
154
+ }
155
+
156
+ &:after {
157
+ content: "\f273";
158
+ @include scale(0);
159
+ }
160
+ }
161
+
162
+ &.toggled {
163
+ & > a {
164
+ &:before {
165
+ content: "\f278";
166
+ @include scale(0);
167
+ }
168
+
169
+ &:after {
170
+ content: "\f273";
171
+ @include scale(1);
172
+ }
173
+ }
174
+ }
175
+
176
+ ul {
177
+ list-style: none;
178
+ display: none;
179
+ padding: 0;
180
+
181
+ & > li {
182
+ & > a {
183
+ padding: 8px 20px 8px 65px;
184
+ font-weight: 500;
185
+ display: block;
186
+ color: #989898;
187
+ }
188
+
189
+ &:first-child > a {
190
+ padding-top: 14px;
191
+ }
192
+
193
+ &:last-child > a {
194
+ padding-bottom: 16px;
195
+ }
196
+
197
+ ul {
198
+ font-size: 12px;
199
+ margin: 10px 0;
200
+ background-color: $app-gray;
201
+ }
202
+ }
203
+ }
204
+
205
+ &.active {
206
+ & > ul {
207
+ display: block;
208
+ }
209
+ }
210
+ }
211
+
212
+ /*-------------------------
213
+ For Stupid IE9
214
+ --------------------------*/
215
+ .ie9 {
216
+ #sidebar {
217
+ @media(max-width: ($screen-md-max + 80)) {
218
+ display: none;
219
+
220
+ &.toggled {
221
+ display: block;
222
+ }
223
+ }
224
+ }
225
+
226
+ .sidebar-alt {
227
+ display: none;
228
+
229
+ &.toggled {
230
+ display: block;
231
+ }
232
+ }
233
+
234
+ }