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,36 @@
1
+ .btn {
2
+ border: 0;
3
+ text-transform: uppercase;
4
+
5
+ &[class*="bgm-"]:not(.bgm-white) {
6
+ color: #fff;
7
+ }
8
+
9
+ .caret {
10
+ margin-top: -3px;
11
+ }
12
+
13
+ &:not(.btn-link) {
14
+ box-shadow: 0 2px 5px rgba(0,0,0,.16),0 2px 10px rgba(0,0,0,.12);
15
+ }
16
+ }
17
+
18
+ .btn-link {
19
+ color: #797979;
20
+ text-decoration: none;
21
+ border-radius: 2px;
22
+
23
+ &:hover {
24
+ color: #0a0a0a;
25
+ }
26
+ }
27
+
28
+ .open .btn {
29
+ outline: none !important;
30
+ -webkit-tap-highlight-color: rgba(0, 0, 0, 0) !important;
31
+
32
+ &:focus, &:active {
33
+ outline: none !important;
34
+ -webkit-tap-highlight-color: rgba(0, 0, 0, 0) !important;
35
+ }
36
+ }
@@ -0,0 +1,41 @@
1
+ .card {
2
+ position: relative;
3
+ background: #fff;
4
+ box-shadow: $card-shadow;
5
+ margin-bottom: $grid-gutter-width;
6
+ border-radius: 2px;
7
+
8
+ .card-header {
9
+ position: relative;
10
+ display: block;
11
+ padding: 26px 30px;
12
+ border-radius: 2px 2px 0 0;
13
+
14
+ h2 {
15
+ margin: 0;
16
+ line-height: 100%;
17
+ font-size: 16px;
18
+ font-weight: 400;
19
+
20
+ small {
21
+ display: block;
22
+ margin-top: 8px;
23
+ color: #AEAEAE;
24
+ line-height: 160%;
25
+ }
26
+ }
27
+
28
+ .actions {
29
+ position: absolute;
30
+ right: 10px;
31
+ z-index: 2;
32
+ top: 15px;
33
+ }
34
+ }
35
+
36
+ .card-body {
37
+ &.card-padding {
38
+ padding: 26px 30px;
39
+ }
40
+ }
41
+ }
@@ -0,0 +1,42 @@
1
+ .dropdown:not([data-animation]) .dropdown-menu {
2
+ @include animated(fadeIn, 300ms);
3
+ }
4
+
5
+ .dropdown-menu {
6
+ box-shadow: $dropdown-shadow;
7
+ padding: 10px 0;
8
+ border-radius: 3px;
9
+ top: -1px;
10
+ margin: 0;
11
+ border: 0;
12
+
13
+ & > li > a {
14
+ padding: 10px 20px;
15
+ @include transition(background-color);
16
+ @include transition-duration(300ms);
17
+ }
18
+
19
+ &[class*="bgm-"] {
20
+ & > li > a {
21
+ color: #fff;
22
+ }
23
+ }
24
+ }
25
+
26
+ .dropup {
27
+ .dropdown-menu {
28
+ bottom: -2px;
29
+ }
30
+ }
31
+
32
+ .dropdown-menu-lg {
33
+ width: 300px;
34
+ }
35
+
36
+ .dropdown-header {
37
+ padding: 3px 17px;
38
+ margin-top: 10px;
39
+ color: #b1b1b1;
40
+ text-transform: uppercase;
41
+ font-weight: normal;
42
+ }
@@ -0,0 +1,35 @@
1
+ #footer {
2
+ position: absolute;
3
+ bottom: 0;
4
+ text-align: center;
5
+ width: 100%;
6
+ height: $footer-height;
7
+ color: #a2a2a2;
8
+ padding-top: 35px;
9
+ padding-bottom: 15px;
10
+
11
+ @media (min-width: ($screen-lg-min + 80)) {
12
+ padding-left: $sidebar-left-width;
13
+ }
14
+
15
+ .f-menu {
16
+ display: block;
17
+ width: 100%;
18
+ @extend .list-inline;
19
+ margin-top: 8px;
20
+
21
+ & > li > a {
22
+ color: #a2a2a2;
23
+
24
+ &:hover {
25
+ color: #777;
26
+ }
27
+ }
28
+ }
29
+ }
30
+
31
+ .sidebar-toggled {
32
+ #footer {
33
+ display: none;
34
+ }
35
+ }
@@ -0,0 +1,318 @@
1
+ label {
2
+ font-weight: 500;
3
+ }
4
+
5
+ /*-----------------------------------
6
+ Reset Focus and Active shadows
7
+ ------------------------------------*/
8
+ input:active,
9
+ input:focus {
10
+ outline: 0;
11
+ box-shadow: none !important;
12
+ }
13
+
14
+ .form-control {
15
+ box-shadow: none !important;
16
+ resize: none;
17
+ border-radius: 0;
18
+
19
+ &:active,
20
+ &:focus {
21
+ box-shadow: none;
22
+ }
23
+
24
+ &:not(.fc-alt) {
25
+ border-left: 0;
26
+ border-right: 0;
27
+ border-top: 0;
28
+ -webkit-appearance: none;
29
+ -moz-appearance: none;
30
+ appearance: none;
31
+ padding: 0;
32
+
33
+ &.auto-size {
34
+ padding-top: 6px;
35
+ }
36
+ }
37
+ }
38
+
39
+ .form-group {
40
+ margin-bottom: 25px;
41
+ }
42
+
43
+ /*------------------------
44
+ Checkbox and Radio
45
+ -------------------------*/
46
+ .input-helper:before,
47
+ .input-helper:after,
48
+ .checkbox label:before,
49
+ .radio label:before,
50
+ .radio-inline:before,
51
+ .checkbox-inline:before {
52
+ @include transition(all);
53
+ @include transition-duration(250ms);
54
+ }
55
+
56
+ .checkbox, .radio {
57
+ padding-top: 0 !important;
58
+
59
+ label {
60
+ display: block;
61
+ padding-left: 30px;
62
+ }
63
+
64
+ input {
65
+ top: 0;
66
+ left: 0;
67
+ margin-left: 0 !important;
68
+ z-index: 1;
69
+ cursor: pointer;
70
+ @include opacity(0);
71
+ margin-top: 0;
72
+
73
+ &:checked + .input-helper {
74
+ &:before {
75
+ border-color: $m-teal;
76
+ }
77
+ }
78
+ }
79
+
80
+ .input-helper {
81
+ &:before, &:after {
82
+ position: absolute;
83
+ content: "";
84
+ }
85
+
86
+ &:before {
87
+ left: 0;
88
+ border: 2px solid #7a7a7a;
89
+ }
90
+ }
91
+
92
+ &.disabled {
93
+ @include opacity(0.6);
94
+ }
95
+ }
96
+
97
+ .checkbox {
98
+ input {
99
+ width: 17px;
100
+ height: 17px;
101
+
102
+ &:checked + .input-helper {
103
+ &:before {
104
+ background-color: $m-teal;
105
+ }
106
+
107
+ &:after {
108
+ @include opacity(1);
109
+ @include scale(1);
110
+ }
111
+ }
112
+ }
113
+
114
+ .input-helper {
115
+ &:before {
116
+ top: 0;
117
+ width: 17px;
118
+ height: 17px;
119
+ border-radius: 2px;
120
+ }
121
+
122
+ &:after {
123
+ @include opacity(0);
124
+ @include scale(0);
125
+ content: '\f26b';
126
+ font-family: $font-icon-md;
127
+ position: absolute;
128
+ font-size: 12px;
129
+ left: 2px;
130
+ top: 0;
131
+ color: #fff;
132
+ font-weight: bold;
133
+ }
134
+ }
135
+ }
136
+
137
+ .radio {
138
+ input {
139
+ width: 19px;
140
+ height: 19px;
141
+
142
+ &:checked + .input-helper {
143
+ &:after {
144
+ @include scale(1);
145
+ }
146
+ }
147
+ }
148
+
149
+ .input-helper {
150
+ &:before {
151
+ top: -1px;
152
+ width: 19px;
153
+ height: 19px;
154
+ border-radius: 50%;
155
+ }
156
+
157
+ &:after {
158
+ width: 9px;
159
+ height: 9px;
160
+ background: $m-teal;
161
+ border-radius: 50%;
162
+ top: 4px;
163
+ left: 5px;
164
+ @include scale(0);
165
+ }
166
+ }
167
+ }
168
+
169
+ .checkbox-inline,
170
+ .radio-inline {
171
+ vertical-align: top;
172
+ margin-top: 0;
173
+ padding-left: 25px;
174
+ }
175
+
176
+ /*-------------------------
177
+ Select
178
+ --------------------------*/
179
+ html:not(.ie9) {
180
+ .select {
181
+ position: relative;
182
+
183
+ @include select-bg();
184
+
185
+ &:not(.fg-line):before {
186
+ right: 0;
187
+ }
188
+
189
+ &.fg-line:before {
190
+ right: 10px;
191
+ }
192
+ }
193
+ }
194
+
195
+ /*-------------------------
196
+ Input Feilds
197
+ --------------------------*/
198
+ .fg-line {
199
+ position: relative;
200
+ vertical-align: top;
201
+
202
+ &:not(.form-group) {
203
+ display: inline-block;
204
+ width: 100%;
205
+ }
206
+
207
+ .form-control {
208
+ &:disabled {
209
+ color: #9d9d9d;
210
+ background: transparent;
211
+ }
212
+ }
213
+
214
+ &:not(.disabled):after,
215
+ &:not(.readonly):after {
216
+ position: absolute;
217
+ z-index: 3;
218
+ bottom: 0;
219
+ left: 0;
220
+ height: 2px;
221
+ width: 100%;
222
+ content: "";
223
+ @include scale(0);
224
+ @include transition(all);
225
+ @include transition-duration(300ms);
226
+ }
227
+
228
+ &:not([class*=has-]):after {
229
+ background: $m-blue;
230
+ }
231
+
232
+ &.readonly .form-control {
233
+ color: #9d9d9d;
234
+ background: transparent;
235
+ }
236
+
237
+ &.fg-toggled {
238
+ &:after {
239
+ @include scale(1);
240
+ }
241
+ }
242
+ }
243
+
244
+ .fg-float {
245
+ margin-top: 2px;
246
+ position: relative;
247
+
248
+ .form-control {
249
+ @include placeholder(#fff);
250
+ position: relative;
251
+ background: transparent;
252
+ z-index: 1;
253
+ }
254
+
255
+ .fg-label {
256
+ @include transition(all);
257
+ @include transition-duration(200ms);
258
+ position: absolute;
259
+ top: 5px;
260
+ font-weight: 400;
261
+ color: #959595;
262
+ pointer-events: none;
263
+ z-index: 0;
264
+ left: 0;
265
+ white-space: nowrap;
266
+ }
267
+
268
+ .fg-toggled .fg-label {
269
+ top: -20px;
270
+ font-size: 11px;
271
+ }
272
+ }
273
+
274
+ .control-label {
275
+ font-weight: normal;
276
+ }
277
+
278
+ /*-------------------------
279
+ Validation
280
+ --------------------------*/
281
+ @mixin checkbox-fgline-validation($color)
282
+ {
283
+ .checkbox .input-helper {
284
+ &:before {
285
+ border-color: lighten($color, 20%);
286
+ }
287
+
288
+ &:after {
289
+ border-bottom-color: lighten($color, 10%);;
290
+ border-left-color: lighten($color, 10%);
291
+ }
292
+ }
293
+
294
+ .fg-line:after {
295
+ background: $color;
296
+ }
297
+
298
+ }
299
+ .has-error {
300
+ @include checkbox-fgline-validation($m-red);
301
+ }
302
+
303
+ .has-success {
304
+ @include checkbox-fgline-validation($m-green);
305
+ }
306
+
307
+ .has-warning {
308
+ @include checkbox-fgline-validation($m-orange);
309
+ }
310
+
311
+ /*-----------------------------------
312
+ Fix Textarea Scrollbar in IE9
313
+ ------------------------------------*/
314
+ .ie9 {
315
+ textarea {
316
+ overflow: auto !important;
317
+ }
318
+ }