material-sass 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (100) hide show
  1. checksums.yaml +7 -0
  2. data/README.md +2 -0
  3. data/app/assets/fonts/MaterialDesignIcon.eot +0 -0
  4. data/app/assets/fonts/MaterialDesignIcon.svg +772 -766
  5. data/app/assets/fonts/MaterialDesignIcon.ttf +0 -0
  6. data/app/assets/fonts/MaterialDesignIcon.woff +0 -0
  7. data/app/assets/javascripts/material.js +326 -128
  8. data/app/assets/javascripts/material/_.js +5 -9
  9. data/app/assets/javascripts/material/bootstrap.js +3 -0
  10. data/app/assets/javascripts/material/content.js +15 -14
  11. data/app/assets/javascripts/material/datepicker.js +1 -1
  12. data/app/assets/javascripts/material/dropdown.js +25 -9
  13. data/app/assets/javascripts/material/esc.js +1 -1
  14. data/app/assets/javascripts/material/footer.js +3 -1
  15. data/app/assets/javascripts/material/form-adv.js +1 -2
  16. data/app/assets/javascripts/material/get-target.js +8 -0
  17. data/app/assets/javascripts/material/header.js +37 -7
  18. data/app/assets/javascripts/material/menu.js +47 -12
  19. data/app/assets/javascripts/material/modal.js +10 -0
  20. data/app/assets/javascripts/material/sortable.js +1 -2
  21. data/app/assets/javascripts/material/tab.js +1 -1
  22. data/app/assets/javascripts/material/tile.js +57 -14
  23. data/app/assets/javascripts/material/toast.js +53 -42
  24. data/app/assets/javascripts/material/wave.js +7 -0
  25. data/app/assets/javascripts/material/webfont.js +33 -0
  26. data/app/assets/javascripts/material/winresize.js +19 -4
  27. data/app/assets/stylesheets/material/_code.scss +40 -43
  28. data/app/assets/stylesheets/material/_grid.scss +72 -74
  29. data/app/assets/stylesheets/material/_print.scss +83 -0
  30. data/app/assets/stylesheets/material/_reset.scss +104 -84
  31. data/app/assets/stylesheets/material/_utilities-responsive.scss +97 -0
  32. data/app/assets/stylesheets/material/{_utilitise.scss → _utilities.scss} +87 -29
  33. data/app/assets/stylesheets/material/_variable.scss +78 -77
  34. data/app/assets/stylesheets/material/addon/_material-design-icon.scss +6 -3050
  35. data/app/assets/stylesheets/material/addon/_waves.scss +51 -0
  36. data/app/assets/stylesheets/material/addon/material-design-icon/_core.scss +17 -0
  37. data/app/assets/stylesheets/material/addon/material-design-icon/_icons.scss +773 -0
  38. data/app/assets/stylesheets/material/addon/material-design-icon/_path.scss +10 -0
  39. data/app/assets/stylesheets/material/addon/material-design-icon/_variables.scss +777 -0
  40. data/app/assets/stylesheets/material/base.scss +43 -10
  41. data/app/assets/stylesheets/material/element/_avatar.scss +23 -19
  42. data/app/assets/stylesheets/material/element/_breadcrumb.scss +27 -0
  43. data/app/assets/stylesheets/material/element/_button-float.scss +118 -48
  44. data/app/assets/stylesheets/material/element/_button.scss +56 -68
  45. data/app/assets/stylesheets/material/element/_card.scss +104 -50
  46. data/app/assets/stylesheets/material/element/_dropdown.scss +51 -32
  47. data/app/assets/stylesheets/material/element/_form-adv-checkbox.scss +123 -0
  48. data/app/assets/stylesheets/material/element/_form-adv-datepicker.scss +250 -227
  49. data/app/assets/stylesheets/material/element/_form-adv-label.scss +64 -0
  50. data/app/assets/stylesheets/material/element/_form-adv-switch.scss +76 -0
  51. data/app/assets/stylesheets/material/element/_form-adv-textarea.scss +4 -0
  52. data/app/assets/stylesheets/material/element/_form.scss +163 -126
  53. data/app/assets/stylesheets/material/element/_label.scss +22 -0
  54. data/app/assets/stylesheets/material/element/_modal.scss +25 -10
  55. data/app/assets/stylesheets/material/element/_nav.scss +3 -0
  56. data/app/assets/stylesheets/material/element/_progress.scss +504 -0
  57. data/app/assets/stylesheets/material/element/_tab.scss +18 -14
  58. data/app/assets/stylesheets/material/element/_table.scss +14 -43
  59. data/app/assets/stylesheets/material/element/_tile.scss +154 -113
  60. data/app/assets/stylesheets/material/element/_toast.scss +31 -24
  61. data/app/assets/stylesheets/material/mixin/_css3.scss +5 -0
  62. data/app/assets/stylesheets/material/mixin/_grid.scss +28 -24
  63. data/app/assets/stylesheets/material/mixin/_responsive.scss +1 -1
  64. data/app/assets/stylesheets/material/mixin/{_utilitise.scss → _utilities.scss} +4 -3
  65. data/app/assets/stylesheets/material/project.scss +8 -2
  66. data/app/assets/stylesheets/material/theme/_content.scss +33 -38
  67. data/app/assets/stylesheets/material/theme/_footer.scss +1 -7
  68. data/app/assets/stylesheets/material/theme/_header.scss +175 -8
  69. data/app/assets/stylesheets/material/theme/_menu.scss +267 -78
  70. data/lib/material-sass/engine.rb +1 -1
  71. data/lib/material-sass/version.rb +1 -1
  72. metadata +33 -48
  73. data/app/assets/fonts/FontAwesome.otf +0 -0
  74. data/app/assets/fonts/fontawesome-webfont.eot +0 -0
  75. data/app/assets/fonts/fontawesome-webfont.svg +0 -565
  76. data/app/assets/fonts/fontawesome-webfont.ttf +0 -0
  77. data/app/assets/fonts/fontawesome-webfont.woff +0 -0
  78. data/app/assets/fonts/fontawesome-webfont.woff2 +0 -0
  79. data/app/assets/javascripts/material/btn.js +0 -11
  80. data/app/assets/stylesheets/material/_addon.scss +0 -2
  81. data/app/assets/stylesheets/material/_element.scss +0 -15
  82. data/app/assets/stylesheets/material/_mixin.scss +0 -4
  83. data/app/assets/stylesheets/material/_theme.scss +0 -4
  84. data/app/assets/stylesheets/material/_variable-color.scss +0 -6
  85. data/app/assets/stylesheets/material/addon/_font-awesome.scss +0 -18
  86. data/app/assets/stylesheets/material/addon/font-awesome/_animated.scss +0 -33
  87. data/app/assets/stylesheets/material/addon/font-awesome/_bordered-pulled.scss +0 -11
  88. data/app/assets/stylesheets/material/addon/font-awesome/_core.scss +0 -10
  89. data/app/assets/stylesheets/material/addon/font-awesome/_fixed-width.scss +0 -5
  90. data/app/assets/stylesheets/material/addon/font-awesome/_flipped-rotated.scss +0 -29
  91. data/app/assets/stylesheets/material/addon/font-awesome/_icon.scss +0 -593
  92. data/app/assets/stylesheets/material/addon/font-awesome/_icons.scss +0 -593
  93. data/app/assets/stylesheets/material/addon/font-awesome/_larger.scss +0 -22
  94. data/app/assets/stylesheets/material/addon/font-awesome/_list.scss +0 -21
  95. data/app/assets/stylesheets/material/addon/font-awesome/_mixins.scss +0 -25
  96. data/app/assets/stylesheets/material/addon/font-awesome/_path.scss +0 -12
  97. data/app/assets/stylesheets/material/addon/font-awesome/_stacked.scss +0 -29
  98. data/app/assets/stylesheets/material/addon/font-awesome/_variable.scss +0 -601
  99. data/app/assets/stylesheets/material/addon/font-awesome/_variables.scss +0 -602
  100. data/app/assets/stylesheets/material/element/_form-adv.scss +0 -277
@@ -3,7 +3,16 @@
3
3
  right: 0;
4
4
  bottom: 0;
5
5
  left: 0;
6
- z-index: ($top-base + 1);
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
+ }
7
16
  .tooltip {
8
17
  position: static !important;
9
18
  }
@@ -22,10 +31,13 @@
22
31
  color: $white;
23
32
  font-size: floor($font-size * 0.9);
24
33
  padding: ($line-height / 2) $grid-gutter;
34
+ @include backface(hidden);
25
35
  @include box-shadow(0 1px 10px rgba(0, 0, 0, 0.5));
26
36
  @include clearfix();
27
37
  @include transform(translate3d(0, 200%, 0));
28
- @include transition(transform 0.3s $timing);
38
+ @include transition(all 0.3s $timing);
39
+ -webkit-transition-property: -webkit-transform;
40
+ transition-property: transform;
29
41
  .toast-show & {
30
42
  @include transform(translate3d(0, 0, 0));
31
43
  }
@@ -34,28 +46,23 @@
34
46
  border-radius: 2px;
35
47
  float: left;
36
48
  }
49
+ // no transform3d
50
+ .no-csstransforms3d & {
51
+ @include opacity(0);
52
+ }
53
+ .no-csstransforms3d .toast-show & {
54
+ @include opacity(1);
55
+ }
37
56
  }
38
57
 
39
- // action
40
- [data-dismiss="toast"] {
41
- cursor: pointer;
42
- float: right;
43
- font-weight: 700;
44
- margin-left: $grid-gutter;
45
- text-transform: uppercase;
46
- }
47
-
48
- .toast a {
49
- color: lighten($link-color, 30%);
50
- cursor: pointer;
51
- &:focus,
52
- &:hover {
53
- color: lighten($link-color, 15%);
54
- text-decoration: none;
55
- }
56
- }
58
+ .toast-text {
59
+ overflow: hidden;
60
+ }
57
61
 
58
- // text
59
- .toast-text {
60
- overflow: hidden;
61
- }
62
+ [data-dismiss="toast"] {
63
+ cursor: pointer;
64
+ float: right;
65
+ font-weight: 700;
66
+ margin-left: $grid-gutter;
67
+ text-transform: uppercase;
68
+ }
@@ -3,6 +3,11 @@
3
3
  animation: $animation;
4
4
  }
5
5
 
6
+ @mixin backface($backface) {
7
+ -webkit-backface-visibility: $backface;
8
+ backface-visibility: $backface;
9
+ }
10
+
6
11
  @mixin box-shadow($shadow...) {
7
12
  -webkit-box-shadow: $shadow;
8
13
  box-shadow: $shadow;
@@ -1,3 +1,25 @@
1
+ @mixin make-container() {
2
+ margin-right: auto;
3
+ margin-left: auto;
4
+ padding-right: $grid-gutter;
5
+ padding-left: $grid-gutter;
6
+ @include clearfix();
7
+ // 992
8
+ @include responsive(md) {
9
+ max-width: ($screen-md - $grid-gutter * 2);
10
+ }
11
+ // 1440
12
+ @include responsive(lg) {
13
+ max-width: ($screen-lg - $grid-gutter * 2);
14
+ }
15
+ }
16
+
17
+ @mixin make-row() {
18
+ margin-right: ($grid-gutter * -1);
19
+ margin-left: ($grid-gutter * -1);
20
+ @include clearfix();
21
+ }
22
+
1
23
  // col
2
24
  @mixin calc-col($index, $class, $type) {
3
25
  @if ($type == colwidth) and ($index > 0) {
@@ -21,9 +43,10 @@
21
43
  }
22
44
  }
23
45
  }
46
+
24
47
  @mixin float-col($class) {
25
48
  $i: 1;
26
- $list: '';
49
+ $list: "";
27
50
  $list: ".col-#{$class}-#{$i}";
28
51
  @for $i from (1 + 1) through $grid-cols {
29
52
  $list: "#{$list}, .col-#{$class}-#{$i}";
@@ -32,14 +55,16 @@
32
55
  float: left;
33
56
  }
34
57
  }
58
+
35
59
  @mixin loop-col($columns, $class, $type) {
36
60
  @for $i from 0 through $columns {
37
61
  @include calc-col($i, $class, $type);
38
62
  }
39
63
  }
64
+
40
65
  @mixin make-col() {
41
66
  $i: 1;
42
- $list: '';
67
+ $list: "";
43
68
  $list: ".col-xx-#{$i}, .col-xs-#{$i}, .col-sm-#{$i}, .col-md-#{$i}, .col-lg-#{$i}";
44
69
  @for $i from (1 + 1) through $grid-cols {
45
70
  $list: "#{$list}, .col-xx-#{$i}, .col-xs-#{$i}, .col-sm-#{$i}, .col-md-#{$i}, .col-lg-#{$i}";
@@ -51,32 +76,11 @@
51
76
  padding-right: $grid-gutter;
52
77
  }
53
78
  }
79
+
54
80
  @mixin make-grid($class) {
55
81
  @include float-col($class);
56
82
  @include loop-col($grid-cols, $class, colwidth);
57
83
  @include loop-col($grid-cols, $class, offset);
58
84
  @include loop-col($grid-cols, $class, pull);
59
85
  @include loop-col($grid-cols, $class, push);
60
- }
61
-
62
- // container and row
63
- @mixin make-container() {
64
- margin-right: auto;
65
- margin-left: auto;
66
- padding-right: $grid-gutter;
67
- padding-left: $grid-gutter;
68
- @include clearfix();
69
- // 992
70
- @include responsive(md) {
71
- width: ($screen-md - $grid-gutter * 2);
72
- }
73
- // 1440
74
- @include responsive(lg) {
75
- width: ($screen-lg - $grid-gutter * 2);
76
- }
77
- }
78
- @mixin make-row() {
79
- margin-right: ($grid-gutter * -1);
80
- margin-left: ($grid-gutter * -1);
81
- @include clearfix();
82
86
  }
@@ -25,7 +25,7 @@
25
25
  }
26
26
  // customised break point
27
27
  @else {
28
- @media only screen and ($screen-size) {
28
+ @media only screen and #{$screen-size} {
29
29
  @content;
30
30
  }
31
31
  }
@@ -1,3 +1,7 @@
1
+ @function unicode($str){
2
+ @return unquote("\"") + $str + unquote("\"");
3
+ }
4
+
1
5
  @mixin clearfix() {
2
6
  &:after,
3
7
  &:before {
@@ -11,9 +15,6 @@
11
15
  }
12
16
 
13
17
  @mixin form-label() {
14
- line-height: $line-height;
15
- margin-top: 0;
16
- margin-bottom: 0;
17
18
  padding-top: (($input-height - $line-height) / 2);
18
19
  padding-bottom: (($input-height - $line-height) / 2);
19
20
  text-align: right;
@@ -1,2 +1,8 @@
1
- @import "mixin";
2
- @import "variable";
1
+ @import "mixin/css3";
2
+ @import "mixin/grid";
3
+ @import "mixin/responsive";
4
+ @import "mixin/utilities";
5
+
6
+ @import "variable";
7
+
8
+ // project css
@@ -5,6 +5,36 @@
5
5
  }
6
6
  }
7
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
+ position: fixed;
16
+ top: ($line-height * 2);
17
+ bottom: 0;
18
+ @include backface(hidden);
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
+
8
38
  .content-heading {
9
39
  background-color: $brand-color;
10
40
  color: $white;
@@ -25,11 +55,6 @@
25
55
  }
26
56
  }
27
57
 
28
- .content-nav {
29
- background-color: $white;
30
- @include box-shadow(0 0 1px rgba(0, 0, 0, 0.5));
31
- }
32
-
33
58
  .content-sub-heading {
34
59
  color: $brand-color;
35
60
  font-size: $font-size-h4;
@@ -44,36 +69,6 @@
44
69
  }
45
70
  }
46
71
 
47
- // fixed left/right hand side column
48
- .content-fix.fixed {
49
- .content-fix-wrap {
50
- overflow-x: hidden;
51
- overflow-y: auto;
52
- padding-right: ($grid-gutter * 2);
53
- padding-left: ($grid-gutter * 2);
54
- position: absolute;
55
- top: 0;
56
- right: ($grid-gutter * -1);
57
- bottom: 0;
58
- left: ($grid-gutter * -1);
59
- -webkit-overflow-scrolling: touch;
60
- -ms-overflow-style: -ms-autohiding-scrollbar;
61
- }
62
- .content-fix-scroll {
63
- position: fixed;
64
- top: ($line-height * 2);
65
- bottom: 0;
66
- }
67
- }
68
-
69
- .content-fix-scroll {
70
- margin-right: ($grid-gutter * -1);
71
- margin-left: ($grid-gutter * -1);
72
- overflow: hidden;
73
- padding-right: $grid-gutter;
74
- padding-left: $grid-gutter;
75
- }
76
-
77
- .row-fix {
78
- position: relative;
79
- }
72
+ .row-fix {
73
+ position: relative;
74
+ }
@@ -5,8 +5,8 @@
5
5
  text-align: center;
6
6
  position: absolute;
7
7
  bottom: 0;
8
+ right: 0;
8
9
  left: 0;
9
- width: 100%;
10
10
  a {
11
11
  color: $black-hint;
12
12
  &:focus,
@@ -14,10 +14,4 @@
14
14
  color: $black-text;
15
15
  }
16
16
  }
17
- }
18
-
19
- .footer-fix {
20
- background-color: $white-bg;
21
- position: fixed;
22
- z-index: $header-base;
23
17
  }
@@ -3,13 +3,14 @@
3
3
  color: $white;
4
4
  position: fixed;
5
5
  top: 0;
6
+ right: 0;
6
7
  left: 0;
7
- width: 100%;
8
8
  z-index: $header-base;
9
- @include box-shadow(0 0 0 rgba(0, 0, 0, 0));
9
+ @include backface(hidden);
10
10
  @include clearfix();
11
11
  @include transition(background-color 0.3s $timing, box-shadow 0.15s linear);
12
12
  &.fixed,
13
+ &.open,
13
14
  .menu-open & {
14
15
  background-color: $brand-color-dark-m;
15
16
  @include box-shadow(0 1px 10px rgba(0, 0, 0, 0.5));
@@ -19,7 +20,8 @@
19
20
 
20
21
  .page-#{$color} & {
21
22
  background-color: nth($palette-color, $i);
22
- &.fixed {
23
+ &.fixed,
24
+ &.open {
23
25
  background-color: nth($palette-color-dark-m, $i);
24
26
  }
25
27
  }
@@ -30,11 +32,85 @@
30
32
  a {
31
33
  color: $white;
32
34
  }
33
- .dropdown.open .dropdown-toggle {
34
- color: $black-text;
35
+ .breadcrumb {
36
+ color: $white;
37
+ margin-top: 0;
38
+ margin-bottom: 0;
39
+ max-height: ($line-height * 2);
40
+ overflow: hidden;
41
+ padding-right: $grid-gutter;
42
+ padding-left: $grid-gutter;
43
+ a,
44
+ .a {
45
+ text-decoration: none;
46
+ }
47
+ > .active {
48
+ color: $white;
49
+ font-weight: 300;
50
+ > a,
51
+ > .a {
52
+ color: $white;
53
+ }
54
+ }
55
+ // 0 - 767
56
+ @include responsive("(max-width: #{$screen-sm - 1})") {
57
+ > li {
58
+ display: none;
59
+ }
60
+ > .active {
61
+ display: block;
62
+ &:before {
63
+ display: none;
64
+ }
65
+ }
66
+ }
35
67
  }
36
- .dropdown-menu a {
37
- color: $black-text;
68
+ .dropdown-menu {
69
+ border-radius: 2px;
70
+ a {
71
+ color: $black-text;
72
+ }
73
+ }
74
+ .dropdown-toggle {
75
+ z-index: 1;
76
+ &:after {
77
+ background-color: $brand-color;
78
+ border-radius: 50%;
79
+ content: "";
80
+ display: block;
81
+ height: ($line-height * 1.5);
82
+ position: absolute;
83
+ top: ($line-height * 0.25);
84
+ right: ($line-height * 0.25);
85
+ bottom: ($line-height * 0.25);
86
+ left: ($line-height * 0.25);
87
+ z-index: -1;
88
+ @include transform(scale(0));
89
+ @include transition(all 0.3s $timing);
90
+ -webkit-transition-property: background-color, -webkit-transform;
91
+ transition-property: background-color, transform;
92
+ @each $color in $palette-list {
93
+ $i: index($palette-list, $color);
94
+
95
+ .page-#{$color} & {
96
+ background-color: nth($palette-color, $i);
97
+ }
98
+ }
99
+ // no csstransforms
100
+ .no-csstransforms & {
101
+ display: none;
102
+ }
103
+ }
104
+ }
105
+ .dropdown.open .dropdown-toggle {
106
+ background-color: transparent;
107
+ &:after {
108
+ @include transform(scale(1));
109
+ // no csstransforms
110
+ .no-csstransforms & {
111
+ display: block;
112
+ }
113
+ }
38
114
  }
39
115
  .nav {
40
116
  margin: 0;
@@ -44,6 +120,8 @@
44
120
  .fa,
45
121
  .icon {
46
122
  @include transition(all 0.3s $timing);
123
+ -webkit-transition-property: opacity, -webkit-transform;
124
+ transition-property: opacity, transform;
47
125
  }
48
126
  .header-close {
49
127
  position: absolute;
@@ -53,6 +131,34 @@
53
131
  width: 100%;
54
132
  @include opacity(0);
55
133
  @include transform(rotate(-225deg));
134
+ &:after {
135
+ background-color: $brand-color;
136
+ border-radius: 50%;
137
+ content: "";
138
+ display: block;
139
+ height: ($line-height * 1.5);
140
+ margin-top: ($line-height * -0.75);
141
+ margin-left: ($line-height * -0.75);
142
+ position: absolute;
143
+ top: 50%;
144
+ left: 50%;
145
+ width: ($line-height * 1.5);
146
+ @include transform(scale(0));
147
+ @include transition(all 0.3s $timing);
148
+ -webkit-transition-property: -webkit-transform;
149
+ transition-property: transform;
150
+ @each $color in $palette-list {
151
+ $i: index($palette-list, $color);
152
+
153
+ .page-#{$color} & {
154
+ background-color: nth($palette-color, $i);
155
+ }
156
+ }
157
+ }
158
+ &:before {
159
+ position: relative;
160
+ z-index: 1;
161
+ }
56
162
  }
57
163
  }
58
164
  &.active > a {
@@ -65,6 +171,9 @@
65
171
  .header-close {
66
172
  @include opacity(1);
67
173
  @include transform(rotate(0));
174
+ &:after {
175
+ @include transform(scale(1));
176
+ }
68
177
  }
69
178
  }
70
179
  }
@@ -83,6 +192,19 @@
83
192
  }
84
193
  }
85
194
 
195
+ .header-fix-hide {
196
+ .header.fixed & {
197
+ display: none !important;
198
+ }
199
+ }
200
+
201
+ .header-fix-show {
202
+ display: none !important;
203
+ .header.fixed & {
204
+ display: block !important;
205
+ }
206
+ }
207
+
86
208
  .header-logo,
87
209
  .header-text {
88
210
  display: block;
@@ -91,7 +213,7 @@
91
213
  height: ($line-height * 2);
92
214
  line-height: $line-height-h4;
93
215
  margin: 0;
94
- padding: (($line-height * 2 - $line-height-h4) / 2) 0;
216
+ padding: (($line-height * 2 - $line-height-h4) / 2) $grid-gutter;
95
217
  &:focus,
96
218
  &:hover {
97
219
  text-decoration: none;
@@ -100,4 +222,49 @@
100
222
 
101
223
  .header-logo {
102
224
  font-size: $font-size-h4;
225
+ img {
226
+ display: block;
227
+ max-height: $line-height-h4;
228
+ width: auto;
229
+ }
230
+ }
231
+
232
+ .header-nav-scroll {
233
+ height: ($line-height * 2);
234
+ overflow: hidden;
235
+ position: relative;
236
+ &.pull-down {
237
+ position: absolute;
238
+ top: 100%;
239
+ left: 0;
240
+ width: 100%;
241
+ @include transition(opacity 0.15s $timing 0.15s, top 0.3s $timing);
242
+ .header.fixed &,
243
+ .header.open &,
244
+ .menu-open & {
245
+ // position
246
+ top: 0;
247
+ z-index: -1;
248
+ @include opacity(0);
249
+ @include transition(opacity 0.15s $timing, top 0.3s $timing);
250
+ }
251
+ }
252
+ }
253
+
254
+ .header-nav-wrap {
255
+ height: 150%;
256
+ overflow-x: auto;
257
+ overflow-y: hidden;
258
+ padding-bottom: $line-height;
259
+ position: absolute;
260
+ top: 0;
261
+ left: 0;
262
+ white-space: nowrap;
263
+ width: 100%;
264
+ -webkit-overflow-scrolling: touch;
265
+ -ms-overflow-style: none;
266
+ .nav > li {
267
+ display: inline-block;
268
+ float: none;
269
+ }
103
270
  }