benimal-mistakes-jekyll 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/CHANGELOG.md +1095 -0
- data/LICENSE.txt +63 -0
- data/README.md +245 -0
- data/_data/navigation.yml +12 -0
- data/_data/ui-text.yml +1079 -0
- data/_includes/analytics-providers/custom.html +3 -0
- data/_includes/analytics-providers/google-gtag.html +9 -0
- data/_includes/analytics-providers/google-universal.html +10 -0
- data/_includes/analytics-providers/google.html +14 -0
- data/_includes/analytics.html +14 -0
- data/_includes/archive-single.html +38 -0
- data/_includes/author-profile-custom-links.html +7 -0
- data/_includes/author-profile.html +263 -0
- data/_includes/base_path +5 -0
- data/_includes/breadcrumbs.html +39 -0
- data/_includes/browser-upgrade.html +3 -0
- data/_includes/category-list.html +26 -0
- data/_includes/comment.html +22 -0
- data/_includes/comments-providers/custom.html +3 -0
- data/_includes/comments-providers/discourse.html +13 -0
- data/_includes/comments-providers/disqus.html +15 -0
- data/_includes/comments-providers/facebook.html +8 -0
- data/_includes/comments-providers/google-plus.html +2 -0
- data/_includes/comments-providers/scripts.html +18 -0
- data/_includes/comments-providers/staticman.html +42 -0
- data/_includes/comments-providers/staticman_v2.html +42 -0
- data/_includes/comments.html +171 -0
- data/_includes/documents-collection.html +19 -0
- data/_includes/feature_row +53 -0
- data/_includes/figure +12 -0
- data/_includes/footer.html +25 -0
- data/_includes/footer/custom.html +3 -0
- data/_includes/gallery +47 -0
- data/_includes/group-by-array +47 -0
- data/_includes/head.html +43 -0
- data/_includes/head/custom.html +5 -0
- data/_includes/masthead.html +33 -0
- data/_includes/nav_list +47 -0
- data/_includes/page__hero.html +61 -0
- data/_includes/page__hero_video.html +4 -0
- data/_includes/page__taxonomy.html +7 -0
- data/_includes/paginator.html +69 -0
- data/_includes/post_pagination.html +14 -0
- data/_includes/posts-category.html +3 -0
- data/_includes/posts-tag.html +3 -0
- data/_includes/read-time.html +15 -0
- data/_includes/schedule.html +57 -0
- data/_includes/scripts.html +28 -0
- data/_includes/search/algolia-search-scripts.html +54 -0
- data/_includes/search/google-search-scripts.html +30 -0
- data/_includes/search/lunr-search-scripts.html +10 -0
- data/_includes/search/search_form.html +18 -0
- data/_includes/seo.html +164 -0
- data/_includes/sidebar.html +23 -0
- data/_includes/social-share.html +13 -0
- data/_includes/tag-list.html +26 -0
- data/_includes/toc +7 -0
- data/_includes/toc.html +75 -0
- data/_includes/two-day-schedule.html +71 -0
- data/_includes/video +11 -0
- data/_layouts/archive-taxonomy.html +15 -0
- data/_layouts/archive.html +26 -0
- data/_layouts/categories.html +42 -0
- data/_layouts/category.html +9 -0
- data/_layouts/collection.html +9 -0
- data/_layouts/compress.html +10 -0
- data/_layouts/default.html +42 -0
- data/_layouts/home.html +11 -0
- data/_layouts/posts.html +29 -0
- data/_layouts/search.html +42 -0
- data/_layouts/single.html +92 -0
- data/_layouts/splash.html +22 -0
- data/_layouts/tag.html +9 -0
- data/_layouts/tags.html +42 -0
- data/_sass/minimal-mistakes.scss +40 -0
- data/_sass/minimal-mistakes/_animations.scss +21 -0
- data/_sass/minimal-mistakes/_archive.scss +362 -0
- data/_sass/minimal-mistakes/_base.scss +358 -0
- data/_sass/minimal-mistakes/_buttons.scss +98 -0
- data/_sass/minimal-mistakes/_footer.scss +91 -0
- data/_sass/minimal-mistakes/_forms.scss +393 -0
- data/_sass/minimal-mistakes/_masthead.scss +83 -0
- data/_sass/minimal-mistakes/_mixins.scss +92 -0
- data/_sass/minimal-mistakes/_navigation.scss +544 -0
- data/_sass/minimal-mistakes/_notices.scss +100 -0
- data/_sass/minimal-mistakes/_page.scss +520 -0
- data/_sass/minimal-mistakes/_print.scss +252 -0
- data/_sass/minimal-mistakes/_reset.scss +187 -0
- data/_sass/minimal-mistakes/_search.scss +125 -0
- data/_sass/minimal-mistakes/_sidebar.scss +310 -0
- data/_sass/minimal-mistakes/_syntax.scss +324 -0
- data/_sass/minimal-mistakes/_tables.scss +37 -0
- data/_sass/minimal-mistakes/_utilities.scss +524 -0
- data/_sass/minimal-mistakes/_variables.scss +154 -0
- data/_sass/minimal-mistakes/skins/_air.scss +23 -0
- data/_sass/minimal-mistakes/skins/_aqua.scss +30 -0
- data/_sass/minimal-mistakes/skins/_contrast.scss +51 -0
- data/_sass/minimal-mistakes/skins/_dark.scss +42 -0
- data/_sass/minimal-mistakes/skins/_default.scss +5 -0
- data/_sass/minimal-mistakes/skins/_dirt.scss +33 -0
- data/_sass/minimal-mistakes/skins/_mint.scss +23 -0
- data/_sass/minimal-mistakes/skins/_neon.scss +53 -0
- data/_sass/minimal-mistakes/skins/_plum.scss +60 -0
- data/_sass/minimal-mistakes/skins/_sunrise.scss +44 -0
- data/_sass/minimal-mistakes/vendor/breakpoint/_breakpoint.scss +114 -0
- data/_sass/minimal-mistakes/vendor/breakpoint/_context.scss +95 -0
- data/_sass/minimal-mistakes/vendor/breakpoint/_helpers.scss +151 -0
- data/_sass/minimal-mistakes/vendor/breakpoint/_legacy-settings.scss +50 -0
- data/_sass/minimal-mistakes/vendor/breakpoint/_no-query.scss +15 -0
- data/_sass/minimal-mistakes/vendor/breakpoint/_parsers.scss +215 -0
- data/_sass/minimal-mistakes/vendor/breakpoint/_respond-to.scss +82 -0
- data/_sass/minimal-mistakes/vendor/breakpoint/_settings.scss +71 -0
- data/_sass/minimal-mistakes/vendor/breakpoint/parsers/_double.scss +33 -0
- data/_sass/minimal-mistakes/vendor/breakpoint/parsers/_query.scss +82 -0
- data/_sass/minimal-mistakes/vendor/breakpoint/parsers/_resolution.scss +31 -0
- data/_sass/minimal-mistakes/vendor/breakpoint/parsers/_single.scss +26 -0
- data/_sass/minimal-mistakes/vendor/breakpoint/parsers/_triple.scss +36 -0
- data/_sass/minimal-mistakes/vendor/breakpoint/parsers/double/_default-pair.scss +21 -0
- data/_sass/minimal-mistakes/vendor/breakpoint/parsers/double/_default.scss +22 -0
- data/_sass/minimal-mistakes/vendor/breakpoint/parsers/double/_double-string.scss +22 -0
- data/_sass/minimal-mistakes/vendor/breakpoint/parsers/resolution/_resolution.scss +60 -0
- data/_sass/minimal-mistakes/vendor/breakpoint/parsers/single/_default.scss +13 -0
- data/_sass/minimal-mistakes/vendor/breakpoint/parsers/triple/_default.scss +18 -0
- data/_sass/minimal-mistakes/vendor/magnific-popup/_magnific-popup.scss +649 -0
- data/_sass/minimal-mistakes/vendor/magnific-popup/_settings.scss +46 -0
- data/_sass/minimal-mistakes/vendor/susy/_su.scss +4 -0
- data/_sass/minimal-mistakes/vendor/susy/_susy-prefix.scss +13 -0
- data/_sass/minimal-mistakes/vendor/susy/_susy.scss +5 -0
- data/_sass/minimal-mistakes/vendor/susy/plugins/_svg-grid.scss +5 -0
- data/_sass/minimal-mistakes/vendor/susy/plugins/svg-grid/_prefix.scss +7 -0
- data/_sass/minimal-mistakes/vendor/susy/plugins/svg-grid/_svg-api.scss +114 -0
- data/_sass/minimal-mistakes/vendor/susy/plugins/svg-grid/_svg-grid-math.scss +67 -0
- data/_sass/minimal-mistakes/vendor/susy/plugins/svg-grid/_svg-settings.scss +14 -0
- data/_sass/minimal-mistakes/vendor/susy/plugins/svg-grid/_svg-unprefix.scss +18 -0
- data/_sass/minimal-mistakes/vendor/susy/plugins/svg-grid/_svg-utilities.scss +133 -0
- data/_sass/minimal-mistakes/vendor/susy/susy/_api.scss +318 -0
- data/_sass/minimal-mistakes/vendor/susy/susy/_normalize.scss +261 -0
- data/_sass/minimal-mistakes/vendor/susy/susy/_parse.scss +163 -0
- data/_sass/minimal-mistakes/vendor/susy/susy/_settings.scss +329 -0
- data/_sass/minimal-mistakes/vendor/susy/susy/_su-math.scss +441 -0
- data/_sass/minimal-mistakes/vendor/susy/susy/_su-validate.scss +213 -0
- data/_sass/minimal-mistakes/vendor/susy/susy/_syntax-helpers.scss +191 -0
- data/_sass/minimal-mistakes/vendor/susy/susy/_unprefix.scss +56 -0
- data/_sass/minimal-mistakes/vendor/susy/susy/_utilities.scss +167 -0
- data/assets/css/main.scss +8 -0
- data/assets/js/_main.js +106 -0
- data/assets/js/lunr/lunr-en.js +75 -0
- data/assets/js/lunr/lunr-gr.js +528 -0
- data/assets/js/lunr/lunr-store.js +52 -0
- data/assets/js/lunr/lunr.js +2977 -0
- data/assets/js/lunr/lunr.min.js +6 -0
- data/assets/js/main.min.js +9 -0
- data/assets/js/plugins/jquery.fitvids.js +82 -0
- data/assets/js/plugins/jquery.greedy-navigation.js +83 -0
- data/assets/js/plugins/jquery.magnific-popup.js +1860 -0
- data/assets/js/plugins/jquery.smooth-scroll.min.js +9 -0
- data/assets/js/vendor/jquery/jquery-3.3.1.min.js +2 -0
- metadata +327 -0
@@ -0,0 +1,83 @@
|
|
1
|
+
/* ==========================================================================
|
2
|
+
MASTHEAD
|
3
|
+
========================================================================== */
|
4
|
+
|
5
|
+
.masthead {
|
6
|
+
position: relative;
|
7
|
+
border-bottom: 1px solid $border-color;
|
8
|
+
-webkit-animation: $intro-transition;
|
9
|
+
animation: $intro-transition;
|
10
|
+
-webkit-animation-delay: 0.15s;
|
11
|
+
animation-delay: 0.15s;
|
12
|
+
z-index: 20;
|
13
|
+
|
14
|
+
&__inner-wrap {
|
15
|
+
@include clearfix;
|
16
|
+
margin-left: auto;
|
17
|
+
margin-right: auto;
|
18
|
+
padding: 1em;
|
19
|
+
max-width: 100%;
|
20
|
+
display: -webkit-box;
|
21
|
+
display: flex;
|
22
|
+
-webkit-box-pack: justify;
|
23
|
+
justify-content: space-between;
|
24
|
+
font-family: $sans-serif-narrow;
|
25
|
+
|
26
|
+
@include breakpoint($x-large) {
|
27
|
+
max-width: $x-large;
|
28
|
+
}
|
29
|
+
|
30
|
+
nav {
|
31
|
+
z-index: 10;
|
32
|
+
}
|
33
|
+
|
34
|
+
a {
|
35
|
+
text-decoration: none;
|
36
|
+
}
|
37
|
+
}
|
38
|
+
}
|
39
|
+
|
40
|
+
.site-title {
|
41
|
+
display: -webkit-box;
|
42
|
+
display: flex;
|
43
|
+
padding: 0.5rem 0;
|
44
|
+
align-self: stretch;
|
45
|
+
-webkit-box-align: center;
|
46
|
+
align-items: center;
|
47
|
+
font-weight: bold;
|
48
|
+
z-index: 20;
|
49
|
+
}
|
50
|
+
|
51
|
+
.masthead__menu {
|
52
|
+
float: left;
|
53
|
+
margin-left: 0;
|
54
|
+
margin-right: 0;
|
55
|
+
width: 100%;
|
56
|
+
clear: both;
|
57
|
+
|
58
|
+
.site-nav {
|
59
|
+
margin-left: 0;
|
60
|
+
|
61
|
+
@include breakpoint($small) {
|
62
|
+
float: right;
|
63
|
+
}
|
64
|
+
}
|
65
|
+
|
66
|
+
ul {
|
67
|
+
margin: 0;
|
68
|
+
padding: 0;
|
69
|
+
clear: both;
|
70
|
+
list-style-type: none;
|
71
|
+
}
|
72
|
+
}
|
73
|
+
|
74
|
+
.masthead__menu-item {
|
75
|
+
display: block;
|
76
|
+
list-style-type: none;
|
77
|
+
white-space: nowrap;
|
78
|
+
|
79
|
+
&--lg {
|
80
|
+
padding-right: 2em;
|
81
|
+
font-weight: 700;
|
82
|
+
}
|
83
|
+
}
|
@@ -0,0 +1,92 @@
|
|
1
|
+
/* ==========================================================================
|
2
|
+
MIXINS
|
3
|
+
========================================================================== */
|
4
|
+
|
5
|
+
%tab-focus {
|
6
|
+
/* Default*/
|
7
|
+
outline: thin dotted $warning-color;
|
8
|
+
/* Webkit*/
|
9
|
+
outline: 5px auto $warning-color;
|
10
|
+
outline-offset: -2px;
|
11
|
+
}
|
12
|
+
|
13
|
+
/*
|
14
|
+
em function
|
15
|
+
========================================================================== */
|
16
|
+
|
17
|
+
@function em($target, $context: $doc-font-size) {
|
18
|
+
@return ($target / $context) * 1em;
|
19
|
+
}
|
20
|
+
|
21
|
+
|
22
|
+
/*
|
23
|
+
Bourbon clearfix
|
24
|
+
========================================================================== */
|
25
|
+
|
26
|
+
/*
|
27
|
+
* Provides an easy way to include a clearfix for containing floats.
|
28
|
+
* link http://cssmojo.com/latest_new_clearfix_so_far/
|
29
|
+
*
|
30
|
+
* example scss - Usage
|
31
|
+
*
|
32
|
+
* .element {
|
33
|
+
* @include clearfix;
|
34
|
+
* }
|
35
|
+
*
|
36
|
+
* example css - CSS Output
|
37
|
+
*
|
38
|
+
* .element::after {
|
39
|
+
* clear: both;
|
40
|
+
* content: "";
|
41
|
+
* display: table;
|
42
|
+
* }
|
43
|
+
*/
|
44
|
+
|
45
|
+
@mixin clearfix {
|
46
|
+
clear: both;
|
47
|
+
|
48
|
+
&::after {
|
49
|
+
clear: both;
|
50
|
+
content: "";
|
51
|
+
display: table;
|
52
|
+
}
|
53
|
+
}
|
54
|
+
|
55
|
+
/*
|
56
|
+
Compass YIQ Color Contrast
|
57
|
+
https://github.com/easy-designs/yiq-color-contrast
|
58
|
+
========================================================================== */
|
59
|
+
|
60
|
+
@function yiq-is-light(
|
61
|
+
$color,
|
62
|
+
$threshold: $yiq-contrasted-threshold
|
63
|
+
) {
|
64
|
+
$red: red($color);
|
65
|
+
$green: green($color);
|
66
|
+
$blue: blue($color);
|
67
|
+
|
68
|
+
$yiq: (($red*299)+($green*587)+($blue*114))/1000;
|
69
|
+
|
70
|
+
@if $yiq-debug { @debug $yiq, $threshold; }
|
71
|
+
|
72
|
+
@return if($yiq >= $threshold, true, false);
|
73
|
+
}
|
74
|
+
|
75
|
+
@function yiq-contrast-color(
|
76
|
+
$color,
|
77
|
+
$dark: $yiq-contrasted-dark-default,
|
78
|
+
$light: $yiq-contrasted-light-default,
|
79
|
+
$threshold: $yiq-contrasted-threshold
|
80
|
+
) {
|
81
|
+
@return if(yiq-is-light($color, $threshold), $yiq-contrasted-dark-default, $yiq-contrasted-light-default);
|
82
|
+
}
|
83
|
+
|
84
|
+
@mixin yiq-contrasted(
|
85
|
+
$background-color,
|
86
|
+
$dark: $yiq-contrasted-dark-default,
|
87
|
+
$light: $yiq-contrasted-light-default,
|
88
|
+
$threshold: $yiq-contrasted-threshold
|
89
|
+
) {
|
90
|
+
background-color: $background-color;
|
91
|
+
color: yiq-contrast-color($background-color, $dark, $light, $threshold);
|
92
|
+
}
|
@@ -0,0 +1,544 @@
|
|
1
|
+
/* ==========================================================================
|
2
|
+
NAVIGATION
|
3
|
+
========================================================================== */
|
4
|
+
|
5
|
+
/*
|
6
|
+
Breadcrumb navigation links
|
7
|
+
========================================================================== */
|
8
|
+
|
9
|
+
.breadcrumbs {
|
10
|
+
@include clearfix;
|
11
|
+
margin: 0 auto;
|
12
|
+
max-width: 100%;
|
13
|
+
padding-left: 2em;
|
14
|
+
padding-right: 2em;
|
15
|
+
font-family: $sans-serif;
|
16
|
+
-webkit-animation: $intro-transition;
|
17
|
+
animation: $intro-transition;
|
18
|
+
-webkit-animation-delay: 0.3s;
|
19
|
+
animation-delay: 0.3s;
|
20
|
+
|
21
|
+
@include breakpoint($large) {
|
22
|
+
padding-left: 1em;
|
23
|
+
padding-right: 1em;
|
24
|
+
}
|
25
|
+
|
26
|
+
@include breakpoint($x-large) {
|
27
|
+
max-width: $x-large;
|
28
|
+
}
|
29
|
+
|
30
|
+
ol {
|
31
|
+
padding: 0;
|
32
|
+
list-style: none;
|
33
|
+
font-size: $type-size-6;
|
34
|
+
|
35
|
+
@include breakpoint($large) {
|
36
|
+
float: right;
|
37
|
+
width: span(10 of 12);
|
38
|
+
}
|
39
|
+
|
40
|
+
@include breakpoint($x-large) {
|
41
|
+
padding-left: gutter(0.5 of 12);
|
42
|
+
}
|
43
|
+
}
|
44
|
+
|
45
|
+
li {
|
46
|
+
display: inline;
|
47
|
+
}
|
48
|
+
|
49
|
+
.current {
|
50
|
+
font-weight: bold;
|
51
|
+
}
|
52
|
+
}
|
53
|
+
|
54
|
+
/*
|
55
|
+
Post pagination navigation links
|
56
|
+
========================================================================== */
|
57
|
+
|
58
|
+
.pagination {
|
59
|
+
@include clearfix();
|
60
|
+
float: left;
|
61
|
+
margin-top: 1em;
|
62
|
+
padding-top: 1em;
|
63
|
+
width: 100%;
|
64
|
+
|
65
|
+
ul {
|
66
|
+
margin: 0;
|
67
|
+
padding: 0;
|
68
|
+
list-style-type: none;
|
69
|
+
font-family: $sans-serif;
|
70
|
+
}
|
71
|
+
|
72
|
+
li {
|
73
|
+
display: block;
|
74
|
+
float: left;
|
75
|
+
margin-left: -1px;
|
76
|
+
|
77
|
+
a {
|
78
|
+
display: block;
|
79
|
+
margin-bottom: 0.25em;
|
80
|
+
padding: 0.5em 1em;
|
81
|
+
font-family: $sans-serif;
|
82
|
+
font-size: 14px;
|
83
|
+
font-weight: bold;
|
84
|
+
line-height: 1.5;
|
85
|
+
text-align: center;
|
86
|
+
text-decoration: none;
|
87
|
+
color: $muted-text-color;
|
88
|
+
border: 1px solid mix(#000, $border-color, 25%);
|
89
|
+
border-radius: 0;
|
90
|
+
|
91
|
+
&:hover {
|
92
|
+
color: $link-color-hover;
|
93
|
+
}
|
94
|
+
|
95
|
+
&.current,
|
96
|
+
&.current.disabled {
|
97
|
+
color: #fff;
|
98
|
+
background: $primary-color;
|
99
|
+
}
|
100
|
+
|
101
|
+
&.disabled {
|
102
|
+
color: rgba($muted-text-color, 0.5);
|
103
|
+
pointer-events: none;
|
104
|
+
cursor: not-allowed;
|
105
|
+
}
|
106
|
+
}
|
107
|
+
|
108
|
+
&:first-child {
|
109
|
+
margin-left: 0;
|
110
|
+
|
111
|
+
a {
|
112
|
+
border-top-left-radius: $border-radius;
|
113
|
+
border-bottom-left-radius: $border-radius;
|
114
|
+
}
|
115
|
+
}
|
116
|
+
|
117
|
+
&:last-child {
|
118
|
+
a {
|
119
|
+
border-top-right-radius: $border-radius;
|
120
|
+
border-bottom-right-radius: $border-radius;
|
121
|
+
}
|
122
|
+
}
|
123
|
+
}
|
124
|
+
|
125
|
+
/* next/previous buttons */
|
126
|
+
&--pager {
|
127
|
+
display: block;
|
128
|
+
padding: 1em 2em;
|
129
|
+
float: left;
|
130
|
+
width: 50%;
|
131
|
+
font-family: $sans-serif;
|
132
|
+
font-size: $type-size-5;
|
133
|
+
font-weight: bold;
|
134
|
+
text-align: center;
|
135
|
+
text-decoration: none;
|
136
|
+
color: $muted-text-color;
|
137
|
+
border: 1px solid mix(#000, $border-color, 25%);
|
138
|
+
border-radius: $border-radius;
|
139
|
+
|
140
|
+
&:hover {
|
141
|
+
@include yiq-contrasted($muted-text-color);
|
142
|
+
}
|
143
|
+
|
144
|
+
&:first-child {
|
145
|
+
border-top-right-radius: 0;
|
146
|
+
border-bottom-right-radius: 0;
|
147
|
+
}
|
148
|
+
|
149
|
+
&:last-child {
|
150
|
+
margin-left: -1px;
|
151
|
+
border-top-left-radius: 0;
|
152
|
+
border-bottom-left-radius: 0;
|
153
|
+
}
|
154
|
+
|
155
|
+
&.disabled {
|
156
|
+
color: rgba($muted-text-color, 0.5);
|
157
|
+
pointer-events: none;
|
158
|
+
cursor: not-allowed;
|
159
|
+
}
|
160
|
+
}
|
161
|
+
}
|
162
|
+
|
163
|
+
.page__content + .pagination,
|
164
|
+
.page__meta + .pagination,
|
165
|
+
.page__share + .pagination,
|
166
|
+
.page__comments + .pagination {
|
167
|
+
margin-top: 2em;
|
168
|
+
padding-top: 2em;
|
169
|
+
border-top: 1px solid $border-color;
|
170
|
+
}
|
171
|
+
|
172
|
+
/*
|
173
|
+
Priority plus navigation
|
174
|
+
========================================================================== */
|
175
|
+
|
176
|
+
.greedy-nav {
|
177
|
+
position: relative;
|
178
|
+
display: -webkit-box;
|
179
|
+
display: flex;
|
180
|
+
-webkit-box-align: center;
|
181
|
+
align-items: center;
|
182
|
+
background: $background-color;
|
183
|
+
|
184
|
+
a {
|
185
|
+
display: block;
|
186
|
+
margin: 0 1rem;
|
187
|
+
padding: 0.5rem 0;
|
188
|
+
color: $masthead-link-color;
|
189
|
+
text-decoration: none;
|
190
|
+
|
191
|
+
&:hover {
|
192
|
+
color: $masthead-link-color-hover;
|
193
|
+
}
|
194
|
+
|
195
|
+
&.site-title {
|
196
|
+
margin-left: 0;
|
197
|
+
}
|
198
|
+
}
|
199
|
+
|
200
|
+
&__toggle {
|
201
|
+
padding: 0 0.5rem;
|
202
|
+
align-self: stretch;
|
203
|
+
border: 0;
|
204
|
+
outline: none;
|
205
|
+
color: #fff;
|
206
|
+
background-color: $primary-color;
|
207
|
+
cursor: pointer;
|
208
|
+
}
|
209
|
+
|
210
|
+
.visible-links {
|
211
|
+
display: -webkit-box;
|
212
|
+
display: flex;
|
213
|
+
-webkit-box-pack: end;
|
214
|
+
justify-content: flex-end;
|
215
|
+
-webkit-box-flex: 1;
|
216
|
+
flex: 1;
|
217
|
+
overflow: hidden;
|
218
|
+
|
219
|
+
li {
|
220
|
+
-webkit-box-flex: 0;
|
221
|
+
flex: none;
|
222
|
+
}
|
223
|
+
|
224
|
+
a {
|
225
|
+
position: relative;
|
226
|
+
|
227
|
+
&:before {
|
228
|
+
content: "";
|
229
|
+
position: absolute;
|
230
|
+
left: 0;
|
231
|
+
bottom: 0;
|
232
|
+
height: 4px;
|
233
|
+
background: $primary-color;
|
234
|
+
width: 100%;
|
235
|
+
-webkit-transition: $global-transition;
|
236
|
+
transition: $global-transition;
|
237
|
+
-webkit-transform: scaleX(0) translate3d(0, 0, 0);
|
238
|
+
transform: scaleX(0) translate3d(0, 0, 0); /* hide*/
|
239
|
+
}
|
240
|
+
|
241
|
+
&:hover:before {
|
242
|
+
-webkit-transform: scaleX(1);
|
243
|
+
-ms-transform: scaleX(1);
|
244
|
+
transform: scaleX(1); /* reveal*/
|
245
|
+
}
|
246
|
+
}
|
247
|
+
}
|
248
|
+
|
249
|
+
.hidden-links {
|
250
|
+
position: absolute;
|
251
|
+
top: 100%;
|
252
|
+
right: 0;
|
253
|
+
margin-top: 15px;
|
254
|
+
padding: 5px;
|
255
|
+
border: 1px solid $border-color;
|
256
|
+
border-radius: $border-radius;
|
257
|
+
background: $background-color;
|
258
|
+
box-shadow: 0 2px 4px 0 rgba(#000, 0.16), 0 2px 10px 0 rgba(#000, 0.12);
|
259
|
+
|
260
|
+
&.hidden {
|
261
|
+
display: none;
|
262
|
+
}
|
263
|
+
|
264
|
+
a {
|
265
|
+
margin: 0;
|
266
|
+
padding: 10px 20px;
|
267
|
+
font-size: $type-size-5;
|
268
|
+
|
269
|
+
&:hover {
|
270
|
+
color: $masthead-link-color-hover;
|
271
|
+
background: $navicon-link-color-hover;
|
272
|
+
}
|
273
|
+
}
|
274
|
+
|
275
|
+
&:before {
|
276
|
+
content: "";
|
277
|
+
position: absolute;
|
278
|
+
top: -11px;
|
279
|
+
right: 10px;
|
280
|
+
width: 0;
|
281
|
+
border-style: solid;
|
282
|
+
border-width: 0 10px 10px;
|
283
|
+
border-color: $border-color transparent;
|
284
|
+
display: block;
|
285
|
+
z-index: 0;
|
286
|
+
}
|
287
|
+
|
288
|
+
&:after {
|
289
|
+
content: "";
|
290
|
+
position: absolute;
|
291
|
+
top: -10px;
|
292
|
+
right: 10px;
|
293
|
+
width: 0;
|
294
|
+
border-style: solid;
|
295
|
+
border-width: 0 10px 10px;
|
296
|
+
border-color: $background-color transparent;
|
297
|
+
display: block;
|
298
|
+
z-index: 1;
|
299
|
+
}
|
300
|
+
|
301
|
+
li {
|
302
|
+
display: block;
|
303
|
+
border-bottom: 1px solid $border-color;
|
304
|
+
|
305
|
+
&:last-child {
|
306
|
+
border-bottom: none;
|
307
|
+
}
|
308
|
+
}
|
309
|
+
}
|
310
|
+
}
|
311
|
+
|
312
|
+
.no-js {
|
313
|
+
.greedy-nav {
|
314
|
+
.visible-links {
|
315
|
+
-ms-flex-wrap: wrap;
|
316
|
+
flex-wrap: wrap;
|
317
|
+
overflow: visible;
|
318
|
+
}
|
319
|
+
}
|
320
|
+
}
|
321
|
+
|
322
|
+
/*
|
323
|
+
Navigation list
|
324
|
+
========================================================================== */
|
325
|
+
|
326
|
+
.nav__list {
|
327
|
+
margin-bottom: 1.5em;
|
328
|
+
|
329
|
+
input[type="checkbox"],
|
330
|
+
label {
|
331
|
+
display: none;
|
332
|
+
}
|
333
|
+
|
334
|
+
@include breakpoint(max-width ($large - 1px)) {
|
335
|
+
label {
|
336
|
+
position: relative;
|
337
|
+
display: inline-block;
|
338
|
+
padding: 0.5em 2.5em 0.5em 1em;
|
339
|
+
color: $gray;
|
340
|
+
font-size: $type-size-6;
|
341
|
+
font-weight: bold;
|
342
|
+
border: 1px solid $light-gray;
|
343
|
+
border-radius: $border-radius;
|
344
|
+
z-index: 20;
|
345
|
+
-webkit-transition: 0.2s ease-out;
|
346
|
+
transition: 0.2s ease-out;
|
347
|
+
cursor: pointer;
|
348
|
+
|
349
|
+
&:before,
|
350
|
+
&:after {
|
351
|
+
content: "";
|
352
|
+
position: absolute;
|
353
|
+
right: 1em;
|
354
|
+
top: 1.25em;
|
355
|
+
width: 0.75em;
|
356
|
+
height: 0.125em;
|
357
|
+
line-height: 1;
|
358
|
+
background-color: $gray;
|
359
|
+
-webkit-transition: 0.2s ease-out;
|
360
|
+
transition: 0.2s ease-out;
|
361
|
+
}
|
362
|
+
|
363
|
+
&:after {
|
364
|
+
-webkit-transform: rotate(90deg);
|
365
|
+
-ms-transform: rotate(90deg);
|
366
|
+
transform: rotate(90deg);
|
367
|
+
}
|
368
|
+
|
369
|
+
&:hover {
|
370
|
+
color: #fff;
|
371
|
+
border-color: $gray;
|
372
|
+
background-color: mix(white, #000, 20%);
|
373
|
+
|
374
|
+
&:before,
|
375
|
+
&:after {
|
376
|
+
background-color: #fff;
|
377
|
+
}
|
378
|
+
}
|
379
|
+
}
|
380
|
+
|
381
|
+
/* selected*/
|
382
|
+
input:checked + label {
|
383
|
+
color: white;
|
384
|
+
background-color: mix(white, #000, 20%);
|
385
|
+
|
386
|
+
&:before,
|
387
|
+
&:after {
|
388
|
+
background-color: #fff;
|
389
|
+
}
|
390
|
+
}
|
391
|
+
|
392
|
+
/* on hover show expand*/
|
393
|
+
label:hover:after {
|
394
|
+
-webkit-transform: rotate(90deg);
|
395
|
+
-ms-transform: rotate(90deg);
|
396
|
+
transform: rotate(90deg);
|
397
|
+
}
|
398
|
+
|
399
|
+
input:checked + label:hover:after {
|
400
|
+
-webkit-transform: rotate(0);
|
401
|
+
-ms-transform: rotate(0);
|
402
|
+
transform: rotate(0);
|
403
|
+
}
|
404
|
+
|
405
|
+
ul {
|
406
|
+
margin-bottom: 1em;
|
407
|
+
}
|
408
|
+
|
409
|
+
a {
|
410
|
+
display: block;
|
411
|
+
padding: 0.25em 0;
|
412
|
+
|
413
|
+
@include breakpoint($large) {
|
414
|
+
padding-top: 0.125em;
|
415
|
+
padding-bottom: 0.125em;
|
416
|
+
}
|
417
|
+
|
418
|
+
&:hover {
|
419
|
+
text-decoration: underline;
|
420
|
+
}
|
421
|
+
}
|
422
|
+
}
|
423
|
+
}
|
424
|
+
|
425
|
+
.nav__list .nav__items {
|
426
|
+
margin: 0;
|
427
|
+
font-size: 1.25rem;
|
428
|
+
|
429
|
+
a {
|
430
|
+
color: inherit;
|
431
|
+
}
|
432
|
+
|
433
|
+
.active {
|
434
|
+
margin-left: -0.5em;
|
435
|
+
padding-left: 0.5em;
|
436
|
+
padding-right: 0.5em;
|
437
|
+
font-weight: bold;
|
438
|
+
}
|
439
|
+
|
440
|
+
@include breakpoint(max-width ($large - 1px)) {
|
441
|
+
position: relative;
|
442
|
+
max-height: 0;
|
443
|
+
opacity: 0%;
|
444
|
+
overflow: hidden;
|
445
|
+
z-index: 10;
|
446
|
+
-webkit-transition: 0.3s ease-in-out;
|
447
|
+
transition: 0.3s ease-in-out;
|
448
|
+
-webkit-transform: translate(0, 10%);
|
449
|
+
-ms-transform: translate(0, 10%);
|
450
|
+
transform: translate(0, 10%);
|
451
|
+
}
|
452
|
+
}
|
453
|
+
|
454
|
+
@include breakpoint(max-width ($large - 1px)) {
|
455
|
+
.nav__list input:checked ~ .nav__items {
|
456
|
+
-webkit-transition: 0.5s ease-in-out;
|
457
|
+
transition: 0.5s ease-in-out;
|
458
|
+
max-height: 9999px; /* exaggerate max-height to accommodate tall lists*/
|
459
|
+
overflow: visible;
|
460
|
+
opacity: 1;
|
461
|
+
margin-top: 1em;
|
462
|
+
-webkit-transform: translate(0, 0);
|
463
|
+
-ms-transform: translate(0, 0);
|
464
|
+
transform: translate(0, 0);
|
465
|
+
}
|
466
|
+
}
|
467
|
+
|
468
|
+
.nav__title {
|
469
|
+
margin: 0;
|
470
|
+
padding: 0.5rem 1rem;
|
471
|
+
font-family: $sans-serif-narrow;
|
472
|
+
font-size: $type-size-5;
|
473
|
+
font-weight: bold;
|
474
|
+
}
|
475
|
+
|
476
|
+
.nav__sub-title {
|
477
|
+
display: block;
|
478
|
+
margin: 0.5rem 0;
|
479
|
+
padding: 0.5rem 0;
|
480
|
+
font-family: $sans-serif-narrow;
|
481
|
+
font-size: $type-size-6;
|
482
|
+
font-weight: bold;
|
483
|
+
text-transform: uppercase;
|
484
|
+
border-bottom: 1px solid $border-color;
|
485
|
+
}
|
486
|
+
|
487
|
+
/*
|
488
|
+
Table of contents navigation
|
489
|
+
========================================================================== */
|
490
|
+
|
491
|
+
.toc {
|
492
|
+
font-family: $sans-serif-narrow;
|
493
|
+
color: $gray;
|
494
|
+
text-transform: uppercase;
|
495
|
+
letter-spacing: 1px;
|
496
|
+
background-color: $background-color;
|
497
|
+
border: 1px solid $border-color;
|
498
|
+
border-radius: $border-radius;
|
499
|
+
box-shadow: $box-shadow;
|
500
|
+
|
501
|
+
.nav__title {
|
502
|
+
color: #fff;
|
503
|
+
font-size: $type-size-6;
|
504
|
+
background: $primary-color;
|
505
|
+
border-top-left-radius: $border-radius;
|
506
|
+
border-top-right-radius: $border-radius;
|
507
|
+
}
|
508
|
+
}
|
509
|
+
|
510
|
+
.toc__menu {
|
511
|
+
margin: 0;
|
512
|
+
padding: 0;
|
513
|
+
width: 100%;
|
514
|
+
list-style: none;
|
515
|
+
font-size: 0.8rem;
|
516
|
+
|
517
|
+
a {
|
518
|
+
display: block;
|
519
|
+
padding: 0.5rem 1rem;
|
520
|
+
color: $muted-text-color;
|
521
|
+
font-size: $type-size-7;
|
522
|
+
font-weight: bold;
|
523
|
+
line-height: 1.5;
|
524
|
+
border-bottom: 1px solid $border-color;
|
525
|
+
|
526
|
+
&:hover {
|
527
|
+
color: $text-color;
|
528
|
+
}
|
529
|
+
}
|
530
|
+
|
531
|
+
li ul > li a {
|
532
|
+
padding-left: 1.75rem;
|
533
|
+
font-weight: normal;
|
534
|
+
}
|
535
|
+
|
536
|
+
/* hide sub sub links on small screens*/
|
537
|
+
li > ul li {
|
538
|
+
display: none;
|
539
|
+
|
540
|
+
@include breakpoint($medium) {
|
541
|
+
display: block;
|
542
|
+
}
|
543
|
+
}
|
544
|
+
}
|