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,34 @@
|
|
1
|
+
.pulse {
|
2
|
+
&::before {
|
3
|
+
content: '';
|
4
|
+
display: block;
|
5
|
+
position: absolute;
|
6
|
+
width: 100%;
|
7
|
+
height: 100%;
|
8
|
+
top: 0;
|
9
|
+
left: 0;
|
10
|
+
background-color: inherit;
|
11
|
+
border-radius: inherit;
|
12
|
+
transition: opacity .3s, transform .3s;
|
13
|
+
animation: pulse-animation 1s cubic-bezier(0.24, 0, 0.38, 1) infinite;
|
14
|
+
z-index: -1;
|
15
|
+
}
|
16
|
+
|
17
|
+
overflow: visible;
|
18
|
+
position: relative;
|
19
|
+
}
|
20
|
+
|
21
|
+
@keyframes pulse-animation {
|
22
|
+
0% {
|
23
|
+
opacity: 1;
|
24
|
+
transform: scale(1);
|
25
|
+
}
|
26
|
+
50% {
|
27
|
+
opacity: 0;
|
28
|
+
transform: scale(1.5);
|
29
|
+
}
|
30
|
+
100% {
|
31
|
+
opacity: 0;
|
32
|
+
transform: scale(1.5);
|
33
|
+
}
|
34
|
+
}
|
@@ -0,0 +1,216 @@
|
|
1
|
+
.sidenav {
|
2
|
+
position: fixed;
|
3
|
+
width: $sidenav-width;
|
4
|
+
left: 0;
|
5
|
+
top: 0;
|
6
|
+
margin: 0;
|
7
|
+
transform: translateX(-100%);
|
8
|
+
height: 100%;
|
9
|
+
height: calc(100% + 60px);
|
10
|
+
height: -moz-calc(100%); //Temporary Firefox Fix
|
11
|
+
padding-bottom: 60px;
|
12
|
+
background-color: $sidenav-bg-color;
|
13
|
+
z-index: 999;
|
14
|
+
overflow-y: auto;
|
15
|
+
will-change: transform;
|
16
|
+
backface-visibility: hidden;
|
17
|
+
transform: translateX(-105%);
|
18
|
+
|
19
|
+
@extend .z-depth-1;
|
20
|
+
|
21
|
+
// Right Align
|
22
|
+
&.right-aligned {
|
23
|
+
right: 0;
|
24
|
+
transform: translateX(105%);
|
25
|
+
left: auto;
|
26
|
+
transform: translateX(100%);
|
27
|
+
}
|
28
|
+
|
29
|
+
.collapsible {
|
30
|
+
margin: 0;
|
31
|
+
}
|
32
|
+
|
33
|
+
|
34
|
+
li {
|
35
|
+
float: none;
|
36
|
+
line-height: $sidenav-line-height;
|
37
|
+
|
38
|
+
&.active { background-color: rgba(0,0,0,.05); }
|
39
|
+
}
|
40
|
+
|
41
|
+
li > a {
|
42
|
+
color: $sidenav-font-color;
|
43
|
+
display: block;
|
44
|
+
font-size: $sidenav-font-size;
|
45
|
+
font-weight: 500;
|
46
|
+
height: $sidenav-item-height;
|
47
|
+
line-height: $sidenav-line-height;
|
48
|
+
padding: 0 ($sidenav-padding * 2);
|
49
|
+
|
50
|
+
&:hover { background-color: rgba(0,0,0,.05);}
|
51
|
+
|
52
|
+
&.btn, &.btn-large, &.btn-flat, &.btn-floating {
|
53
|
+
margin: 10px 15px;
|
54
|
+
}
|
55
|
+
|
56
|
+
&.btn,
|
57
|
+
&.btn-large,
|
58
|
+
&.btn-floating { color: $button-raised-color; }
|
59
|
+
&.btn-flat { color: $button-flat-color; }
|
60
|
+
|
61
|
+
&.btn:hover,
|
62
|
+
&.btn-large:hover { background-color: lighten($button-raised-background, 5%); }
|
63
|
+
&.btn-floating:hover { background-color: $button-raised-background; }
|
64
|
+
|
65
|
+
& > i,
|
66
|
+
& > [class^="mdi-"], li > a > [class*="mdi-"],
|
67
|
+
& > i.material-icons {
|
68
|
+
float: left;
|
69
|
+
height: $sidenav-item-height;
|
70
|
+
line-height: $sidenav-line-height;
|
71
|
+
margin: 0 ($sidenav-padding * 2) 0 0;
|
72
|
+
width: $sidenav-item-height / 2;
|
73
|
+
color: rgba(0,0,0,.54);
|
74
|
+
}
|
75
|
+
}
|
76
|
+
|
77
|
+
|
78
|
+
.divider {
|
79
|
+
margin: ($sidenav-padding / 2) 0 0 0;
|
80
|
+
}
|
81
|
+
|
82
|
+
.subheader {
|
83
|
+
&:hover {
|
84
|
+
background-color: transparent;
|
85
|
+
}
|
86
|
+
|
87
|
+
cursor: initial;
|
88
|
+
pointer-events: none;
|
89
|
+
color: rgba(0,0,0,.54);
|
90
|
+
font-size: $sidenav-font-size;
|
91
|
+
font-weight: 500;
|
92
|
+
line-height: $sidenav-line-height;
|
93
|
+
}
|
94
|
+
|
95
|
+
.user-view {
|
96
|
+
position: relative;
|
97
|
+
padding: ($sidenav-padding * 2) ($sidenav-padding * 2) 0;
|
98
|
+
margin-bottom: $sidenav-padding / 2;
|
99
|
+
|
100
|
+
& > a {
|
101
|
+
&:hover { background-color: transparent; }
|
102
|
+
height: auto;
|
103
|
+
padding: 0;
|
104
|
+
}
|
105
|
+
|
106
|
+
.background {
|
107
|
+
overflow: hidden;
|
108
|
+
position: absolute;
|
109
|
+
top: 0;
|
110
|
+
right: 0;
|
111
|
+
bottom: 0;
|
112
|
+
left: 0;
|
113
|
+
z-index: -1;
|
114
|
+
}
|
115
|
+
|
116
|
+
.circle, .name, .email {
|
117
|
+
display: block;
|
118
|
+
}
|
119
|
+
|
120
|
+
.circle {
|
121
|
+
height: 64px;
|
122
|
+
width: 64px;
|
123
|
+
}
|
124
|
+
|
125
|
+
.name,
|
126
|
+
.email {
|
127
|
+
font-size: $sidenav-font-size;
|
128
|
+
line-height: $sidenav-line-height / 2;
|
129
|
+
}
|
130
|
+
|
131
|
+
.name {
|
132
|
+
margin-top: 16px;
|
133
|
+
font-weight: 500;
|
134
|
+
}
|
135
|
+
|
136
|
+
.email {
|
137
|
+
padding-bottom: 16px;
|
138
|
+
font-weight: 400;
|
139
|
+
}
|
140
|
+
}
|
141
|
+
}
|
142
|
+
|
143
|
+
|
144
|
+
// Touch interaction
|
145
|
+
.drag-target {
|
146
|
+
// Right Align
|
147
|
+
&.right-aligned {
|
148
|
+
right: 0;
|
149
|
+
}
|
150
|
+
|
151
|
+
height: 100%;
|
152
|
+
width: 10px;
|
153
|
+
position: fixed;
|
154
|
+
top: 0;
|
155
|
+
z-index: 998;
|
156
|
+
}
|
157
|
+
|
158
|
+
|
159
|
+
// Fixed Sidenav shown
|
160
|
+
.sidenav.sidenav-fixed {
|
161
|
+
// Right Align
|
162
|
+
&.right-aligned {
|
163
|
+
right: 0;
|
164
|
+
left: auto;
|
165
|
+
}
|
166
|
+
|
167
|
+
left: 0;
|
168
|
+
transform: translateX(0);
|
169
|
+
position: fixed;
|
170
|
+
}
|
171
|
+
|
172
|
+
// Fixed Sidenav hide on smaller
|
173
|
+
@media #{$medium-and-down} {
|
174
|
+
.sidenav {
|
175
|
+
&.sidenav-fixed {
|
176
|
+
transform: translateX(-105%);
|
177
|
+
|
178
|
+
&.right-aligned {
|
179
|
+
transform: translateX(105%);
|
180
|
+
}
|
181
|
+
}
|
182
|
+
|
183
|
+
> a {
|
184
|
+
padding: 0 $sidenav-padding;
|
185
|
+
}
|
186
|
+
|
187
|
+
.user-view {
|
188
|
+
padding: $sidenav-padding $sidenav-padding 0;
|
189
|
+
}
|
190
|
+
}
|
191
|
+
}
|
192
|
+
|
193
|
+
|
194
|
+
.sidenav .collapsible-body > ul:not(.collapsible) > li.active,
|
195
|
+
.sidenav.sidenav-fixed .collapsible-body > ul:not(.collapsible) > li.active {
|
196
|
+
background-color: $primary-color;
|
197
|
+
a {
|
198
|
+
color: $sidenav-bg-color;
|
199
|
+
}
|
200
|
+
}
|
201
|
+
.sidenav .collapsible-body {
|
202
|
+
padding: 0;
|
203
|
+
}
|
204
|
+
|
205
|
+
|
206
|
+
.sidenav-overlay {
|
207
|
+
position: fixed;
|
208
|
+
top: 0;
|
209
|
+
left: 0;
|
210
|
+
right: 0;
|
211
|
+
opacity: 0;
|
212
|
+
height: 120vh;
|
213
|
+
background-color: rgba(0,0,0,.5);
|
214
|
+
z-index: 997;
|
215
|
+
display: none;
|
216
|
+
}
|
@@ -0,0 +1,92 @@
|
|
1
|
+
.slider {
|
2
|
+
position: relative;
|
3
|
+
height: 400px;
|
4
|
+
width: 100%;
|
5
|
+
|
6
|
+
// Fullscreen slider
|
7
|
+
&.fullscreen {
|
8
|
+
height: 100%;
|
9
|
+
width: 100%;
|
10
|
+
position: absolute;
|
11
|
+
top: 0;
|
12
|
+
left: 0;
|
13
|
+
right: 0;
|
14
|
+
bottom: 0;
|
15
|
+
|
16
|
+
ul.slides {
|
17
|
+
height: 100%;
|
18
|
+
}
|
19
|
+
|
20
|
+
ul.indicators {
|
21
|
+
z-index: 2;
|
22
|
+
bottom: 30px;
|
23
|
+
}
|
24
|
+
}
|
25
|
+
|
26
|
+
.slides {
|
27
|
+
background-color: $slider-bg-color;
|
28
|
+
margin: 0;
|
29
|
+
height: 400px;
|
30
|
+
|
31
|
+
li {
|
32
|
+
opacity: 0;
|
33
|
+
position: absolute;
|
34
|
+
top: 0;
|
35
|
+
left: 0;
|
36
|
+
z-index: 1;
|
37
|
+
width: 100%;
|
38
|
+
height: inherit;
|
39
|
+
overflow: hidden;
|
40
|
+
|
41
|
+
img {
|
42
|
+
height: 100%;
|
43
|
+
width: 100%;
|
44
|
+
background-size: cover;
|
45
|
+
background-position: center;
|
46
|
+
}
|
47
|
+
|
48
|
+
.caption {
|
49
|
+
color: #fff;
|
50
|
+
position: absolute;
|
51
|
+
top: 15%;
|
52
|
+
left: 15%;
|
53
|
+
width: 70%;
|
54
|
+
opacity: 0;
|
55
|
+
|
56
|
+
p { color: $slider-bg-color-light; }
|
57
|
+
}
|
58
|
+
|
59
|
+
&.active {
|
60
|
+
z-index: 2;
|
61
|
+
}
|
62
|
+
}
|
63
|
+
}
|
64
|
+
|
65
|
+
|
66
|
+
.indicators {
|
67
|
+
position: absolute;
|
68
|
+
text-align: center;
|
69
|
+
left: 0;
|
70
|
+
right: 0;
|
71
|
+
bottom: 0;
|
72
|
+
margin: 0;
|
73
|
+
|
74
|
+
.indicator-item {
|
75
|
+
display: inline-block;
|
76
|
+
position: relative;
|
77
|
+
cursor: pointer;
|
78
|
+
height: 16px;
|
79
|
+
width: 16px;
|
80
|
+
margin: 0 12px;
|
81
|
+
background-color: $slider-bg-color-light;
|
82
|
+
|
83
|
+
transition: background-color .3s;
|
84
|
+
border-radius: 50%;
|
85
|
+
|
86
|
+
&.active {
|
87
|
+
background-color: $slider-indicator-color;
|
88
|
+
}
|
89
|
+
}
|
90
|
+
}
|
91
|
+
|
92
|
+
}
|
@@ -0,0 +1,33 @@
|
|
1
|
+
/***************
|
2
|
+
Nav List
|
3
|
+
***************/
|
4
|
+
.table-of-contents {
|
5
|
+
&.fixed {
|
6
|
+
position: fixed;
|
7
|
+
}
|
8
|
+
|
9
|
+
li {
|
10
|
+
padding: 2px 0;
|
11
|
+
}
|
12
|
+
a {
|
13
|
+
display: inline-block;
|
14
|
+
font-weight: 300;
|
15
|
+
color: #757575;
|
16
|
+
padding-left: 16px;
|
17
|
+
height: 1.5rem;
|
18
|
+
line-height: 1.5rem;
|
19
|
+
letter-spacing: .4;
|
20
|
+
display: inline-block;
|
21
|
+
|
22
|
+
&:hover {
|
23
|
+
color: lighten(#757575, 20%);
|
24
|
+
padding-left: 15px;
|
25
|
+
border-left: 1px solid $primary-color;
|
26
|
+
}
|
27
|
+
&.active {
|
28
|
+
font-weight: 500;
|
29
|
+
padding-left: 14px;
|
30
|
+
border-left: 2px solid $primary-color;
|
31
|
+
}
|
32
|
+
}
|
33
|
+
}
|
@@ -0,0 +1,99 @@
|
|
1
|
+
.tabs {
|
2
|
+
&.tabs-transparent {
|
3
|
+
background-color: transparent;
|
4
|
+
|
5
|
+
.tab a,
|
6
|
+
.tab.disabled a,
|
7
|
+
.tab.disabled a:hover {
|
8
|
+
color: rgba(255,255,255,0.7);
|
9
|
+
}
|
10
|
+
|
11
|
+
.tab a:hover,
|
12
|
+
.tab a.active {
|
13
|
+
color: #fff;
|
14
|
+
}
|
15
|
+
|
16
|
+
.indicator {
|
17
|
+
background-color: #fff;
|
18
|
+
}
|
19
|
+
}
|
20
|
+
|
21
|
+
&.tabs-fixed-width {
|
22
|
+
display: flex;
|
23
|
+
|
24
|
+
.tab {
|
25
|
+
flex-grow: 1;
|
26
|
+
}
|
27
|
+
}
|
28
|
+
|
29
|
+
position: relative;
|
30
|
+
overflow-x: auto;
|
31
|
+
overflow-y: hidden;
|
32
|
+
height: 48px;
|
33
|
+
width: 100%;
|
34
|
+
background-color: $tabs-bg-color;
|
35
|
+
margin: 0 auto;
|
36
|
+
white-space: nowrap;
|
37
|
+
|
38
|
+
.tab {
|
39
|
+
display: inline-block;
|
40
|
+
text-align: center;
|
41
|
+
line-height: 48px;
|
42
|
+
height: 48px;
|
43
|
+
padding: 0;
|
44
|
+
margin: 0;
|
45
|
+
text-transform: uppercase;
|
46
|
+
|
47
|
+
a {
|
48
|
+
&:focus,
|
49
|
+
&:focus.active {
|
50
|
+
background-color: transparentize($tabs-underline-color, .8);
|
51
|
+
outline: none;
|
52
|
+
}
|
53
|
+
|
54
|
+
&:hover,
|
55
|
+
&.active {
|
56
|
+
background-color: transparent;
|
57
|
+
color: $tabs-text-color;
|
58
|
+
}
|
59
|
+
|
60
|
+
color: rgba($tabs-text-color, .7);
|
61
|
+
display: block;
|
62
|
+
width: 100%;
|
63
|
+
height: 100%;
|
64
|
+
padding: 0 24px;
|
65
|
+
font-size: 14px;
|
66
|
+
text-overflow: ellipsis;
|
67
|
+
overflow: hidden;
|
68
|
+
transition: color .28s ease, background-color .28s ease;
|
69
|
+
}
|
70
|
+
|
71
|
+
&.disabled a,
|
72
|
+
&.disabled a:hover {
|
73
|
+
color: rgba($tabs-text-color, .4);
|
74
|
+
cursor: default;
|
75
|
+
}
|
76
|
+
}
|
77
|
+
.indicator {
|
78
|
+
position: absolute;
|
79
|
+
bottom: 0;
|
80
|
+
height: 2px;
|
81
|
+
background-color: $tabs-underline-color;
|
82
|
+
will-change: left, right;
|
83
|
+
}
|
84
|
+
}
|
85
|
+
|
86
|
+
// Fixed Sidenav hide on smaller
|
87
|
+
@media #{$medium-and-down} {
|
88
|
+
.tabs {
|
89
|
+
display: flex;
|
90
|
+
|
91
|
+
.tab {
|
92
|
+
flex-grow: 1;
|
93
|
+
|
94
|
+
a {
|
95
|
+
padding: 0 12px;
|
96
|
+
}
|
97
|
+
}
|
98
|
+
}
|
99
|
+
}
|