rails_admin_material 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (56) hide show
  1. checksums.yaml +7 -0
  2. data/MIT-LICENSE +20 -0
  3. data/README.md +25 -0
  4. data/Rakefile +24 -0
  5. data/lib/rails_admin_material.rb +4 -0
  6. data/lib/rails_admin_material/engine.rb +4 -0
  7. data/lib/rails_admin_material/version.rb +3 -0
  8. data/vendor/assets/javascripts/rails_admin/themes/material/bootstrap-material-design/material.js +352 -0
  9. data/vendor/assets/javascripts/rails_admin/themes/material/bootstrap-material-design/material.min.js +2 -0
  10. data/vendor/assets/javascripts/rails_admin/themes/material/bootstrap-material-design/material.min.js.map +1 -0
  11. data/vendor/assets/javascripts/rails_admin/themes/material/bootstrap-material-design/ripples.js +324 -0
  12. data/vendor/assets/javascripts/rails_admin/themes/material/bootstrap-material-design/ripples.min.js +2 -0
  13. data/vendor/assets/javascripts/rails_admin/themes/material/bootstrap-material-design/ripples.min.js.map +1 -0
  14. data/vendor/assets/javascripts/rails_admin/themes/material/ui.js +6 -0
  15. data/vendor/assets/stylesheets/bootstrap/variables.scss +874 -0
  16. data/vendor/assets/stylesheets/rails_admin/themes/material/bootstrap-material-design/_alerts.scss +19 -0
  17. data/vendor/assets/stylesheets/rails_admin/themes/material/bootstrap-material-design/_buttons.scss +246 -0
  18. data/vendor/assets/stylesheets/rails_admin/themes/material/bootstrap-material-design/_cards.scss +68 -0
  19. data/vendor/assets/stylesheets/rails_admin/themes/material/bootstrap-material-design/_checkboxes.scss +272 -0
  20. data/vendor/assets/stylesheets/rails_admin/themes/material/bootstrap-material-design/_colors-map.scss +311 -0
  21. data/vendor/assets/stylesheets/rails_admin/themes/material/bootstrap-material-design/_colors.scss +361 -0
  22. data/vendor/assets/stylesheets/rails_admin/themes/material/bootstrap-material-design/_core.scss +95 -0
  23. data/vendor/assets/stylesheets/rails_admin/themes/material/bootstrap-material-design/_dialogs.scss +54 -0
  24. data/vendor/assets/stylesheets/rails_admin/themes/material/bootstrap-material-design/_dividers.scss +73 -0
  25. data/vendor/assets/stylesheets/rails_admin/themes/material/bootstrap-material-design/_form.scss +42 -0
  26. data/vendor/assets/stylesheets/rails_admin/themes/material/bootstrap-material-design/_import-bs-less.scss +4 -0
  27. data/vendor/assets/stylesheets/rails_admin/themes/material/bootstrap-material-design/_import-bs-sass.scss +1 -0
  28. data/vendor/assets/stylesheets/rails_admin/themes/material/bootstrap-material-design/_inputs-size.scss +223 -0
  29. data/vendor/assets/stylesheets/rails_admin/themes/material/bootstrap-material-design/_inputs.scss +354 -0
  30. data/vendor/assets/stylesheets/rails_admin/themes/material/bootstrap-material-design/_labels.scss +6 -0
  31. data/vendor/assets/stylesheets/rails_admin/themes/material/bootstrap-material-design/_lists.scss +104 -0
  32. data/vendor/assets/stylesheets/rails_admin/themes/material/bootstrap-material-design/_mixins-utilities.scss +31 -0
  33. data/vendor/assets/stylesheets/rails_admin/themes/material/bootstrap-material-design/_mixins.scss +242 -0
  34. data/vendor/assets/stylesheets/rails_admin/themes/material/bootstrap-material-design/_navbar.scss +212 -0
  35. data/vendor/assets/stylesheets/rails_admin/themes/material/bootstrap-material-design/_panels.scss +23 -0
  36. data/vendor/assets/stylesheets/rails_admin/themes/material/bootstrap-material-design/_plugins.scss +7 -0
  37. data/vendor/assets/stylesheets/rails_admin/themes/material/bootstrap-material-design/_popups.scss +20 -0
  38. data/vendor/assets/stylesheets/rails_admin/themes/material/bootstrap-material-design/_progress.scss +12 -0
  39. data/vendor/assets/stylesheets/rails_admin/themes/material/bootstrap-material-design/_radios.scss +117 -0
  40. data/vendor/assets/stylesheets/rails_admin/themes/material/bootstrap-material-design/_shadows.scss +84 -0
  41. data/vendor/assets/stylesheets/rails_admin/themes/material/bootstrap-material-design/_tabs.scss +26 -0
  42. data/vendor/assets/stylesheets/rails_admin/themes/material/bootstrap-material-design/_themes.scss +8 -0
  43. data/vendor/assets/stylesheets/rails_admin/themes/material/bootstrap-material-design/_togglebutton.scss +85 -0
  44. data/vendor/assets/stylesheets/rails_admin/themes/material/bootstrap-material-design/_typography.scss +17 -0
  45. data/vendor/assets/stylesheets/rails_admin/themes/material/bootstrap-material-design/_variables.scss +174 -0
  46. data/vendor/assets/stylesheets/rails_admin/themes/material/bootstrap-material-design/_welljumbo.scss +28 -0
  47. data/vendor/assets/stylesheets/rails_admin/themes/material/bootstrap-material-design/bootstrap-material-design.scss +6 -0
  48. data/vendor/assets/stylesheets/rails_admin/themes/material/bootstrap-material-design/plugins/_plugin-dropdownjs.scss +17 -0
  49. data/vendor/assets/stylesheets/rails_admin/themes/material/bootstrap-material-design/plugins/_plugin-nouislider.scss +112 -0
  50. data/vendor/assets/stylesheets/rails_admin/themes/material/bootstrap-material-design/plugins/_plugin-selectize.scss +93 -0
  51. data/vendor/assets/stylesheets/rails_admin/themes/material/bootstrap-material-design/plugins/_plugin-snackbarjs.scss +34 -0
  52. data/vendor/assets/stylesheets/rails_admin/themes/material/bootstrap-material-design/ripples.scss +38 -0
  53. data/vendor/assets/stylesheets/rails_admin/themes/material/mixins.scss +5 -0
  54. data/vendor/assets/stylesheets/rails_admin/themes/material/theming.scss +124 -0
  55. data/vendor/assets/stylesheets/rails_admin/themes/material/variables.scss +32 -0
  56. metadata +98 -0
@@ -0,0 +1,28 @@
1
+ // This file has been autogenerated by grunt task lessToSass. Any changes will be overwritten.
2
+
3
+ body {
4
+ .container,
5
+ .container-fluid {
6
+
7
+ .well.well-sm {
8
+ padding: 10px;
9
+ }
10
+ .well.well-lg {
11
+ padding: 26px;
12
+ }
13
+ .well,
14
+ .jumbotron {
15
+
16
+ background-color: #fff;
17
+ padding: 19px;
18
+ margin-bottom: 20px;
19
+ @include shadow-z-2();
20
+ border-radius: $border-radius-base;
21
+ border: 0;
22
+ p {
23
+ font-weight: 300;
24
+ }
25
+ @include variations(unquote(""), unquote(""), background-color, $white);
26
+ }
27
+ }
28
+ }
@@ -0,0 +1,6 @@
1
+ // This file has been autogenerated by grunt task lessToSass. Any changes will be overwritten.
2
+
3
+ @import '_variables';
4
+ @import '_mixins';
5
+ @import '_shadows';
6
+ @import '_core';
@@ -0,0 +1,17 @@
1
+ // This file has been autogenerated by grunt task lessToSass. Any changes will be overwritten.
2
+
3
+ .dropdownjs::after {
4
+ right: 5px;
5
+ top: 3px;
6
+ font-size: 25px;
7
+ position: absolute;
8
+
9
+ // bring in the material icon font and icon by code
10
+ font-family: 'Material Icons';
11
+ font-style: normal;
12
+ font-weight: 400;
13
+ content: "\e5c5"; // found here: https://github.com/google/material-design-icons/search?utf8=%E2%9C%93&q=arrow_drop_down
14
+
15
+ pointer-events: none;
16
+ color: #757575;
17
+ }
@@ -0,0 +1,112 @@
1
+ // This file has been autogenerated by grunt task lessToSass. Any changes will be overwritten.
2
+
3
+ .noUi-target,
4
+ .noUi-target * {
5
+ -webkit-touch-callout: none;
6
+ -ms-touch-action: none;
7
+ user-select: none;
8
+ box-sizing: border-box;
9
+ }
10
+ .noUi-base {
11
+ width: 100%;
12
+ height: 100%;
13
+ position: relative;
14
+ }
15
+ .noUi-origin {
16
+ position: absolute;
17
+ right: 0;
18
+ top: 0;
19
+ left: 0;
20
+ bottom: 0;
21
+ }
22
+ .noUi-handle {
23
+ position: relative;
24
+ z-index: 1;
25
+ box-sizing: border-box;
26
+ }
27
+ .noUi-stacking .noUi-handle {
28
+ z-index: 10;
29
+ }
30
+ //.noUi-stacking + .noUi-origin {
31
+ // *z-index: -1;
32
+ //} WARNING: Property with star prefix found. Checks for the star property hack (targets IE6/7) (star-property-hack) Browsers: All
33
+ .noUi-state-tap .noUi-origin {
34
+ transition: left 0.3s, top 0.3s;
35
+ }
36
+ .noUi-state-drag * {
37
+ cursor: inherit !important;
38
+ }
39
+ .noUi-horizontal {
40
+ height: 10px;
41
+ }
42
+ .noUi-handle {
43
+ box-sizing: border-box;
44
+ width: 12px;
45
+ height: 12px;
46
+ left: -10px;
47
+ top: -5px;
48
+ cursor: ew-resize;
49
+ border-radius: 100%;
50
+ transition: all 0.2s ease-out;
51
+ border: 1px solid;
52
+ }
53
+ .noUi-vertical .noUi-handle {
54
+ margin-left: 5px;
55
+ cursor: ns-resize;
56
+ }
57
+ .noUi-horizontal.noUi-extended {
58
+ padding: 0 15px;
59
+ }
60
+ .noUi-horizontal.noUi-extended .noUi-origin {
61
+ right: -15px;
62
+ }
63
+ .noUi-background {
64
+ height: 2px;
65
+ margin: 20px 0;
66
+ }
67
+ .noUi-origin {
68
+ margin: 0;
69
+ border-radius: 0;
70
+ height: 2px;
71
+ background: #c8c8c8;
72
+ &[style^="left: 0"] .noUi-handle {
73
+ background-color: #fff;
74
+ border: 2px solid #c8c8c8;
75
+ &.noUi-active {
76
+ border-width: 1px;
77
+ }
78
+ }
79
+ }
80
+ .noUi-target {
81
+ border-radius: $border-radius-base;
82
+ }
83
+ .noUi-horizontal {
84
+ height: 2px;
85
+ margin: 15px 0;
86
+ }
87
+ .noUi-vertical {
88
+ height: 100%;
89
+ width: 2px;
90
+ margin: 0 15px;
91
+ display: inline-block;
92
+ }
93
+ .noUi-handle.noUi-active {
94
+ transform: scale3d(2.5, 2.5, 1);
95
+ }
96
+ [disabled].noUi-slider{
97
+ opacity: 0.5;
98
+ }
99
+ [disabled] .noUi-handle {
100
+ cursor: not-allowed;
101
+ }
102
+
103
+ .slider {
104
+ background: #c8c8c8;
105
+ }
106
+
107
+ .slider {
108
+ @include variations(unquote(".slider"), unquote(".noUi-connect"), background-color, $brand-primary);
109
+ @include variations(unquote(".slider"), unquote(" .noUi-connect"), background-color, $brand-primary);
110
+ @include variations(unquote(".slider"), unquote(" .noUi-handle"), background-color, $brand-primary);
111
+ @include variations(unquote(".slider"), unquote(" .noUi-handle"), border-color, $brand-primary);
112
+ }
@@ -0,0 +1,93 @@
1
+ // This file has been autogenerated by grunt task lessToSass. Any changes will be overwritten.
2
+
3
+ // Support for Selectize plugin
4
+ // http://brianreavis.github.io/selectize.js/
5
+
6
+ .selectize-control.single, .selectize-control.multi {
7
+ padding: 0;
8
+ .selectize-input, .selectize-input.input-active {
9
+
10
+ cursor: text;
11
+ background: transparent;
12
+ box-shadow: none;
13
+ border: 0;
14
+ padding: 0;
15
+ height: 100%;
16
+ font-size: 14px;
17
+ line-height: 30px;
18
+ .has-items {
19
+ padding: 0;
20
+ }
21
+ &:after {
22
+ right: 5px;
23
+ position: absolute;
24
+ font-size: 25px;
25
+ content: "\e5c5";
26
+ font-family: 'Material Icons';
27
+ speak: none;
28
+ font-style: normal;
29
+ font-weight: normal;
30
+ font-variant: normal;
31
+ text-transform: none;
32
+ line-height: 1;
33
+ -webkit-font-smoothing: antialiased;
34
+ -moz-osx-font-smoothing: grayscale;
35
+ }
36
+ input {
37
+ font-size: 14px;
38
+ outline: 0;
39
+ border: 0;
40
+ background: transparent;
41
+ }
42
+ &.label-floating-fix input {
43
+ opacity: 0;
44
+ }
45
+ > div, > .item {
46
+ display: inline-block;
47
+ margin: 0 8px 3px 0;
48
+ padding: 0;
49
+ background: transparent;
50
+ border: 0;
51
+ &:after {
52
+ content: ",";
53
+ }
54
+ &:last-of-type:after {
55
+ content: "";
56
+ }
57
+ &.active {
58
+ font-weight: bold;
59
+ background: transparent;
60
+ border: 0;
61
+ }
62
+ }
63
+ }
64
+ .selectize-dropdown {
65
+ position: absolute;
66
+ z-index: 1000;
67
+ border: 0;
68
+ width: 100% !important;
69
+ left: 0 !important;
70
+ height: auto;
71
+ background-color: #FFF;
72
+ box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
73
+ border-radius: $border-radius-base;
74
+ padding: 0;
75
+ margin-top: 3px;
76
+ .active {
77
+ background-color: inherit;
78
+ }
79
+ .highlight {
80
+ background-color: #d5d8ff;
81
+ }
82
+ .selected, .selected.active {
83
+ background-color: #EEEEEE;
84
+ }
85
+ [data-selectable], .optgroup-header {
86
+ padding: 10px 20px;
87
+ cursor: pointer;
88
+ }
89
+ }
90
+ .dropdown-active ~ .selectize-dropdown {
91
+ display: block;
92
+ }
93
+ }
@@ -0,0 +1,34 @@
1
+ // This file has been autogenerated by grunt task lessToSass. Any changes will be overwritten.
2
+
3
+ // Support for SnackbarJS plugin
4
+ // https://github.com/FezVrasta/snackbarjs
5
+
6
+ .snackbar {
7
+ // Style
8
+ background-color: #323232;
9
+ color: $mdb-text-color-light;
10
+ font-size: 14px;
11
+ border-radius: $border-radius-base;
12
+ @include shadow-z-1;
13
+
14
+ // Animation
15
+ height: 0;
16
+ transition: transform 0.2s ease-in-out, opacity 0.2s ease-in, height 0s linear 0.2s, padding 0s linear 0.2s, height 0s linear 0.2s;
17
+ transform: translateY(200%);
18
+ }
19
+
20
+ .snackbar.snackbar-opened {
21
+ // Style
22
+ padding: 14px 15px;
23
+ margin-bottom: 20px;
24
+
25
+ // Animation
26
+ height: auto;
27
+ transition: transform 0.2s ease-in-out, opacity 0.2s ease-in, height 0s linear 0.2s, height 0s linear 0.2s;
28
+ transform: none;
29
+ }
30
+
31
+ // Variations
32
+ .snackbar.toast {
33
+ border-radius: 200px;
34
+ }
@@ -0,0 +1,38 @@
1
+ // This file has been autogenerated by grunt task lessToSass. Any changes will be overwritten.
2
+
3
+ .withripple {
4
+ position: relative;
5
+ }
6
+ .ripple-container {
7
+ position: absolute;
8
+ top: 0;
9
+ left: 0;
10
+ z-index: 1;
11
+ width: 100%;
12
+ height: 100%;
13
+ overflow: hidden;
14
+ border-radius: inherit;
15
+ pointer-events: none;
16
+ }
17
+ .ripple {
18
+ position: absolute;
19
+ width: 20px;
20
+ height: 20px;
21
+ margin-left: -10px;
22
+ margin-top: -10px;
23
+ border-radius: 100%;
24
+ background-color: #000; // fallback color
25
+ background-color: rgba(0,0,0,0.05);
26
+ transform: scale(1);
27
+ transform-origin: 50%;
28
+ opacity: 0;
29
+ pointer-events: none;
30
+ }
31
+ .ripple.ripple-on {
32
+ transition: opacity 0.15s ease-in 0s, transform 0.5s cubic-bezier(0.4, 0, 0.2, 1) 0.1s;
33
+ opacity: 0.1;
34
+ }
35
+ .ripple.ripple-out {
36
+ transition: opacity 0.1s linear 0s !important;
37
+ opacity: 0;
38
+ }
@@ -0,0 +1,5 @@
1
+ @mixin gray-input-border() {
2
+ border-top: 1px solid $gray-light2;
3
+ border-left: 1px solid $gray-light2;
4
+ border-right: 1px solid $gray-light2;
5
+ }
@@ -0,0 +1,124 @@
1
+ // --- Generic settings ---------------------------------------------------- //
2
+ // All buttons raised
3
+ .btn, .btn.disabled {
4
+ @extend .btn-raised;
5
+ }
6
+ body {
7
+ font-family: $admin-font;
8
+ }
9
+
10
+ // --- Header settings ----------------------------------------------------- //
11
+ .navbar-header > .navbar-brand, .navbar-default .navbar-nav > li > a {
12
+ color: $fg-navbar-brand;
13
+ &:hover, &:focus {
14
+ color: $fg-navbar-brand;
15
+ opacity: 0.8;
16
+ }
17
+ }
18
+
19
+ // --- Sidebar settings ---------------------------------------------------- //
20
+ .sidebar-nav {
21
+ margin-top: $generic-space * 2;
22
+ .dropdown-header {
23
+ border-bottom: 1px solid $gray-light2;
24
+ }
25
+ .nav-pills li {
26
+ margin-top: 0;
27
+ }
28
+ }
29
+
30
+ // --- Content settings ---------------------------------------------------- //
31
+ .content {
32
+ margin-top: $generic-space * 6;
33
+ }
34
+
35
+ // --- List settings ------------------------------------------------------- //
36
+ // Dashboard progress bars
37
+ .content table .progress {
38
+ height: $line-height-computed;
39
+ }
40
+
41
+ // --- Form settings ------------------------------------------------------- //
42
+ // Inline filter / search forms
43
+ .pjax-form.form-inline .well {
44
+ padding-top: $generic-space * 2.5;
45
+ padding-bottom: $generic-space;
46
+ span a.btn {
47
+ margin-top: 0;
48
+ margin-bottom: 0;
49
+ }
50
+ .input-group .form-group {
51
+ margin: 0;
52
+ }
53
+ }
54
+ // compact forms
55
+ .form-horizontal .form-group {
56
+ margin-top: $generic-space * 2;
57
+ // nested tabs
58
+ .tab-content {
59
+ background-color: $well-bg;
60
+ border-top: 1px dashed $gray-light2;
61
+ border-bottom: 1px dashed $gray-light2;
62
+ }
63
+ .btn-group {
64
+ margin-top: 0;
65
+ margin-bottom: 0;
66
+ }
67
+ .checkbox label {
68
+ text-align: left;
69
+ }
70
+ .control-label {
71
+ margin-top: $generic-space;
72
+ }
73
+ .controls .btn {
74
+ margin-top: $generic-space;
75
+ }
76
+ .form-control.ra-filtering-select-input {
77
+ margin-top: $generic-space;
78
+ }
79
+ .form-control.ra-multiselect-collection, .form-control.ra-multiselect-selection {
80
+ @include gray-input-border();
81
+ }
82
+ .input-group.filtering-select ~ .help-block {
83
+ top: -$generic-space * 2;
84
+ }
85
+ &.belongs_to_association_type > .control-label {
86
+ margin-top: $generic-space * 2;
87
+ }
88
+ &.boolean_type .checkbox > label {
89
+ padding-left: $generic-space * 2;
90
+ }
91
+ input[type="file"] {
92
+ height: $generic-space * 6;
93
+ opacity: 1.0;
94
+ position: initial;
95
+ }
96
+ label.dropdown-toggle {
97
+ padding-top: $generic-space * 1.5;
98
+ padding-bottom: $generic-space * 1.5;
99
+ }
100
+ textarea.form-control {
101
+ @include gray-input-border();
102
+ }
103
+ }
104
+ // modals
105
+ .modal {
106
+ .modal-body {
107
+ padding-bottom: 0;
108
+ > form.form-horizontal {
109
+ margin-top: 0;
110
+ }
111
+ }
112
+ .modal-header {
113
+ a.close {
114
+ @extend .btn;
115
+ }
116
+ }
117
+ .modal-footer {
118
+ margin-bottom: $generic-space * 2;
119
+ margin-right: $generic-space * 2;
120
+ > .btn {
121
+ margin-bottom: 0;
122
+ }
123
+ }
124
+ }