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
@@ -0,0 +1,85 @@
|
|
1
|
+
.tab-nav {
|
2
|
+
box-shadow: 0 1px 0 $black-divider;
|
3
|
+
margin-top: $margin-md;
|
4
|
+
margin-bottom: $margin-md;
|
5
|
+
position: relative;
|
6
|
+
.nav {
|
7
|
+
margin-top: 0 !important;
|
8
|
+
margin-bottom: 0 !important;
|
9
|
+
> li {
|
10
|
+
vertical-align: bottom;
|
11
|
+
> a,
|
12
|
+
> .a {
|
13
|
+
border-bottom: 2px solid transparent;
|
14
|
+
color: inherit;
|
15
|
+
padding-bottom: (($nav-height - $line-height) / 2 - 2);
|
16
|
+
text-transform: uppercase;
|
17
|
+
transition: border-bottom-color 0s;
|
18
|
+
&:focus,
|
19
|
+
&:hover {
|
20
|
+
border-bottom-color: lighten($link-color, 30%);
|
21
|
+
transition: border-bottom-color 0.3s $timing;
|
22
|
+
}
|
23
|
+
}
|
24
|
+
&.active > a,
|
25
|
+
&.active > .a {
|
26
|
+
border-bottom-color: $brand-color-accent;
|
27
|
+
color: $brand-color-accent;
|
28
|
+
transition: border-bottom-color 0s 0.45s;
|
29
|
+
}
|
30
|
+
}
|
31
|
+
}
|
32
|
+
}
|
33
|
+
|
34
|
+
.tab-nav-indicator {
|
35
|
+
background-color: transparent;
|
36
|
+
height: 2px;
|
37
|
+
position: absolute;
|
38
|
+
bottom: 0;
|
39
|
+
&.animate {
|
40
|
+
background-color: $brand-color-accent;
|
41
|
+
transition: left 0.225s $timing 0.225s, right 0.45s $timing;
|
42
|
+
will-change: left, right;
|
43
|
+
&.reverse {
|
44
|
+
transition: left 0.45s $timing, right 0.225s $timing 0.225s;
|
45
|
+
}
|
46
|
+
}
|
47
|
+
}
|
48
|
+
|
49
|
+
// colour
|
50
|
+
@each $color in $palette-list-class {
|
51
|
+
$i: index($palette-list-class, $color);
|
52
|
+
|
53
|
+
@if $color != "brand-accent" {
|
54
|
+
.tab-nav-#{$color} {
|
55
|
+
.nav {
|
56
|
+
> li {
|
57
|
+
> a,
|
58
|
+
> .a {
|
59
|
+
&:focus,
|
60
|
+
&:hover {
|
61
|
+
border-bottom-color: nth($palette-list-light, $i);
|
62
|
+
}
|
63
|
+
}
|
64
|
+
&.active > a,
|
65
|
+
&.active > .a {
|
66
|
+
border-bottom-color: nth($palette-list-color, $i);
|
67
|
+
color: nth($palette-list-color, $i);
|
68
|
+
}
|
69
|
+
}
|
70
|
+
}
|
71
|
+
.tab-nav-indicator.animate {
|
72
|
+
background-color: nth($palette-list-color, $i);
|
73
|
+
}
|
74
|
+
}
|
75
|
+
}
|
76
|
+
}
|
77
|
+
|
78
|
+
.tab-pane {
|
79
|
+
display: none;
|
80
|
+
visibility: hidden;
|
81
|
+
&.active {
|
82
|
+
display: block;
|
83
|
+
visibility: visible;
|
84
|
+
}
|
85
|
+
}
|
@@ -0,0 +1,82 @@
|
|
1
|
+
.table {
|
2
|
+
background-color: $white;
|
3
|
+
border: 0;
|
4
|
+
box-shadow: 0 -1px 0 rgba(0, 0, 0, 0.06), 0 0 3px rgba(0, 0, 0, 0.18), 0 1px 3px rgba(0, 0, 0, 0.18);
|
5
|
+
margin-top: $margin-md;
|
6
|
+
margin-bottom: $margin-md;
|
7
|
+
width: 100%;
|
8
|
+
.card-table > & {
|
9
|
+
box-shadow: none;
|
10
|
+
margin-right: ($grid-gutter * -1);
|
11
|
+
margin-left: ($grid-gutter * -1);
|
12
|
+
&:first-child {
|
13
|
+
margin-top: 0;
|
14
|
+
}
|
15
|
+
&:last-child {
|
16
|
+
margin-bottom: 0;
|
17
|
+
}
|
18
|
+
}
|
19
|
+
> tbody {
|
20
|
+
&:first-child > tr:first-child {
|
21
|
+
td,
|
22
|
+
th {
|
23
|
+
border-top: 0;
|
24
|
+
}
|
25
|
+
}
|
26
|
+
> tr:hover {
|
27
|
+
background-color: $offwhite-solid;
|
28
|
+
}
|
29
|
+
}
|
30
|
+
td,
|
31
|
+
th {
|
32
|
+
border-top: 1px solid $black-divider-solid;
|
33
|
+
font-size: $font-size;
|
34
|
+
line-height: $line-height;
|
35
|
+
padding: (($cell-height - $line-height) / 2 - 1) $grid-gutter (($cell-height - $line-height) / 2);
|
36
|
+
vertical-align: top;
|
37
|
+
&.nowrap {
|
38
|
+
white-space: nowrap;
|
39
|
+
width: 1%;
|
40
|
+
}
|
41
|
+
}
|
42
|
+
> thead {
|
43
|
+
&:first-child > tr:first-child {
|
44
|
+
td,
|
45
|
+
th {
|
46
|
+
border-top: 0;
|
47
|
+
}
|
48
|
+
}
|
49
|
+
td,
|
50
|
+
th {
|
51
|
+
color: $black-hint-solid;
|
52
|
+
font-size: $font-size-h6;
|
53
|
+
vertical-align: bottom;
|
54
|
+
}
|
55
|
+
}
|
56
|
+
}
|
57
|
+
|
58
|
+
.table-responsive {
|
59
|
+
box-shadow: 0 -1px 0 rgba(0, 0, 0, 0.06), 0 0 3px rgba(0, 0, 0, 0.18), 0 1px 3px rgba(0, 0, 0, 0.18);
|
60
|
+
margin-top: $margin-md;
|
61
|
+
margin-bottom: $margin-md;
|
62
|
+
min-height: 0.01%;
|
63
|
+
overflow-x: auto;
|
64
|
+
overflow-y: hidden;
|
65
|
+
-webkit-overflow-scrolling: touch;
|
66
|
+
-ms-overflow-style: -ms-autohiding-scrollbar;
|
67
|
+
.card-table > & {
|
68
|
+
box-shadow: none;
|
69
|
+
margin-right: ($grid-gutter * -1);
|
70
|
+
margin-left: ($grid-gutter * -1);
|
71
|
+
&:first-child {
|
72
|
+
margin-top: 0;
|
73
|
+
}
|
74
|
+
&:last-child {
|
75
|
+
margin-bottom: 0;
|
76
|
+
}
|
77
|
+
}
|
78
|
+
> .table {
|
79
|
+
box-shadow: none;
|
80
|
+
margin: 0;
|
81
|
+
}
|
82
|
+
}
|
@@ -0,0 +1,155 @@
|
|
1
|
+
.tile {
|
2
|
+
background-color: $white;
|
3
|
+
box-shadow: 0 -1px 0 rgba(0, 0, 0, 0.06), 0 0 3px rgba(0, 0, 0, 0.18), 0 1px 3px rgba(0, 0, 0, 0.18);
|
4
|
+
display: block;
|
5
|
+
display: flex;
|
6
|
+
min-height: $tile-height;
|
7
|
+
position: relative;
|
8
|
+
&[href]:focus,
|
9
|
+
&[href]:hover {
|
10
|
+
text-decoration: none;
|
11
|
+
}
|
12
|
+
&.active {
|
13
|
+
margin-top: $margin-md !important;
|
14
|
+
margin-bottom: $margin-md !important;
|
15
|
+
}
|
16
|
+
}
|
17
|
+
|
18
|
+
// colour
|
19
|
+
@each $color in $palette-list-class {
|
20
|
+
$i: index($palette-list-class, $color);
|
21
|
+
|
22
|
+
.tile-#{$color} {
|
23
|
+
background-color: nth($palette-list-color, $i);
|
24
|
+
color: nth($palette-list-text, $i);
|
25
|
+
a,
|
26
|
+
a:focus,
|
27
|
+
a:hover {
|
28
|
+
color: inherit;
|
29
|
+
}
|
30
|
+
}
|
31
|
+
}
|
32
|
+
|
33
|
+
.tile-action {
|
34
|
+
@extend .card-action;
|
35
|
+
border-top: 0;
|
36
|
+
float: right;
|
37
|
+
min-width: 0;
|
38
|
+
order: 1;
|
39
|
+
user-select: none;
|
40
|
+
html.no-touchevents & {
|
41
|
+
display: none;
|
42
|
+
}
|
43
|
+
html.no-touchevents .tile:hover & {
|
44
|
+
display: block;
|
45
|
+
}
|
46
|
+
}
|
47
|
+
|
48
|
+
.tile-action-show {
|
49
|
+
display: block !important;
|
50
|
+
}
|
51
|
+
|
52
|
+
.tile-active-show {
|
53
|
+
min-height: 0;
|
54
|
+
&.collapsing {
|
55
|
+
transition: height 0.15s linear;
|
56
|
+
}
|
57
|
+
}
|
58
|
+
|
59
|
+
.tile-collapse {
|
60
|
+
flex-direction: column;
|
61
|
+
transition: margin 0.15s linear;
|
62
|
+
&.active {
|
63
|
+
margin-right: ($grid-gutter / -2);
|
64
|
+
margin-left: ($grid-gutter / -2);
|
65
|
+
}
|
66
|
+
}
|
67
|
+
|
68
|
+
.tile-collapse-full {
|
69
|
+
// 1056 - 1439
|
70
|
+
@media only screen and (min-width: ($grid-gutter * 4 + $screen-md)) and (max-width: ($screen-lg - 1)) {
|
71
|
+
&.active {
|
72
|
+
margin-right: ($grid-gutter * -4 + 1);
|
73
|
+
margin-left: ($grid-gutter * -4 + 1);
|
74
|
+
}
|
75
|
+
}
|
76
|
+
// 1504
|
77
|
+
@media only screen and (min-width: ($grid-gutter * 4 + $screen-lg)) {
|
78
|
+
&.active {
|
79
|
+
margin-right: ($grid-gutter * -4 + 1);
|
80
|
+
margin-left: ($grid-gutter * -4 + 1);
|
81
|
+
}
|
82
|
+
}
|
83
|
+
}
|
84
|
+
|
85
|
+
.tile-footer {
|
86
|
+
background-color: $offwhite-solid;
|
87
|
+
border-top: 1px solid $black-divider;
|
88
|
+
position: relative;
|
89
|
+
@include clearfix();
|
90
|
+
&:first-child {
|
91
|
+
border-top: 0;
|
92
|
+
}
|
93
|
+
}
|
94
|
+
|
95
|
+
// colour
|
96
|
+
@each $color in $palette-list-class {
|
97
|
+
$i: index($palette-list-class, $color);
|
98
|
+
|
99
|
+
.tile-#{$color} .tile-footer {
|
100
|
+
background-color: nth($palette-list-dark, $i);
|
101
|
+
color: nth($palette-list-text-dark, $i);
|
102
|
+
}
|
103
|
+
}
|
104
|
+
|
105
|
+
.tile-footer-btn {
|
106
|
+
@extend .card-action-btn;
|
107
|
+
}
|
108
|
+
|
109
|
+
.tile-inner {
|
110
|
+
flex: 1;
|
111
|
+
margin: (($tile-height - $line-height) / 2) $grid-gutter;
|
112
|
+
min-width: 0;
|
113
|
+
position: relative;
|
114
|
+
}
|
115
|
+
|
116
|
+
.tile-side {
|
117
|
+
@extend .card-header-side;
|
118
|
+
padding-top: (($tile-height - $line-height) / 2);
|
119
|
+
padding-bottom: (($tile-height - $line-height) / 2);
|
120
|
+
}
|
121
|
+
|
122
|
+
.tile-sub {
|
123
|
+
border-top: 1px solid $black-divider;
|
124
|
+
padding-right: $grid-gutter;
|
125
|
+
padding-left: $grid-gutter;
|
126
|
+
position: relative;
|
127
|
+
@include clearfix();
|
128
|
+
}
|
129
|
+
|
130
|
+
// colour
|
131
|
+
@each $color in $palette-list-class {
|
132
|
+
$i: index($palette-list-class, $color);
|
133
|
+
|
134
|
+
.tile-#{$color} .tile-sub {
|
135
|
+
border-top-color: nth($palette-list-dark, $i);
|
136
|
+
}
|
137
|
+
}
|
138
|
+
|
139
|
+
.tile-wrap {
|
140
|
+
margin-top: $margin-md;
|
141
|
+
margin-bottom: $margin-md;
|
142
|
+
position: relative;
|
143
|
+
}
|
144
|
+
|
145
|
+
div[data-toggle="tile"] {
|
146
|
+
cursor: pointer;
|
147
|
+
display: block;
|
148
|
+
display: flex;
|
149
|
+
flex: 1;
|
150
|
+
min-height: 0;
|
151
|
+
[data-ignore="tile"] {
|
152
|
+
cursor: default;
|
153
|
+
cursor: initial;
|
154
|
+
}
|
155
|
+
}
|
@@ -0,0 +1,42 @@
|
|
1
|
+
.content-heading {
|
2
|
+
background-color: $offwhite-solid;
|
3
|
+
color: $black-text-solid;
|
4
|
+
overflow: hidden;
|
5
|
+
padding-top: $margin-sm;
|
6
|
+
padding-bottom: $margin-sm;
|
7
|
+
position: relative;
|
8
|
+
z-index: 1;
|
9
|
+
.heading {
|
10
|
+
font-weight: $font-weight-light;
|
11
|
+
}
|
12
|
+
}
|
13
|
+
|
14
|
+
// colour
|
15
|
+
@each $color in $palette-list-class {
|
16
|
+
$i: index($palette-list-class, $color);
|
17
|
+
|
18
|
+
.page-#{$color} .content-heading {
|
19
|
+
background-color: nth($palette-list-color, $i);
|
20
|
+
color: nth($palette-list-text, $i);
|
21
|
+
}
|
22
|
+
}
|
23
|
+
|
24
|
+
.content-inner {
|
25
|
+
margin-top: $margin-lg;
|
26
|
+
margin-bottom: $margin-lg;
|
27
|
+
}
|
28
|
+
|
29
|
+
.content-sub-heading {
|
30
|
+
font-size: $font-size-h4;
|
31
|
+
font-weight: $font-weight-medium;
|
32
|
+
line-height: $line-height-h4;
|
33
|
+
}
|
34
|
+
|
35
|
+
// colour
|
36
|
+
@each $color in $palette-list-class {
|
37
|
+
$i: index($palette-list-class, $color);
|
38
|
+
|
39
|
+
.page-#{$color} .content-sub-heading {
|
40
|
+
color: nth($palette-list-color, $i);
|
41
|
+
}
|
42
|
+
}
|
@@ -0,0 +1,145 @@
|
|
1
|
+
.header {
|
2
|
+
backface-visibility: hidden;
|
3
|
+
background-color: $offwhite-solid;
|
4
|
+
color: $black-text-solid;
|
5
|
+
min-height: $header-height;
|
6
|
+
padding-top: (($header-height - $nav-height) / 2);
|
7
|
+
padding-bottom: (($header-height - $nav-height) / 2);
|
8
|
+
z-index: $header-base;
|
9
|
+
&:after {
|
10
|
+
box-shadow: 0 1px 10px rgba(0, 0, 0, 0.5);
|
11
|
+
content: "";
|
12
|
+
display: block;
|
13
|
+
height: 100%;
|
14
|
+
opacity: 0;
|
15
|
+
position: absolute;
|
16
|
+
top: 0;
|
17
|
+
left: 0;
|
18
|
+
transition: opacity 0.3s $timing;
|
19
|
+
width: 100%;
|
20
|
+
z-index: -1;
|
21
|
+
}
|
22
|
+
&.affix:after {
|
23
|
+
opacity: 1;
|
24
|
+
}
|
25
|
+
a {
|
26
|
+
color: inherit;
|
27
|
+
z-index: 1;
|
28
|
+
}
|
29
|
+
.nav {
|
30
|
+
margin: 0;
|
31
|
+
}
|
32
|
+
.tab-nav {
|
33
|
+
box-shadow: none;
|
34
|
+
margin-top: (($header-height - $nav-height) / -2);
|
35
|
+
margin-bottom: (($header-height - $nav-height) / -2);
|
36
|
+
.nav > li {
|
37
|
+
> a,
|
38
|
+
> .a {
|
39
|
+
padding-top: (($header-height - $line-height) / 2);
|
40
|
+
padding-bottom: (($header-height - $line-height) / 2 - 2);
|
41
|
+
}
|
42
|
+
}
|
43
|
+
}
|
44
|
+
}
|
45
|
+
|
46
|
+
// colour
|
47
|
+
@each $color in $palette-list-class {
|
48
|
+
$i: index($palette-list-class, $color);
|
49
|
+
|
50
|
+
.header-#{$color} {
|
51
|
+
background-color: nth($palette-list-color, $i);
|
52
|
+
color: nth($palette-list-text, $i);
|
53
|
+
}
|
54
|
+
}
|
55
|
+
|
56
|
+
.header-affix {
|
57
|
+
max-height: $nav-height;
|
58
|
+
overflow: hidden;
|
59
|
+
position: static !important;
|
60
|
+
width: 0;
|
61
|
+
&.affix {
|
62
|
+
overflow: visible;
|
63
|
+
width: auto;
|
64
|
+
}
|
65
|
+
}
|
66
|
+
|
67
|
+
.header-affix-hide {
|
68
|
+
position: static !important;
|
69
|
+
&.affix {
|
70
|
+
max-height: $nav-height;
|
71
|
+
overflow: hidden;
|
72
|
+
width: 0;
|
73
|
+
}
|
74
|
+
}
|
75
|
+
|
76
|
+
.header-logo,
|
77
|
+
.header-text {
|
78
|
+
display: block;
|
79
|
+
float: left;
|
80
|
+
font-weight: $font-weight-light;
|
81
|
+
height: $nav-height;
|
82
|
+
line-height: $line-height-h4;
|
83
|
+
margin: 0 $grid-gutter;
|
84
|
+
padding: (($nav-height - $line-height-h4) / 2) 0;
|
85
|
+
&:focus,
|
86
|
+
&:hover {
|
87
|
+
text-decoration: none;
|
88
|
+
}
|
89
|
+
}
|
90
|
+
|
91
|
+
.header-logo {
|
92
|
+
font-size: $font-size-h4;
|
93
|
+
img {
|
94
|
+
display: block;
|
95
|
+
max-height: $line-height-h4;
|
96
|
+
width: auto;
|
97
|
+
}
|
98
|
+
}
|
99
|
+
|
100
|
+
.header-seamed,
|
101
|
+
.header-standard,
|
102
|
+
.header-waterfall {
|
103
|
+
position: fixed;
|
104
|
+
top: 0;
|
105
|
+
right: 0;
|
106
|
+
left: 0;
|
107
|
+
}
|
108
|
+
|
109
|
+
.header-standard {
|
110
|
+
&:after {
|
111
|
+
opacity: 1;
|
112
|
+
}
|
113
|
+
}
|
114
|
+
|
115
|
+
.header-transparent {
|
116
|
+
background-color: transparent;
|
117
|
+
&:before {
|
118
|
+
background-color: $offwhite-solid;
|
119
|
+
content: "";
|
120
|
+
display: block;
|
121
|
+
height: 100%;
|
122
|
+
opacity: 0;
|
123
|
+
position: absolute;
|
124
|
+
top: 0;
|
125
|
+
left: 0;
|
126
|
+
transition: opacity 0.3s $timing;
|
127
|
+
width: 100%;
|
128
|
+
z-index: -1;
|
129
|
+
}
|
130
|
+
&.affix:before {
|
131
|
+
opacity: 1;
|
132
|
+
}
|
133
|
+
}
|
134
|
+
|
135
|
+
// colour
|
136
|
+
@each $color in $palette-list-class {
|
137
|
+
$i: index($palette-list-class, $color);
|
138
|
+
|
139
|
+
.page-#{$color} .header-transparent {
|
140
|
+
color: nth($palette-list-text, $i);
|
141
|
+
&:before {
|
142
|
+
background-color: nth($palette-list-color, $i);
|
143
|
+
}
|
144
|
+
}
|
145
|
+
}
|