material-sass 0.0.4 → 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/assets/fonts/MaterialIcons-Regular.eot +0 -0
- data/app/assets/fonts/MaterialIcons-Regular.ijmap +1 -0
- data/app/assets/fonts/MaterialIcons-Regular.ttf +0 -0
- data/app/assets/fonts/MaterialIcons-Regular.woff +0 -0
- data/app/assets/fonts/MaterialIcons-Regular.woff2 +0 -0
- data/app/assets/images/bg/amber.jpg +0 -0
- data/app/assets/images/bg/brand.jpg +0 -0
- data/app/assets/images/bg/green.jpg +0 -0
- data/app/assets/images/bg/purple.jpg +0 -0
- data/app/assets/images/bg/red.jpg +0 -0
- data/app/assets/images/bg/teal.jpg +0 -0
- data/app/assets/javascripts/material.js +664 -507
- data/app/assets/javascripts/material.min.js +2 -0
- data/app/assets/javascripts/material/_.js +6 -3
- data/app/assets/javascripts/material/bootstrap.js +6 -3
- data/app/assets/javascripts/material/datepicker.js +95 -64
- data/app/assets/javascripts/material/form-adv-label.js +49 -0
- data/app/assets/javascripts/material/form-adv-textarea.js +13 -0
- data/app/assets/javascripts/material/header.js +12 -56
- data/app/assets/javascripts/material/menu.js +188 -38
- data/app/assets/javascripts/material/modal.js +10 -8
- data/app/assets/javascripts/material/snackbar.js +116 -0
- data/app/assets/javascripts/material/tab.js +47 -27
- data/app/assets/javascripts/material/tile.js +169 -74
- data/app/assets/javascripts/material/wave.js +12 -7
- data/app/assets/stylesheets/material.min.css +13 -0
- data/app/assets/stylesheets/material/addons/_material-icons.scss +9 -0
- data/app/assets/stylesheets/material/addons/_waves.scss +44 -0
- data/app/assets/stylesheets/material/{addon/material-design-icon → addons/material-icons}/_core.scss +8 -8
- data/app/assets/stylesheets/material/{addon/material-design-icon → addons/material-icons}/_larger.scss +5 -2
- data/app/assets/stylesheets/material/addons/material-icons/_path.scss +11 -0
- data/app/assets/stylesheets/material/addons/material-icons/_variables.scss +3 -0
- data/app/assets/stylesheets/material/base.scss +39 -40
- data/app/assets/stylesheets/material/{_grid.scss → base/_grid.scss} +13 -12
- data/app/assets/stylesheets/material/{_reset.scss → base/_reset.scss} +160 -161
- data/app/assets/stylesheets/material/components/_avatar.scss +94 -0
- data/app/assets/stylesheets/material/{element → components}/_breadcrumb.scss +3 -4
- data/app/assets/stylesheets/material/components/_button-flat.scss +35 -0
- data/app/assets/stylesheets/material/components/_button-float.scss +187 -0
- data/app/assets/stylesheets/material/components/_button.scss +86 -0
- data/app/assets/stylesheets/material/components/_card.scss +175 -0
- data/app/assets/stylesheets/material/{_code.scss → components/_code.scss} +14 -12
- data/app/assets/stylesheets/material/components/_dropdown.scss +103 -0
- data/app/assets/stylesheets/material/components/_form-adv-checkbox.scss +161 -0
- data/app/assets/stylesheets/material/{element → components}/_form-adv-datepicker.scss +87 -108
- data/app/assets/stylesheets/material/{element → components}/_form-adv-label.scss +17 -23
- data/app/assets/stylesheets/material/components/_form-adv-switch.scss +96 -0
- data/app/assets/stylesheets/material/{element → components}/_form-adv-textarea.scss +1 -1
- data/app/assets/stylesheets/material/{element → components}/_form.scss +34 -95
- data/app/assets/stylesheets/material/components/_label.scss +23 -0
- data/app/assets/stylesheets/material/{element → components}/_modal.scss +43 -18
- data/app/assets/stylesheets/material/{element → components}/_nav.scss +15 -8
- data/app/assets/stylesheets/material/{element → components}/_progress-circular.scss +36 -32
- data/app/assets/stylesheets/material/{element → components}/_progress-loadbar.scss +15 -21
- data/app/assets/stylesheets/material/{element → components}/_progress.scss +40 -30
- data/app/assets/stylesheets/material/components/_snackbar.scss +60 -0
- data/app/assets/stylesheets/material/components/_tab.scss +85 -0
- data/app/assets/stylesheets/material/components/_table.scss +82 -0
- data/app/assets/stylesheets/material/components/_tile.scss +155 -0
- data/app/assets/stylesheets/material/elements/_content.scss +42 -0
- data/app/assets/stylesheets/material/elements/_footer.scss +10 -0
- data/app/assets/stylesheets/material/elements/_header.scss +145 -0
- data/app/assets/stylesheets/material/{theme → elements}/_menu.scss +92 -150
- data/app/assets/stylesheets/material/mixin/_grid.scss +1 -9
- data/app/assets/stylesheets/material/mixin/_responsive.scss +1 -1
- data/app/assets/stylesheets/material/mixin/_utilities.scss +1 -1
- data/app/assets/stylesheets/material/{_print.scss → utilities/_print.scss} +4 -4
- data/app/assets/stylesheets/material/{_utilities-responsive.scss → utilities/_utilities-responsive.scss} +1 -1
- data/app/assets/stylesheets/material/{_utilities.scss → utilities/_utilities.scss} +197 -110
- data/app/assets/stylesheets/material/var/_colours.scss +336 -0
- data/app/assets/stylesheets/material/var/_variables.scss +78 -0
- data/lib/material-sass/version.rb +1 -1
- metadata +55 -53
- data/app/assets/javascripts/material/content.js +0 -46
- data/app/assets/javascripts/material/dropdown.js +0 -18
- data/app/assets/javascripts/material/esc.js +0 -10
- data/app/assets/javascripts/material/footer.js +0 -6
- data/app/assets/javascripts/material/form-adv.js +0 -64
- data/app/assets/javascripts/material/get-target.js +0 -8
- data/app/assets/javascripts/material/toast.js +0 -79
- data/app/assets/javascripts/material/webfont.js +0 -47
- data/app/assets/javascripts/material/winresize.js +0 -28
- data/app/assets/stylesheets/material/_variable.scss +0 -120
- data/app/assets/stylesheets/material/addon/_material-design-icon.scss +0 -9
- data/app/assets/stylesheets/material/addon/_waves.scss +0 -45
- data/app/assets/stylesheets/material/addon/material-design-icon/_path.scss +0 -11
- data/app/assets/stylesheets/material/addon/material-design-icon/_variables.scss +0 -3
- data/app/assets/stylesheets/material/element/_avatar.scss +0 -67
- data/app/assets/stylesheets/material/element/_button-flat.scss +0 -32
- data/app/assets/stylesheets/material/element/_button-float.scss +0 -202
- data/app/assets/stylesheets/material/element/_button.scss +0 -95
- data/app/assets/stylesheets/material/element/_card.scss +0 -245
- data/app/assets/stylesheets/material/element/_dropdown.scss +0 -132
- data/app/assets/stylesheets/material/element/_form-adv-checkbox.scss +0 -109
- data/app/assets/stylesheets/material/element/_form-adv-switch.scss +0 -102
- data/app/assets/stylesheets/material/element/_label.scss +0 -22
- data/app/assets/stylesheets/material/element/_sortable.scss +0 -8
- data/app/assets/stylesheets/material/element/_tab.scss +0 -107
- data/app/assets/stylesheets/material/element/_table.scss +0 -48
- data/app/assets/stylesheets/material/element/_tile.scss +0 -193
- data/app/assets/stylesheets/material/element/_toast.scss +0 -67
- data/app/assets/stylesheets/material/project.scss +0 -8
- data/app/assets/stylesheets/material/theme/_content.scss +0 -74
- data/app/assets/stylesheets/material/theme/_footer.scss +0 -17
- data/app/assets/stylesheets/material/theme/_header.scss +0 -128
@@ -1,67 +0,0 @@
|
|
1
|
-
.toast {
|
2
|
-
position: fixed;
|
3
|
-
right: 0;
|
4
|
-
bottom: 0;
|
5
|
-
left: 0;
|
6
|
-
z-index: ($content-base + 1);
|
7
|
-
a {
|
8
|
-
color: lighten($link-color, 30%);
|
9
|
-
cursor: pointer;
|
10
|
-
&:focus,
|
11
|
-
&:hover {
|
12
|
-
color: lighten($link-color, 15%);
|
13
|
-
text-decoration: none;
|
14
|
-
}
|
15
|
-
}
|
16
|
-
.tooltip {
|
17
|
-
position: static !important;
|
18
|
-
}
|
19
|
-
// 768
|
20
|
-
@include responsive(sm) {
|
21
|
-
margin-right: ($grid-gutter * 2 + $line-height * 2);
|
22
|
-
// position
|
23
|
-
right: auto;
|
24
|
-
bottom: $line-height;
|
25
|
-
left: $grid-gutter !important;
|
26
|
-
}
|
27
|
-
}
|
28
|
-
|
29
|
-
.toast-inner {
|
30
|
-
backface-visibility: hidden;
|
31
|
-
background-color: $black-text;
|
32
|
-
box-shadow: 0 1px 10px rgba(0, 0, 0, 0.5);
|
33
|
-
color: $white;
|
34
|
-
font-size: floor($font-size * 0.9);
|
35
|
-
padding: ($line-height / 2) $grid-gutter;
|
36
|
-
transform: translate3d(0, 200%, 0);
|
37
|
-
transition: all 0.3s $timing;
|
38
|
-
transition-property: transform;
|
39
|
-
@include clearfix();
|
40
|
-
.toast-show & {
|
41
|
-
transform: translate3d(0, 0, 0);
|
42
|
-
}
|
43
|
-
// 768
|
44
|
-
@include responsive(sm) {
|
45
|
-
border-radius: 2px;
|
46
|
-
float: left;
|
47
|
-
}
|
48
|
-
// no transform3d
|
49
|
-
.no-csstransforms3d & {
|
50
|
-
opacity: 0;
|
51
|
-
}
|
52
|
-
.no-csstransforms3d .toast-show & {
|
53
|
-
opacity: 1;
|
54
|
-
}
|
55
|
-
}
|
56
|
-
|
57
|
-
.toast-text {
|
58
|
-
overflow: hidden;
|
59
|
-
}
|
60
|
-
|
61
|
-
[data-dismiss="toast"] {
|
62
|
-
cursor: pointer;
|
63
|
-
float: right;
|
64
|
-
font-weight: $font-weight-bold;
|
65
|
-
margin-left: $grid-gutter;
|
66
|
-
text-transform: uppercase;
|
67
|
-
}
|
@@ -1,74 +0,0 @@
|
|
1
|
-
.content {
|
2
|
-
padding-bottom: $line-height;
|
3
|
-
.searching & {
|
4
|
-
display: none;
|
5
|
-
}
|
6
|
-
}
|
7
|
-
|
8
|
-
.content-fix-scroll {
|
9
|
-
margin-right: ($grid-gutter * -1);
|
10
|
-
margin-left: ($grid-gutter * -1);
|
11
|
-
overflow: hidden;
|
12
|
-
padding-right: $grid-gutter;
|
13
|
-
padding-left: $grid-gutter;
|
14
|
-
.content-fix.fixed & {
|
15
|
-
backface-visibility: hidden;
|
16
|
-
position: fixed;
|
17
|
-
top: ($line-height * 2);
|
18
|
-
bottom: 0;
|
19
|
-
}
|
20
|
-
}
|
21
|
-
|
22
|
-
.content-fix-wrap {
|
23
|
-
.content-fix.fixed & {
|
24
|
-
overflow-x: hidden;
|
25
|
-
overflow-y: auto;
|
26
|
-
padding-right: ($grid-gutter * 2);
|
27
|
-
padding-left: ($grid-gutter * 2);
|
28
|
-
position: absolute;
|
29
|
-
top: 0;
|
30
|
-
right: ($grid-gutter * -1);
|
31
|
-
bottom: 0;
|
32
|
-
left: ($grid-gutter * -1);
|
33
|
-
-webkit-overflow-scrolling: touch;
|
34
|
-
-ms-overflow-style: none;
|
35
|
-
}
|
36
|
-
}
|
37
|
-
|
38
|
-
.content-heading {
|
39
|
-
background-color: $brand-color;
|
40
|
-
color: $white;
|
41
|
-
overflow: hidden;
|
42
|
-
padding-top: ($line-height * 2);
|
43
|
-
position: relative;
|
44
|
-
transition: background-color 0.3s $timing, color 0.3s $timing;
|
45
|
-
z-index: 1;
|
46
|
-
@each $color in $palette-list {
|
47
|
-
$i: index($palette-list, $color);
|
48
|
-
|
49
|
-
.page-#{$color} & {
|
50
|
-
background-color: nth($palette-color, $i);
|
51
|
-
}
|
52
|
-
}
|
53
|
-
.heading {
|
54
|
-
font-weight: $font-weight-light;
|
55
|
-
}
|
56
|
-
}
|
57
|
-
|
58
|
-
.content-sub-heading {
|
59
|
-
color: $brand-color;
|
60
|
-
font-size: $font-size-h4;
|
61
|
-
font-weight: $font-weight;
|
62
|
-
line-height: $line-height-h4;
|
63
|
-
@each $color in $palette-list {
|
64
|
-
$i: index($palette-list, $color);
|
65
|
-
|
66
|
-
.page-#{$color} & {
|
67
|
-
color: nth($palette-color, $i);
|
68
|
-
}
|
69
|
-
}
|
70
|
-
}
|
71
|
-
|
72
|
-
.row-fix {
|
73
|
-
position: relative;
|
74
|
-
}
|
@@ -1,17 +0,0 @@
|
|
1
|
-
.footer {
|
2
|
-
background-color: $white-bg-light;
|
3
|
-
border-top: 1px solid $black-bg;
|
4
|
-
color: $black-hint;
|
5
|
-
text-align: center;
|
6
|
-
position: absolute;
|
7
|
-
bottom: 0;
|
8
|
-
right: 0;
|
9
|
-
left: 0;
|
10
|
-
a {
|
11
|
-
color: $black-hint;
|
12
|
-
&:focus,
|
13
|
-
&:hover {
|
14
|
-
color: $black-text;
|
15
|
-
}
|
16
|
-
}
|
17
|
-
}
|
@@ -1,128 +0,0 @@
|
|
1
|
-
.header {
|
2
|
-
backface-visibility: hidden;
|
3
|
-
background-color: $brand-color;
|
4
|
-
color: $white;
|
5
|
-
position: fixed;
|
6
|
-
top: 0;
|
7
|
-
right: 0;
|
8
|
-
left: 0;
|
9
|
-
transition: background-color 0.3s $timing, box-shadow 0.15s linear;
|
10
|
-
z-index: $header-base;
|
11
|
-
@include clearfix();
|
12
|
-
&.fixed,
|
13
|
-
&.open {
|
14
|
-
background-color: $brand-color-dark-m;
|
15
|
-
box-shadow: 0 1px 10px rgba(0, 0, 0, 0.5);
|
16
|
-
}
|
17
|
-
a {
|
18
|
-
color: $white;
|
19
|
-
}
|
20
|
-
.dropdown-menu {
|
21
|
-
border-radius: 2px;
|
22
|
-
a {
|
23
|
-
color: $black-text;
|
24
|
-
}
|
25
|
-
}
|
26
|
-
.dropdown-toggle {
|
27
|
-
z-index: 1;
|
28
|
-
&:after {
|
29
|
-
background-color: rgba(0, 0, 0, 0.3);
|
30
|
-
border-radius: 50%;
|
31
|
-
content: "";
|
32
|
-
display: block;
|
33
|
-
height: ($line-height * 1.5);
|
34
|
-
margin-left: ($line-height * -0.75);
|
35
|
-
position: absolute;
|
36
|
-
top: ($line-height * 0.25);
|
37
|
-
left: 50%;
|
38
|
-
transform: scale(0);
|
39
|
-
transition: all 0.3s $timing;
|
40
|
-
transition-property: background-color, transform;
|
41
|
-
width: ($line-height * 1.5);
|
42
|
-
z-index: -1;
|
43
|
-
// no csstransforms
|
44
|
-
.no-csstransforms & {
|
45
|
-
display: none;
|
46
|
-
}
|
47
|
-
}
|
48
|
-
}
|
49
|
-
.dropdown.open .dropdown-toggle {
|
50
|
-
background-color: transparent;
|
51
|
-
&:after {
|
52
|
-
transform: scale(1);
|
53
|
-
// no csstransforms
|
54
|
-
.no-csstransforms & {
|
55
|
-
display: block;
|
56
|
-
}
|
57
|
-
}
|
58
|
-
}
|
59
|
-
.nav {
|
60
|
-
margin: 0;
|
61
|
-
}
|
62
|
-
.tab-nav {
|
63
|
-
box-shadow: none;
|
64
|
-
margin: 0;
|
65
|
-
}
|
66
|
-
}
|
67
|
-
|
68
|
-
// colour
|
69
|
-
@each $color in $palette-list {
|
70
|
-
$i: index($palette-list, $color);
|
71
|
-
|
72
|
-
.page-#{$color} .header {
|
73
|
-
background-color: nth($palette-color, $i);
|
74
|
-
&.fixed,
|
75
|
-
&.open {
|
76
|
-
background-color: nth($palette-color-dark-m, $i);
|
77
|
-
}
|
78
|
-
}
|
79
|
-
}
|
80
|
-
|
81
|
-
.header-btn {
|
82
|
-
display: block;
|
83
|
-
float: left;
|
84
|
-
height: ($line-height * 2);
|
85
|
-
padding: (($line-height * 2 - $line-height-h4) / 2) $grid-gutter;
|
86
|
-
text-align: center;
|
87
|
-
&:focus,
|
88
|
-
&:hover {
|
89
|
-
text-decoration: none;
|
90
|
-
}
|
91
|
-
}
|
92
|
-
|
93
|
-
.header-fix-hide {
|
94
|
-
.header.fixed & {
|
95
|
-
display: none !important;
|
96
|
-
}
|
97
|
-
}
|
98
|
-
|
99
|
-
.header-fix-show {
|
100
|
-
display: none !important;
|
101
|
-
.header.fixed & {
|
102
|
-
display: block !important;
|
103
|
-
}
|
104
|
-
}
|
105
|
-
|
106
|
-
.header-logo,
|
107
|
-
.header-text {
|
108
|
-
display: block;
|
109
|
-
float: left;
|
110
|
-
font-weight: $font-weight-light;
|
111
|
-
height: ($line-height * 2);
|
112
|
-
line-height: $line-height-h4;
|
113
|
-
margin: 0;
|
114
|
-
padding: (($line-height * 2 - $line-height-h4) / 2) $grid-gutter;
|
115
|
-
&:focus,
|
116
|
-
&:hover {
|
117
|
-
text-decoration: none;
|
118
|
-
}
|
119
|
-
}
|
120
|
-
|
121
|
-
.header-logo {
|
122
|
-
font-size: $font-size-h4;
|
123
|
-
img {
|
124
|
-
display: block;
|
125
|
-
max-height: $line-height-h4;
|
126
|
-
width: auto;
|
127
|
-
}
|
128
|
-
}
|