rails_modular_admin 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (118) hide show
  1. checksums.yaml +7 -0
  2. data/MIT-LICENSE +20 -0
  3. data/README.md +71 -0
  4. data/Rakefile +34 -0
  5. data/app/assets/config/rails_modular_admin_manifest.js +2 -0
  6. data/app/assets/javascripts/index.js +87 -0
  7. data/app/assets/javascripts/rails_modular_admin.js +3 -0
  8. data/app/assets/javascripts/rails_modular_admin/_common/_helpers/code-helper.js +36 -0
  9. data/app/assets/javascripts/rails_modular_admin/_common/_helpers/for-helper.js +8 -0
  10. data/app/assets/javascripts/rails_modular_admin/_common/_helpers/is-helper.js +98 -0
  11. data/app/assets/javascripts/rails_modular_admin/_common/_helpers/times-helper.js +11 -0
  12. data/app/assets/javascripts/rails_modular_admin/_common/animations/animations.js +14 -0
  13. data/app/assets/javascripts/rails_modular_admin/_common/items-list/items-list.js +19 -0
  14. data/app/assets/javascripts/rails_modular_admin/_common/nprogress/nprogress.js +9 -0
  15. data/app/assets/javascripts/rails_modular_admin/_common/sameheight-items/sameheight-items.js +44 -0
  16. data/app/assets/javascripts/rails_modular_admin/app.js +1429 -0
  17. data/app/assets/javascripts/rails_modular_admin/app/_common/editor/editor-helper.js +10 -0
  18. data/app/assets/javascripts/rails_modular_admin/app/_common/editor/editor.js +34 -0
  19. data/app/assets/javascripts/rails_modular_admin/app/_common/header/nav/nav.js +14 -0
  20. data/app/assets/javascripts/rails_modular_admin/app/_common/modals/modal-media/modal-media.js +23 -0
  21. data/app/assets/javascripts/rails_modular_admin/app/_common/sidebar/customize/customize.js +155 -0
  22. data/app/assets/javascripts/rails_modular_admin/app/_common/sidebar/sidebar.js +38 -0
  23. data/app/assets/javascripts/rails_modular_admin/app/charts/charts-flot/charts-flot.js +329 -0
  24. data/app/assets/javascripts/rails_modular_admin/app/charts/charts-morris/charts-morris.js +125 -0
  25. data/app/assets/javascripts/rails_modular_admin/app/dashboard/history/history.js +145 -0
  26. data/app/assets/javascripts/rails_modular_admin/app/dashboard/items/items.js +41 -0
  27. data/app/assets/javascripts/rails_modular_admin/app/dashboard/sales-breakdown/sales-breakdown.js +37 -0
  28. data/app/assets/javascripts/rails_modular_admin/app/dashboard/sales-by-countries/sales-by-countries.js +50 -0
  29. data/app/assets/javascripts/rails_modular_admin/app/dashboard/tasks/tasks.js +13 -0
  30. data/app/assets/javascripts/rails_modular_admin/app/forms/input-groups/input-groups.js +14 -0
  31. data/app/assets/javascripts/rails_modular_admin/app/items/editor/item-editor.js +34 -0
  32. data/app/assets/javascripts/rails_modular_admin/app/items/list/items-list.js +44 -0
  33. data/app/assets/javascripts/rails_modular_admin/app/pages/error.js +18 -0
  34. data/app/assets/javascripts/rails_modular_admin/auth/login/login.js +35 -0
  35. data/app/assets/javascripts/rails_modular_admin/auth/reset/reset.js +31 -0
  36. data/app/assets/javascripts/rails_modular_admin/auth/signup/signup.js +88 -0
  37. data/app/assets/javascripts/rails_modular_admin/config.js +51 -0
  38. data/app/assets/javascripts/rails_modular_admin/main.js +16 -0
  39. data/app/assets/javascripts/rails_modular_admin/vendor.js +60485 -0
  40. data/app/assets/stylesheets/rails_modular_admin.scss +1 -0
  41. data/app/assets/stylesheets/rails_modular_admin/_common/_styles/_mixins.scss +103 -0
  42. data/app/assets/stylesheets/rails_modular_admin/_common/_styles/layout.scss +74 -0
  43. data/app/assets/stylesheets/rails_modular_admin/_common/_styles/misc.scss +115 -0
  44. data/app/assets/stylesheets/rails_modular_admin/_common/_styles/typography.scss +60 -0
  45. data/app/assets/stylesheets/rails_modular_admin/_common/alert/alert.scss +27 -0
  46. data/app/assets/stylesheets/rails_modular_admin/_common/animations/animations.scss +4 -0
  47. data/app/assets/stylesheets/rails_modular_admin/_common/button/button.scss +117 -0
  48. data/app/assets/stylesheets/rails_modular_admin/_common/card/card.scss +200 -0
  49. data/app/assets/stylesheets/rails_modular_admin/_common/chart/chart.scss +9 -0
  50. data/app/assets/stylesheets/rails_modular_admin/_common/dropdown/dropdown.scss +28 -0
  51. data/app/assets/stylesheets/rails_modular_admin/_common/flex/flex.scss +14 -0
  52. data/app/assets/stylesheets/rails_modular_admin/_common/form/form.scss +235 -0
  53. data/app/assets/stylesheets/rails_modular_admin/_common/images-container/images-container.scss +129 -0
  54. data/app/assets/stylesheets/rails_modular_admin/_common/items-list/items-list.scss +388 -0
  55. data/app/assets/stylesheets/rails_modular_admin/_common/logo/logo.scss +46 -0
  56. data/app/assets/stylesheets/rails_modular_admin/_common/modal/modal-tabs.scss +27 -0
  57. data/app/assets/stylesheets/rails_modular_admin/_common/navigation/navigation.scss +114 -0
  58. data/app/assets/stylesheets/rails_modular_admin/_common/nprogress/nprogress.scss +22 -0
  59. data/app/assets/stylesheets/rails_modular_admin/_common/pagination/pagination.scss +20 -0
  60. data/app/assets/stylesheets/rails_modular_admin/_common/sameheight-items/sameheight-items.scss +5 -0
  61. data/app/assets/stylesheets/rails_modular_admin/_common/scrollbar/scrollbar.scss +24 -0
  62. data/app/assets/stylesheets/rails_modular_admin/_common/table/table.scss +12 -0
  63. data/app/assets/stylesheets/rails_modular_admin/_main.scss +41 -0
  64. data/app/assets/stylesheets/rails_modular_admin/_themes/blue-theme.scss +1 -0
  65. data/app/assets/stylesheets/rails_modular_admin/_themes/custom-theme.scss +0 -0
  66. data/app/assets/stylesheets/rails_modular_admin/_themes/green-theme.scss +10 -0
  67. data/app/assets/stylesheets/rails_modular_admin/_themes/orange-theme.scss +12 -0
  68. data/app/assets/stylesheets/rails_modular_admin/_themes/purple-theme.scss +6 -0
  69. data/app/assets/stylesheets/rails_modular_admin/_themes/red-theme.scss +11 -0
  70. data/app/assets/stylesheets/rails_modular_admin/_themes/seagreen-theme.scss +9 -0
  71. data/app/assets/stylesheets/rails_modular_admin/_variables.scss +109 -0
  72. data/app/assets/stylesheets/rails_modular_admin/app/_common/editor/editor.scss +28 -0
  73. data/app/assets/stylesheets/rails_modular_admin/app/_common/footer/footer.scss +68 -0
  74. data/app/assets/stylesheets/rails_modular_admin/app/_common/header/buttons/buttons.scss +30 -0
  75. data/app/assets/stylesheets/rails_modular_admin/app/_common/header/collapse/collapse.scss +23 -0
  76. data/app/assets/stylesheets/rails_modular_admin/app/_common/header/header.scss +33 -0
  77. data/app/assets/stylesheets/rails_modular_admin/app/_common/header/nav/nav.scss +64 -0
  78. data/app/assets/stylesheets/rails_modular_admin/app/_common/header/nav/notifications/notifications.scss +126 -0
  79. data/app/assets/stylesheets/rails_modular_admin/app/_common/header/nav/profile/profile.scss +93 -0
  80. data/app/assets/stylesheets/rails_modular_admin/app/_common/header/search/search.scss +68 -0
  81. data/app/assets/stylesheets/rails_modular_admin/app/_common/modals/modal-media/modal-media.scss +56 -0
  82. data/app/assets/stylesheets/rails_modular_admin/app/_common/modals/modals.scss +19 -0
  83. data/app/assets/stylesheets/rails_modular_admin/app/_common/sidebar/customize/customize.scss +157 -0
  84. data/app/assets/stylesheets/rails_modular_admin/app/_common/sidebar/header/header.scss +14 -0
  85. data/app/assets/stylesheets/rails_modular_admin/app/_common/sidebar/sidebar.scss +240 -0
  86. data/app/assets/stylesheets/rails_modular_admin/app/app.scss +72 -0
  87. data/app/assets/stylesheets/rails_modular_admin/app/charts/charts-flot/charts-flot.scss +18 -0
  88. data/app/assets/stylesheets/rails_modular_admin/app/dashboard/dashboard.scss +7 -0
  89. data/app/assets/stylesheets/rails_modular_admin/app/dashboard/history/history.scss +6 -0
  90. data/app/assets/stylesheets/rails_modular_admin/app/dashboard/items/items-header.scss +81 -0
  91. data/app/assets/stylesheets/rails_modular_admin/app/dashboard/items/items-list.scss +102 -0
  92. data/app/assets/stylesheets/rails_modular_admin/app/dashboard/sales-breakdown/sales-breakdown.scss +7 -0
  93. data/app/assets/stylesheets/rails_modular_admin/app/dashboard/sales-by-countries/sales-by-countries.scss +14 -0
  94. data/app/assets/stylesheets/rails_modular_admin/app/dashboard/stats/stats.scss +70 -0
  95. data/app/assets/stylesheets/rails_modular_admin/app/dashboard/tasks/tasks.scss +47 -0
  96. data/app/assets/stylesheets/rails_modular_admin/app/items/editor/item-editor.scss +3 -0
  97. data/app/assets/stylesheets/rails_modular_admin/app/items/list/items-list.scss +330 -0
  98. data/app/assets/stylesheets/rails_modular_admin/app/pages/error.scss +73 -0
  99. data/app/assets/stylesheets/rails_modular_admin/app/pages/screenful/screenful.scss +101 -0
  100. data/app/assets/stylesheets/rails_modular_admin/app/tables/responsive-tables/responsive-tables.scss +77 -0
  101. data/app/assets/stylesheets/rails_modular_admin/application.scss +26 -0
  102. data/app/assets/stylesheets/rails_modular_admin/auth/auth.scss +72 -0
  103. data/app/controllers/rails_modular_admin/application_controller.rb +5 -0
  104. data/app/helpers/rails_modular_admin/application_helper.rb +4 -0
  105. data/app/jobs/rails_modular_admin/application_job.rb +4 -0
  106. data/app/mailers/rails_modular_admin/application_mailer.rb +6 -0
  107. data/app/models/rails_modular_admin/application_record.rb +5 -0
  108. data/app/views/layouts/rails_modular_admin/application.html.erb +16 -0
  109. data/config/initializers/assets.rb +1 -0
  110. data/config/routes.rb +2 -0
  111. data/lib/generators/rails_modular_admin/USAGE +8 -0
  112. data/lib/generators/rails_modular_admin/install_generator.rb +12 -0
  113. data/lib/generators/rails_modular_admin/templates/custom-theme.scss +14 -0
  114. data/lib/rails_modular_admin.rb +11 -0
  115. data/lib/rails_modular_admin/engine.rb +5 -0
  116. data/lib/rails_modular_admin/version.rb +3 -0
  117. data/lib/tasks/rails_modular_admin_tasks.rake +47 -0
  118. metadata +205 -0
@@ -0,0 +1,200 @@
1
+ .card {
2
+ background-color: #fff;
3
+ box-shadow: 1px 1px 5px fade-out($color-text-light, 0.9);
4
+
5
+ .card {
6
+ box-shadow: none;
7
+ }
8
+
9
+ margin-bottom: $card-margin-bottom;
10
+ border-radius: 0;
11
+ border: none;
12
+
13
+ .card-header {
14
+ background-image: none;
15
+ background-color: #ffffff;
16
+ align-items: center;
17
+ display: flex;
18
+ flex-direction: row;
19
+ padding: 0;
20
+ border-radius: 0;
21
+ min-height: 50px;
22
+ border: none;
23
+
24
+ @include clearfix();
25
+
26
+ &.bordered {
27
+ border-bottom: 1px solid $color-divider;
28
+ }
29
+
30
+ &.card-header-sm {
31
+ min-height: 40px;
32
+ }
33
+
34
+ &>span {
35
+ vertical-align: middle;
36
+ }
37
+
38
+ .pull-right {
39
+ margin-left: auto;
40
+ }
41
+
42
+ .header-block {
43
+ padding: 0.5rem $card-padding-x;;
44
+
45
+
46
+ @include media-up(xl) {
47
+ padding: 0.5rem $card-padding-x-xl;
48
+ }
49
+
50
+ @include media-down(sm) {
51
+ padding: 0.5rem $card-padding-x-sm;
52
+ }
53
+ }
54
+
55
+ .title {
56
+ color: $color-text;
57
+ display: inline-flex;
58
+ }
59
+
60
+ .btn {
61
+ margin: 0;
62
+ }
63
+
64
+ .nav-tabs {
65
+ border-color: transparent;
66
+ align-self: stretch;
67
+ display: flex;
68
+ position: relative;
69
+ top: 1px;
70
+
71
+ .nav-item {
72
+ margin-left: 0;
73
+ display: flex;
74
+ align-self: stretch;
75
+
76
+ .nav-link {
77
+ display: flex;
78
+ align-self: stretch;
79
+ align-items: center;
80
+ color: $color-text;
81
+ opacity: 0.7;
82
+ padding-left: 10px;
83
+ padding-right: 10px;
84
+ border-radius: 0;
85
+ font-size: 14px;
86
+ border-top-width: 2px;
87
+ border-bottom: 1px solid $color-divider;
88
+ text-decoration: none;
89
+
90
+ &.active {
91
+ border-top-color: $color-primary;
92
+ border-bottom-color: transparent;
93
+ opacity: 1;
94
+
95
+ &:hover,
96
+ &:focus {
97
+ opacity: 1;
98
+ background-color: $color-text-inverse;
99
+ border-color: $color-divider $color-divider transparent;
100
+ border-top-color: $color-primary;;
101
+ }
102
+ }
103
+
104
+ &:hover,
105
+ &:focus {
106
+ opacity: 1;
107
+ background-color: transparent;
108
+ border-color: transparent;
109
+ }
110
+ }
111
+ }
112
+ }
113
+ }
114
+
115
+ &.card-default {
116
+
117
+ & > .card-header {
118
+ background-color: #fff;
119
+ color: inherit;
120
+ }
121
+ }
122
+
123
+ &.card-primary {
124
+ border-color: $color-primary;
125
+ & > .card-header {
126
+ background-color: $color-primary;
127
+ border-color: $color-primary;
128
+ }
129
+ }
130
+
131
+ &.card-success {
132
+ & > .card-header {
133
+ background-color: $color-success;
134
+ }
135
+ }
136
+
137
+ &.card-info {
138
+ & > .card-header {
139
+ background-color: $color-info;
140
+ }
141
+ }
142
+
143
+ &.card-warning {
144
+ & > .card-header {
145
+ background-color: $color-warning;
146
+ }
147
+ }
148
+
149
+ &.card-danger {
150
+ & > .card-header {
151
+ background-color: $color-danger;
152
+ }
153
+ }
154
+
155
+ &.card-inverse {
156
+ & > .card-header {
157
+ background-color: $color-inverse;
158
+ }
159
+ }
160
+
161
+ .title-block,
162
+ .card-title-block {
163
+ padding-bottom: 0;
164
+ margin-bottom: 20px;
165
+ border: none;
166
+
167
+ @include clearfix();
168
+ }
169
+
170
+ .section {
171
+ margin-bottom: 20px;
172
+ }
173
+
174
+ .example,
175
+ .section.demo {
176
+ margin-bottom: 20px;
177
+ }
178
+ }
179
+
180
+
181
+ .card-block {
182
+ padding: $card-padding-x;
183
+
184
+ .tab-content {
185
+ padding: 0;
186
+ border-color: transparent;
187
+ }
188
+
189
+ @include media(xl) {
190
+ padding: $card-padding-x-xl;
191
+ }
192
+
193
+ @include media-down(sm) {
194
+ padding: $card-padding-x-sm;
195
+ }
196
+ }
197
+
198
+ .card-footer {
199
+ background-color: #fafafa;
200
+ }
@@ -0,0 +1,9 @@
1
+ .easy-pie-chart {
2
+ width: 50px;
3
+ height: 50px;
4
+ // margin-right: 10px;
5
+ display: inline-block;
6
+ background-color: $color-divider;
7
+ border-radius: 5px;
8
+ // vertical-align: top;
9
+ }
@@ -0,0 +1,28 @@
1
+ .dropdown-menu {
2
+ float: left;
3
+ box-shadow: 2px 3px 6px $dropbown-color-border;
4
+ border: 1px solid $dropbown-color-border;
5
+ border-top-left-radius: 0;
6
+ border-top-right-radius: 0;
7
+
8
+
9
+ .dropdown-item {
10
+ display: block;
11
+ padding: 0px 15px;
12
+ clear: both;
13
+ font-weight: normal;
14
+ color: $color-text;
15
+ white-space: nowrap;
16
+ transition: none;
17
+
18
+ i {
19
+ margin-right: 2px;
20
+ }
21
+
22
+ &:hover {
23
+ color: $color-primary !important;
24
+ background: none;
25
+ background-color: darken(#fff, 4%);
26
+ }
27
+ }
28
+ }
@@ -0,0 +1,14 @@
1
+ .flex-row {
2
+ display: flex;
3
+ flex-direction: row;
4
+ }
5
+
6
+ .flex-col {
7
+ display: flex;
8
+ flex-direction: column;
9
+ }
10
+
11
+ .centralize-y {
12
+ display: flex;
13
+ align-items: center;
14
+ }
@@ -0,0 +1,235 @@
1
+ input,
2
+ textarea {
3
+ outline: none;
4
+ }
5
+
6
+
7
+ .form-group {
8
+ .row {
9
+ margin-left: -10px;
10
+ margin-right: -10px;
11
+
12
+ [class^='col'] {
13
+ padding-left: 10px;
14
+ padding-right: 10px;
15
+ }
16
+ }
17
+
18
+ &.has-error {
19
+ span.has-error {
20
+ color: $color-danger;
21
+ font-size: 13px;
22
+ display: block !important;
23
+ }
24
+
25
+ .form-control-feedback {
26
+ color: $color-danger;
27
+ }
28
+ }
29
+
30
+ &.has-warning {
31
+ span.has-warning {
32
+ color: $color-warning;
33
+ font-size: 13px;
34
+ display: block !important;
35
+ }
36
+
37
+ .form-control-feedback {
38
+ color: $color-warning;
39
+ }
40
+ }
41
+
42
+ &.has-success {
43
+ span.has-success {
44
+ color: $color-success;
45
+ font-size: 13px;
46
+ display: block !important;
47
+ }
48
+
49
+ .form-control-feedback {
50
+ color: $color-success;
51
+ }
52
+ }
53
+ }
54
+
55
+ /* Input groups */
56
+ .input-group {
57
+ margin-bottom: 10px;
58
+
59
+ .form-control {
60
+ padding-left: 5px;
61
+ }
62
+
63
+ .input-group-btn {
64
+ .btn {
65
+ margin-bottom: 0;
66
+ }
67
+ }
68
+
69
+ span.input-group-addon {
70
+ font-style: italic;
71
+ border: none;
72
+ border-radius: 0;
73
+ border: none;
74
+ background-color: $color-divider;
75
+ transition: background-color ease-in-out 15s, color ease-in-out .15s;
76
+
77
+ &.focus {
78
+ background-color: $color-primary;
79
+ color: #ffffff;
80
+ }
81
+ }
82
+ }
83
+
84
+ label,
85
+ .control-label {
86
+ font-weight: 600;
87
+ }
88
+
89
+ .form-control.underlined {
90
+ padding-left: 0;
91
+ padding-right: 0;
92
+ border-radius: 0;
93
+ border: none;
94
+ border-radius: 0;
95
+ box-shadow: none;
96
+ border-bottom: 1px solid $color-divider;
97
+
98
+ &.indented {
99
+ padding: .375rem .75rem;
100
+ }
101
+
102
+ .has-error &:focus,
103
+ .has-warning &:focus,
104
+ .has-success &:focus,
105
+ &:focus {
106
+ border: none;
107
+ box-shadow: none;
108
+ border-bottom: 1px solid $color-primary;
109
+ }
110
+
111
+ .has-error & {
112
+ box-shadow: none;
113
+ border-color: $color-danger;
114
+ }
115
+
116
+ .has-warning & {
117
+ box-shadow: none;
118
+ border-color: $color-warning;
119
+ }
120
+
121
+ .has-success & {
122
+ box-shadow: none;
123
+ border-color: $color-success;
124
+ }
125
+ }
126
+
127
+ .form-control.boxed {
128
+ border-radius: 0;
129
+ box-shadow: none;
130
+
131
+ &:focus {
132
+ border: 1px solid $color-primary;
133
+ }
134
+ }
135
+
136
+ .radio,
137
+ .checkbox {
138
+ display: none;
139
+
140
+ & + span {
141
+ padding: 0;
142
+ padding-right: 10px;
143
+ }
144
+
145
+ & + span:before {
146
+ font-family: FontAwesome;
147
+ font-size: 21px;
148
+ display: inline-block;
149
+ vertical-align: middle;
150
+ letter-spacing: 10px;
151
+ color: darken($color-divider, 5%);
152
+ }
153
+
154
+ &:checked + span:before {
155
+ color: $color-primary;
156
+ }
157
+
158
+ &:disabled + span:before {
159
+ opacity: 0.5;
160
+ cursor: not-allowed;
161
+ }
162
+
163
+ &:checked:disabled + span:before {
164
+ color: darken($color-divider, 5%);
165
+ }
166
+ }
167
+
168
+ .checkbox {
169
+
170
+ & + span:before {
171
+ content: "\f0c8";
172
+ }
173
+
174
+ &:checked + span:before {
175
+ content: "\f14a";
176
+ }
177
+
178
+ &.rounded {
179
+ & + span:before {
180
+ content: "\f111";
181
+ }
182
+
183
+ &:checked + span:before {
184
+ content: "\f058";
185
+ }
186
+ }
187
+ }
188
+
189
+ .radio {
190
+
191
+ & + span:before {
192
+ content: "\f111";
193
+ }
194
+
195
+ &:checked + span:before {
196
+ content: "\f192";
197
+ }
198
+
199
+ &.squared {
200
+ & + span:before {
201
+ content: "\f0c8";
202
+ }
203
+
204
+ &:checked + span:before {
205
+ content: "\f14a";
206
+ }
207
+ }
208
+
209
+ }
210
+
211
+
212
+ // Placeholders
213
+ .form-control {
214
+ &::-webkit-input-placeholder {
215
+ font-style: italic;
216
+ color: darken($color-divider, 5%);
217
+ }
218
+
219
+ &:-moz-placeholder { /* Firefox 18- */
220
+ font-style: italic;
221
+ color: $color-divider;
222
+ }
223
+
224
+ &::-moz-placeholder { /* Firefox 19+ */
225
+ font-style: italic;
226
+ color: $color-divider;
227
+ }
228
+
229
+ &:-ms-input-placeholder {
230
+ font-style: italic;
231
+ color: $color-divider;
232
+ }
233
+ }
234
+
235
+