activeadmin_materialize_theme 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (94) hide show
  1. checksums.yaml +7 -0
  2. data/MIT-LICENSE +20 -0
  3. data/README.md +26 -0
  4. data/Rakefile +34 -0
  5. data/app/assets/config/activeadmin_materialize_theme_manifest.js +1 -0
  6. data/app/assets/javascripts/activeadmin_materialize_theme.js +65 -0
  7. data/app/assets/javascripts/materialize/anime.min.js +34 -0
  8. data/app/assets/javascripts/materialize/autocomplete.js +450 -0
  9. data/app/assets/javascripts/materialize/bin/materialize.js +12374 -0
  10. data/app/assets/javascripts/materialize/bin/materialize.min.js +6 -0
  11. data/app/assets/javascripts/materialize/buttons.js +354 -0
  12. data/app/assets/javascripts/materialize/cards.js +40 -0
  13. data/app/assets/javascripts/materialize/carousel.js +717 -0
  14. data/app/assets/javascripts/materialize/cash.js +960 -0
  15. data/app/assets/javascripts/materialize/characterCounter.js +136 -0
  16. data/app/assets/javascripts/materialize/chips.js +481 -0
  17. data/app/assets/javascripts/materialize/collapsible.js +275 -0
  18. data/app/assets/javascripts/materialize/component.js +44 -0
  19. data/app/assets/javascripts/materialize/datepicker.js +975 -0
  20. data/app/assets/javascripts/materialize/dropdown.js +617 -0
  21. data/app/assets/javascripts/materialize/forms.js +275 -0
  22. data/app/assets/javascripts/materialize/global.js +427 -0
  23. data/app/assets/javascripts/materialize/materialbox.js +453 -0
  24. data/app/assets/javascripts/materialize/modal.js +382 -0
  25. data/app/assets/javascripts/materialize/parallax.js +138 -0
  26. data/app/assets/javascripts/materialize/pushpin.js +145 -0
  27. data/app/assets/javascripts/materialize/range.js +263 -0
  28. data/app/assets/javascripts/materialize/scrollspy.js +295 -0
  29. data/app/assets/javascripts/materialize/select.js +432 -0
  30. data/app/assets/javascripts/materialize/sidenav.js +580 -0
  31. data/app/assets/javascripts/materialize/slider.js +359 -0
  32. data/app/assets/javascripts/materialize/tabs.js +402 -0
  33. data/app/assets/javascripts/materialize/tapTarget.js +314 -0
  34. data/app/assets/javascripts/materialize/timepicker.js +647 -0
  35. data/app/assets/javascripts/materialize/toasts.js +310 -0
  36. data/app/assets/javascripts/materialize/tooltip.js +303 -0
  37. data/app/assets/javascripts/materialize/waves.js +335 -0
  38. data/app/assets/stylesheets/activeadmin_materialize_theme/base.scss +107 -0
  39. data/app/assets/stylesheets/activeadmin_materialize_theme/components/footer.scss +18 -0
  40. data/app/assets/stylesheets/activeadmin_materialize_theme/components/form.scss +140 -0
  41. data/app/assets/stylesheets/activeadmin_materialize_theme/components/header.scss +61 -0
  42. data/app/assets/stylesheets/activeadmin_materialize_theme/components/layout_index.scss +83 -0
  43. data/app/assets/stylesheets/activeadmin_materialize_theme/components/layout_show.scss +56 -0
  44. data/app/assets/stylesheets/activeadmin_materialize_theme/components/sidebar.scss +37 -0
  45. data/app/assets/stylesheets/activeadmin_materialize_theme/components/title_bar.scss +43 -0
  46. data/app/assets/stylesheets/activeadmin_materialize_theme/materialize/LICENSE +21 -0
  47. data/app/assets/stylesheets/activeadmin_materialize_theme/materialize/README.md +91 -0
  48. data/app/assets/stylesheets/activeadmin_materialize_theme/materialize/components/_badges.scss +55 -0
  49. data/app/assets/stylesheets/activeadmin_materialize_theme/materialize/components/_buttons.scss +322 -0
  50. data/app/assets/stylesheets/activeadmin_materialize_theme/materialize/components/_cards.scss +195 -0
  51. data/app/assets/stylesheets/activeadmin_materialize_theme/materialize/components/_carousel.scss +90 -0
  52. data/app/assets/stylesheets/activeadmin_materialize_theme/materialize/components/_chips.scss +90 -0
  53. data/app/assets/stylesheets/activeadmin_materialize_theme/materialize/components/_collapsible.scss +91 -0
  54. data/app/assets/stylesheets/activeadmin_materialize_theme/materialize/components/_color-classes.scss +32 -0
  55. data/app/assets/stylesheets/activeadmin_materialize_theme/materialize/components/_color-variables.scss +370 -0
  56. data/app/assets/stylesheets/activeadmin_materialize_theme/materialize/components/_datepicker.scss +191 -0
  57. data/app/assets/stylesheets/activeadmin_materialize_theme/materialize/components/_dropdown.scss +85 -0
  58. data/app/assets/stylesheets/activeadmin_materialize_theme/materialize/components/_global.scss +769 -0
  59. data/app/assets/stylesheets/activeadmin_materialize_theme/materialize/components/_grid.scss +156 -0
  60. data/app/assets/stylesheets/activeadmin_materialize_theme/materialize/components/_icons-material-design.scss +5 -0
  61. data/app/assets/stylesheets/activeadmin_materialize_theme/materialize/components/_materialbox.scss +43 -0
  62. data/app/assets/stylesheets/activeadmin_materialize_theme/materialize/components/_modal.scss +94 -0
  63. data/app/assets/stylesheets/activeadmin_materialize_theme/materialize/components/_navbar.scss +208 -0
  64. data/app/assets/stylesheets/activeadmin_materialize_theme/materialize/components/_normalize.scss +447 -0
  65. data/app/assets/stylesheets/activeadmin_materialize_theme/materialize/components/_preloader.scss +334 -0
  66. data/app/assets/stylesheets/activeadmin_materialize_theme/materialize/components/_pulse.scss +34 -0
  67. data/app/assets/stylesheets/activeadmin_materialize_theme/materialize/components/_sidenav.scss +216 -0
  68. data/app/assets/stylesheets/activeadmin_materialize_theme/materialize/components/_slider.scss +92 -0
  69. data/app/assets/stylesheets/activeadmin_materialize_theme/materialize/components/_table_of_contents.scss +33 -0
  70. data/app/assets/stylesheets/activeadmin_materialize_theme/materialize/components/_tabs.scss +99 -0
  71. data/app/assets/stylesheets/activeadmin_materialize_theme/materialize/components/_tapTarget.scss +103 -0
  72. data/app/assets/stylesheets/activeadmin_materialize_theme/materialize/components/_timepicker.scss +183 -0
  73. data/app/assets/stylesheets/activeadmin_materialize_theme/materialize/components/_toast.scss +58 -0
  74. data/app/assets/stylesheets/activeadmin_materialize_theme/materialize/components/_tooltip.scss +32 -0
  75. data/app/assets/stylesheets/activeadmin_materialize_theme/materialize/components/_transitions.scss +13 -0
  76. data/app/assets/stylesheets/activeadmin_materialize_theme/materialize/components/_typography.scss +60 -0
  77. data/app/assets/stylesheets/activeadmin_materialize_theme/materialize/components/_variables.scss +349 -0
  78. data/app/assets/stylesheets/activeadmin_materialize_theme/materialize/components/_waves.scss +114 -0
  79. data/app/assets/stylesheets/activeadmin_materialize_theme/materialize/components/forms/_checkboxes.scss +200 -0
  80. data/app/assets/stylesheets/activeadmin_materialize_theme/materialize/components/forms/_file-input.scss +44 -0
  81. data/app/assets/stylesheets/activeadmin_materialize_theme/materialize/components/forms/_forms.scss +22 -0
  82. data/app/assets/stylesheets/activeadmin_materialize_theme/materialize/components/forms/_input-fields.scss +354 -0
  83. data/app/assets/stylesheets/activeadmin_materialize_theme/materialize/components/forms/_radio-buttons.scss +115 -0
  84. data/app/assets/stylesheets/activeadmin_materialize_theme/materialize/components/forms/_range.scss +161 -0
  85. data/app/assets/stylesheets/activeadmin_materialize_theme/materialize/components/forms/_select.scss +180 -0
  86. data/app/assets/stylesheets/activeadmin_materialize_theme/materialize/components/forms/_switches.scss +89 -0
  87. data/app/assets/stylesheets/activeadmin_materialize_theme/materialize/materialize.scss +41 -0
  88. data/app/assets/stylesheets/activeadmin_materialize_theme/normalize.css +349 -0
  89. data/app/assets/stylesheets/activeadmin_materialize_theme/theme.scss +13 -0
  90. data/app/assets/stylesheets/activeadmin_materialize_theme/variables.scss +14 -0
  91. data/lib/activeadmin_materialize_theme.rb +6 -0
  92. data/lib/activeadmin_materialize_theme/engine.rb +7 -0
  93. data/lib/activeadmin_materialize_theme/version.rb +5 -0
  94. metadata +149 -0
@@ -0,0 +1,195 @@
1
+
2
+
3
+ .card-panel {
4
+ transition: box-shadow .25s;
5
+ padding: $card-padding;
6
+ margin: $element-top-margin 0 $element-bottom-margin 0;
7
+ border-radius: 2px;
8
+ @extend .z-depth-1;
9
+ background-color: $card-bg-color;
10
+ }
11
+
12
+ .card {
13
+ position: relative;
14
+ margin: $element-top-margin 0 $element-bottom-margin 0;
15
+ background-color: $card-bg-color;
16
+ transition: box-shadow .25s;
17
+ border-radius: 2px;
18
+ @extend .z-depth-1;
19
+
20
+
21
+ .card-title {
22
+ font-size: 24px;
23
+ font-weight: 300;
24
+ &.activator {
25
+ cursor: pointer;
26
+ }
27
+ }
28
+
29
+ // Card Sizes
30
+ &.small, &.medium, &.large {
31
+ position: relative;
32
+
33
+ .card-image {
34
+ max-height: 60%;
35
+ overflow: hidden;
36
+ }
37
+ .card-image + .card-content {
38
+ max-height: 40%;
39
+ }
40
+ .card-content {
41
+ max-height: 100%;
42
+ overflow: hidden;
43
+ }
44
+ .card-action {
45
+ position: absolute;
46
+ bottom: 0;
47
+ left: 0;
48
+ right: 0;
49
+ }
50
+ }
51
+
52
+ &.small {
53
+ height: 300px;
54
+ }
55
+
56
+ &.medium {
57
+ height: 400px;
58
+ }
59
+
60
+ &.large {
61
+ height: 500px;
62
+ }
63
+
64
+ // Horizontal Cards
65
+ &.horizontal {
66
+ &.small, &.medium, &.large {
67
+ .card-image {
68
+ height: 100%;
69
+ max-height: none;
70
+ overflow: visible;
71
+
72
+ img {
73
+ height: 100%;
74
+ }
75
+ }
76
+ }
77
+
78
+ display: flex;
79
+
80
+ .card-image {
81
+ max-width: 50%;
82
+ img {
83
+ border-radius: 2px 0 0 2px;
84
+ max-width: 100%;
85
+ width: auto;
86
+ }
87
+ }
88
+
89
+ .card-stacked {
90
+ display: flex;
91
+ flex-direction: column;
92
+ flex: 1;
93
+ position: relative;
94
+
95
+ .card-content {
96
+ flex-grow: 1;
97
+ }
98
+ }
99
+ }
100
+
101
+ // Sticky Action Section
102
+ &.sticky-action {
103
+ .card-action {
104
+ z-index: 2;
105
+ }
106
+
107
+ .card-reveal {
108
+ z-index: 1;
109
+ padding-bottom: 64px;
110
+ }
111
+ }
112
+
113
+
114
+
115
+
116
+ .card-image {
117
+ position: relative;
118
+
119
+ // Image background for content
120
+ img {
121
+ display: block;
122
+ border-radius: 2px 2px 0 0;
123
+ position: relative;
124
+ left: 0;
125
+ right: 0;
126
+ top: 0;
127
+ bottom: 0;
128
+ width: 100%;
129
+ }
130
+
131
+ .card-title {
132
+ color: $card-bg-color;
133
+ position: absolute;
134
+ bottom: 0;
135
+ left: 0;
136
+ max-width: 100%;
137
+ padding: $card-padding;
138
+ }
139
+ }
140
+
141
+ .card-content {
142
+ padding: $card-padding;
143
+ border-radius: 0 0 2px 2px;
144
+
145
+ p {
146
+ margin: 0;
147
+ }
148
+ .card-title {
149
+ display: block;
150
+ line-height: 32px;
151
+ margin-bottom: 8px;
152
+
153
+ i {
154
+ line-height: 32px;
155
+ }
156
+ }
157
+ }
158
+
159
+ .card-action {
160
+ &:last-child {
161
+ border-radius: 0 0 2px 2px;
162
+ }
163
+ background-color: inherit; // Use inherit to inherit color classes
164
+ border-top: 1px solid rgba(160,160,160,.2);
165
+ position: relative;
166
+ padding: 16px $card-padding;
167
+
168
+ a:not(.btn):not(.btn-large):not(.btn-floating) {
169
+ color: $card-link-color;
170
+ margin-right: $card-padding;
171
+ transition: color .3s ease;
172
+ text-transform: uppercase;
173
+
174
+ &:hover { color: $card-link-color-light; }
175
+ }
176
+ }
177
+
178
+ .card-reveal {
179
+ padding: $card-padding;
180
+ position: absolute;
181
+ background-color: $card-bg-color;
182
+ width: 100%;
183
+ overflow-y: auto;
184
+ left: 0;
185
+ top: 100%;
186
+ height: 100%;
187
+ z-index: 3;
188
+ display: none;
189
+
190
+ .card-title {
191
+ cursor: pointer;
192
+ display: block;
193
+ }
194
+ }
195
+ }
@@ -0,0 +1,90 @@
1
+ .carousel {
2
+ &.carousel-slider {
3
+ top: 0;
4
+ left: 0;
5
+
6
+ .carousel-fixed-item {
7
+ &.with-indicators {
8
+ bottom: 68px;
9
+ }
10
+
11
+ position: absolute;
12
+ left: 0;
13
+ right: 0;
14
+ bottom: 20px;
15
+ z-index: 1;
16
+ }
17
+
18
+ .carousel-item {
19
+ width: 100%;
20
+ height: 100%;
21
+ min-height: $carousel-height;
22
+ position: absolute;
23
+ top: 0;
24
+ left: 0;
25
+
26
+ h2 {
27
+ font-size: 24px;
28
+ font-weight: 500;
29
+ line-height: 32px;
30
+ }
31
+
32
+ p {
33
+ font-size: 15px;
34
+ }
35
+ }
36
+ }
37
+
38
+ overflow: hidden;
39
+ position: relative;
40
+ width: 100%;
41
+ height: $carousel-height;
42
+ perspective: 500px;
43
+ transform-style: preserve-3d;
44
+ transform-origin: 0% 50%;
45
+
46
+ .carousel-item {
47
+ visibility: hidden;
48
+ width: $carousel-item-width;
49
+ height: $carousel-item-height;
50
+ position: absolute;
51
+ top: 0;
52
+ left: 0;
53
+
54
+ & > img {
55
+ width: 100%;
56
+ }
57
+ }
58
+
59
+ .indicators {
60
+ position: absolute;
61
+ text-align: center;
62
+ left: 0;
63
+ right: 0;
64
+ bottom: 0;
65
+ margin: 0;
66
+
67
+ .indicator-item {
68
+ &.active {
69
+ background-color: #fff;
70
+ }
71
+
72
+ display: inline-block;
73
+ position: relative;
74
+ cursor: pointer;
75
+ height: 8px;
76
+ width: 8px;
77
+ margin: 24px 4px;
78
+ background-color: rgba(255,255,255,.5);
79
+
80
+ transition: background-color .3s;
81
+ border-radius: 50%;
82
+ }
83
+ }
84
+
85
+ // Materialbox compatibility
86
+ &.scrolling .carousel-item .materialboxed,
87
+ .carousel-item:not(.active) .materialboxed {
88
+ pointer-events: none;
89
+ }
90
+ }
@@ -0,0 +1,90 @@
1
+ .chip {
2
+ &:focus {
3
+ outline: none;
4
+ background-color: $chip-selected-color;
5
+ color: #fff;
6
+ }
7
+
8
+ display: inline-block;
9
+ height: 32px;
10
+ font-size: 13px;
11
+ font-weight: 500;
12
+ color: rgba(0,0,0,.6);
13
+ line-height: 32px;
14
+ padding: 0 12px;
15
+ border-radius: 16px;
16
+ background-color: $chip-bg-color;
17
+ margin-bottom: $chip-margin;
18
+ margin-right: $chip-margin;
19
+
20
+ > img {
21
+ float: left;
22
+ margin: 0 8px 0 -12px;
23
+ height: 32px;
24
+ width: 32px;
25
+ border-radius: 50%;
26
+ }
27
+
28
+ .close {
29
+ cursor: pointer;
30
+ float: right;
31
+ font-size: 16px;
32
+ line-height: 32px;
33
+ padding-left: 8px;
34
+ }
35
+ }
36
+
37
+ .chips {
38
+ border: none;
39
+ border-bottom: 1px solid $chip-border-color;
40
+ box-shadow: none;
41
+ margin: $input-margin;
42
+ min-height: 45px;
43
+ outline: none;
44
+ transition: all .3s;
45
+
46
+ &.focus {
47
+ border-bottom: 1px solid $chip-selected-color;
48
+ box-shadow: 0 1px 0 0 $chip-selected-color;
49
+ }
50
+
51
+ &:hover {
52
+ cursor: text;
53
+ }
54
+
55
+ .input {
56
+ background: none;
57
+ border: 0;
58
+ color: rgba(0,0,0,.6);
59
+ display: inline-block;
60
+ font-size: $input-font-size;
61
+ height: $input-height;
62
+ line-height: 32px;
63
+ outline: 0;
64
+ margin: 0;
65
+ padding: 0 !important;
66
+ width: 120px !important;
67
+ }
68
+
69
+ .input:focus {
70
+ border: 0 !important;
71
+ box-shadow: none !important;
72
+ }
73
+
74
+ // Autocomplete
75
+ .autocomplete-content {
76
+ margin-top: 0;
77
+ margin-bottom: 0;
78
+ }
79
+ }
80
+
81
+ // Form prefix
82
+ .prefix ~ .chips {
83
+ margin-left: 3rem;
84
+ width: 92%;
85
+ width: calc(100% - 3rem);
86
+ }
87
+ .chips:empty ~ label {
88
+ font-size: 0.8rem;
89
+ transform: translateY(-140%);
90
+ }
@@ -0,0 +1,91 @@
1
+ .collapsible {
2
+ border-top: 1px solid $collapsible-border-color;
3
+ border-right: 1px solid $collapsible-border-color;
4
+ border-left: 1px solid $collapsible-border-color;
5
+ margin: $element-top-margin 0 $element-bottom-margin 0;
6
+ @extend .z-depth-1;
7
+ }
8
+
9
+ .collapsible-header {
10
+ &:focus {
11
+ outline: 0
12
+ }
13
+
14
+ display: flex;
15
+ cursor: pointer;
16
+ -webkit-tap-highlight-color: transparent;
17
+ line-height: 1.5;
18
+ padding: 1rem;
19
+ background-color: $collapsible-header-color;
20
+ border-bottom: 1px solid $collapsible-border-color;
21
+
22
+ i {
23
+ width: 2rem;
24
+ font-size: 1.6rem;
25
+ display: inline-block;
26
+ text-align: center;
27
+ margin-right: 1rem;
28
+ }
29
+ }
30
+ .keyboard-focused .collapsible-header:focus {
31
+ background-color: #eee;
32
+ }
33
+
34
+ .collapsible-body {
35
+ display: none;
36
+ border-bottom: 1px solid $collapsible-border-color;
37
+ box-sizing: border-box;
38
+ padding: 2rem;
39
+ }
40
+
41
+ // Sidenav collapsible styling
42
+ .sidenav,
43
+ .sidenav.fixed {
44
+
45
+ .collapsible {
46
+ border: none;
47
+ box-shadow: none;
48
+
49
+ li { padding: 0; }
50
+ }
51
+
52
+ .collapsible-header {
53
+ background-color: transparent;
54
+ border: none;
55
+ line-height: inherit;
56
+ height: inherit;
57
+ padding: 0 $sidenav-padding;
58
+
59
+ &:hover { background-color: rgba(0,0,0,.05); }
60
+ i { line-height: inherit; }
61
+ }
62
+
63
+ .collapsible-body {
64
+ border: 0;
65
+ background-color: $collapsible-header-color;
66
+
67
+ li a {
68
+ padding: 0 (7.5px + $sidenav-padding)
69
+ 0 (15px + $sidenav-padding);
70
+ }
71
+ }
72
+
73
+ }
74
+
75
+ // Popout Collapsible
76
+
77
+ .collapsible.popout {
78
+ border: none;
79
+ box-shadow: none;
80
+ > li {
81
+ box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.16), 0 2px 10px 0 rgba(0, 0, 0, 0.12);
82
+ // transform: scaleX(.92);
83
+ margin: 0 24px;
84
+ transition: margin .35s cubic-bezier(0.250, 0.460, 0.450, 0.940);
85
+ }
86
+ > li.active {
87
+ box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);
88
+ margin: 16px 0;
89
+ // transform: scaleX(1);
90
+ }
91
+ }