material-sass 0.0.3 → 0.0.4
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.ttf +0 -0
- data/app/assets/fonts/MaterialIcons-Regular.woff +0 -0
- data/app/assets/fonts/MaterialIcons-Regular.woff2 +0 -0
- data/app/assets/javascripts/init.js +9 -0
- data/app/assets/javascripts/material/_.js +1 -5
- data/app/assets/javascripts/material/bootstrap.js +2 -2
- data/app/assets/javascripts/material/datepicker.js +58 -18
- data/app/assets/javascripts/material/dropdown.js +0 -13
- data/app/assets/javascripts/material/form-adv.js +2 -2
- data/app/assets/javascripts/material/header.js +39 -41
- data/app/assets/javascripts/material/menu.js +11 -35
- data/app/assets/javascripts/material/wave.js +10 -13
- data/app/assets/javascripts/material/webfont.js +33 -36
- data/app/assets/javascripts/material-sprockets.js +2 -1
- data/app/assets/stylesheets/material/_code.scss +1 -1
- data/app/assets/stylesheets/material/_reset.scss +16 -17
- data/app/assets/stylesheets/material/_utilities.scss +13 -16
- data/app/assets/stylesheets/material/_variable.scss +6 -3
- data/app/assets/stylesheets/material/addon/_material-design-icon.scss +6 -6
- data/app/assets/stylesheets/material/addon/_waves.scss +11 -17
- data/app/assets/stylesheets/material/addon/material-design-icon/_core.scss +18 -15
- data/app/assets/stylesheets/material/addon/material-design-icon/_larger.scss +20 -0
- data/app/assets/stylesheets/material/addon/material-design-icon/_path.scss +9 -8
- data/app/assets/stylesheets/material/addon/material-design-icon/_variables.scss +2 -776
- data/app/assets/stylesheets/material/base.scss +3 -0
- data/app/assets/stylesheets/material/element/_avatar.scss +2 -2
- data/app/assets/stylesheets/material/element/_breadcrumb.scss +2 -2
- data/app/assets/stylesheets/material/element/_button-flat.scss +32 -0
- data/app/assets/stylesheets/material/element/_button-float.scss +47 -60
- data/app/assets/stylesheets/material/element/_button.scss +18 -42
- data/app/assets/stylesheets/material/element/_card.scss +7 -19
- data/app/assets/stylesheets/material/element/_dropdown.scss +15 -18
- data/app/assets/stylesheets/material/element/_form-adv-checkbox.scss +12 -26
- data/app/assets/stylesheets/material/element/_form-adv-datepicker.scss +77 -55
- data/app/assets/stylesheets/material/element/_form-adv-label.scss +2 -2
- data/app/assets/stylesheets/material/element/_form-adv-switch.scss +38 -12
- data/app/assets/stylesheets/material/element/_form.scss +7 -7
- data/app/assets/stylesheets/material/element/_label.scss +1 -1
- data/app/assets/stylesheets/material/element/_modal.scss +22 -19
- data/app/assets/stylesheets/material/element/_progress-circular.scss +165 -0
- data/app/assets/stylesheets/material/element/_progress-loadbar.scss +103 -0
- data/app/assets/stylesheets/material/element/_progress.scss +7 -411
- data/app/assets/stylesheets/material/element/_sortable.scss +2 -2
- data/app/assets/stylesheets/material/element/_tab.scss +49 -17
- data/app/assets/stylesheets/material/element/_tile.scss +11 -13
- data/app/assets/stylesheets/material/element/_toast.scss +10 -11
- data/app/assets/stylesheets/material/mixin/_css3.scss +0 -45
- data/app/assets/stylesheets/material/theme/_content.scss +7 -7
- data/app/assets/stylesheets/material/theme/_header.scss +29 -173
- data/app/assets/stylesheets/material/theme/_menu.scss +160 -210
- data/lib/material-sass/engine.rb +1 -1
- data/lib/material-sass/version.rb +1 -1
- metadata +12 -9
- data/app/assets/fonts/MaterialDesignIcon.eot +0 -0
- data/app/assets/fonts/MaterialDesignIcon.svg +0 -773
- data/app/assets/fonts/MaterialDesignIcon.ttf +0 -0
- data/app/assets/fonts/MaterialDesignIcon.woff +0 -0
- data/app/assets/javascripts/material/sortable.js +0 -10
- data/app/assets/stylesheets/material/addon/material-design-icon/_icons.scss +0 -773
@@ -1,29 +1,34 @@
|
|
1
1
|
.tab-nav {
|
2
|
-
|
2
|
+
box-shadow: 0 1px 0 $black-bg;
|
3
3
|
margin-top: $line-height;
|
4
4
|
margin-bottom: $line-height;
|
5
5
|
position: relative;
|
6
6
|
.nav {
|
7
|
-
margin-top: 0;
|
8
|
-
margin-bottom:
|
7
|
+
margin-top: 0 !important;
|
8
|
+
margin-bottom: 0 !important;
|
9
9
|
> li {
|
10
10
|
vertical-align: bottom;
|
11
|
-
> a
|
11
|
+
> a,
|
12
|
+
> .a {
|
13
|
+
border-bottom: 2px solid transparent;
|
12
14
|
color: $black-text;
|
13
15
|
padding-right: ($grid-gutter / 2);
|
16
|
+
padding-bottom: ($line-height / 2 - 2);
|
14
17
|
padding-left: ($grid-gutter / 2);
|
15
18
|
text-transform: uppercase;
|
16
|
-
|
19
|
+
transition: border-bottom-color 0s;
|
17
20
|
&:focus,
|
18
21
|
&:hover {
|
22
|
+
border-bottom-color: lighten($link-color, 30%);
|
19
23
|
color: $link-color;
|
24
|
+
transition: border-bottom-color 0.3s $timing;
|
20
25
|
}
|
21
26
|
}
|
22
|
-
&.active > a
|
23
|
-
|
27
|
+
&.active > a,
|
28
|
+
&.active > .a {
|
29
|
+
border-bottom-color: $link-color;
|
24
30
|
color: $link-color;
|
25
|
-
|
26
|
-
@include transition(border-bottom 0s 0.45s, padding-bottom 0s 0.45s);
|
31
|
+
transition: border-bottom-color 0s 0.45s;
|
27
32
|
}
|
28
33
|
}
|
29
34
|
}
|
@@ -31,29 +36,56 @@
|
|
31
36
|
|
32
37
|
.tab-nav-indicator {
|
33
38
|
background-color: $link-color;
|
34
|
-
height:
|
39
|
+
height: 2px;
|
35
40
|
position: absolute;
|
36
|
-
bottom:
|
37
|
-
|
41
|
+
bottom: 0;
|
42
|
+
transition: left 0.3s $timing 0.15s, right 0.3s $timing;
|
38
43
|
&.reverse {
|
39
|
-
|
44
|
+
transition: left 0.3s $timing, right 0.3s $timing 0.15s;
|
40
45
|
}
|
41
46
|
}
|
42
47
|
|
43
48
|
// colour
|
49
|
+
.tab-nav-offwhite {
|
50
|
+
.nav {
|
51
|
+
> li {
|
52
|
+
> a,
|
53
|
+
> .a {
|
54
|
+
color: $white;
|
55
|
+
&:focus,
|
56
|
+
&:hover {
|
57
|
+
border-bottom-color: rgba(255, 255, 255, 0.5);
|
58
|
+
color: $white;
|
59
|
+
}
|
60
|
+
}
|
61
|
+
&.active > a,
|
62
|
+
&.active > .a {
|
63
|
+
border-bottom-color: $white;
|
64
|
+
color: $white;
|
65
|
+
}
|
66
|
+
}
|
67
|
+
}
|
68
|
+
.tab-nav-indicator {
|
69
|
+
background-color: $white;
|
70
|
+
}
|
71
|
+
}
|
72
|
+
|
44
73
|
@each $color in $palette-list {
|
45
74
|
$i: index($palette-list, $color);
|
46
|
-
|
75
|
+
|
47
76
|
.tab-nav-#{$color} {
|
48
77
|
.nav {
|
49
78
|
> li {
|
50
|
-
> a
|
79
|
+
> a,
|
80
|
+
> .a {
|
51
81
|
&:focus,
|
52
82
|
&:hover {
|
83
|
+
border-bottom-color: nth($palette-color-light, $i);
|
53
84
|
color: nth($palette-color, $i);
|
54
85
|
}
|
55
86
|
}
|
56
|
-
&.active > a
|
87
|
+
&.active > a,
|
88
|
+
&.active > .a {
|
57
89
|
border-bottom-color: nth($palette-color, $i);
|
58
90
|
color: nth($palette-color, $i);
|
59
91
|
}
|
@@ -72,4 +104,4 @@
|
|
72
104
|
display: block;
|
73
105
|
visibility: visible;
|
74
106
|
}
|
75
|
-
}
|
107
|
+
}
|
@@ -1,8 +1,8 @@
|
|
1
1
|
.tile {
|
2
2
|
background-color: $white;
|
3
|
+
box-shadow: 0 -1px 0 $black-bg, 0 0 2px rgba(0, 0, 0, 0.1), 0 2px 4px rgba(0, 0, 0, 0.15);
|
3
4
|
display: block;
|
4
5
|
position: relative;
|
5
|
-
@include box-shadow(0 -1px 0 $black-bg, 0 0 2px rgba(0, 0, 0, 0.1), 0 2px 4px rgba(0, 0, 0, 0.15));
|
6
6
|
@include clearfix();
|
7
7
|
&[href] {
|
8
8
|
color: $black-text;
|
@@ -18,14 +18,13 @@
|
|
18
18
|
}
|
19
19
|
.tile-wrap-animation & {
|
20
20
|
opacity: 0;
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
transition-property: opacity, transform;
|
21
|
+
transform: translate(0, 100%);
|
22
|
+
transition: all 0.6s $timing;
|
23
|
+
transition-property: opacity, transform;
|
25
24
|
}
|
26
25
|
.tile-wrap-animation.isinview & {
|
27
26
|
opacity: 1;
|
28
|
-
|
27
|
+
transform: translate(0, 0) !important;
|
29
28
|
}
|
30
29
|
// no boxshadow
|
31
30
|
.no-boxshadow & {
|
@@ -57,7 +56,7 @@
|
|
57
56
|
@extend .card-action;
|
58
57
|
border-top: 0;
|
59
58
|
float: right;
|
60
|
-
|
59
|
+
user-select: none;
|
61
60
|
.no-touch &,
|
62
61
|
.touch .tile-collapse & {
|
63
62
|
display: none;
|
@@ -73,19 +72,18 @@
|
|
73
72
|
}
|
74
73
|
|
75
74
|
.tile-active-show {
|
76
|
-
|
75
|
+
transition: height 0.15s linear;
|
77
76
|
}
|
78
77
|
|
79
78
|
.tile-collapse {
|
80
|
-
|
79
|
+
transition: margin 0.15s linear;
|
81
80
|
&.active {
|
82
81
|
margin-right: ($grid-gutter * -1 + 1);
|
83
82
|
margin-left: ($grid-gutter * -1 + 1);
|
84
83
|
}
|
85
84
|
.tile-wrap-animation & {
|
86
|
-
|
87
|
-
|
88
|
-
transition-property: margin, opacity, transform;
|
85
|
+
transition: all 0.6s $timing, margin 0.15s linear;
|
86
|
+
transition-property: margin, opacity, transform;
|
89
87
|
}
|
90
88
|
}
|
91
89
|
|
@@ -192,4 +190,4 @@
|
|
192
190
|
margin-top: $line-height;
|
193
191
|
margin-bottom: $line-height;
|
194
192
|
position: relative;
|
195
|
-
}
|
193
|
+
}
|
@@ -27,19 +27,18 @@
|
|
27
27
|
}
|
28
28
|
|
29
29
|
.toast-inner {
|
30
|
+
backface-visibility: hidden;
|
30
31
|
background-color: $black-text;
|
32
|
+
box-shadow: 0 1px 10px rgba(0, 0, 0, 0.5);
|
31
33
|
color: $white;
|
32
34
|
font-size: floor($font-size * 0.9);
|
33
35
|
padding: ($line-height / 2) $grid-gutter;
|
34
|
-
|
35
|
-
|
36
|
+
transform: translate3d(0, 200%, 0);
|
37
|
+
transition: all 0.3s $timing;
|
38
|
+
transition-property: transform;
|
36
39
|
@include clearfix();
|
37
|
-
@include transform(translate3d(0, 200%, 0));
|
38
|
-
@include transition(all 0.3s $timing);
|
39
|
-
-webkit-transition-property: -webkit-transform;
|
40
|
-
transition-property: transform;
|
41
40
|
.toast-show & {
|
42
|
-
|
41
|
+
transform: translate3d(0, 0, 0);
|
43
42
|
}
|
44
43
|
// 768
|
45
44
|
@include responsive(sm) {
|
@@ -48,10 +47,10 @@
|
|
48
47
|
}
|
49
48
|
// no transform3d
|
50
49
|
.no-csstransforms3d & {
|
51
|
-
|
50
|
+
opacity: 0;
|
52
51
|
}
|
53
52
|
.no-csstransforms3d .toast-show & {
|
54
|
-
|
53
|
+
opacity: 1;
|
55
54
|
}
|
56
55
|
}
|
57
56
|
|
@@ -62,7 +61,7 @@
|
|
62
61
|
[data-dismiss="toast"] {
|
63
62
|
cursor: pointer;
|
64
63
|
float: right;
|
65
|
-
font-weight:
|
64
|
+
font-weight: $font-weight-bold;
|
66
65
|
margin-left: $grid-gutter;
|
67
66
|
text-transform: uppercase;
|
68
|
-
}
|
67
|
+
}
|
@@ -1,30 +1,3 @@
|
|
1
|
-
@mixin animation($animation...) {
|
2
|
-
-webkit-animation: $animation;
|
3
|
-
animation: $animation;
|
4
|
-
}
|
5
|
-
|
6
|
-
@mixin backface($backface) {
|
7
|
-
-webkit-backface-visibility: $backface;
|
8
|
-
backface-visibility: $backface;
|
9
|
-
}
|
10
|
-
|
11
|
-
@mixin box-shadow($shadow...) {
|
12
|
-
-webkit-box-shadow: $shadow;
|
13
|
-
box-shadow: $shadow;
|
14
|
-
}
|
15
|
-
|
16
|
-
@mixin box-sizing($sizing) {
|
17
|
-
-webkit-box-sizing: $sizing;
|
18
|
-
-moz-box-sizing: $sizing;
|
19
|
-
box-sizing: $sizing;
|
20
|
-
}
|
21
|
-
|
22
|
-
@mixin opacity($alpha) {
|
23
|
-
opacity: $alpha;
|
24
|
-
$alpha-ie: ($alpha * 100);
|
25
|
-
filter: #{alpha(opacity=$alpha-ie)};
|
26
|
-
}
|
27
|
-
|
28
1
|
@mixin placeholder($color) {
|
29
2
|
&:-ms-input-placeholder {
|
30
3
|
color: $color;
|
@@ -37,21 +10,3 @@
|
|
37
10
|
color: $color;
|
38
11
|
}
|
39
12
|
}
|
40
|
-
|
41
|
-
@mixin transform($transform...) {
|
42
|
-
-webkit-transform: $transform;
|
43
|
-
-ms-transform: $transform;
|
44
|
-
transform: $transform;
|
45
|
-
}
|
46
|
-
|
47
|
-
@mixin transition($transition...) {
|
48
|
-
-webkit-transition: $transition;
|
49
|
-
transition: $transition;
|
50
|
-
}
|
51
|
-
|
52
|
-
@mixin user-select($select) {
|
53
|
-
-webkit-user-select: $select;
|
54
|
-
-moz-user-select: $select;
|
55
|
-
-ms-user-select: $select;
|
56
|
-
user-select: $select;
|
57
|
-
}
|
@@ -12,10 +12,10 @@
|
|
12
12
|
padding-right: $grid-gutter;
|
13
13
|
padding-left: $grid-gutter;
|
14
14
|
.content-fix.fixed & {
|
15
|
+
backface-visibility: hidden;
|
15
16
|
position: fixed;
|
16
17
|
top: ($line-height * 2);
|
17
18
|
bottom: 0;
|
18
|
-
@include backface(hidden);
|
19
19
|
}
|
20
20
|
}
|
21
21
|
|
@@ -41,28 +41,28 @@
|
|
41
41
|
overflow: hidden;
|
42
42
|
padding-top: ($line-height * 2);
|
43
43
|
position: relative;
|
44
|
+
transition: background-color 0.3s $timing, color 0.3s $timing;
|
44
45
|
z-index: 1;
|
45
|
-
@include transition(background-color 0.3s $timing, color 0.3s $timing);
|
46
46
|
@each $color in $palette-list {
|
47
47
|
$i: index($palette-list, $color);
|
48
|
-
|
48
|
+
|
49
49
|
.page-#{$color} & {
|
50
50
|
background-color: nth($palette-color, $i);
|
51
51
|
}
|
52
52
|
}
|
53
53
|
.heading {
|
54
|
-
font-weight:
|
54
|
+
font-weight: $font-weight-light;
|
55
55
|
}
|
56
56
|
}
|
57
57
|
|
58
58
|
.content-sub-heading {
|
59
59
|
color: $brand-color;
|
60
60
|
font-size: $font-size-h4;
|
61
|
-
font-weight:
|
61
|
+
font-weight: $font-weight;
|
62
62
|
line-height: $line-height-h4;
|
63
63
|
@each $color in $palette-list {
|
64
64
|
$i: index($palette-list, $color);
|
65
|
-
|
65
|
+
|
66
66
|
.page-#{$color} & {
|
67
67
|
color: nth($palette-color, $i);
|
68
68
|
}
|
@@ -71,4 +71,4 @@
|
|
71
71
|
|
72
72
|
.row-fix {
|
73
73
|
position: relative;
|
74
|
-
}
|
74
|
+
}
|
@@ -1,71 +1,22 @@
|
|
1
1
|
.header {
|
2
|
+
backface-visibility: hidden;
|
2
3
|
background-color: $brand-color;
|
3
4
|
color: $white;
|
4
5
|
position: fixed;
|
5
6
|
top: 0;
|
6
7
|
right: 0;
|
7
8
|
left: 0;
|
9
|
+
transition: background-color 0.3s $timing, box-shadow 0.15s linear;
|
8
10
|
z-index: $header-base;
|
9
|
-
@include backface(hidden);
|
10
11
|
@include clearfix();
|
11
|
-
@include transition(background-color 0.3s $timing, box-shadow 0.15s linear);
|
12
12
|
&.fixed,
|
13
|
-
&.open
|
14
|
-
.menu-open & {
|
13
|
+
&.open {
|
15
14
|
background-color: $brand-color-dark-m;
|
16
|
-
|
15
|
+
box-shadow: 0 1px 10px rgba(0, 0, 0, 0.5);
|
17
16
|
}
|
18
|
-
// colour
|
19
|
-
@each $color in $palette-list {
|
20
|
-
$i: index($palette-list, $color);
|
21
|
-
|
22
|
-
.page-#{$color} & {
|
23
|
-
background-color: nth($palette-color, $i);
|
24
|
-
&.fixed,
|
25
|
-
&.open {
|
26
|
-
background-color: nth($palette-color-dark-m, $i);
|
27
|
-
}
|
28
|
-
}
|
29
|
-
.menu-open.page-#{$color} & {
|
30
|
-
background-color: nth($palette-color-dark-m, $i);
|
31
|
-
}
|
32
|
-
}
|
33
17
|
a {
|
34
18
|
color: $white;
|
35
19
|
}
|
36
|
-
.breadcrumb {
|
37
|
-
color: $white;
|
38
|
-
margin-top: 0;
|
39
|
-
margin-bottom: 0;
|
40
|
-
max-height: ($line-height * 2);
|
41
|
-
overflow: hidden;
|
42
|
-
padding-right: $grid-gutter;
|
43
|
-
padding-left: $grid-gutter;
|
44
|
-
a,
|
45
|
-
.a {
|
46
|
-
text-decoration: none;
|
47
|
-
}
|
48
|
-
> .active {
|
49
|
-
color: $white;
|
50
|
-
font-weight: 300;
|
51
|
-
> a,
|
52
|
-
> .a {
|
53
|
-
color: $white;
|
54
|
-
}
|
55
|
-
}
|
56
|
-
// 0 - 767
|
57
|
-
@include responsive("(max-width: #{$screen-sm - 1})") {
|
58
|
-
> li {
|
59
|
-
display: none;
|
60
|
-
}
|
61
|
-
> .active {
|
62
|
-
display: block;
|
63
|
-
&:before {
|
64
|
-
display: none;
|
65
|
-
}
|
66
|
-
}
|
67
|
-
}
|
68
|
-
}
|
69
20
|
.dropdown-menu {
|
70
21
|
border-radius: 2px;
|
71
22
|
a {
|
@@ -75,29 +26,20 @@
|
|
75
26
|
.dropdown-toggle {
|
76
27
|
z-index: 1;
|
77
28
|
&:after {
|
78
|
-
background-color:
|
29
|
+
background-color: rgba(0, 0, 0, 0.3);
|
79
30
|
border-radius: 50%;
|
80
31
|
content: "";
|
81
32
|
display: block;
|
82
33
|
height: ($line-height * 1.5);
|
34
|
+
margin-left: ($line-height * -0.75);
|
83
35
|
position: absolute;
|
84
36
|
top: ($line-height * 0.25);
|
85
|
-
|
86
|
-
|
87
|
-
|
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);
|
88
42
|
z-index: -1;
|
89
|
-
@include transform(scale(0));
|
90
|
-
@include transition(all 0.3s $timing);
|
91
|
-
-webkit-transition-property: background-color, -webkit-transform;
|
92
|
-
transition-property: background-color, transform;
|
93
|
-
// colour
|
94
|
-
@each $color in $palette-list {
|
95
|
-
$i: index($palette-list, $color);
|
96
|
-
|
97
|
-
.page-#{$color} & {
|
98
|
-
background-color: nth($palette-color, $i);
|
99
|
-
}
|
100
|
-
}
|
101
43
|
// no csstransforms
|
102
44
|
.no-csstransforms & {
|
103
45
|
display: none;
|
@@ -107,7 +49,7 @@
|
|
107
49
|
.dropdown.open .dropdown-toggle {
|
108
50
|
background-color: transparent;
|
109
51
|
&:after {
|
110
|
-
|
52
|
+
transform: scale(1);
|
111
53
|
// no csstransforms
|
112
54
|
.no-csstransforms & {
|
113
55
|
display: block;
|
@@ -116,71 +58,25 @@
|
|
116
58
|
}
|
117
59
|
.nav {
|
118
60
|
margin: 0;
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
@include transform(rotate(-225deg));
|
136
|
-
&:after {
|
137
|
-
background-color: $brand-color;
|
138
|
-
border-radius: 50%;
|
139
|
-
content: "";
|
140
|
-
display: block;
|
141
|
-
height: ($line-height * 1.5);
|
142
|
-
margin-top: ($line-height * -0.75);
|
143
|
-
margin-left: ($line-height * -0.75);
|
144
|
-
position: absolute;
|
145
|
-
top: 50%;
|
146
|
-
left: 50%;
|
147
|
-
width: ($line-height * 1.5);
|
148
|
-
@include transform(scale(0));
|
149
|
-
@include transition(all 0.3s $timing);
|
150
|
-
-webkit-transition-property: -webkit-transform;
|
151
|
-
transition-property: transform;
|
152
|
-
@each $color in $palette-list {
|
153
|
-
$i: index($palette-list, $color);
|
154
|
-
|
155
|
-
.page-#{$color} & {
|
156
|
-
background-color: nth($palette-color, $i);
|
157
|
-
}
|
158
|
-
}
|
159
|
-
}
|
160
|
-
&:before {
|
161
|
-
position: relative;
|
162
|
-
z-index: 1;
|
163
|
-
}
|
164
|
-
}
|
165
|
-
}
|
166
|
-
&.active > a {
|
167
|
-
.avatar,
|
168
|
-
.fa,
|
169
|
-
.icon {
|
170
|
-
@include opacity(0);
|
171
|
-
@include transform(rotate(225deg));
|
172
|
-
}
|
173
|
-
.header-close {
|
174
|
-
@include opacity(1);
|
175
|
-
@include transform(rotate(0));
|
176
|
-
&:after {
|
177
|
-
@include transform(scale(1));
|
178
|
-
}
|
179
|
-
}
|
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);
|
180
77
|
}
|
181
78
|
}
|
182
79
|
}
|
183
|
-
}
|
184
80
|
|
185
81
|
.header-btn {
|
186
82
|
display: block;
|
@@ -211,7 +107,7 @@
|
|
211
107
|
.header-text {
|
212
108
|
display: block;
|
213
109
|
float: left;
|
214
|
-
font-weight:
|
110
|
+
font-weight: $font-weight-light;
|
215
111
|
height: ($line-height * 2);
|
216
112
|
line-height: $line-height-h4;
|
217
113
|
margin: 0;
|
@@ -230,43 +126,3 @@
|
|
230
126
|
width: auto;
|
231
127
|
}
|
232
128
|
}
|
233
|
-
|
234
|
-
.header-nav-scroll {
|
235
|
-
height: ($line-height * 2);
|
236
|
-
overflow: hidden;
|
237
|
-
position: relative;
|
238
|
-
&.pull-down {
|
239
|
-
position: absolute;
|
240
|
-
top: 100%;
|
241
|
-
left: 0;
|
242
|
-
width: 100%;
|
243
|
-
@include transition(opacity 0.15s $timing 0.15s, top 0.3s $timing);
|
244
|
-
.header.fixed &,
|
245
|
-
.header.open &,
|
246
|
-
.menu-open & {
|
247
|
-
// position
|
248
|
-
top: 0;
|
249
|
-
z-index: -1;
|
250
|
-
@include opacity(0);
|
251
|
-
@include transition(opacity 0.15s $timing, top 0.3s $timing);
|
252
|
-
}
|
253
|
-
}
|
254
|
-
}
|
255
|
-
|
256
|
-
.header-nav-wrap {
|
257
|
-
height: 150%;
|
258
|
-
overflow-x: auto;
|
259
|
-
overflow-y: hidden;
|
260
|
-
padding-bottom: $line-height;
|
261
|
-
position: absolute;
|
262
|
-
top: 0;
|
263
|
-
left: 0;
|
264
|
-
white-space: nowrap;
|
265
|
-
width: 100%;
|
266
|
-
-webkit-overflow-scrolling: touch;
|
267
|
-
-ms-overflow-style: none;
|
268
|
-
.nav > li {
|
269
|
-
display: inline-block;
|
270
|
-
float: none;
|
271
|
-
}
|
272
|
-
}
|