bytewax-docs 0.1.0
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.
- checksums.yaml +7 -0
- data/.stylelintrc +13 -0
- data/LICENSE.txt +21 -0
- data/README.md +175 -0
- data/_assets/js/cookies.js +39 -0
- data/_assets/js/docs.js +103 -0
- data/_assets/js/lib/jquery-3.6.0.min.js +2 -0
- data/_assets/js/lib/jquery.scrollspy.js +97 -0
- data/_assets/js/lib/marked.min.js +6 -0
- data/_assets/js/lib/notebook.min.js +1 -0
- data/_assets/js/lib/prism.js +17 -0
- data/_assets/js/lib/simple-jekyll-search.min.js +6 -0
- data/_assets/js/navbar.js +90 -0
- data/_assets/js/search.js +12 -0
- data/_assets/js/tutorial.js +248 -0
- data/_assets/scss/components/article.scss +132 -0
- data/_assets/scss/components/cookie-consent.scss +35 -0
- data/_assets/scss/components/footer.scss +154 -0
- data/_assets/scss/components/navbar.scss +345 -0
- data/_assets/scss/components/newsletter.scss +222 -0
- data/_assets/scss/global/alerts.scss +112 -0
- data/_assets/scss/global/animate.scss +633 -0
- data/_assets/scss/global/buttons.scss +186 -0
- data/_assets/scss/global/fonts.scss +95 -0
- data/_assets/scss/global/layout.scss +25 -0
- data/_assets/scss/global/mixins.scss +134 -0
- data/_assets/scss/global/normalize.scss +349 -0
- data/_assets/scss/global/prism.scss +383 -0
- data/_assets/scss/global/slick.scss +133 -0
- data/_assets/scss/global/typography.scss +106 -0
- data/_assets/scss/global/variables.scss +23 -0
- data/_assets/scss/main.scss +35 -0
- data/_assets/scss/templates/default.scss +100 -0
- data/_assets/scss/templates/docs/content.scss +113 -0
- data/_assets/scss/templates/docs/layout.scss +21 -0
- data/_assets/scss/templates/docs/pagination.scss +48 -0
- data/_assets/scss/templates/docs/sidebar.scss +222 -0
- data/_assets/scss/templates/docs/toc.scss +65 -0
- data/_assets/scss/templates/tutorials/archive.scss +173 -0
- data/_assets/scss/templates/tutorials/content.scss +208 -0
- data/_assets/scss/templates/tutorials/layout.scss +22 -0
- data/_assets/scss/templates/tutorials/snippets.scss +259 -0
- data/_config.yml +84 -0
- data/_data/categories.yml +3 -0
- data/_data/cookies.yml +10 -0
- data/_data/footer.yml +14 -0
- data/_data/navbar.yml +17 -0
- data/_docs/another-article.md +19 -0
- data/_docs/sample-article.md +19 -0
- data/_includes/alert.html +4 -0
- data/_includes/cookie-consent.html +13 -0
- data/_includes/docs/pagination.html +28 -0
- data/_includes/docs/sidebar.html +42 -0
- data/_includes/docs/toc.html +4 -0
- data/_includes/footer.html +36 -0
- data/_includes/google_analytics.html +12 -0
- data/_includes/head.html +73 -0
- data/_includes/navbar.html +57 -0
- data/_includes/tutorials/content.html +30 -0
- data/_includes/tutorials/post.html +31 -0
- data/_includes/tutorials/snippets.html +36 -0
- data/_layouts/base.html +21 -0
- data/_layouts/default.html +14 -0
- data/_layouts/docs.html +32 -0
- data/_layouts/tutorial.html +17 -0
- data/_layouts/tutorials.html +26 -0
- data/_tutorials/hello-world.md +142 -0
- data/assets/css/docs.css +1 -0
- data/assets/css/main.css +8 -0
- data/assets/fonts/jetbrains-mono-v3-latin-regular.eot +0 -0
- data/assets/fonts/jetbrains-mono-v3-latin-regular.svg +318 -0
- data/assets/fonts/jetbrains-mono-v3-latin-regular.ttf +0 -0
- data/assets/fonts/jetbrains-mono-v3-latin-regular.woff +0 -0
- data/assets/fonts/jetbrains-mono-v3-latin-regular.woff2 +0 -0
- data/assets/fonts/material-icons.woff2 +0 -0
- data/assets/fonts/open-sans-v18-latin-600.eot +0 -0
- data/assets/fonts/open-sans-v18-latin-600.svg +336 -0
- data/assets/fonts/open-sans-v18-latin-600.ttf +0 -0
- data/assets/fonts/open-sans-v18-latin-600.woff +0 -0
- data/assets/fonts/open-sans-v18-latin-600.woff2 +0 -0
- data/assets/fonts/open-sans-v18-latin-600italic.eot +0 -0
- data/assets/fonts/open-sans-v18-latin-600italic.svg +349 -0
- data/assets/fonts/open-sans-v18-latin-600italic.ttf +0 -0
- data/assets/fonts/open-sans-v18-latin-600italic.woff +0 -0
- data/assets/fonts/open-sans-v18-latin-600italic.woff2 +0 -0
- data/assets/fonts/open-sans-v18-latin-700.eot +0 -0
- data/assets/fonts/open-sans-v18-latin-700.svg +334 -0
- data/assets/fonts/open-sans-v18-latin-700.ttf +0 -0
- data/assets/fonts/open-sans-v18-latin-700.woff +0 -0
- data/assets/fonts/open-sans-v18-latin-700.woff2 +0 -0
- data/assets/fonts/open-sans-v18-latin-700italic.eot +0 -0
- data/assets/fonts/open-sans-v18-latin-700italic.svg +342 -0
- data/assets/fonts/open-sans-v18-latin-700italic.ttf +0 -0
- data/assets/fonts/open-sans-v18-latin-700italic.woff +0 -0
- data/assets/fonts/open-sans-v18-latin-700italic.woff2 +0 -0
- data/assets/fonts/open-sans-v18-latin-italic.eot +0 -0
- data/assets/fonts/open-sans-v18-latin-italic.svg +349 -0
- data/assets/fonts/open-sans-v18-latin-italic.ttf +0 -0
- data/assets/fonts/open-sans-v18-latin-italic.woff +0 -0
- data/assets/fonts/open-sans-v18-latin-italic.woff2 +0 -0
- data/assets/fonts/open-sans-v18-latin-regular.eot +0 -0
- data/assets/fonts/open-sans-v18-latin-regular.svg +336 -0
- data/assets/fonts/open-sans-v18-latin-regular.ttf +0 -0
- data/assets/fonts/open-sans-v18-latin-regular.woff +0 -0
- data/assets/fonts/open-sans-v18-latin-regular.woff2 +0 -0
- data/assets/img/cancel-grey.svg +11 -0
- data/assets/img/cancel.svg +3 -0
- data/assets/img/facebook-yellow.svg +11 -0
- data/assets/img/facebook.svg +3 -0
- data/assets/img/favicon.png +0 -0
- data/assets/img/github_black.svg +4 -0
- data/assets/img/github_white.svg +4 -0
- data/assets/img/linkedin-yellow.svg +12 -0
- data/assets/img/linkedin.svg +3 -0
- data/assets/img/logo.svg +44 -0
- data/assets/img/logo_mono.svg +40 -0
- data/assets/img/logo_white.svg +46 -0
- data/assets/img/logo_yellow.svg +44 -0
- data/assets/img/og-image.png +0 -0
- data/assets/img/twitter-yellow.svg +14 -0
- data/assets/img/twitter.svg +3 -0
- data/assets/js/color-mode.min.js +2 -0
- data/assets/js/scripts.js +625 -0
- data/assets/js/scripts.min.js +56 -0
- data/gulpfile.js +49 -0
- data/package-lock.json +7350 -0
- data/package.json +34 -0
- data/search.json +13 -0
- data/tutorials/hello-world/Dockerfile +4 -0
- data/tutorials/hello-world/client.py +3 -0
- data/tutorials/hello-world/hello-world.png +0 -0
- data/tutorials/hello-world/hello.py +10 -0
- data/tutorials/hello-world/setup.sh +5 -0
- data/tutorials/hello-world/shell_commands.sh +5 -0
- data/tutorials/hello-world/swarm.yaml +26 -0
- metadata +191 -0
@@ -0,0 +1,35 @@
|
|
1
|
+
/** UI Components -- Cookie consent **/
|
2
|
+
.cookie-consent{
|
3
|
+
position:fixed;
|
4
|
+
right:18px;
|
5
|
+
bottom:18px;
|
6
|
+
z-index:999;
|
7
|
+
display:none;
|
8
|
+
max-width:calc(100vw - 36px);
|
9
|
+
padding:21px;
|
10
|
+
text-align:center;
|
11
|
+
background-color:$blue;
|
12
|
+
box-shadow:0px 3px 9px rgba($black,.38);
|
13
|
+
@include min-sm{
|
14
|
+
right:24px;
|
15
|
+
bottom:24px;
|
16
|
+
max-width:320px;
|
17
|
+
padding:24px;
|
18
|
+
text-align:left;
|
19
|
+
}
|
20
|
+
&__content{
|
21
|
+
margin-bottom:18px;
|
22
|
+
color:rgba($white,.76);
|
23
|
+
font-size:13px;
|
24
|
+
line-height:21px;
|
25
|
+
}
|
26
|
+
&__link{
|
27
|
+
color:$white;
|
28
|
+
font-weight:600;
|
29
|
+
text-decoration:none;
|
30
|
+
@include transition(.25s ease-in-out);
|
31
|
+
&:hover{
|
32
|
+
text-decoration:underline;
|
33
|
+
}
|
34
|
+
}
|
35
|
+
}
|
@@ -0,0 +1,154 @@
|
|
1
|
+
/** UI Components -- Footer **/
|
2
|
+
.footer{
|
3
|
+
background-color: rgba($black,.06);
|
4
|
+
&__container{
|
5
|
+
padding-top:64px;
|
6
|
+
padding-bottom:48px;
|
7
|
+
@include min-sm{
|
8
|
+
padding-top:72px;
|
9
|
+
padding-bottom:96px;
|
10
|
+
}
|
11
|
+
@include min-xxl{
|
12
|
+
padding-top:96px;
|
13
|
+
padding-bottom:136px;
|
14
|
+
}
|
15
|
+
}
|
16
|
+
&__logo{
|
17
|
+
display:none;
|
18
|
+
@include min-sm{
|
19
|
+
display:block;
|
20
|
+
height:44px;
|
21
|
+
margin:0 auto;
|
22
|
+
}
|
23
|
+
@include min-lg{
|
24
|
+
margin:0 0 18px 0;
|
25
|
+
}
|
26
|
+
&--mono{
|
27
|
+
display:block;
|
28
|
+
height:40px;
|
29
|
+
margin:0 auto 12px auto;
|
30
|
+
@include opacity(.24);
|
31
|
+
@include min-sm{
|
32
|
+
display:none;
|
33
|
+
}
|
34
|
+
}
|
35
|
+
&--dark{
|
36
|
+
display:none;
|
37
|
+
}
|
38
|
+
}
|
39
|
+
&__copyright{
|
40
|
+
order:4;
|
41
|
+
width:calc(100% + 48px);
|
42
|
+
margin:48px -18px 0 -18px;
|
43
|
+
padding:48px 36px 0 36px;
|
44
|
+
color:rgba($black,.38);
|
45
|
+
font-size:14px;
|
46
|
+
line-height:22px;
|
47
|
+
text-align:center;
|
48
|
+
border-top:1px solid rgba($black,.12);
|
49
|
+
@include min-lg{
|
50
|
+
order:1;
|
51
|
+
width:auto;
|
52
|
+
max-width:33.3%;
|
53
|
+
margin:0 auto 0 0;
|
54
|
+
padding:0;
|
55
|
+
text-align:left;
|
56
|
+
border-top:0;
|
57
|
+
}
|
58
|
+
@include min-xxl{
|
59
|
+
max-width:none;
|
60
|
+
}
|
61
|
+
}
|
62
|
+
&__widget{
|
63
|
+
margin:0 auto;
|
64
|
+
text-align:center;
|
65
|
+
@include min-lg{
|
66
|
+
margin:0 64px;
|
67
|
+
text-align:left;
|
68
|
+
}
|
69
|
+
&-title{
|
70
|
+
margin-bottom:.75em;
|
71
|
+
font-weight:600;
|
72
|
+
font-size:1.125em;
|
73
|
+
@include min-sm{
|
74
|
+
font-size:1em;
|
75
|
+
}
|
76
|
+
}
|
77
|
+
&--about{
|
78
|
+
width:50%;
|
79
|
+
margin-bottom:48px;
|
80
|
+
@include min-sm{
|
81
|
+
width:auto;
|
82
|
+
margin-bottom:0;
|
83
|
+
}
|
84
|
+
@include min-lg{
|
85
|
+
order:2;
|
86
|
+
}
|
87
|
+
}
|
88
|
+
&--resources{
|
89
|
+
width:50%;
|
90
|
+
margin-bottom:48px;
|
91
|
+
@include min-sm{
|
92
|
+
width:auto;
|
93
|
+
margin-bottom:0;
|
94
|
+
}
|
95
|
+
@include min-lg{
|
96
|
+
order:3;
|
97
|
+
}
|
98
|
+
}
|
99
|
+
&--legal{
|
100
|
+
width:100%;
|
101
|
+
@include min-sm{
|
102
|
+
width:auto;
|
103
|
+
}
|
104
|
+
@include min-lg{
|
105
|
+
order:4;
|
106
|
+
margin-right:36px;
|
107
|
+
}
|
108
|
+
}
|
109
|
+
}
|
110
|
+
&__nav{
|
111
|
+
margin:0;
|
112
|
+
padding:0;
|
113
|
+
list-style-type:none;
|
114
|
+
&-item{
|
115
|
+
margin:8px 0;
|
116
|
+
line-height:135%;
|
117
|
+
}
|
118
|
+
&-link{
|
119
|
+
color:inherit;
|
120
|
+
font-size:0.88em;
|
121
|
+
text-decoration:none;
|
122
|
+
}
|
123
|
+
}
|
124
|
+
}
|
125
|
+
|
126
|
+
/** Dark mode styles **/
|
127
|
+
body.dark-mode .footer{
|
128
|
+
background-color: rgba($white,.03);
|
129
|
+
&__copyright{
|
130
|
+
color:rgba($white,.38);
|
131
|
+
border-top:1px solid rgba($white,.06);
|
132
|
+
@include min-lg{
|
133
|
+
border-top:0;
|
134
|
+
}
|
135
|
+
}
|
136
|
+
&__logo{
|
137
|
+
display:none;
|
138
|
+
&--mono{
|
139
|
+
display:none;
|
140
|
+
}
|
141
|
+
&--dark{
|
142
|
+
display:block;
|
143
|
+
height:40px;
|
144
|
+
margin:0 auto 12px auto;
|
145
|
+
@include min-sm{
|
146
|
+
height:44px;
|
147
|
+
margin:0 auto;
|
148
|
+
}
|
149
|
+
@include min-lg{
|
150
|
+
margin:0 0 18px 0;
|
151
|
+
}
|
152
|
+
}
|
153
|
+
}
|
154
|
+
}
|
@@ -0,0 +1,345 @@
|
|
1
|
+
/** UI Components -- Navbar **/
|
2
|
+
.navbar{
|
3
|
+
position:fixed;
|
4
|
+
top:0;
|
5
|
+
right:0;
|
6
|
+
left:0;
|
7
|
+
z-index:9999;
|
8
|
+
background:transparent;
|
9
|
+
@include transition(.25s ease-in-out);
|
10
|
+
&__container{
|
11
|
+
display:flex;
|
12
|
+
flex-direction:row;
|
13
|
+
flex-wrap:wrap;
|
14
|
+
align-items:center;
|
15
|
+
min-height:92px;
|
16
|
+
padding-top:24px;
|
17
|
+
padding-bottom:24px;
|
18
|
+
@include transition(.25s ease-in-out);
|
19
|
+
@include min-lg{
|
20
|
+
flex-wrap:nowrap;
|
21
|
+
min-height:126px;
|
22
|
+
padding-top:0;
|
23
|
+
padding-bottom:0;
|
24
|
+
}
|
25
|
+
}
|
26
|
+
&__brand{
|
27
|
+
@include max-lg{
|
28
|
+
order:1;
|
29
|
+
}
|
30
|
+
}
|
31
|
+
&__logo{
|
32
|
+
display:block;
|
33
|
+
height:44px;
|
34
|
+
@include min-sm{
|
35
|
+
height:54px;
|
36
|
+
}
|
37
|
+
&--yellow{
|
38
|
+
display:none;
|
39
|
+
height:44px;
|
40
|
+
@include min-sm{
|
41
|
+
height:54px;
|
42
|
+
}
|
43
|
+
}
|
44
|
+
&--dark{
|
45
|
+
display:none;
|
46
|
+
height:44px;
|
47
|
+
@include min-sm{
|
48
|
+
height:54px;
|
49
|
+
}
|
50
|
+
}
|
51
|
+
}
|
52
|
+
&__toggler{
|
53
|
+
position:relative;
|
54
|
+
display:inline-block;
|
55
|
+
height:24px;
|
56
|
+
margin-left:32px;
|
57
|
+
padding:0px;
|
58
|
+
background:transparent;
|
59
|
+
border:0px;
|
60
|
+
border-radius:0px;
|
61
|
+
outline: 0;
|
62
|
+
@include max-lg{
|
63
|
+
order:3;
|
64
|
+
}
|
65
|
+
@include min-lg{
|
66
|
+
display:none;
|
67
|
+
}
|
68
|
+
span{
|
69
|
+
position: relative;
|
70
|
+
left: 0;
|
71
|
+
display: block;
|
72
|
+
width: 24px;
|
73
|
+
height: 3px;
|
74
|
+
margin-top: 4px;
|
75
|
+
margin-bottom: 4px;
|
76
|
+
background-color: $yellow;
|
77
|
+
border-radius:0px;
|
78
|
+
transform: rotate(0deg);
|
79
|
+
opacity: 1;
|
80
|
+
}
|
81
|
+
span:nth-child(1),
|
82
|
+
span:nth-child(3) {
|
83
|
+
transition: transform .5s ease-in-out;
|
84
|
+
}
|
85
|
+
&--open span:nth-child(1) {
|
86
|
+
position: absolute;
|
87
|
+
top: 6px;
|
88
|
+
left: 0;
|
89
|
+
background-color: $white;
|
90
|
+
transform: rotate(135deg);
|
91
|
+
opacity: 1;
|
92
|
+
}
|
93
|
+
&--open span:nth-child(2) {
|
94
|
+
height: 2px;
|
95
|
+
background-color: transparent;
|
96
|
+
visibility: hidden;
|
97
|
+
}
|
98
|
+
&--open span:nth-child(3) {
|
99
|
+
position: absolute;
|
100
|
+
top: 6px;
|
101
|
+
left: 0;
|
102
|
+
background-color: $white;
|
103
|
+
transform: rotate(-135deg);
|
104
|
+
opacity: 1;
|
105
|
+
}
|
106
|
+
}
|
107
|
+
&__nav{
|
108
|
+
display:none;
|
109
|
+
flex-direction:column;
|
110
|
+
align-items:center;
|
111
|
+
justify-content:center;
|
112
|
+
width:100%;
|
113
|
+
min-height:calc(100vh - 92px);
|
114
|
+
padding:0;
|
115
|
+
list-style-type:none;
|
116
|
+
@include max-lg{
|
117
|
+
order:4;
|
118
|
+
}
|
119
|
+
@include min-lg{
|
120
|
+
display:flex;
|
121
|
+
flex-direction:row;
|
122
|
+
justify-content:flex-end;
|
123
|
+
min-height:0;
|
124
|
+
margin:0 0 0 auto;
|
125
|
+
}
|
126
|
+
&-item{
|
127
|
+
position:relative;
|
128
|
+
margin:18px 0;
|
129
|
+
line-height:135%;
|
130
|
+
@include min-lg{
|
131
|
+
margin:0 24px;
|
132
|
+
}
|
133
|
+
@include min-xxl{
|
134
|
+
margin:0 36px;
|
135
|
+
}
|
136
|
+
&:last-of-type{
|
137
|
+
@include min-lg{
|
138
|
+
margin-right:0;
|
139
|
+
}
|
140
|
+
}
|
141
|
+
}
|
142
|
+
&-link{
|
143
|
+
color:$white;
|
144
|
+
font-weight:600;
|
145
|
+
font-size:1.25em;
|
146
|
+
font-family:$mainFont;
|
147
|
+
text-decoration:none;
|
148
|
+
@include min-lg{
|
149
|
+
color:$black;
|
150
|
+
font-size:1em;
|
151
|
+
}
|
152
|
+
&--dropdown::after{
|
153
|
+
display:inline-block;
|
154
|
+
color:rgba($black,.24);
|
155
|
+
font-size:24px;
|
156
|
+
vertical-align:middle;
|
157
|
+
transform:rotate(0deg);
|
158
|
+
content:"arrow_drop_down";
|
159
|
+
@include transition(.25s ease-in-out);
|
160
|
+
@include material-icons;
|
161
|
+
@include min-lg{
|
162
|
+
color:$yellow;
|
163
|
+
}
|
164
|
+
}
|
165
|
+
&--dropdown-open::after{
|
166
|
+
transform:rotate(-180deg);
|
167
|
+
}
|
168
|
+
}
|
169
|
+
&-item--active &-link{
|
170
|
+
color:$black;
|
171
|
+
@include min-lg{
|
172
|
+
color:$yellow;
|
173
|
+
}
|
174
|
+
}
|
175
|
+
&-dropdown{
|
176
|
+
display:none;
|
177
|
+
padding:12px 0 0 0;
|
178
|
+
list-style-type:none;
|
179
|
+
@include min-lg{
|
180
|
+
position:absolute;
|
181
|
+
top:48px;
|
182
|
+
left:-24px;
|
183
|
+
min-width:220px;
|
184
|
+
padding:12px 24px 16px 24px;
|
185
|
+
background:$yellow;
|
186
|
+
}
|
187
|
+
&-item{
|
188
|
+
margin:12px 0;
|
189
|
+
line-height:135%;
|
190
|
+
text-align:center;
|
191
|
+
@include min-lg{
|
192
|
+
margin:10px 0;
|
193
|
+
text-align:left;
|
194
|
+
}
|
195
|
+
}
|
196
|
+
&-link{
|
197
|
+
color:$black;
|
198
|
+
font-weight:600;
|
199
|
+
font-size:1.25em;
|
200
|
+
font-family:$mainFont;
|
201
|
+
text-decoration:none;
|
202
|
+
@include min-lg{
|
203
|
+
color:$white;
|
204
|
+
font-size:1em;
|
205
|
+
}
|
206
|
+
}
|
207
|
+
&::before{
|
208
|
+
position:absolute;
|
209
|
+
top:-5px;
|
210
|
+
left:48px;
|
211
|
+
display:none;
|
212
|
+
border-color: transparent transparent $yellow transparent;
|
213
|
+
border-style: solid;
|
214
|
+
border-width: 0 5px 5px 5px;
|
215
|
+
content:"";
|
216
|
+
@include min-lg{
|
217
|
+
display:inline-block;
|
218
|
+
}
|
219
|
+
}
|
220
|
+
}
|
221
|
+
&-btn{
|
222
|
+
display:inline-block;
|
223
|
+
padding:18px 32px 18px 36px;
|
224
|
+
color:$white;
|
225
|
+
font-weight:600;
|
226
|
+
font-size:1.25em;
|
227
|
+
font-family:$mainFont;
|
228
|
+
text-decoration:none;
|
229
|
+
background:$black;
|
230
|
+
border:1px solid $black;
|
231
|
+
@include min-lg{
|
232
|
+
padding:14px 24px 14px 30px;
|
233
|
+
font-size:1em;
|
234
|
+
background:$yellow;
|
235
|
+
border:1px solid $yellow;
|
236
|
+
}
|
237
|
+
@include transition(.35s ease-in-out);
|
238
|
+
&::after{
|
239
|
+
display:inline-block;
|
240
|
+
margin:0 0 0 2px;
|
241
|
+
vertical-align:-4px;
|
242
|
+
content:"arrow_right";
|
243
|
+
@include material-icons;
|
244
|
+
}
|
245
|
+
&:hover, &:focus{
|
246
|
+
color:$white;
|
247
|
+
background-color:$blue;
|
248
|
+
border-color:$blue;
|
249
|
+
}
|
250
|
+
}
|
251
|
+
}
|
252
|
+
|
253
|
+
/** States **/
|
254
|
+
&--open{
|
255
|
+
background:$yellow;
|
256
|
+
}
|
257
|
+
&--open &__logo{
|
258
|
+
display:none;
|
259
|
+
}
|
260
|
+
&--open &__logo--yellow{
|
261
|
+
display:block;
|
262
|
+
}
|
263
|
+
&--scroll:not(.navbar--open){
|
264
|
+
background:$white;
|
265
|
+
box-shadow:0px 3px 9px rgba($black,.12);
|
266
|
+
}
|
267
|
+
&--scroll &__container{
|
268
|
+
@include min-lg{
|
269
|
+
min-height:96px;
|
270
|
+
}
|
271
|
+
}
|
272
|
+
|
273
|
+
/** Dark-light mode switch **/
|
274
|
+
&__switch{
|
275
|
+
position:relative;
|
276
|
+
min-width:36px;
|
277
|
+
height:12px;
|
278
|
+
margin-left:auto;
|
279
|
+
padding:0;
|
280
|
+
border:0;
|
281
|
+
border-radius:30px;
|
282
|
+
outline:none;
|
283
|
+
cursor:pointer;
|
284
|
+
@include transition(background-color .25s ease-in-out);
|
285
|
+
@include max-lg{
|
286
|
+
order:2;
|
287
|
+
}
|
288
|
+
@include min-lg{
|
289
|
+
margin-left:54px;
|
290
|
+
}
|
291
|
+
&::before{
|
292
|
+
position:absolute;
|
293
|
+
top:-9px;
|
294
|
+
left:0;
|
295
|
+
padding:6px;
|
296
|
+
font-size:18px;
|
297
|
+
border-radius:50%;
|
298
|
+
box-shadow:0px 1px 2px rgba($black,.24);
|
299
|
+
@include material-icons;
|
300
|
+
@include transition(transform .25s ease-in-out);
|
301
|
+
}
|
302
|
+
&--light{
|
303
|
+
background-color:rgba($black,.06);
|
304
|
+
}
|
305
|
+
&--light::before{
|
306
|
+
color:$yellow;
|
307
|
+
background-color:$white;
|
308
|
+
transform:translateX(-15px);
|
309
|
+
content:"light_mode";
|
310
|
+
}
|
311
|
+
&--dark{
|
312
|
+
background-color:rgba($white,.18);
|
313
|
+
}
|
314
|
+
&--dark::before{
|
315
|
+
color:$white;
|
316
|
+
background-color:$darkGrey;
|
317
|
+
transform:translateX(21px);
|
318
|
+
content:"dark_mode";
|
319
|
+
}
|
320
|
+
}
|
321
|
+
}
|
322
|
+
|
323
|
+
/** Dark mode styles **/
|
324
|
+
body.dark-mode .navbar{
|
325
|
+
&__logo{
|
326
|
+
display:none;
|
327
|
+
}
|
328
|
+
&__logo--dark{
|
329
|
+
display:block;
|
330
|
+
}
|
331
|
+
&__nav{
|
332
|
+
&-link{
|
333
|
+
@include min-lg{
|
334
|
+
color:$white;
|
335
|
+
}
|
336
|
+
}
|
337
|
+
}
|
338
|
+
&--scroll:not(.navbar--open){
|
339
|
+
background:$darkBg;
|
340
|
+
box-shadow:0px 3px 9px rgba($black,.12);
|
341
|
+
}
|
342
|
+
&--open .navbar__logo--dark{
|
343
|
+
display:none;
|
344
|
+
}
|
345
|
+
}
|