priority-nav 1.0.12 → 1.0.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +22 -22
- package/README.md +106 -96
- package/demo/css/main.css +155 -155
- package/demo/css/priority-nav-core.css +38 -38
- package/demo/images/src/svg/arrow-down.svg +11 -11
- package/demo/images/src/svg/github-mark.svg +11 -11
- package/demo/images/src/svg/knob.svg +19 -19
- package/demo/index.html +143 -143
- package/demo/js/classList.js +69 -69
- package/demo/js/html5shiv.min.js +3 -3
- package/demo/js/priority-nav.js +666 -666
- package/demo/scss/base/_base.scss +13 -13
- package/demo/scss/base/_boxsizing.scss +13 -13
- package/demo/scss/base/_typography.scss +37 -37
- package/demo/scss/components/_github-links.scss +11 -11
- package/demo/scss/components/_logo.scss +14 -14
- package/demo/scss/components/_nav.scss +118 -118
- package/demo/scss/components/_social.scss +8 -8
- package/demo/scss/layouts/_header.scss +20 -20
- package/demo/scss/main.scss +42 -42
- package/demo/scss/pages/_home.scss +29 -29
- package/demo/scss/utils/_easings.scss +38 -38
- package/demo/scss/utils/_helpers.scss +92 -92
- package/demo/scss/utils/_triangles.scss +26 -26
- package/demo/scss/utils/_variables.scss +29 -29
- package/demo/scss/vendors/_normalize.scss +424 -424
- package/dist/priority-nav-core.css +9 -9
- package/dist/priority-nav.js +719 -724
- package/dist/priority-nav.min.js +3 -2
- package/package.json +46 -46
@@ -1,39 +1,39 @@
|
|
1
|
-
/*
|
2
|
-
* http://easings.net/nl
|
3
|
-
*/
|
4
|
-
|
5
|
-
$custom-ease: cubic-bezier(0.4, 0, 0.2, 1);
|
6
|
-
$custom-bounce: cubic-bezier(0.25,2,0.25,1);
|
7
|
-
|
8
|
-
$linear: cubic-bezier(0.250, 0.250, 0.750, 0.750);
|
9
|
-
$ease: cubic-bezier(0.250, 0.100, 0.250, 1.000);
|
10
|
-
$ease-in: cubic-bezier(0.420, 0.000, 1.000, 1.000);
|
11
|
-
$ease-out: cubic-bezier(0.000, 0.000, 0.580, 1.000);
|
12
|
-
$ease-in-out: cubic-bezier(0.420, 0.000, 0.580, 1.000);
|
13
|
-
|
14
|
-
$easeInQuad: cubic-bezier(0.550, 0.085, 0.680, 0.530);
|
15
|
-
$easeInCubic: cubic-bezier(0.550, 0.055, 0.675, 0.190);
|
16
|
-
$easeInQuart: cubic-bezier(0.895, 0.030, 0.685, 0.220);
|
17
|
-
$easeInQuint: cubic-bezier(0.755, 0.050, 0.855, 0.060);
|
18
|
-
$easeInSine: cubic-bezier(0.470, 0.000, 0.745, 0.715);
|
19
|
-
$easeInExpo: cubic-bezier(0.950, 0.050, 0.795, 0.035);
|
20
|
-
$easeInCirc: cubic-bezier(0.600, 0.040, 0.980, 0.335);
|
21
|
-
$easeInBack: cubic-bezier(0.600, -0.280, 0.735, 0.005);
|
22
|
-
|
23
|
-
$easeOutQuad: cubic-bezier(0.250, 0.460, 0.450, 0.940);
|
24
|
-
$easeOutCubic: cubic-bezier(0.215, 0.610, 0.355, 1.000);
|
25
|
-
$easeOutQuart: cubic-bezier(0.165, 0.840, 0.440, 1.000);
|
26
|
-
$easeOutQuint: cubic-bezier(0.230, 1.000, 0.320, 1.000);
|
27
|
-
$easeOutSine: cubic-bezier(0.390, 0.575, 0.565, 1.000);
|
28
|
-
$easeOutExpo: cubic-bezier(0.190, 1.000, 0.220, 1.000);
|
29
|
-
$easeOutCirc: cubic-bezier(0.075, 0.820, 0.165, 1.000);
|
30
|
-
$easeOutBack: cubic-bezier(0.175, 0.885, 0.320, 1.275);
|
31
|
-
|
32
|
-
$easeInOutQuad: cubic-bezier(0.455, 0.030, 0.515, 0.955);
|
33
|
-
$easeInOutCubic: cubic-bezier(0.645, 0.045, 0.355, 1.000);
|
34
|
-
$easeInOutQuart: cubic-bezier(0.770, 0.000, 0.175, 1.000);
|
35
|
-
$easeInOutQuint: cubic-bezier(0.860, 0.000, 0.070, 1.000);
|
36
|
-
$easeInOutSine: cubic-bezier(0.445, 0.050, 0.550, 0.950);
|
37
|
-
$easeInOutExpo: cubic-bezier(1.000, 0.000, 0.000, 1.000);
|
38
|
-
$easeInOutCirc: cubic-bezier(0.785, 0.135, 0.150, 0.860);
|
1
|
+
/*
|
2
|
+
* http://easings.net/nl
|
3
|
+
*/
|
4
|
+
|
5
|
+
$custom-ease: cubic-bezier(0.4, 0, 0.2, 1);
|
6
|
+
$custom-bounce: cubic-bezier(0.25,2,0.25,1);
|
7
|
+
|
8
|
+
$linear: cubic-bezier(0.250, 0.250, 0.750, 0.750);
|
9
|
+
$ease: cubic-bezier(0.250, 0.100, 0.250, 1.000);
|
10
|
+
$ease-in: cubic-bezier(0.420, 0.000, 1.000, 1.000);
|
11
|
+
$ease-out: cubic-bezier(0.000, 0.000, 0.580, 1.000);
|
12
|
+
$ease-in-out: cubic-bezier(0.420, 0.000, 0.580, 1.000);
|
13
|
+
|
14
|
+
$easeInQuad: cubic-bezier(0.550, 0.085, 0.680, 0.530);
|
15
|
+
$easeInCubic: cubic-bezier(0.550, 0.055, 0.675, 0.190);
|
16
|
+
$easeInQuart: cubic-bezier(0.895, 0.030, 0.685, 0.220);
|
17
|
+
$easeInQuint: cubic-bezier(0.755, 0.050, 0.855, 0.060);
|
18
|
+
$easeInSine: cubic-bezier(0.470, 0.000, 0.745, 0.715);
|
19
|
+
$easeInExpo: cubic-bezier(0.950, 0.050, 0.795, 0.035);
|
20
|
+
$easeInCirc: cubic-bezier(0.600, 0.040, 0.980, 0.335);
|
21
|
+
$easeInBack: cubic-bezier(0.600, -0.280, 0.735, 0.005);
|
22
|
+
|
23
|
+
$easeOutQuad: cubic-bezier(0.250, 0.460, 0.450, 0.940);
|
24
|
+
$easeOutCubic: cubic-bezier(0.215, 0.610, 0.355, 1.000);
|
25
|
+
$easeOutQuart: cubic-bezier(0.165, 0.840, 0.440, 1.000);
|
26
|
+
$easeOutQuint: cubic-bezier(0.230, 1.000, 0.320, 1.000);
|
27
|
+
$easeOutSine: cubic-bezier(0.390, 0.575, 0.565, 1.000);
|
28
|
+
$easeOutExpo: cubic-bezier(0.190, 1.000, 0.220, 1.000);
|
29
|
+
$easeOutCirc: cubic-bezier(0.075, 0.820, 0.165, 1.000);
|
30
|
+
$easeOutBack: cubic-bezier(0.175, 0.885, 0.320, 1.275);
|
31
|
+
|
32
|
+
$easeInOutQuad: cubic-bezier(0.455, 0.030, 0.515, 0.955);
|
33
|
+
$easeInOutCubic: cubic-bezier(0.645, 0.045, 0.355, 1.000);
|
34
|
+
$easeInOutQuart: cubic-bezier(0.770, 0.000, 0.175, 1.000);
|
35
|
+
$easeInOutQuint: cubic-bezier(0.860, 0.000, 0.070, 1.000);
|
36
|
+
$easeInOutSine: cubic-bezier(0.445, 0.050, 0.550, 0.950);
|
37
|
+
$easeInOutExpo: cubic-bezier(1.000, 0.000, 0.000, 1.000);
|
38
|
+
$easeInOutCirc: cubic-bezier(0.785, 0.135, 0.150, 0.860);
|
39
39
|
$easeInOutBack: cubic-bezier(0.680, -0.550, 0.265, 1.550);
|
@@ -1,93 +1,93 @@
|
|
1
|
-
/* Positions */
|
2
|
-
.relative {
|
3
|
-
position: relative;
|
4
|
-
}
|
5
|
-
.absolute {
|
6
|
-
position: absolute;
|
7
|
-
}
|
8
|
-
|
9
|
-
/* Layout */
|
10
|
-
.inline-block {
|
11
|
-
display: inline-block;
|
12
|
-
}
|
13
|
-
|
14
|
-
.display-block {
|
15
|
-
display: block;
|
16
|
-
}
|
17
|
-
|
18
|
-
.table{
|
19
|
-
display: table;
|
20
|
-
width: 100%;
|
21
|
-
}
|
22
|
-
|
23
|
-
.table-cell{
|
24
|
-
display: table-cell;
|
25
|
-
}
|
26
|
-
|
27
|
-
/* Alignment */
|
28
|
-
.align-left {
|
29
|
-
text-align: left;
|
30
|
-
}
|
31
|
-
|
32
|
-
.align-right {
|
33
|
-
text-align: right;
|
34
|
-
}
|
35
|
-
|
36
|
-
.align-center {
|
37
|
-
text-align: center;
|
38
|
-
}
|
39
|
-
.v-align-middle {
|
40
|
-
vertical-align: middle;
|
41
|
-
}
|
42
|
-
|
43
|
-
.v-align-top {
|
44
|
-
vertical-align: top;
|
45
|
-
}
|
46
|
-
|
47
|
-
.v-align-bottom {
|
48
|
-
vertical-align: bottom;
|
49
|
-
}
|
50
|
-
|
51
|
-
/* Weights */
|
52
|
-
.light {
|
53
|
-
font-weight: $light;
|
54
|
-
}
|
55
|
-
|
56
|
-
.regular {
|
57
|
-
font-weight: $normal;
|
58
|
-
}
|
59
|
-
|
60
|
-
.bold {
|
61
|
-
font-weight: $bold;
|
62
|
-
}
|
63
|
-
|
64
|
-
.normal {
|
65
|
-
font-style: normal;
|
66
|
-
}
|
67
|
-
|
68
|
-
.italic {
|
69
|
-
font-style: italic;
|
70
|
-
}
|
71
|
-
|
72
|
-
/* Transform */
|
73
|
-
.uppercase {
|
74
|
-
text-transform: uppercase;
|
75
|
-
}
|
76
|
-
|
77
|
-
/* Hide text */
|
78
|
-
.hide-text {
|
79
|
-
text-indent: 100%;
|
80
|
-
white-space: nowrap;
|
81
|
-
overflow: hidden;
|
82
|
-
}
|
83
|
-
|
84
|
-
/* Overflow */
|
85
|
-
.overflow-hidden{
|
86
|
-
overflow: hidden;
|
87
|
-
}
|
88
|
-
|
89
|
-
/* z-index */
|
90
|
-
.index-up{
|
91
|
-
position: relative;
|
92
|
-
z-index: 1;
|
1
|
+
/* Positions */
|
2
|
+
.relative {
|
3
|
+
position: relative;
|
4
|
+
}
|
5
|
+
.absolute {
|
6
|
+
position: absolute;
|
7
|
+
}
|
8
|
+
|
9
|
+
/* Layout */
|
10
|
+
.inline-block {
|
11
|
+
display: inline-block;
|
12
|
+
}
|
13
|
+
|
14
|
+
.display-block {
|
15
|
+
display: block;
|
16
|
+
}
|
17
|
+
|
18
|
+
.table{
|
19
|
+
display: table;
|
20
|
+
width: 100%;
|
21
|
+
}
|
22
|
+
|
23
|
+
.table-cell{
|
24
|
+
display: table-cell;
|
25
|
+
}
|
26
|
+
|
27
|
+
/* Alignment */
|
28
|
+
.align-left {
|
29
|
+
text-align: left;
|
30
|
+
}
|
31
|
+
|
32
|
+
.align-right {
|
33
|
+
text-align: right;
|
34
|
+
}
|
35
|
+
|
36
|
+
.align-center {
|
37
|
+
text-align: center;
|
38
|
+
}
|
39
|
+
.v-align-middle {
|
40
|
+
vertical-align: middle;
|
41
|
+
}
|
42
|
+
|
43
|
+
.v-align-top {
|
44
|
+
vertical-align: top;
|
45
|
+
}
|
46
|
+
|
47
|
+
.v-align-bottom {
|
48
|
+
vertical-align: bottom;
|
49
|
+
}
|
50
|
+
|
51
|
+
/* Weights */
|
52
|
+
.light {
|
53
|
+
font-weight: $light;
|
54
|
+
}
|
55
|
+
|
56
|
+
.regular {
|
57
|
+
font-weight: $normal;
|
58
|
+
}
|
59
|
+
|
60
|
+
.bold {
|
61
|
+
font-weight: $bold;
|
62
|
+
}
|
63
|
+
|
64
|
+
.normal {
|
65
|
+
font-style: normal;
|
66
|
+
}
|
67
|
+
|
68
|
+
.italic {
|
69
|
+
font-style: italic;
|
70
|
+
}
|
71
|
+
|
72
|
+
/* Transform */
|
73
|
+
.uppercase {
|
74
|
+
text-transform: uppercase;
|
75
|
+
}
|
76
|
+
|
77
|
+
/* Hide text */
|
78
|
+
.hide-text {
|
79
|
+
text-indent: 100%;
|
80
|
+
white-space: nowrap;
|
81
|
+
overflow: hidden;
|
82
|
+
}
|
83
|
+
|
84
|
+
/* Overflow */
|
85
|
+
.overflow-hidden{
|
86
|
+
overflow: hidden;
|
87
|
+
}
|
88
|
+
|
89
|
+
/* z-index */
|
90
|
+
.index-up{
|
91
|
+
position: relative;
|
92
|
+
z-index: 1;
|
93
93
|
}
|
@@ -1,27 +1,27 @@
|
|
1
|
-
/* = Triangles
|
2
|
-
*Ex: @include triangle(up, size, color);
|
3
|
-
*/
|
4
|
-
@mixin triangle($direction, $size: 6px, $color: #222) {
|
5
|
-
content: '';
|
6
|
-
display: block;
|
7
|
-
position: absolute;
|
8
|
-
height: 0;
|
9
|
-
width: 0;
|
10
|
-
@if ($direction == 'up'){
|
11
|
-
border-bottom: $size solid $color;
|
12
|
-
border-left: 1/2*$size + $size/2 solid transparent;
|
13
|
-
border-right: 1/2*$size + $size/2 solid transparent;
|
14
|
-
} @else if ($direction == 'down'){
|
15
|
-
border-top: $size solid $color;
|
16
|
-
border-left: 1/2*$size + $size/2 solid transparent;
|
17
|
-
border-right: 1/2*$size + $size/2 solid transparent;
|
18
|
-
} @else if ($direction == 'left'){
|
19
|
-
border-top: 1/2*$size + $size/2 solid transparent;
|
20
|
-
border-bottom: 1/2*$size + $size/2 solid transparent;
|
21
|
-
border-right: $size solid $color;
|
22
|
-
} @else if ($direction == 'right'){
|
23
|
-
border-top: 1/2*$size + $size/2 solid transparent;
|
24
|
-
border-bottom: 1/2*$size + $size/2 solid transparent;
|
25
|
-
border-left: $size solid $color;
|
26
|
-
}
|
1
|
+
/* = Triangles
|
2
|
+
*Ex: @include triangle(up, size, color);
|
3
|
+
*/
|
4
|
+
@mixin triangle($direction, $size: 6px, $color: #222) {
|
5
|
+
content: '';
|
6
|
+
display: block;
|
7
|
+
position: absolute;
|
8
|
+
height: 0;
|
9
|
+
width: 0;
|
10
|
+
@if ($direction == 'up'){
|
11
|
+
border-bottom: $size solid $color;
|
12
|
+
border-left: 1/2*$size + $size/2 solid transparent;
|
13
|
+
border-right: 1/2*$size + $size/2 solid transparent;
|
14
|
+
} @else if ($direction == 'down'){
|
15
|
+
border-top: $size solid $color;
|
16
|
+
border-left: 1/2*$size + $size/2 solid transparent;
|
17
|
+
border-right: 1/2*$size + $size/2 solid transparent;
|
18
|
+
} @else if ($direction == 'left'){
|
19
|
+
border-top: 1/2*$size + $size/2 solid transparent;
|
20
|
+
border-bottom: 1/2*$size + $size/2 solid transparent;
|
21
|
+
border-right: $size solid $color;
|
22
|
+
} @else if ($direction == 'right'){
|
23
|
+
border-top: 1/2*$size + $size/2 solid transparent;
|
24
|
+
border-bottom: 1/2*$size + $size/2 solid transparent;
|
25
|
+
border-left: $size solid $color;
|
26
|
+
}
|
27
27
|
}
|
@@ -1,30 +1,30 @@
|
|
1
|
-
/*
|
2
|
-
* Wrapper
|
3
|
-
*/
|
4
|
-
$wrapper: 700px;
|
5
|
-
$wrapper--big: 950px;
|
6
|
-
|
7
|
-
/*
|
8
|
-
* Media Queries
|
9
|
-
*/
|
10
|
-
$largedesktop: 1300px;
|
11
|
-
$desktop: 1100px;
|
12
|
-
$tablet: 960px;
|
13
|
-
$small-tablet: 860px;
|
14
|
-
$smartphone-landscape: 650px;
|
15
|
-
$smartphone: 360px;
|
16
|
-
|
17
|
-
/*
|
18
|
-
* Font weights
|
19
|
-
*/
|
20
|
-
$bold: 700;
|
21
|
-
$semi: 600;
|
22
|
-
$normal: 400;
|
23
|
-
$light: 300;
|
24
|
-
|
25
|
-
/*
|
26
|
-
* Colors
|
27
|
-
*/
|
28
|
-
$blue: #068df6;
|
29
|
-
$black: #313131;
|
1
|
+
/*
|
2
|
+
* Wrapper
|
3
|
+
*/
|
4
|
+
$wrapper: 700px;
|
5
|
+
$wrapper--big: 950px;
|
6
|
+
|
7
|
+
/*
|
8
|
+
* Media Queries
|
9
|
+
*/
|
10
|
+
$largedesktop: 1300px;
|
11
|
+
$desktop: 1100px;
|
12
|
+
$tablet: 960px;
|
13
|
+
$small-tablet: 860px;
|
14
|
+
$smartphone-landscape: 650px;
|
15
|
+
$smartphone: 360px;
|
16
|
+
|
17
|
+
/*
|
18
|
+
* Font weights
|
19
|
+
*/
|
20
|
+
$bold: 700;
|
21
|
+
$semi: 600;
|
22
|
+
$normal: 400;
|
23
|
+
$light: 300;
|
24
|
+
|
25
|
+
/*
|
26
|
+
* Colors
|
27
|
+
*/
|
28
|
+
$blue: #068df6;
|
29
|
+
$black: #313131;
|
30
30
|
$lightgrey: #f3f3f3;
|