administrate-materialize-theme 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/MIT-LICENSE +20 -0
- data/README.md +49 -0
- data/Rakefile +1 -0
- data/app/assets/javascripts/administrate-materialize-theme/anime.min.js +34 -0
- data/app/assets/javascripts/administrate-materialize-theme/autocomplete.js +450 -0
- data/app/assets/javascripts/administrate-materialize-theme/bin/materialize.js +12374 -0
- data/app/assets/javascripts/administrate-materialize-theme/bin/materialize.min.js +6 -0
- data/app/assets/javascripts/administrate-materialize-theme/buttons.js +354 -0
- data/app/assets/javascripts/administrate-materialize-theme/cards.js +40 -0
- data/app/assets/javascripts/administrate-materialize-theme/carousel.js +717 -0
- data/app/assets/javascripts/administrate-materialize-theme/cash.js +960 -0
- data/app/assets/javascripts/administrate-materialize-theme/characterCounter.js +136 -0
- data/app/assets/javascripts/administrate-materialize-theme/chips.js +481 -0
- data/app/assets/javascripts/administrate-materialize-theme/collapsible.js +275 -0
- data/app/assets/javascripts/administrate-materialize-theme/component.js +44 -0
- data/app/assets/javascripts/administrate-materialize-theme/datepicker.js +975 -0
- data/app/assets/javascripts/administrate-materialize-theme/dropdown.js +617 -0
- data/app/assets/javascripts/administrate-materialize-theme/forms.js +275 -0
- data/app/assets/javascripts/administrate-materialize-theme/global.js +427 -0
- data/app/assets/javascripts/administrate-materialize-theme/materialbox.js +453 -0
- data/app/assets/javascripts/administrate-materialize-theme/modal.js +382 -0
- data/app/assets/javascripts/administrate-materialize-theme/parallax.js +138 -0
- data/app/assets/javascripts/administrate-materialize-theme/pushpin.js +145 -0
- data/app/assets/javascripts/administrate-materialize-theme/range.js +263 -0
- data/app/assets/javascripts/administrate-materialize-theme/scrollspy.js +295 -0
- data/app/assets/javascripts/administrate-materialize-theme/select.js +432 -0
- data/app/assets/javascripts/administrate-materialize-theme/sidenav.js +580 -0
- data/app/assets/javascripts/administrate-materialize-theme/slider.js +359 -0
- data/app/assets/javascripts/administrate-materialize-theme/tabs.js +402 -0
- data/app/assets/javascripts/administrate-materialize-theme/tapTarget.js +314 -0
- data/app/assets/javascripts/administrate-materialize-theme/theme.js +6 -0
- data/app/assets/javascripts/administrate-materialize-theme/timepicker.js +647 -0
- data/app/assets/javascripts/administrate-materialize-theme/toasts.js +310 -0
- data/app/assets/javascripts/administrate-materialize-theme/tooltip.js +303 -0
- data/app/assets/javascripts/administrate-materialize-theme/waves.js +335 -0
- data/app/assets/stylesheets/administrate-materialize-theme/components/_badges.scss +55 -0
- data/app/assets/stylesheets/administrate-materialize-theme/components/_buttons.scss +322 -0
- data/app/assets/stylesheets/administrate-materialize-theme/components/_cards.scss +195 -0
- data/app/assets/stylesheets/administrate-materialize-theme/components/_carousel.scss +90 -0
- data/app/assets/stylesheets/administrate-materialize-theme/components/_chips.scss +90 -0
- data/app/assets/stylesheets/administrate-materialize-theme/components/_collapsible.scss +91 -0
- data/app/assets/stylesheets/administrate-materialize-theme/components/_color-classes.scss +32 -0
- data/app/assets/stylesheets/administrate-materialize-theme/components/_color-variables.scss +370 -0
- data/app/assets/stylesheets/administrate-materialize-theme/components/_datepicker.scss +191 -0
- data/app/assets/stylesheets/administrate-materialize-theme/components/_dropdown.scss +85 -0
- data/app/assets/stylesheets/administrate-materialize-theme/components/_global.scss +769 -0
- data/app/assets/stylesheets/administrate-materialize-theme/components/_grid.scss +156 -0
- data/app/assets/stylesheets/administrate-materialize-theme/components/_icons-material-design.scss +5 -0
- data/app/assets/stylesheets/administrate-materialize-theme/components/_materialbox.scss +43 -0
- data/app/assets/stylesheets/administrate-materialize-theme/components/_modal.scss +94 -0
- data/app/assets/stylesheets/administrate-materialize-theme/components/_navbar.scss +208 -0
- data/app/assets/stylesheets/administrate-materialize-theme/components/_normalize.scss +447 -0
- data/app/assets/stylesheets/administrate-materialize-theme/components/_preloader.scss +334 -0
- data/app/assets/stylesheets/administrate-materialize-theme/components/_pulse.scss +34 -0
- data/app/assets/stylesheets/administrate-materialize-theme/components/_sidenav.scss +216 -0
- data/app/assets/stylesheets/administrate-materialize-theme/components/_slider.scss +92 -0
- data/app/assets/stylesheets/administrate-materialize-theme/components/_table_of_contents.scss +33 -0
- data/app/assets/stylesheets/administrate-materialize-theme/components/_tabs.scss +99 -0
- data/app/assets/stylesheets/administrate-materialize-theme/components/_tapTarget.scss +103 -0
- data/app/assets/stylesheets/administrate-materialize-theme/components/_timepicker.scss +183 -0
- data/app/assets/stylesheets/administrate-materialize-theme/components/_toast.scss +58 -0
- data/app/assets/stylesheets/administrate-materialize-theme/components/_tooltip.scss +32 -0
- data/app/assets/stylesheets/administrate-materialize-theme/components/_transitions.scss +13 -0
- data/app/assets/stylesheets/administrate-materialize-theme/components/_typography.scss +60 -0
- data/app/assets/stylesheets/administrate-materialize-theme/components/_variables.scss +349 -0
- data/app/assets/stylesheets/administrate-materialize-theme/components/_waves.scss +114 -0
- data/app/assets/stylesheets/administrate-materialize-theme/components/forms/_checkboxes.scss +200 -0
- data/app/assets/stylesheets/administrate-materialize-theme/components/forms/_file-input.scss +44 -0
- data/app/assets/stylesheets/administrate-materialize-theme/components/forms/_forms.scss +22 -0
- data/app/assets/stylesheets/administrate-materialize-theme/components/forms/_input-fields.scss +354 -0
- data/app/assets/stylesheets/administrate-materialize-theme/components/forms/_radio-buttons.scss +115 -0
- data/app/assets/stylesheets/administrate-materialize-theme/components/forms/_range.scss +161 -0
- data/app/assets/stylesheets/administrate-materialize-theme/components/forms/_select.scss +180 -0
- data/app/assets/stylesheets/administrate-materialize-theme/components/forms/_switches.scss +89 -0
- data/app/assets/stylesheets/administrate-materialize-theme/materialize.scss +41 -0
- data/app/assets/stylesheets/administrate-materialize-theme/theme.scss +200 -0
- data/lib/administrate-materialize-theme.rb +6 -0
- data/lib/administrate-materialize-theme/engine.rb +7 -0
- data/lib/administrate-materialize-theme/version.rb +5 -0
- metadata +150 -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
|
+
}
|