material-sass 1.4.1 → 4.0.0.alpha5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +1 -0
- data/Rakefile +61 -0
- data/app/assets/fonts/{MaterialIcons-Regular.eot → material-icons/MaterialIcons-Regular.eot} +0 -0
- data/app/assets/fonts/{MaterialIcons-Regular.ijmap → material-icons/MaterialIcons-Regular.ijmap} +0 -0
- data/app/assets/fonts/{MaterialIcons-Regular.svg → material-icons/MaterialIcons-Regular.svg} +0 -0
- data/app/assets/fonts/{MaterialIcons-Regular.ttf → material-icons/MaterialIcons-Regular.ttf} +0 -0
- data/app/assets/fonts/{MaterialIcons-Regular.woff → material-icons/MaterialIcons-Regular.woff} +0 -0
- data/app/assets/fonts/{MaterialIcons-Regular.woff2 → material-icons/MaterialIcons-Regular.woff2} +0 -0
- data/app/assets/fonts/{README.md → material-icons/README.md} +0 -0
- data/app/assets/fonts/{codepoints → material-icons/codepoints} +0 -0
- data/app/assets/fonts/roboto/Roboto-Bold.eot +0 -0
- data/app/assets/fonts/roboto/Roboto-Bold.ttf +0 -0
- data/app/assets/fonts/roboto/Roboto-Bold.woff +0 -0
- data/app/assets/fonts/roboto/Roboto-Bold.woff2 +0 -0
- data/app/assets/fonts/roboto/Roboto-Light.eot +0 -0
- data/app/assets/fonts/roboto/Roboto-Light.ttf +0 -0
- data/app/assets/fonts/roboto/Roboto-Light.woff +0 -0
- data/app/assets/fonts/roboto/Roboto-Light.woff2 +0 -0
- data/app/assets/fonts/roboto/Roboto-Medium.eot +0 -0
- data/app/assets/fonts/roboto/Roboto-Medium.ttf +0 -0
- data/app/assets/fonts/roboto/Roboto-Medium.woff +0 -0
- data/app/assets/fonts/roboto/Roboto-Medium.woff2 +0 -0
- data/app/assets/fonts/roboto/Roboto-Regular.eot +0 -0
- data/app/assets/fonts/roboto/Roboto-Regular.ttf +0 -0
- data/app/assets/fonts/roboto/Roboto-Regular.woff +0 -0
- data/app/assets/fonts/roboto/Roboto-Regular.woff2 +0 -0
- data/app/assets/fonts/roboto/Roboto-Thin.eot +0 -0
- data/app/assets/fonts/roboto/Roboto-Thin.ttf +0 -0
- data/app/assets/fonts/roboto/Roboto-Thin.woff +0 -0
- data/app/assets/fonts/roboto/Roboto-Thin.woff2 +0 -0
- data/app/assets/javascripts/material.js +739 -798
- data/app/assets/javascripts/material/addons-materialise/pickadate.js +139 -0
- data/app/assets/javascripts/material/addons-materialise/textarea-autosize.js +9 -0
- data/app/assets/javascripts/material/addons-materialise/wave.js +12 -0
- data/app/assets/javascripts/material/addons/pickadate.js +7 -0
- data/app/assets/javascripts/material/addons/textarea-autosize.js +5 -0
- data/app/assets/javascripts/material/{wave.js → addons/wave.js} +0 -10
- data/app/assets/javascripts/material/src/floating-label.js +91 -0
- data/app/assets/javascripts/material/src/navdrawer.js +352 -0
- data/app/assets/javascripts/material/src/tab-switch.js +136 -0
- data/app/assets/javascripts/material/src/util.js +138 -0
- data/app/assets/stylesheets/material.min.css +2 -2
- data/app/assets/stylesheets/material.scss +1 -1
- data/app/assets/stylesheets/material/_mixins.scss +21 -0
- data/app/assets/stylesheets/material/_utilities.scss +15 -0
- data/app/assets/stylesheets/material/_variables.scss +25 -0
- data/app/assets/stylesheets/material/base/_base.scss +482 -0
- data/app/assets/stylesheets/material/base/_grid.scss +28 -40
- data/app/assets/stylesheets/material/base/_typography.scss +208 -0
- data/app/assets/stylesheets/material/bootstrap/_alert.scss +55 -0
- data/app/assets/stylesheets/material/bootstrap/_animation.scss +26 -0
- data/app/assets/stylesheets/material/bootstrap/_breadcrumb.scss +39 -0
- data/app/assets/stylesheets/material/bootstrap/_button-group.scss +155 -0
- data/app/assets/stylesheets/material/bootstrap/_carousel.scss +234 -0
- data/app/assets/stylesheets/material/bootstrap/_close.scss +31 -0
- data/app/assets/stylesheets/material/bootstrap/_code.scss +50 -0
- data/app/assets/stylesheets/material/bootstrap/_custom-form.scss +69 -0
- data/app/assets/stylesheets/material/bootstrap/_form.scss +116 -0
- data/app/assets/stylesheets/material/bootstrap/_image.scss +25 -0
- data/app/assets/stylesheets/material/bootstrap/_jumbotron.scss +12 -0
- data/app/assets/stylesheets/material/bootstrap/_media.scss +69 -0
- data/app/assets/stylesheets/material/bootstrap/_nav.scss +118 -0
- data/app/assets/stylesheets/material/bootstrap/_pagination.scss +68 -0
- data/app/assets/stylesheets/material/bootstrap/_popover.scss +84 -0
- data/app/assets/stylesheets/material/bootstrap/_responsive-embed.scss +37 -0
- data/app/assets/stylesheets/material/material.scss +62 -0
- data/app/assets/stylesheets/material/material/_button-flat.scss +53 -0
- data/app/assets/stylesheets/material/material/_button-float.scss +29 -0
- data/app/assets/stylesheets/material/material/_button.scss +241 -0
- data/app/assets/stylesheets/material/material/_card.scss +286 -0
- data/app/assets/stylesheets/material/material/_chip.scss +93 -0
- data/app/assets/stylesheets/material/material/_data-table.scss +138 -0
- data/app/assets/stylesheets/material/material/_dialog.scss +147 -0
- data/app/assets/stylesheets/material/material/_expansion-panel.scss +292 -0
- data/app/assets/stylesheets/material/material/_menu.scss +281 -0
- data/app/assets/stylesheets/material/material/_navdrawer.scss +289 -0
- data/app/assets/stylesheets/material/material/_picker.scss +272 -0
- data/app/assets/stylesheets/material/material/_progress-circular.scss +144 -0
- data/app/assets/stylesheets/material/material/_progress.scss +174 -0
- data/app/assets/stylesheets/material/material/_selection-control.scss +221 -0
- data/app/assets/stylesheets/material/material/_stepper.scss +135 -0
- data/app/assets/stylesheets/material/material/_tab.scss +196 -0
- data/app/assets/stylesheets/material/material/_text-field-floating-label.scss +51 -0
- data/app/assets/stylesheets/material/material/_text-field-input-group.scss +76 -0
- data/app/assets/stylesheets/material/material/_text-field-textarea.scss +31 -0
- data/app/assets/stylesheets/material/material/_text-field.scss +179 -0
- data/app/assets/stylesheets/material/material/_toolbar.scss +516 -0
- data/app/assets/stylesheets/material/material/_tooltip.scss +86 -0
- data/app/assets/stylesheets/material/mixins/_background-variant.scss +14 -0
- data/app/assets/stylesheets/material/mixins/_border-radius.scss +34 -0
- data/app/assets/stylesheets/material/mixins/_breakpoint.scss +38 -0
- data/app/assets/stylesheets/material/mixins/_clearfix.scss +7 -0
- data/app/assets/stylesheets/material/mixins/_form.scss +60 -0
- data/app/assets/stylesheets/material/mixins/_grid.scss +149 -0
- data/app/assets/stylesheets/material/mixins/_hex-to-rgba.scss +3 -0
- data/app/assets/stylesheets/material/mixins/_hover.scss +70 -0
- data/app/assets/stylesheets/material/mixins/_image.scss +4 -0
- data/app/assets/stylesheets/material/mixins/_list.scss +4 -0
- data/app/assets/stylesheets/material/mixins/_nav-divider.scss +6 -0
- data/app/assets/stylesheets/material/mixins/_pull.scss +7 -0
- data/app/assets/stylesheets/material/mixins/_reset-text.scss +35 -0
- data/app/assets/stylesheets/material/mixins/_screenreader.scss +23 -0
- data/app/assets/stylesheets/material/mixins/_strip-unit.scss +3 -0
- data/app/assets/stylesheets/material/mixins/_tab-focus.scss +5 -0
- data/app/assets/stylesheets/material/mixins/_text-emphasis.scss +14 -0
- data/app/assets/stylesheets/material/mixins/_text-hide.scss +7 -0
- data/app/assets/stylesheets/material/mixins/_text-truncate.scss +5 -0
- data/app/assets/stylesheets/material/mixins/_transition.scss +55 -0
- data/app/assets/stylesheets/material/mixins/_typography.scss +69 -0
- data/app/assets/stylesheets/material/utilities/_align.scss +23 -0
- data/app/assets/stylesheets/material/utilities/_background.scss +23 -0
- data/app/assets/stylesheets/material/utilities/_border.scss +27 -0
- data/app/assets/stylesheets/material/utilities/_clearfix.scss +3 -0
- data/app/assets/stylesheets/material/utilities/_display.scss +11 -0
- data/app/assets/stylesheets/material/utilities/_float.scss +15 -0
- data/app/assets/stylesheets/material/utilities/_material-icons.scss +10 -0
- data/app/assets/stylesheets/material/utilities/_screenreader.scss +7 -0
- data/app/assets/stylesheets/material/utilities/_spacing.scss +65 -0
- data/app/assets/stylesheets/material/utilities/_text.scss +95 -0
- data/app/assets/stylesheets/material/utilities/_visibility.scss +50 -0
- data/app/assets/stylesheets/material/utilities/_waves.scss +48 -0
- data/app/assets/stylesheets/material/variables/_animation.scss +22 -0
- data/app/assets/stylesheets/material/variables/_colour.scss +389 -0
- data/app/assets/stylesheets/material/variables/_elevation-shadow.scss +84 -0
- data/app/assets/stylesheets/material/variables/_grid.scss +32 -0
- data/app/assets/stylesheets/material/variables/_spacer.scss +73 -0
- data/app/assets/stylesheets/material/variables/_typography.scss +72 -0
- data/app/assets/stylesheets/material/variables/_variable-bootstrap.scss +129 -0
- data/app/assets/stylesheets/material/variables/_variable-material.scss +434 -0
- data/lib/material-sass/engine.rb +3 -2
- data/lib/material-sass/version.rb +1 -1
- metadata +128 -70
- data/app/assets/javascripts/material.min.js +0 -2
- data/app/assets/javascripts/material/_.js +0 -6
- data/app/assets/javascripts/material/bootstrap.js +0 -6
- data/app/assets/javascripts/material/form-floating-label.js +0 -49
- data/app/assets/javascripts/material/form-textarea.js +0 -13
- data/app/assets/javascripts/material/header.js +0 -12
- data/app/assets/javascripts/material/menu.js +0 -200
- data/app/assets/javascripts/material/modal.js +0 -12
- data/app/assets/javascripts/material/picker.js +0 -141
- data/app/assets/javascripts/material/snackbar.js +0 -116
- data/app/assets/javascripts/material/tab.js +0 -51
- data/app/assets/javascripts/material/tile.js +0 -181
- data/app/assets/stylesheets/material/addons/_material-icons.scss +0 -9
- data/app/assets/stylesheets/material/addons/_waves.scss +0 -44
- data/app/assets/stylesheets/material/addons/material-icons/_core.scss +0 -20
- data/app/assets/stylesheets/material/addons/material-icons/_larger.scss +0 -23
- data/app/assets/stylesheets/material/addons/material-icons/_path.scss +0 -11
- data/app/assets/stylesheets/material/addons/material-icons/_variables.scss +0 -3
- data/app/assets/stylesheets/material/base.scss +0 -50
- data/app/assets/stylesheets/material/base/_reset.scss +0 -421
- data/app/assets/stylesheets/material/components/_avatar.scss +0 -59
- data/app/assets/stylesheets/material/components/_breadcrumb.scss +0 -26
- data/app/assets/stylesheets/material/components/_button-flat.scss +0 -22
- data/app/assets/stylesheets/material/components/_button-float.scss +0 -183
- data/app/assets/stylesheets/material/components/_button.scss +0 -81
- data/app/assets/stylesheets/material/components/_card.scss +0 -175
- data/app/assets/stylesheets/material/components/_code.scss +0 -53
- data/app/assets/stylesheets/material/components/_dropdown.scss +0 -99
- data/app/assets/stylesheets/material/components/_form-checkbox.scss +0 -161
- data/app/assets/stylesheets/material/components/_form-floating-label.scss +0 -64
- data/app/assets/stylesheets/material/components/_form-switch.scss +0 -96
- data/app/assets/stylesheets/material/components/_form-textarea.scss +0 -4
- data/app/assets/stylesheets/material/components/_form.scss +0 -217
- data/app/assets/stylesheets/material/components/_label.scss +0 -23
- data/app/assets/stylesheets/material/components/_modal.scss +0 -164
- data/app/assets/stylesheets/material/components/_nav.scss +0 -53
- data/app/assets/stylesheets/material/components/_picker.scss +0 -298
- data/app/assets/stylesheets/material/components/_progress-circular.scss +0 -169
- data/app/assets/stylesheets/material/components/_progress-loadbar.scss +0 -97
- data/app/assets/stylesheets/material/components/_progress.scss +0 -132
- data/app/assets/stylesheets/material/components/_snackbar.scss +0 -59
- data/app/assets/stylesheets/material/components/_stepper.scss +0 -201
- data/app/assets/stylesheets/material/components/_tab.scss +0 -84
- data/app/assets/stylesheets/material/components/_table.scss +0 -82
- data/app/assets/stylesheets/material/components/_tile.scss +0 -156
- data/app/assets/stylesheets/material/elements/_content.scss +0 -42
- data/app/assets/stylesheets/material/elements/_header.scss +0 -141
- data/app/assets/stylesheets/material/elements/_menu.scss +0 -267
- data/app/assets/stylesheets/material/mixin/_grid.scss +0 -78
- data/app/assets/stylesheets/material/mixin/_responsive.scss +0 -32
- data/app/assets/stylesheets/material/mixin/_utilities.scss +0 -69
- data/app/assets/stylesheets/material/utilities/_print.scss +0 -95
- data/app/assets/stylesheets/material/utilities/_utilities-responsive.scss +0 -97
- data/app/assets/stylesheets/material/utilities/_utilities.scss +0 -393
- data/app/assets/stylesheets/material/var/_colours.scss +0 -336
- data/app/assets/stylesheets/material/var/_variables.scss +0 -78
@@ -1,59 +0,0 @@
|
|
1
|
-
.avatar {
|
2
|
-
background-color: $offwhite;
|
3
|
-
border-radius: 50%;
|
4
|
-
color: inherit;
|
5
|
-
display: block;
|
6
|
-
height: $avatar-height;
|
7
|
-
line-height: $avatar-height;
|
8
|
-
text-align: center;
|
9
|
-
width: $avatar-height;
|
10
|
-
&[href]:focus,
|
11
|
-
&[href]:hover {
|
12
|
-
color: inherit;
|
13
|
-
text-decoration: none;
|
14
|
-
}
|
15
|
-
img {
|
16
|
-
border-radius: 50%;
|
17
|
-
height: 100%;
|
18
|
-
vertical-align: top;
|
19
|
-
width: 100%;
|
20
|
-
}
|
21
|
-
}
|
22
|
-
|
23
|
-
// colour
|
24
|
-
@each $color in $palette-list-class {
|
25
|
-
$i: index($palette-list-class, $color);
|
26
|
-
|
27
|
-
.avatar-#{$color} {
|
28
|
-
background-color: nth($palette-list-color, $i);
|
29
|
-
color: nth($palette-list-text, $i);
|
30
|
-
&:focus,
|
31
|
-
&:hover {
|
32
|
-
color: nth($palette-list-text, $i);
|
33
|
-
}
|
34
|
-
}
|
35
|
-
}
|
36
|
-
|
37
|
-
// size
|
38
|
-
.avatar-lg {
|
39
|
-
height: ($avatar-height * 2);
|
40
|
-
line-height: ($avatar-height * 2);
|
41
|
-
width: ($avatar-height * 2);
|
42
|
-
}
|
43
|
-
|
44
|
-
.avatar-sm {
|
45
|
-
height: ($avatar-height * 0.8);
|
46
|
-
line-height: ($avatar-height * 0.8);
|
47
|
-
width: ($avatar-height * 0.8);
|
48
|
-
}
|
49
|
-
|
50
|
-
.avatar-xs {
|
51
|
-
font-size: $font-size-h6;
|
52
|
-
height: $line-height;
|
53
|
-
line-height: $line-height;
|
54
|
-
width: $line-height;
|
55
|
-
}
|
56
|
-
|
57
|
-
.avatar-inline {
|
58
|
-
display: inline-block;
|
59
|
-
}
|
@@ -1,26 +0,0 @@
|
|
1
|
-
.breadcrumb {
|
2
|
-
list-style: none;
|
3
|
-
margin: $margin-md 0;
|
4
|
-
padding: 0;
|
5
|
-
@include clearfix();
|
6
|
-
> li {
|
7
|
-
display: block;
|
8
|
-
float: left;
|
9
|
-
+ li:before {
|
10
|
-
@extend .icon;
|
11
|
-
color: $black-sec;
|
12
|
-
content: "chevron_right";
|
13
|
-
display: inline-block;
|
14
|
-
margin-left: 0.4em;
|
15
|
-
}
|
16
|
-
}
|
17
|
-
> .active {
|
18
|
-
color: $black-text;
|
19
|
-
> a,
|
20
|
-
> .a {
|
21
|
-
color: $black-text;
|
22
|
-
cursor: text;
|
23
|
-
text-decoration: none;
|
24
|
-
}
|
25
|
-
}
|
26
|
-
}
|
@@ -1,22 +0,0 @@
|
|
1
|
-
.btn-flat {
|
2
|
-
background-color: transparent;
|
3
|
-
box-shadow: none;
|
4
|
-
&:after {
|
5
|
-
background-color: $offwhite-dark;
|
6
|
-
box-shadow: none;
|
7
|
-
}
|
8
|
-
&.disabled,
|
9
|
-
&[disabled],
|
10
|
-
fieldset[disabled] & {
|
11
|
-
background-color: transparent;
|
12
|
-
}
|
13
|
-
}
|
14
|
-
|
15
|
-
// colour
|
16
|
-
@each $color in $palette-list-class {
|
17
|
-
$i: index($palette-list-class, $color);
|
18
|
-
|
19
|
-
.btn-flat.btn-#{$color} {
|
20
|
-
color: nth($palette-list-color, $i) !important;
|
21
|
-
}
|
22
|
-
}
|
@@ -1,183 +0,0 @@
|
|
1
|
-
.fbtn {
|
2
|
-
background-color: $offwhite-solid;
|
3
|
-
border-radius: 50%;
|
4
|
-
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15), 0 1px 3px 1px rgba(0, 0, 0, 0.3);
|
5
|
-
clear: both;
|
6
|
-
color: $black-text-solid;
|
7
|
-
cursor: pointer;
|
8
|
-
display: block;
|
9
|
-
font-size: $font-size;
|
10
|
-
font-weight: $font-weight-medium;
|
11
|
-
height: $fbtn-height;
|
12
|
-
line-height: $line-height;
|
13
|
-
margin: $margin-sm auto;
|
14
|
-
padding: (($fbtn-height - $line-height) / 2) 0;
|
15
|
-
position: relative;
|
16
|
-
text-align: center;
|
17
|
-
transition-duration: 0.3s;
|
18
|
-
transition-property: opacity, transform;
|
19
|
-
transition-timing-function: $timing;
|
20
|
-
user-select: none;
|
21
|
-
width: $fbtn-height;
|
22
|
-
&:active,
|
23
|
-
&:focus,
|
24
|
-
&:hover {
|
25
|
-
color: $black-text-solid;
|
26
|
-
outline: 0;
|
27
|
-
text-decoration: none;
|
28
|
-
}
|
29
|
-
&:after {
|
30
|
-
border-radius: 50%;
|
31
|
-
box-shadow: 0 6px 9px rgba(0, 0, 0, 0.15);
|
32
|
-
content: "";
|
33
|
-
display: block;
|
34
|
-
height: 100%;
|
35
|
-
opacity: 0;
|
36
|
-
position: absolute;
|
37
|
-
top: 0;
|
38
|
-
left: 0;
|
39
|
-
transition: opacity 0.3s $timing;
|
40
|
-
width: 100%;
|
41
|
-
}
|
42
|
-
&:active:after,
|
43
|
-
&:focus:after {
|
44
|
-
opacity: 1;
|
45
|
-
}
|
46
|
-
}
|
47
|
-
|
48
|
-
// colour
|
49
|
-
@each $color in $palette-list-class {
|
50
|
-
$i: index($palette-list-class, $color);
|
51
|
-
|
52
|
-
.fbtn-#{$color} {
|
53
|
-
background-color: nth($palette-list-color, $i);
|
54
|
-
color: nth($palette-list-text, $i) !important;
|
55
|
-
}
|
56
|
-
}
|
57
|
-
|
58
|
-
// size
|
59
|
-
.fbtn-lg {
|
60
|
-
font-size: $font-size-h4;
|
61
|
-
height: ($fbtn-height + $base * 2);
|
62
|
-
line-height: $line-height-h4;
|
63
|
-
padding-top: (($fbtn-height + $base * 2 - $line-height-h4) / 2);
|
64
|
-
padding-bottom: (($fbtn-height + $base * 2 - $line-height-h4) / 2);
|
65
|
-
width: ($fbtn-height + $base * 2);
|
66
|
-
}
|
67
|
-
|
68
|
-
.fbtn-container {
|
69
|
-
backface-visibility: hidden;
|
70
|
-
position: fixed;
|
71
|
-
right: $grid-gutter;
|
72
|
-
bottom: $margin-sm;
|
73
|
-
transition: transform 0.3s $timing;
|
74
|
-
z-index: ($content-base + 1);
|
75
|
-
// 992
|
76
|
-
@include responsive(md) {
|
77
|
-
transform: translateY(0) !important;
|
78
|
-
}
|
79
|
-
}
|
80
|
-
|
81
|
-
.fbtn-dropdown,
|
82
|
-
.fbtn-dropup {
|
83
|
-
position: absolute;
|
84
|
-
left: 0;
|
85
|
-
transform: scale(0, 0);
|
86
|
-
transition: transform 0s 0.3s;
|
87
|
-
width: 100%;
|
88
|
-
.fbtn-inner.open & {
|
89
|
-
transform: scale(1, 1);
|
90
|
-
transition: none;
|
91
|
-
}
|
92
|
-
.fbtn {
|
93
|
-
opacity: 0;
|
94
|
-
transform: scale(0, 0);
|
95
|
-
.fbtn-inner.open & {
|
96
|
-
opacity: 1;
|
97
|
-
transform: scale(1, 1);
|
98
|
-
}
|
99
|
-
}
|
100
|
-
}
|
101
|
-
|
102
|
-
.fbtn-dropdown {
|
103
|
-
// position
|
104
|
-
top: 100%;
|
105
|
-
}
|
106
|
-
|
107
|
-
.fbtn-dropup {
|
108
|
-
// position
|
109
|
-
bottom: 100%;
|
110
|
-
}
|
111
|
-
|
112
|
-
.fbtn-inner {
|
113
|
-
position: relative;
|
114
|
-
}
|
115
|
-
|
116
|
-
.fbtn-ori,
|
117
|
-
.fbtn-sub {
|
118
|
-
align-items: center;
|
119
|
-
display: flex;
|
120
|
-
height: 100%;
|
121
|
-
margin-left: -0.5em;
|
122
|
-
position: absolute;
|
123
|
-
top: 0;
|
124
|
-
left: 50%;
|
125
|
-
transition-duration: 0.3s;
|
126
|
-
transition-property: opacity, transform;
|
127
|
-
transition-timing-function: $timing;
|
128
|
-
}
|
129
|
-
|
130
|
-
.fbtn-ori {
|
131
|
-
.fbtn-inner.open & {
|
132
|
-
opacity: 0;
|
133
|
-
transform: rotate(225deg);
|
134
|
-
}
|
135
|
-
}
|
136
|
-
|
137
|
-
.fbtn-sub {
|
138
|
-
opacity: 0;
|
139
|
-
transform: rotate(-225deg);
|
140
|
-
.fbtn-inner.open & {
|
141
|
-
opacity: 1;
|
142
|
-
transform: rotate(0);
|
143
|
-
}
|
144
|
-
}
|
145
|
-
|
146
|
-
.fbtn-text {
|
147
|
-
background-color: $black-text;
|
148
|
-
border-radius: 2px;
|
149
|
-
color: $white-text-solid;
|
150
|
-
display: none;
|
151
|
-
font-size: $font-size-h6;
|
152
|
-
line-height: $line-height-h6;
|
153
|
-
margin-top: ($line-height-h6 / -2 - 1);
|
154
|
-
margin-left: $grid-gutter;
|
155
|
-
padding: 2px ($grid-gutter / 2);
|
156
|
-
position: absolute;
|
157
|
-
top: 50%;
|
158
|
-
left: 100%;
|
159
|
-
white-space: nowrap;
|
160
|
-
.fbtn-inner.open & {
|
161
|
-
display: block;
|
162
|
-
}
|
163
|
-
// touch
|
164
|
-
html.no-touchevents & {
|
165
|
-
display: block;
|
166
|
-
opacity: 0;
|
167
|
-
transform: scale(0, 0);
|
168
|
-
transition: opacity 0.3s $timing, transform 0s 0.3s;
|
169
|
-
}
|
170
|
-
html.no-touchevents .fbtn:hover > & {
|
171
|
-
opacity: 1;
|
172
|
-
transform: scale(1, 1);
|
173
|
-
transition: opacity 0.3s $timing;
|
174
|
-
}
|
175
|
-
}
|
176
|
-
|
177
|
-
.fbtn-text-left {
|
178
|
-
margin-right: $grid-gutter;
|
179
|
-
margin-left: 0;
|
180
|
-
// position
|
181
|
-
right: 100%;
|
182
|
-
left: auto;
|
183
|
-
}
|
@@ -1,81 +0,0 @@
|
|
1
|
-
.btn {
|
2
|
-
background-color: $offwhite;
|
3
|
-
background-image: none;
|
4
|
-
background-position: 50% 50%;
|
5
|
-
background-size: 100% 100%;
|
6
|
-
border: 0;
|
7
|
-
border-radius: 2px;
|
8
|
-
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15), 0 1px 3px 1px rgba(0, 0, 0, 0.15);
|
9
|
-
color: inherit;
|
10
|
-
cursor: pointer;
|
11
|
-
display: inline-block;
|
12
|
-
font-size: $font-size;
|
13
|
-
font-weight: $font-weight-medium;
|
14
|
-
line-height: $line-height;
|
15
|
-
margin-bottom: 0;
|
16
|
-
max-width: 100%;
|
17
|
-
padding: (($btn-height - $line-height) / 2) ($grid-gutter / 2);
|
18
|
-
position: relative;
|
19
|
-
text-align: center;
|
20
|
-
text-transform: uppercase;
|
21
|
-
user-select: none;
|
22
|
-
vertical-align: middle;
|
23
|
-
white-space: nowrap;
|
24
|
-
&:active,
|
25
|
-
&:focus,
|
26
|
-
&:hover {
|
27
|
-
color: inherit;
|
28
|
-
outline: 0;
|
29
|
-
text-decoration: none;
|
30
|
-
}
|
31
|
-
&:after {
|
32
|
-
background-color: $offwhite;
|
33
|
-
border-radius: 2px;
|
34
|
-
box-shadow: 0 3px 9px rgba(0, 0, 0, 0.3);
|
35
|
-
content: "";
|
36
|
-
display: block;
|
37
|
-
height: 100%;
|
38
|
-
opacity: 0;
|
39
|
-
position: absolute;
|
40
|
-
top: 0;
|
41
|
-
left: 0;
|
42
|
-
transition: opacity 0.3s $timing;
|
43
|
-
width: 100%;
|
44
|
-
}
|
45
|
-
&:active:after,
|
46
|
-
&:focus:after {
|
47
|
-
opacity: 1;
|
48
|
-
}
|
49
|
-
&.waves-attach:active:after {
|
50
|
-
background-color: transparent;
|
51
|
-
}
|
52
|
-
&.disabled,
|
53
|
-
&[disabled],
|
54
|
-
fieldset[disabled] & {
|
55
|
-
box-shadow: none;
|
56
|
-
cursor: not-allowed;
|
57
|
-
opacity: 0.54;
|
58
|
-
&:after {
|
59
|
-
display: none;
|
60
|
-
}
|
61
|
-
.waves-ripple {
|
62
|
-
display: none;
|
63
|
-
}
|
64
|
-
}
|
65
|
-
}
|
66
|
-
|
67
|
-
// colour
|
68
|
-
@each $color in $palette-list-class {
|
69
|
-
$i: index($palette-list-class, $color);
|
70
|
-
|
71
|
-
.btn-#{$color} {
|
72
|
-
background-color: nth($palette-list-color, $i);
|
73
|
-
color: nth($palette-list-text, $i) !important;
|
74
|
-
}
|
75
|
-
}
|
76
|
-
|
77
|
-
.btn-block {
|
78
|
-
display: block;
|
79
|
-
white-space: normal;
|
80
|
-
width: 100%;
|
81
|
-
}
|
@@ -1,175 +0,0 @@
|
|
1
|
-
.card {
|
2
|
-
background-color: $white;
|
3
|
-
border-radius: 2px;
|
4
|
-
box-shadow: 0 -1px 0 #e5e5e5, 0 0 2px rgba(0, 0, 0, 0.12), 0 2px 4px rgba(0, 0, 0, 0.24);
|
5
|
-
display: flex;
|
6
|
-
margin-top: $margin-md;
|
7
|
-
margin-bottom: $margin-md;
|
8
|
-
&[href]:focus,
|
9
|
-
&[href]:hover {
|
10
|
-
outline: 0;
|
11
|
-
text-decoration: none;
|
12
|
-
}
|
13
|
-
}
|
14
|
-
|
15
|
-
// colour
|
16
|
-
@each $color in $palette-list-class {
|
17
|
-
$i: index($palette-list-class, $color);
|
18
|
-
|
19
|
-
.card-#{$color} {
|
20
|
-
background-color: nth($palette-list-color, $i);
|
21
|
-
color: nth($palette-list-text, $i);
|
22
|
-
a,
|
23
|
-
a:focus,
|
24
|
-
a:hover {
|
25
|
-
color: inherit;
|
26
|
-
}
|
27
|
-
}
|
28
|
-
}
|
29
|
-
|
30
|
-
.card-action {
|
31
|
-
border-top: 1px solid $black-divider;
|
32
|
-
min-height: $nav-height;
|
33
|
-
@include clearfix();
|
34
|
-
.card-main > & {
|
35
|
-
&:first-child {
|
36
|
-
border-top: 0;
|
37
|
-
}
|
38
|
-
}
|
39
|
-
}
|
40
|
-
|
41
|
-
.card-action-btn {
|
42
|
-
margin: (($nav-height - $btn-height) / 2) ($grid-gutter / 2);
|
43
|
-
white-space: nowrap;
|
44
|
-
.btn + .btn {
|
45
|
-
margin-left: ($grid-gutter / 2);
|
46
|
-
}
|
47
|
-
}
|
48
|
-
|
49
|
-
.card-header {
|
50
|
-
align-items: center;
|
51
|
-
border-bottom: 1px solid $black-divider;
|
52
|
-
display: flex;
|
53
|
-
min-height: $header-height;
|
54
|
-
.card-main > & {
|
55
|
-
&:last-child {
|
56
|
-
border-bottom: 0;
|
57
|
-
}
|
58
|
-
}
|
59
|
-
}
|
60
|
-
|
61
|
-
.card-header-side {
|
62
|
-
margin-top: $margin-sm;
|
63
|
-
margin-bottom: $margin-sm;
|
64
|
-
&.pull-left {
|
65
|
-
order: -1;
|
66
|
-
padding-left: $grid-gutter;
|
67
|
-
}
|
68
|
-
&.pull-right {
|
69
|
-
order: 1;
|
70
|
-
padding-right: $grid-gutter;
|
71
|
-
}
|
72
|
-
}
|
73
|
-
|
74
|
-
.card-heading {
|
75
|
-
display: block;
|
76
|
-
font-size: $font-size-h4;
|
77
|
-
line-height: $line-height-h4;
|
78
|
-
margin-top: $margin-md;
|
79
|
-
margin-bottom: $margin-md;
|
80
|
-
.card-header & {
|
81
|
-
margin-top: 0;
|
82
|
-
margin-bottom: 0;
|
83
|
-
}
|
84
|
-
}
|
85
|
-
|
86
|
-
.card-img {
|
87
|
-
display: block;
|
88
|
-
overflow: hidden;
|
89
|
-
position: relative;
|
90
|
-
.card-main > & {
|
91
|
-
&:first-child {
|
92
|
-
border-radius: 2px 2px 0 0;
|
93
|
-
}
|
94
|
-
&:last-child {
|
95
|
-
border-radius: 0 0 2px 2px;
|
96
|
-
}
|
97
|
-
}
|
98
|
-
img {
|
99
|
-
display: block;
|
100
|
-
height: auto;
|
101
|
-
margin-right: auto;
|
102
|
-
margin-left: auto;
|
103
|
-
}
|
104
|
-
}
|
105
|
-
|
106
|
-
.card-img-heading {
|
107
|
-
color: $white-text-solid;
|
108
|
-
margin: 0;
|
109
|
-
padding: $margin-sm $grid-gutter;
|
110
|
-
position: absolute;
|
111
|
-
bottom: 0;
|
112
|
-
left: 0;
|
113
|
-
width: 100%;
|
114
|
-
z-index: 1;
|
115
|
-
&:before {
|
116
|
-
background-image: linear-gradient(to bottom, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.1) 70%, rgba(0, 0, 0, 0.2));
|
117
|
-
content: "";
|
118
|
-
display: block;
|
119
|
-
height: 300%;
|
120
|
-
position: absolute;
|
121
|
-
bottom: 0;
|
122
|
-
left: 0;
|
123
|
-
width: 100%;
|
124
|
-
z-index: -1;
|
125
|
-
}
|
126
|
-
}
|
127
|
-
|
128
|
-
.card-inner {
|
129
|
-
margin: $margin-md $grid-gutter;
|
130
|
-
.card-header & {
|
131
|
-
flex: 1;
|
132
|
-
margin-top: $margin-sm;
|
133
|
-
margin-bottom: $margin-sm;
|
134
|
-
}
|
135
|
-
}
|
136
|
-
|
137
|
-
.card-main {
|
138
|
-
flex: 1;
|
139
|
-
min-width: 0;
|
140
|
-
}
|
141
|
-
|
142
|
-
.card-side {
|
143
|
-
background-color: $offwhite-solid;
|
144
|
-
border-radius: 2px 0 0 2px;
|
145
|
-
max-width: 33.33333%;
|
146
|
-
padding-right: $grid-gutter;
|
147
|
-
padding-left: $grid-gutter;
|
148
|
-
&[href] {
|
149
|
-
color: inherit;
|
150
|
-
&:focus,
|
151
|
-
&:hover {
|
152
|
-
outline: 0;
|
153
|
-
text-decoration: none;
|
154
|
-
}
|
155
|
-
}
|
156
|
-
&.card-side-img {
|
157
|
-
overflow: hidden;
|
158
|
-
padding-right: 0;
|
159
|
-
padding-left: 0;
|
160
|
-
}
|
161
|
-
&.pull-right {
|
162
|
-
border-radius: 0 2px 2px 0;
|
163
|
-
order: 1;
|
164
|
-
}
|
165
|
-
}
|
166
|
-
|
167
|
-
// colour
|
168
|
-
@each $color in $palette-list-class {
|
169
|
-
$i: index($palette-list-class, $color);
|
170
|
-
|
171
|
-
.card-#{$color} .card-side {
|
172
|
-
background-color: nth($palette-list-dark, $i);
|
173
|
-
color: nth($palette-list-text-dark, $i);
|
174
|
-
}
|
175
|
-
}
|