databook-theme 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/LICENSE.txt +21 -0
- data/README.MD +1 -0
- data/_includes/blog/blog.liquid +50 -0
- data/_includes/blog/features.liquid +36 -0
- data/_includes/blog/full.liquid +3 -0
- data/_includes/blog/list.liquid +41 -0
- data/_includes/blog/post.liquid +6 -0
- data/_includes/components/analytics.google.liquid +11 -0
- data/_includes/components/analytics.liquid +11 -0
- data/_includes/components/comments.disqus.liquid +17 -0
- data/_includes/components/comments.gitalk.liquid +22 -0
- data/_includes/components/comments.liquid +13 -0
- data/_includes/components/navmenu.items.liquid +51 -0
- data/_includes/components/navmenu.liquid +4 -0
- data/_includes/components/pagination.liquid +83 -0
- data/_includes/components/prevnext.liquid +1 -0
- data/_includes/components/search.baidu.liquid +7 -0
- data/_includes/components/search.bing.liquid +6 -0
- data/_includes/components/search.google.liquid +6 -0
- data/_includes/components/search.liquid +21 -0
- data/_includes/components/social_button.liquid +9 -0
- data/_includes/components/social_link.liquid +14 -0
- data/_includes/components/title.liquid +41 -0
- data/_includes/components/toc.liquid +28 -0
- data/_includes/custom/analytics.liquid +3 -0
- data/_includes/custom/blog.liquid +3 -0
- data/_includes/custom/body.liquid +3 -0
- data/_includes/custom/comments.liquid +3 -0
- data/_includes/custom/footer.liquid +3 -0
- data/_includes/custom/head.liquid +3 -0
- data/_includes/custom/katex.liquid +15 -0
- data/_includes/custom/mathjax.liquid +19 -0
- data/_includes/custom/search.liquid +3 -0
- data/_includes/extensions/toc.liquid +182 -0
- data/_includes/functions/get_config.liquid +11 -0
- data/_includes/functions/get_config_data.liquid +23 -0
- data/_includes/functions/get_icon.liquid +5 -0
- data/_includes/functions/get_page_meta.liquid +60 -0
- data/_includes/functions/get_page_thumbnail.liquid +23 -0
- data/_includes/functions/get_page_title.liquid +7 -0
- data/_includes/functions/get_recent_posts.liquid +17 -0
- data/_includes/functions/get_taxonomy_link.liquid +9 -0
- data/_includes/head/head.liquid +12 -0
- data/_includes/head/meta.liquid +41 -0
- data/_includes/head/opengraph.liquid +1 -0
- data/_includes/head/requirements.liquid +87 -0
- data/_includes/head/styles.liquid +10 -0
- data/_includes/js/codes.js +116 -0
- data/_includes/js/scrollspy.js +16 -0
- data/_includes/layout/article.liquid +71 -0
- data/_includes/layout/footer.liquid +53 -0
- data/_includes/layout/header.liquid +31 -0
- data/_includes/layout/hero.liquid +29 -0
- data/_includes/layout/page.liquid +33 -0
- data/_includes/layout/pagehead.liquid +17 -0
- data/_includes/layout/sidebar.liquid +178 -0
- data/_includes/localize +29 -0
- data/_includes/notice +6 -0
- data/_includes/version +1 -0
- data/_layouts/article.liquid +10 -0
- data/_layouts/default.liquid +131 -0
- data/_layouts/home.liquid +20 -0
- data/_layouts/page.liquid +9 -0
- data/_layouts/post.liquid +9 -0
- data/_layouts/system.liquid +35 -0
- data/_layouts/taxonomy.liquid +67 -0
- data/_sass/_custom.scss +0 -0
- data/_sass/_databook.scss +42 -0
- data/_sass/_debug.scss +7 -0
- data/_sass/_variables.scss +24 -0
- data/_sass/base/_misc.scss +0 -0
- data/_sass/base/_mixins.scss +32 -0
- data/_sass/base/_normalize.scss +45 -0
- data/_sass/base/_responsive.scss +28 -0
- data/_sass/components/_archive.scss +49 -0
- data/_sass/components/_blog.scss +249 -0
- data/_sass/components/_forms.scss +30 -0
- data/_sass/components/_hero.scss +70 -0
- data/_sass/components/_misc.scss +3 -0
- data/_sass/components/_notice.scss +27 -0
- data/_sass/components/_notification.scss +10 -0
- data/_sass/components/_post.scss +19 -0
- data/_sass/components/_sidebar.scss +303 -0
- data/_sass/components/_tabs.scss +67 -0
- data/_sass/components/_text.scss +27 -0
- data/_sass/components/_toc.scss +50 -0
- data/_sass/layout/_article.scss +211 -0
- data/_sass/layout/_body.scss +26 -0
- data/_sass/layout/_footer.scss +76 -0
- data/_sass/layout/_header.scss +124 -0
- data/_sass/layout/_main.scss +8 -0
- data/_sass/layout/_misc.scss +7 -0
- data/_sass/layout/_navbar.scss +323 -0
- data/_sass/layout/_sidebar.scss +115 -0
- data/_sass/layout/_wrapper.scss +7 -0
- data/_sass/theme/_scheme.scss +112 -0
- data/_sass/typography/_article.scss +49 -0
- data/_sass/typography/_doc.scss +104 -0
- data/_sass/typography/_highlight.scss +208 -0
- data/_sass/typography/_markdown.scss +18 -0
- data/_sass/typography/_table.scss +119 -0
- data/_sass/typography/_typography.scss +108 -0
- data/_sass/utilities/_thinscrollbar.scss +35 -0
- data/assets/databook/css/databook.scss +6 -0
- data/assets/databook/img/avatar.png +0 -0
- data/assets/databook/img/logo.png +0 -0
- data/assets/databook/js/databook.js +8 -0
- data/assets/databook/js/search.js +47 -0
- data/assets/databook/version.json +9 -0
- data/assets/favicon.ico +0 -0
- data/assets/search.json +30 -0
- metadata +224 -0
@@ -0,0 +1,76 @@
|
|
1
|
+
:root {
|
2
|
+
--db-footer-vertical-padding: .5rem;
|
3
|
+
|
4
|
+
@media #{$medium-screen} {
|
5
|
+
--db-footer-vertical-padding: .75rem;
|
6
|
+
}
|
7
|
+
|
8
|
+
@media #{$large-screen} {
|
9
|
+
--db-footer-vertical-padding: 1rem;
|
10
|
+
}
|
11
|
+
|
12
|
+
}
|
13
|
+
|
14
|
+
|
15
|
+
.l-footer {
|
16
|
+
--db-footer-horizontal-padding: calc(var(--db-header-horizontal-padding) * 2);
|
17
|
+
|
18
|
+
@media #{$medium-screen} {
|
19
|
+
--db-footer-horizontal-padding: var(--db-header-horizontal-padding);
|
20
|
+
}
|
21
|
+
@at-root .l-wrapper.has-sidebar #{&} {
|
22
|
+
--db-footer-horizontal-padding: calc(var(--db-header-horizontal-padding) * 2);
|
23
|
+
}
|
24
|
+
|
25
|
+
border-top: 1px solid var(--db-border-color);
|
26
|
+
display: flex;
|
27
|
+
font-size: small;
|
28
|
+
flex-direction: row;
|
29
|
+
color: var(--db-text-color-inactive);
|
30
|
+
flex-wrap: wrap;
|
31
|
+
line-height: 2em;
|
32
|
+
padding: var(--db-footer-vertical-padding) var(--db-footer-horizontal-padding);
|
33
|
+
|
34
|
+
&__left {
|
35
|
+
text-align: left;
|
36
|
+
}
|
37
|
+
|
38
|
+
&__middle {
|
39
|
+
flex: 1;
|
40
|
+
text-align: center;
|
41
|
+
}
|
42
|
+
|
43
|
+
&__right {
|
44
|
+
text-align: right;
|
45
|
+
}
|
46
|
+
|
47
|
+
&__custom {
|
48
|
+
width: 100%;
|
49
|
+
margin-bottom: 1rem;
|
50
|
+
|
51
|
+
&:empty {
|
52
|
+
display: none;
|
53
|
+
}
|
54
|
+
}
|
55
|
+
|
56
|
+
&__text {
|
57
|
+
width: 100%;
|
58
|
+
}
|
59
|
+
|
60
|
+
|
61
|
+
a {
|
62
|
+
@include text-link;
|
63
|
+
}
|
64
|
+
}
|
65
|
+
|
66
|
+
.c-footer-list {
|
67
|
+
display: flex;
|
68
|
+
|
69
|
+
&__item {
|
70
|
+
&:not(:first-child)::before {
|
71
|
+
content: "•";
|
72
|
+
margin: 0 .25rem;
|
73
|
+
color: var(--db-text-color-disabled);
|
74
|
+
}
|
75
|
+
}
|
76
|
+
}
|
@@ -0,0 +1,124 @@
|
|
1
|
+
:root {
|
2
|
+
--db-header-vertical-padding: 0;
|
3
|
+
--db-header-horizontal-padding: calc((var(--db-header-height) - #{$header-object-size}) / 2);
|
4
|
+
|
5
|
+
@media #{$large-screen} {
|
6
|
+
--db-header-horizontal-padding: #{$page-spacing-large};
|
7
|
+
}
|
8
|
+
|
9
|
+
@media #{$wide-screen} {
|
10
|
+
--db-header-horizontal-padding: calc( (100% - #{$page-max-width}) / 2 );
|
11
|
+
|
12
|
+
.l-wrapper.is-wide {
|
13
|
+
--db-header-horizontal-padding: #{$page-spacing-wide};
|
14
|
+
}
|
15
|
+
}
|
16
|
+
|
17
|
+
}
|
18
|
+
|
19
|
+
.l-wrapper.has-sidebar {
|
20
|
+
--db-header-horizontal-padding: calc((var(--db-header-height) - #{$header-object-size}) / 2);
|
21
|
+
}
|
22
|
+
|
23
|
+
|
24
|
+
.l-header {
|
25
|
+
background-color: var(--db-background-color);
|
26
|
+
border-bottom: 1px solid var(--db-border-color);
|
27
|
+
display: flex;
|
28
|
+
flex-direction: row;
|
29
|
+
height: var(--db-header-height);
|
30
|
+
z-index: 999;
|
31
|
+
width: 100%;
|
32
|
+
padding: 0 var(--db-header-horizontal-padding);
|
33
|
+
color: var(--db-text-color-inactive);
|
34
|
+
|
35
|
+
@media #{$large-screen} {
|
36
|
+
box-shadow: none;
|
37
|
+
}
|
38
|
+
|
39
|
+
&__logo {
|
40
|
+
order: 3;
|
41
|
+
align-items: center;
|
42
|
+
justify-content: center;
|
43
|
+
display: flex;
|
44
|
+
|
45
|
+
@media #{$large-screen} {
|
46
|
+
order: 1;
|
47
|
+
@at-root .l-wrapper.has-sidebar #{&} {
|
48
|
+
display: none;
|
49
|
+
@media print {
|
50
|
+
display: initial;
|
51
|
+
}
|
52
|
+
}
|
53
|
+
}
|
54
|
+
}
|
55
|
+
|
56
|
+
&__left {
|
57
|
+
order: 2;
|
58
|
+
display: flex;
|
59
|
+
flex-direction: row;
|
60
|
+
align-items: center;
|
61
|
+
flex: 1;
|
62
|
+
|
63
|
+
@media print {
|
64
|
+
display: none;
|
65
|
+
}
|
66
|
+
}
|
67
|
+
|
68
|
+
&__right {
|
69
|
+
order: 4;
|
70
|
+
display: flex;
|
71
|
+
align-items: center;
|
72
|
+
margin-left: auto;
|
73
|
+
flex: 1;
|
74
|
+
justify-content: flex-end;
|
75
|
+
|
76
|
+
@media print {
|
77
|
+
display: none;
|
78
|
+
}
|
79
|
+
}
|
80
|
+
|
81
|
+
|
82
|
+
&--sticky {
|
83
|
+
position: sticky;
|
84
|
+
top: 0;
|
85
|
+
}
|
86
|
+
|
87
|
+
|
88
|
+
}
|
89
|
+
|
90
|
+
|
91
|
+
.l-wrapper.has-background .l-header {
|
92
|
+
background-color: rgba( var(--db-overlay-color-rgb), 5%);
|
93
|
+
border-bottom-color: transparent;
|
94
|
+
}
|
95
|
+
|
96
|
+
|
97
|
+
.c-logo {
|
98
|
+
display: flex;
|
99
|
+
align-items: center;
|
100
|
+
justify-content: center;
|
101
|
+
font-size: 1em;
|
102
|
+
color: var(--db-text-color-important);
|
103
|
+
height: 1.5rem;
|
104
|
+
|
105
|
+
&__image {
|
106
|
+
height: 100%;
|
107
|
+
margin-right: 1rem;
|
108
|
+
}
|
109
|
+
|
110
|
+
&__text {
|
111
|
+
font-weight: bold;
|
112
|
+
letter-spacing: 2px;
|
113
|
+
white-space: nowrap;
|
114
|
+
}
|
115
|
+
|
116
|
+
@media #{$medium-screen} {
|
117
|
+
font-size: 1.4em;
|
118
|
+
height: 2rem;
|
119
|
+
}
|
120
|
+
|
121
|
+
&:hover {
|
122
|
+
color: initial;
|
123
|
+
}
|
124
|
+
}
|
@@ -0,0 +1,323 @@
|
|
1
|
+
// very ugly
|
2
|
+
// todo: rewrite
|
3
|
+
|
4
|
+
$triangle-size: 6px;
|
5
|
+
$secondarymenu-overlay-size: 1px;
|
6
|
+
$minimum-menu-width: 10rem;
|
7
|
+
|
8
|
+
@mixin make_dropdown($multilevel: false) {
|
9
|
+
display: none;
|
10
|
+
flex-direction: column;
|
11
|
+
background-color: var(--db-background-color);
|
12
|
+
background-image: var(--db-surface-overlay);
|
13
|
+
outline: 1px solid var(--db-border-color);
|
14
|
+
box-shadow:
|
15
|
+
-.1rem -.1rem .4rem var(--db-surface-shadow-color),
|
16
|
+
.2rem .2rem .4rem var(--db-surface-shadow-color);
|
17
|
+
border-radius: 1px 1px $border-radius-object $border-radius-object;
|
18
|
+
min-width: $minimum-menu-width;
|
19
|
+
position: absolute;
|
20
|
+
top: calc( var(--db-header-height) - ( ( var(--db-header-height) - 100% ) / 2 ) - 1px );
|
21
|
+
padding: .25rem 0;
|
22
|
+
font-weight: normal;
|
23
|
+
white-space: nowrap;
|
24
|
+
|
25
|
+
@if $multilevel {
|
26
|
+
left: 0;
|
27
|
+
right: unset;
|
28
|
+
} @else {
|
29
|
+
left: -1rem;
|
30
|
+
right: unset;
|
31
|
+
}
|
32
|
+
|
33
|
+
.c-navmenu__item {
|
34
|
+
line-height: 3rem;
|
35
|
+
font-weight: normal;
|
36
|
+
border-radius: 1px;
|
37
|
+
text-align: left;
|
38
|
+
color: var(--db-text-color-active);
|
39
|
+
|
40
|
+
.c-navmenu__text {
|
41
|
+
display: block;
|
42
|
+
padding: 0 1rem;
|
43
|
+
}
|
44
|
+
|
45
|
+
@if $multilevel {
|
46
|
+
&:hover > .c-navmenu__text {
|
47
|
+
background-color: var(--db-control-color);
|
48
|
+
color: var(--db-control-text-color);
|
49
|
+
}
|
50
|
+
} @else {
|
51
|
+
.c-navmenu__text:hover {
|
52
|
+
background-color: var(--db-control-color);
|
53
|
+
color: var(--db-control-text-color);
|
54
|
+
}
|
55
|
+
}
|
56
|
+
}
|
57
|
+
|
58
|
+
}
|
59
|
+
|
60
|
+
@mixin make_dropdown_level2() {
|
61
|
+
//border-top-width: 1px;
|
62
|
+
border-radius: $border-radius-object;
|
63
|
+
top: -.25rem;
|
64
|
+
position: absolute;
|
65
|
+
|
66
|
+
left: calc(100% - #{$secondarymenu-overlay-size});
|
67
|
+
}
|
68
|
+
|
69
|
+
@mixin make_horizon() {
|
70
|
+
display: flex;
|
71
|
+
flex-direction: row;
|
72
|
+
border: none;
|
73
|
+
outline: none;
|
74
|
+
background: none;
|
75
|
+
background-color: transparent;
|
76
|
+
font-size: inherit;
|
77
|
+
box-shadow: none;
|
78
|
+
position: initial;
|
79
|
+
padding: 0;
|
80
|
+
border-radius: 0;
|
81
|
+
text-align: center;
|
82
|
+
|
83
|
+
> .c-navmenu__item {
|
84
|
+
text-align: center;
|
85
|
+
//min-width: $minimum-menu-width * .618;
|
86
|
+
font-weight: bold;
|
87
|
+
line-height: var(--db-header-height);
|
88
|
+
color: var(--db-text-color-inactive);
|
89
|
+
position: relative;
|
90
|
+
|
91
|
+
&:hover {
|
92
|
+
> .c-navmenu__text {
|
93
|
+
background-color: unset;
|
94
|
+
color: var(--db-text-color-important);
|
95
|
+
|
96
|
+
&:not(:only-child) {
|
97
|
+
@include make_triangle();
|
98
|
+
}
|
99
|
+
}
|
100
|
+
|
101
|
+
> .c-navmenu__menu {
|
102
|
+
display: flex;
|
103
|
+
}
|
104
|
+
}
|
105
|
+
}
|
106
|
+
|
107
|
+
}
|
108
|
+
|
109
|
+
@mixin make_triangle() {
|
110
|
+
position: relative;
|
111
|
+
|
112
|
+
&::before {
|
113
|
+
content: '';
|
114
|
+
width: 0;
|
115
|
+
height: 0;
|
116
|
+
border-style: solid;
|
117
|
+
border-width: 0 $triangle-size $triangle-size $triangle-size;
|
118
|
+
border-color: transparent transparent var(--db-background-color) transparent;
|
119
|
+
position: absolute;
|
120
|
+
bottom: calc( ( ( var(--db-header-height) - 100% ) / -2 ) + 1px);
|
121
|
+
z-index: 999;
|
122
|
+
left: calc( 50% - #{$triangle-size} );
|
123
|
+
}
|
124
|
+
|
125
|
+
&::after {
|
126
|
+
content: '';
|
127
|
+
width: 0;
|
128
|
+
height: 0;
|
129
|
+
border-style: solid;
|
130
|
+
border-width: 0 ($triangle-size + 1) ($triangle-size + 1) ($triangle-size + 1);
|
131
|
+
border-color: transparent transparent var(--db-border-color) transparent;
|
132
|
+
position: absolute;
|
133
|
+
bottom: calc( ( ( var(--db-header-height) - 100% ) / -2 ) + 1px);
|
134
|
+
z-index: 998;
|
135
|
+
left: calc( 50% - #{$triangle-size} - 1px );
|
136
|
+
}
|
137
|
+
|
138
|
+
}
|
139
|
+
|
140
|
+
@mixin make_rightangle() {
|
141
|
+
position: relative;
|
142
|
+
padding-right: 2rem;
|
143
|
+
|
144
|
+
&::after {
|
145
|
+
@include fontawesome-text;
|
146
|
+
content: '\f105';
|
147
|
+
position: absolute;
|
148
|
+
right: 0;
|
149
|
+
width: 2rem;
|
150
|
+
text-align: center;
|
151
|
+
}
|
152
|
+
|
153
|
+
}
|
154
|
+
|
155
|
+
.c-navmenu {
|
156
|
+
list-style: none;
|
157
|
+
padding: 0;
|
158
|
+
position: relative;
|
159
|
+
user-select: none;
|
160
|
+
line-height: 32px;
|
161
|
+
|
162
|
+
> .c-navmenu__menu {
|
163
|
+
@include make_dropdown(false);
|
164
|
+
> .c-navmenu__item {
|
165
|
+
.c-navmenu__menu {
|
166
|
+
.c-navmenu__item {
|
167
|
+
> a {
|
168
|
+
padding: 0 2rem;
|
169
|
+
}
|
170
|
+
.c-navmenu__menu {
|
171
|
+
.c-navmenu__item {
|
172
|
+
> a {
|
173
|
+
padding: 0 3rem;
|
174
|
+
}
|
175
|
+
}
|
176
|
+
}
|
177
|
+
}
|
178
|
+
}
|
179
|
+
}
|
180
|
+
}
|
181
|
+
|
182
|
+
&:focus-within {
|
183
|
+
> .c-navmenu__menu {
|
184
|
+
display: flex;
|
185
|
+
}
|
186
|
+
|
187
|
+
> .c-navmenu__button {
|
188
|
+
@include make_triangle();
|
189
|
+
border-color: var(--db-border-color);
|
190
|
+
}
|
191
|
+
}
|
192
|
+
|
193
|
+
@at-root div#{&}__text {
|
194
|
+
color: var(--db-text-color-inactive);
|
195
|
+
}
|
196
|
+
|
197
|
+
&--responsive {
|
198
|
+
left: 0;
|
199
|
+
|
200
|
+
@media #{$large-screen} {
|
201
|
+
|
202
|
+
.c-navmenu__button {
|
203
|
+
display: none;
|
204
|
+
}
|
205
|
+
|
206
|
+
> .c-navmenu__menu {
|
207
|
+
@include make_horizon();
|
208
|
+
left: 0;
|
209
|
+
|
210
|
+
> .c-navmenu__item {
|
211
|
+
|
212
|
+
.c-navmenu__item {
|
213
|
+
position: relative;
|
214
|
+
|
215
|
+
&:hover{
|
216
|
+
> .c-navmenu__menu {
|
217
|
+
display: flex;
|
218
|
+
}
|
219
|
+
}
|
220
|
+
}
|
221
|
+
|
222
|
+
.c-navmenu__menu {
|
223
|
+
@include make_dropdown(true);
|
224
|
+
|
225
|
+
.c-navmenu__text:not(:only-child) {
|
226
|
+
@include make_rightangle();
|
227
|
+
}
|
228
|
+
|
229
|
+
.c-navmenu__menu {
|
230
|
+
@include make_dropdown_level2();
|
231
|
+
a {
|
232
|
+
padding: 0 1rem !important;
|
233
|
+
}
|
234
|
+
}
|
235
|
+
|
236
|
+
}
|
237
|
+
}
|
238
|
+
}
|
239
|
+
}
|
240
|
+
}
|
241
|
+
|
242
|
+
&__divider {
|
243
|
+
border-top: 1px solid var(--db-border-color);
|
244
|
+
margin: .25rem .5rem;
|
245
|
+
}
|
246
|
+
|
247
|
+
&--right &__menu {
|
248
|
+
left: unset !important;
|
249
|
+
right: -1rem;
|
250
|
+
}
|
251
|
+
|
252
|
+
&--right.c-navmenu--responsive &__menu {
|
253
|
+
right: 0 !important;
|
254
|
+
}
|
255
|
+
|
256
|
+
&--right &__menu &__menu {
|
257
|
+
@media #{$large-screen} {
|
258
|
+
.c-navmenu__menu {
|
259
|
+
right: calc(100% - #{$secondarymenu-overlay-size}) !important;
|
260
|
+
}
|
261
|
+
}
|
262
|
+
}
|
263
|
+
|
264
|
+
}
|
265
|
+
|
266
|
+
.c-navbutton {
|
267
|
+
border-radius: $border-radius-object;
|
268
|
+
border: 1px solid transparent;
|
269
|
+
text-align: center;
|
270
|
+
align-items: center;
|
271
|
+
padding: 0;
|
272
|
+
width: $header-object-size;
|
273
|
+
height: $header-object-size;
|
274
|
+
line-height: $header-object-size;
|
275
|
+
background-color: transparent;
|
276
|
+
color: var(--db-text-color-inactive);
|
277
|
+
outline: 0;
|
278
|
+
margin-right: .25rem;
|
279
|
+
|
280
|
+
&:hover {
|
281
|
+
border-color: var(--db-border-color);
|
282
|
+
color: var(--db-text-color-active);
|
283
|
+
background-color: var(--db-background-hover-color);
|
284
|
+
}
|
285
|
+
&:active {
|
286
|
+
background-image: var(--db-surface-overlay);
|
287
|
+
}
|
288
|
+
}
|
289
|
+
|
290
|
+
|
291
|
+
.c-search {
|
292
|
+
display: flex;
|
293
|
+
|
294
|
+
&__textbox {
|
295
|
+
width: 0px;
|
296
|
+
outline: none;
|
297
|
+
border-width: 0 0 1px 0;
|
298
|
+
}
|
299
|
+
|
300
|
+
&__expand {
|
301
|
+
overflow: hidden;
|
302
|
+
}
|
303
|
+
|
304
|
+
&__go {
|
305
|
+
display: none;
|
306
|
+
}
|
307
|
+
|
308
|
+
&:focus-within {
|
309
|
+
> .c-search__textbox {
|
310
|
+
width: 8rem;
|
311
|
+
}
|
312
|
+
> .c-search__expand {
|
313
|
+
display: none;
|
314
|
+
}
|
315
|
+
> .c-search__go {
|
316
|
+
display: initial;
|
317
|
+
}
|
318
|
+
}
|
319
|
+
|
320
|
+
label {
|
321
|
+
display: block;
|
322
|
+
}
|
323
|
+
}
|
@@ -0,0 +1,115 @@
|
|
1
|
+
.l-sidebar {
|
2
|
+
--db-sidebar-width: #{$side-width};
|
3
|
+
|
4
|
+
background-color: var(--db-surface-color);
|
5
|
+
background-image: var(--db-surface-overlay);
|
6
|
+
border-right: 1px solid var(--db-border-color);
|
7
|
+
|
8
|
+
color: var(--db-text-color-active);
|
9
|
+
display: none;
|
10
|
+
flex-direction: column;
|
11
|
+
overflow: auto;
|
12
|
+
position: fixed;
|
13
|
+
width: 100%;
|
14
|
+
z-index: 999;
|
15
|
+
|
16
|
+
height: 100vh;
|
17
|
+
padding-top: var(--db-header-height);
|
18
|
+
|
19
|
+
@media #{$medium-screen} {
|
20
|
+
width: var(--db-sidebar-width);
|
21
|
+
overflow: auto;
|
22
|
+
}
|
23
|
+
|
24
|
+
@media #{$large-screen} {
|
25
|
+
display: flex;
|
26
|
+
overflow: initial;
|
27
|
+
position: static;
|
28
|
+
margin-top: 0;
|
29
|
+
padding-top: 0;
|
30
|
+
height: auto;
|
31
|
+
|
32
|
+
&--sticky {
|
33
|
+
position: sticky;
|
34
|
+
top: 0;
|
35
|
+
align-self: flex-start;
|
36
|
+
height: 100vh;
|
37
|
+
}
|
38
|
+
}
|
39
|
+
|
40
|
+
&.is-toggled {
|
41
|
+
display: flex;
|
42
|
+
position: fixed;
|
43
|
+
box-shadow: 0 0 1rem 0 var(--db-surface-shadow-color);
|
44
|
+
|
45
|
+
@media #{$large-screen} {
|
46
|
+
display: none;
|
47
|
+
}
|
48
|
+
}
|
49
|
+
|
50
|
+
&__header {
|
51
|
+
@include flex-center;
|
52
|
+
border-bottom: 1px solid var(--db-border-color);
|
53
|
+
height: var(--db-header-height);
|
54
|
+
display: none;
|
55
|
+
|
56
|
+
@media #{$large-screen} {
|
57
|
+
display: flex;
|
58
|
+
}
|
59
|
+
|
60
|
+
}
|
61
|
+
|
62
|
+
&__body {
|
63
|
+
flex: 1;
|
64
|
+
padding: 1rem;
|
65
|
+
display: flex;
|
66
|
+
flex-direction: column;
|
67
|
+
}
|
68
|
+
|
69
|
+
&__footer {
|
70
|
+
color: var(--db-text-color-inactive);
|
71
|
+
font-size: 80%;
|
72
|
+
padding: 1.5rem 1rem;
|
73
|
+
text-align: center;
|
74
|
+
}
|
75
|
+
}
|
76
|
+
|
77
|
+
.c-navbutton--sidebar {
|
78
|
+
@include fontawesome-icon;
|
79
|
+
|
80
|
+
&::before {
|
81
|
+
content: "\f105";
|
82
|
+
@media #{$large-screen} {
|
83
|
+
content: "\f104";
|
84
|
+
}
|
85
|
+
}
|
86
|
+
|
87
|
+
&.is-toggled::before {
|
88
|
+
content: "\f104";
|
89
|
+
@media #{$large-screen} {
|
90
|
+
content: "\f105";
|
91
|
+
}
|
92
|
+
}
|
93
|
+
|
94
|
+
}
|
95
|
+
|
96
|
+
#sidebar-toggler {
|
97
|
+
display: none;
|
98
|
+
|
99
|
+
&:checked + .l-sidebar {
|
100
|
+
display: flex;
|
101
|
+
position: fixed;
|
102
|
+
box-shadow: 0 0 1rem 0 var(--db-surface-shadow-color);
|
103
|
+
|
104
|
+
@media #{$large-screen} {
|
105
|
+
display: none;
|
106
|
+
}
|
107
|
+
}
|
108
|
+
|
109
|
+
&:checked ~ .l-main .c-navbutton--sidebar::before {
|
110
|
+
content: "\f104";
|
111
|
+
@media #{$large-screen} {
|
112
|
+
content: "\f105";
|
113
|
+
}
|
114
|
+
}
|
115
|
+
}
|