databook-theme 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/LICENSE.txt +21 -21
- data/README.MD +1 -1
- data/_includes/blog/blog.liquid +50 -50
- data/_includes/blog/features.liquid +36 -36
- data/_includes/blog/full.liquid +3 -3
- data/_includes/blog/list.liquid +41 -41
- data/_includes/blog/post.liquid +6 -6
- data/_includes/components/analytics.google.liquid +11 -11
- data/_includes/components/analytics.liquid +11 -11
- data/_includes/components/comments.disqus.liquid +17 -17
- data/_includes/components/comments.gitalk.liquid +22 -22
- data/_includes/components/comments.liquid +13 -13
- data/_includes/components/navmenu.items.liquid +51 -51
- data/_includes/components/navmenu.liquid +4 -4
- data/_includes/components/pagination.liquid +83 -83
- data/_includes/components/prevnext.liquid +1 -1
- data/_includes/components/search.baidu.liquid +7 -7
- data/_includes/components/search.bing.liquid +6 -6
- data/_includes/components/search.google.liquid +6 -6
- data/_includes/components/search.liquid +21 -21
- data/_includes/components/social_button.liquid +9 -9
- data/_includes/components/social_link.liquid +14 -14
- data/_includes/components/title.liquid +41 -41
- data/_includes/components/toc.liquid +28 -28
- data/_includes/custom/analytics.liquid +3 -3
- data/_includes/custom/blog.liquid +3 -3
- data/_includes/custom/body.liquid +3 -3
- data/_includes/custom/comments.liquid +3 -3
- data/_includes/custom/favicon.liquid +11 -0
- data/_includes/custom/footer.liquid +3 -3
- data/_includes/custom/head.liquid +3 -3
- data/_includes/custom/katex.liquid +15 -15
- data/_includes/custom/mathjax.liquid +19 -19
- data/_includes/custom/search.liquid +3 -3
- data/_includes/extensions/toc.liquid +182 -182
- data/_includes/functions/get_config.liquid +11 -11
- data/_includes/functions/get_config_data.liquid +23 -23
- data/_includes/functions/get_icon.liquid +5 -5
- data/_includes/functions/get_page_meta.liquid +74 -60
- data/_includes/functions/get_page_thumbnail.liquid +22 -23
- data/_includes/functions/get_page_title.liquid +7 -7
- data/_includes/functions/get_recent_posts.liquid +17 -17
- data/_includes/functions/get_taxonomy_link.liquid +9 -9
- data/_includes/head/head.liquid +11 -12
- data/_includes/head/meta.liquid +50 -41
- data/_includes/head/requirements.liquid +87 -87
- data/_includes/head/styles.liquid +10 -10
- data/_includes/js/codes.js +116 -116
- data/_includes/js/scrollspy.js +16 -16
- data/_includes/layout/article.liquid +74 -71
- data/_includes/layout/footer.liquid +53 -53
- data/_includes/layout/header.liquid +31 -31
- data/_includes/layout/hero.liquid +29 -29
- data/_includes/layout/page.liquid +33 -33
- data/_includes/layout/pagehead.liquid +17 -17
- data/_includes/layout/sidebar.liquid +178 -178
- data/_includes/localize +29 -29
- data/_includes/notice +6 -6
- data/_includes/version +1 -1
- data/_layouts/article.liquid +10 -10
- data/_layouts/default.liquid +132 -131
- data/_layouts/home.liquid +20 -20
- data/_layouts/page.liquid +9 -9
- data/_layouts/post.liquid +9 -9
- data/_layouts/system.liquid +35 -35
- data/_layouts/taxonomy.liquid +67 -67
- data/_sass/_databook.scss +42 -42
- data/_sass/_debug.scss +7 -7
- data/_sass/_variables.scss +24 -24
- data/_sass/base/_mixins.scss +32 -32
- data/_sass/base/_normalize.scss +45 -45
- data/_sass/base/_responsive.scss +28 -28
- data/_sass/components/_archive.scss +49 -49
- data/_sass/components/_blog.scss +249 -249
- data/_sass/components/_forms.scss +30 -30
- data/_sass/components/_hero.scss +70 -70
- data/_sass/components/_misc.scss +3 -3
- data/_sass/components/_notice.scss +27 -27
- data/_sass/components/_notification.scss +10 -10
- data/_sass/components/_post.scss +19 -19
- data/_sass/components/_sidebar.scss +303 -303
- data/_sass/components/_tabs.scss +67 -67
- data/_sass/components/_text.scss +27 -27
- data/_sass/components/_toc.scss +50 -50
- data/_sass/layout/_article.scss +211 -211
- data/_sass/layout/_body.scss +26 -26
- data/_sass/layout/_footer.scss +75 -75
- data/_sass/layout/_header.scss +124 -124
- data/_sass/layout/_main.scss +8 -8
- data/_sass/layout/_misc.scss +7 -7
- data/_sass/layout/_navbar.scss +323 -323
- data/_sass/layout/_sidebar.scss +115 -115
- data/_sass/layout/_wrapper.scss +7 -7
- data/_sass/theme/_scheme.scss +112 -112
- data/_sass/typography/_article.scss +49 -49
- data/_sass/typography/_doc.scss +104 -104
- data/_sass/typography/_highlight.scss +208 -208
- data/_sass/typography/_markdown.scss +18 -18
- data/_sass/typography/_table.scss +119 -119
- data/_sass/typography/_typography.scss +103 -108
- data/_sass/utilities/_thinscrollbar.scss +35 -35
- data/assets/databook/css/databook.scss +6 -6
- data/assets/databook/js/databook.js +8 -8
- data/assets/databook/js/search.js +47 -47
- data/assets/databook/version.json +9 -9
- data/assets/search.json +30 -30
- metadata +8 -8
- data/_includes/head/opengraph.liquid +0 -1
data/_sass/components/_blog.scss
CHANGED
@@ -1,249 +1,249 @@
|
|
1
|
-
.c-blog-list {
|
2
|
-
|
3
|
-
&__item {
|
4
|
-
padding-bottom: 2rem;
|
5
|
-
color: var(--db-text-color-active);
|
6
|
-
display: grid;
|
7
|
-
|
8
|
-
&:not(:first-child) {
|
9
|
-
padding-top: 2rem;
|
10
|
-
}
|
11
|
-
&:not(:last-child) {
|
12
|
-
border-bottom: 1px solid var(--db-border-color);
|
13
|
-
}
|
14
|
-
}
|
15
|
-
|
16
|
-
&__title {
|
17
|
-
margin: 1rem 0;
|
18
|
-
grid-column: 1 / span 2;
|
19
|
-
@media #{$medium-screen} {
|
20
|
-
grid-column: 1;
|
21
|
-
}
|
22
|
-
}
|
23
|
-
|
24
|
-
&__link {
|
25
|
-
font-size: 2rem;
|
26
|
-
text-decoration: none;
|
27
|
-
color: inherit !important;
|
28
|
-
vertical-align: middle;
|
29
|
-
font-weight: bold;
|
30
|
-
}
|
31
|
-
|
32
|
-
&__content {
|
33
|
-
margin-top: 0.6rem;
|
34
|
-
margin-bottom: 0.6rem;
|
35
|
-
color: var(--db-text-color-active);
|
36
|
-
line-height: 1.5rem;
|
37
|
-
grid-column: 1;
|
38
|
-
}
|
39
|
-
|
40
|
-
&__meta {
|
41
|
-
font-size: small;
|
42
|
-
color: var(--db-text-color-inactive);
|
43
|
-
grid-column: 1 / span 2;
|
44
|
-
@media #{$medium-screen} {
|
45
|
-
grid-column: 1;
|
46
|
-
}
|
47
|
-
}
|
48
|
-
|
49
|
-
&__metaitem {
|
50
|
-
display: inline-block;
|
51
|
-
|
52
|
-
&:not(:first-child) {
|
53
|
-
|
54
|
-
&::before{
|
55
|
-
content: '·';
|
56
|
-
margin: 0 4px;
|
57
|
-
|
58
|
-
}
|
59
|
-
}
|
60
|
-
}
|
61
|
-
|
62
|
-
&__badge {
|
63
|
-
--db-private-color: gray;
|
64
|
-
border: 1px solid var(--db-private-color);
|
65
|
-
color: var(--db-private-color);
|
66
|
-
border-radius: $border-radius-object;
|
67
|
-
padding: .25rem;
|
68
|
-
margin-right: .5rem;
|
69
|
-
font-size: .8rem;
|
70
|
-
vertical-align: middle;
|
71
|
-
user-select: none;
|
72
|
-
|
73
|
-
&--sticky{
|
74
|
-
--db-private-color: red;
|
75
|
-
}
|
76
|
-
&--featured{
|
77
|
-
--db-private-color: green;
|
78
|
-
}
|
79
|
-
}
|
80
|
-
|
81
|
-
&__thumbnail {
|
82
|
-
grid-column: 2;
|
83
|
-
grid-row: 3;
|
84
|
-
width: 8rem;
|
85
|
-
max-height: 12rem;
|
86
|
-
display: grid;
|
87
|
-
place-content: center;
|
88
|
-
|
89
|
-
@media #{$wide-screen} {
|
90
|
-
grid-row: 1 / span 4;
|
91
|
-
width: 12rem;
|
92
|
-
}
|
93
|
-
|
94
|
-
img {
|
95
|
-
max-width: 100%;
|
96
|
-
max-height: 100%;
|
97
|
-
}
|
98
|
-
}
|
99
|
-
}
|
100
|
-
|
101
|
-
|
102
|
-
.c-blog-grid {
|
103
|
-
--db-grid-columns: 1;
|
104
|
-
--db-grid-width: auto;
|
105
|
-
|
106
|
-
display: grid;
|
107
|
-
grid-template-columns: repeat(var(--db-grid-columns), 1fr);
|
108
|
-
gap: var(--db-control-spacing);
|
109
|
-
grid-auto-rows: 1fr;
|
110
|
-
justify-items: center;
|
111
|
-
|
112
|
-
&__item {
|
113
|
-
max-width: var(--db-grid-width);
|
114
|
-
border: 1px solid var(--db-border-color);
|
115
|
-
border-radius: $border-radius-control;
|
116
|
-
overflow: hidden;
|
117
|
-
width: 100%;
|
118
|
-
position: relative;
|
119
|
-
}
|
120
|
-
|
121
|
-
&__thumbnail {
|
122
|
-
border-bottom: 1px solid var(--db-border-color-inactive);
|
123
|
-
width: 100%;
|
124
|
-
|
125
|
-
height: 16rem;
|
126
|
-
@supports (aspect-ratio: initial) {
|
127
|
-
height: auto;
|
128
|
-
aspect-ratio: 2 / 1;
|
129
|
-
}
|
130
|
-
|
131
|
-
img {
|
132
|
-
object-fit: cover;
|
133
|
-
height: 100%;
|
134
|
-
width: 100%;
|
135
|
-
display: block;
|
136
|
-
}
|
137
|
-
}
|
138
|
-
|
139
|
-
&__body {
|
140
|
-
padding: 1.5rem 2rem;
|
141
|
-
display: flex;
|
142
|
-
flex-direction: column;
|
143
|
-
//margin-bottom: 2rem;
|
144
|
-
}
|
145
|
-
|
146
|
-
&__title {
|
147
|
-
font-size: 1.5rem;
|
148
|
-
line-height: 2rem;
|
149
|
-
vertical-align: middle;
|
150
|
-
font-weight: bold;
|
151
|
-
color: var(--db-text-color-important);
|
152
|
-
|
153
|
-
a {
|
154
|
-
color: inherit !important;
|
155
|
-
}
|
156
|
-
}
|
157
|
-
|
158
|
-
&__content {
|
159
|
-
color: var(--db-text-color-inactive);
|
160
|
-
margin: 1rem 0;
|
161
|
-
}
|
162
|
-
/*
|
163
|
-
&__footer {
|
164
|
-
padding: 0 2rem;
|
165
|
-
height: 2rem;
|
166
|
-
position: absolute;
|
167
|
-
bottom: 0;
|
168
|
-
width: 100%;
|
169
|
-
color: var(--db-text-color-inactive);
|
170
|
-
text-align: right;
|
171
|
-
font-size: small;
|
172
|
-
}
|
173
|
-
|
174
|
-
&__read {
|
175
|
-
margin-left: auto;
|
176
|
-
}
|
177
|
-
*/
|
178
|
-
|
179
|
-
> a {
|
180
|
-
display: block;
|
181
|
-
|
182
|
-
&:hover {
|
183
|
-
text-decoration: none !important;
|
184
|
-
box-shadow: 0 0 .25rem var(--db-surface-shadow-color);
|
185
|
-
background-image: var(--db-surface-overlay);
|
186
|
-
}
|
187
|
-
|
188
|
-
}
|
189
|
-
|
190
|
-
@media #{$medium-screen} {
|
191
|
-
--db-grid-columns: 3;
|
192
|
-
--db-grid-height: 12rem;
|
193
|
-
}
|
194
|
-
|
195
|
-
@media #{$large-screen} {
|
196
|
-
--db-grid-width: 24rem;
|
197
|
-
--db-grid-height: 16rem;
|
198
|
-
}
|
199
|
-
}
|
200
|
-
|
201
|
-
|
202
|
-
.c-pagination {
|
203
|
-
margin: 4rem auto;
|
204
|
-
display: flex;
|
205
|
-
justify-content: center;
|
206
|
-
position: relative;
|
207
|
-
color: var(--db-text-color-inactive);
|
208
|
-
|
209
|
-
&__item {
|
210
|
-
min-width: 2rem;
|
211
|
-
border: 1px solid var(--db-border-color);
|
212
|
-
margin: 0;
|
213
|
-
text-align: center;
|
214
|
-
overflow: hidden;
|
215
|
-
line-height: 2rem;
|
216
|
-
display: block;
|
217
|
-
color: var(--db-text-color-disabled);
|
218
|
-
|
219
|
-
&:first-child {
|
220
|
-
border-radius: $border-radius-object 0 0 $border-radius-object;
|
221
|
-
}
|
222
|
-
|
223
|
-
&:last-child {
|
224
|
-
border-radius: 0 $border-radius-object $border-radius-object 0;
|
225
|
-
}
|
226
|
-
|
227
|
-
&:not(:first-child) {
|
228
|
-
border-left: none;
|
229
|
-
}
|
230
|
-
|
231
|
-
@at-root a#{&}{
|
232
|
-
color: var(--db-text-color-inactive);
|
233
|
-
|
234
|
-
&:hover {
|
235
|
-
text-decoration: none !important;
|
236
|
-
background-color: var(--db-highlight-color-hover);
|
237
|
-
}
|
238
|
-
}
|
239
|
-
}
|
240
|
-
|
241
|
-
|
242
|
-
&::after {
|
243
|
-
content: attr(data-text);
|
244
|
-
display: block;
|
245
|
-
line-height: 2rem;
|
246
|
-
margin: 0 1rem;
|
247
|
-
white-space: nowrap;
|
248
|
-
}
|
249
|
-
}
|
1
|
+
.c-blog-list {
|
2
|
+
|
3
|
+
&__item {
|
4
|
+
padding-bottom: 2rem;
|
5
|
+
color: var(--db-text-color-active);
|
6
|
+
display: grid;
|
7
|
+
|
8
|
+
&:not(:first-child) {
|
9
|
+
padding-top: 2rem;
|
10
|
+
}
|
11
|
+
&:not(:last-child) {
|
12
|
+
border-bottom: 1px solid var(--db-border-color);
|
13
|
+
}
|
14
|
+
}
|
15
|
+
|
16
|
+
&__title {
|
17
|
+
margin: 1rem 0;
|
18
|
+
grid-column: 1 / span 2;
|
19
|
+
@media #{$medium-screen} {
|
20
|
+
grid-column: 1;
|
21
|
+
}
|
22
|
+
}
|
23
|
+
|
24
|
+
&__link {
|
25
|
+
font-size: 2rem;
|
26
|
+
text-decoration: none;
|
27
|
+
color: inherit !important;
|
28
|
+
vertical-align: middle;
|
29
|
+
font-weight: bold;
|
30
|
+
}
|
31
|
+
|
32
|
+
&__content {
|
33
|
+
margin-top: 0.6rem;
|
34
|
+
margin-bottom: 0.6rem;
|
35
|
+
color: var(--db-text-color-active);
|
36
|
+
line-height: 1.5rem;
|
37
|
+
grid-column: 1;
|
38
|
+
}
|
39
|
+
|
40
|
+
&__meta {
|
41
|
+
font-size: small;
|
42
|
+
color: var(--db-text-color-inactive);
|
43
|
+
grid-column: 1 / span 2;
|
44
|
+
@media #{$medium-screen} {
|
45
|
+
grid-column: 1;
|
46
|
+
}
|
47
|
+
}
|
48
|
+
|
49
|
+
&__metaitem {
|
50
|
+
display: inline-block;
|
51
|
+
|
52
|
+
&:not(:first-child) {
|
53
|
+
|
54
|
+
&::before{
|
55
|
+
content: '·';
|
56
|
+
margin: 0 4px;
|
57
|
+
|
58
|
+
}
|
59
|
+
}
|
60
|
+
}
|
61
|
+
|
62
|
+
&__badge {
|
63
|
+
--db-private-color: gray;
|
64
|
+
border: 1px solid var(--db-private-color);
|
65
|
+
color: var(--db-private-color);
|
66
|
+
border-radius: $border-radius-object;
|
67
|
+
padding: .25rem;
|
68
|
+
margin-right: .5rem;
|
69
|
+
font-size: .8rem;
|
70
|
+
vertical-align: middle;
|
71
|
+
user-select: none;
|
72
|
+
|
73
|
+
&--sticky{
|
74
|
+
--db-private-color: red;
|
75
|
+
}
|
76
|
+
&--featured{
|
77
|
+
--db-private-color: green;
|
78
|
+
}
|
79
|
+
}
|
80
|
+
|
81
|
+
&__thumbnail {
|
82
|
+
grid-column: 2;
|
83
|
+
grid-row: 3;
|
84
|
+
width: 8rem;
|
85
|
+
max-height: 12rem;
|
86
|
+
display: grid;
|
87
|
+
place-content: center;
|
88
|
+
|
89
|
+
@media #{$wide-screen} {
|
90
|
+
grid-row: 1 / span 4;
|
91
|
+
width: 12rem;
|
92
|
+
}
|
93
|
+
|
94
|
+
img {
|
95
|
+
max-width: 100%;
|
96
|
+
max-height: 100%;
|
97
|
+
}
|
98
|
+
}
|
99
|
+
}
|
100
|
+
|
101
|
+
|
102
|
+
.c-blog-grid {
|
103
|
+
--db-grid-columns: 1;
|
104
|
+
--db-grid-width: auto;
|
105
|
+
|
106
|
+
display: grid;
|
107
|
+
grid-template-columns: repeat(var(--db-grid-columns), 1fr);
|
108
|
+
gap: var(--db-control-spacing);
|
109
|
+
grid-auto-rows: 1fr;
|
110
|
+
justify-items: center;
|
111
|
+
|
112
|
+
&__item {
|
113
|
+
max-width: var(--db-grid-width);
|
114
|
+
border: 1px solid var(--db-border-color);
|
115
|
+
border-radius: $border-radius-control;
|
116
|
+
overflow: hidden;
|
117
|
+
width: 100%;
|
118
|
+
position: relative;
|
119
|
+
}
|
120
|
+
|
121
|
+
&__thumbnail {
|
122
|
+
border-bottom: 1px solid var(--db-border-color-inactive);
|
123
|
+
width: 100%;
|
124
|
+
|
125
|
+
height: 16rem;
|
126
|
+
@supports (aspect-ratio: initial) {
|
127
|
+
height: auto;
|
128
|
+
aspect-ratio: 2 / 1;
|
129
|
+
}
|
130
|
+
|
131
|
+
img {
|
132
|
+
object-fit: cover;
|
133
|
+
height: 100%;
|
134
|
+
width: 100%;
|
135
|
+
display: block;
|
136
|
+
}
|
137
|
+
}
|
138
|
+
|
139
|
+
&__body {
|
140
|
+
padding: 1.5rem 2rem;
|
141
|
+
display: flex;
|
142
|
+
flex-direction: column;
|
143
|
+
//margin-bottom: 2rem;
|
144
|
+
}
|
145
|
+
|
146
|
+
&__title {
|
147
|
+
font-size: 1.5rem;
|
148
|
+
line-height: 2rem;
|
149
|
+
vertical-align: middle;
|
150
|
+
font-weight: bold;
|
151
|
+
color: var(--db-text-color-important);
|
152
|
+
|
153
|
+
a {
|
154
|
+
color: inherit !important;
|
155
|
+
}
|
156
|
+
}
|
157
|
+
|
158
|
+
&__content {
|
159
|
+
color: var(--db-text-color-inactive);
|
160
|
+
margin: 1rem 0;
|
161
|
+
}
|
162
|
+
/*
|
163
|
+
&__footer {
|
164
|
+
padding: 0 2rem;
|
165
|
+
height: 2rem;
|
166
|
+
position: absolute;
|
167
|
+
bottom: 0;
|
168
|
+
width: 100%;
|
169
|
+
color: var(--db-text-color-inactive);
|
170
|
+
text-align: right;
|
171
|
+
font-size: small;
|
172
|
+
}
|
173
|
+
|
174
|
+
&__read {
|
175
|
+
margin-left: auto;
|
176
|
+
}
|
177
|
+
*/
|
178
|
+
|
179
|
+
> a {
|
180
|
+
display: block;
|
181
|
+
|
182
|
+
&:hover {
|
183
|
+
text-decoration: none !important;
|
184
|
+
box-shadow: 0 0 .25rem var(--db-surface-shadow-color);
|
185
|
+
background-image: var(--db-surface-overlay);
|
186
|
+
}
|
187
|
+
|
188
|
+
}
|
189
|
+
|
190
|
+
@media #{$medium-screen} {
|
191
|
+
--db-grid-columns: 3;
|
192
|
+
--db-grid-height: 12rem;
|
193
|
+
}
|
194
|
+
|
195
|
+
@media #{$large-screen} {
|
196
|
+
--db-grid-width: 24rem;
|
197
|
+
--db-grid-height: 16rem;
|
198
|
+
}
|
199
|
+
}
|
200
|
+
|
201
|
+
|
202
|
+
.c-pagination {
|
203
|
+
margin: 4rem auto;
|
204
|
+
display: flex;
|
205
|
+
justify-content: center;
|
206
|
+
position: relative;
|
207
|
+
color: var(--db-text-color-inactive);
|
208
|
+
|
209
|
+
&__item {
|
210
|
+
min-width: 2rem;
|
211
|
+
border: 1px solid var(--db-border-color);
|
212
|
+
margin: 0;
|
213
|
+
text-align: center;
|
214
|
+
overflow: hidden;
|
215
|
+
line-height: 2rem;
|
216
|
+
display: block;
|
217
|
+
color: var(--db-text-color-disabled);
|
218
|
+
|
219
|
+
&:first-child {
|
220
|
+
border-radius: $border-radius-object 0 0 $border-radius-object;
|
221
|
+
}
|
222
|
+
|
223
|
+
&:last-child {
|
224
|
+
border-radius: 0 $border-radius-object $border-radius-object 0;
|
225
|
+
}
|
226
|
+
|
227
|
+
&:not(:first-child) {
|
228
|
+
border-left: none;
|
229
|
+
}
|
230
|
+
|
231
|
+
@at-root a#{&}{
|
232
|
+
color: var(--db-text-color-inactive);
|
233
|
+
|
234
|
+
&:hover {
|
235
|
+
text-decoration: none !important;
|
236
|
+
background-color: var(--db-highlight-color-hover);
|
237
|
+
}
|
238
|
+
}
|
239
|
+
}
|
240
|
+
|
241
|
+
|
242
|
+
&::after {
|
243
|
+
content: attr(data-text);
|
244
|
+
display: block;
|
245
|
+
line-height: 2rem;
|
246
|
+
margin: 0 1rem;
|
247
|
+
white-space: nowrap;
|
248
|
+
}
|
249
|
+
}
|
@@ -1,30 +1,30 @@
|
|
1
|
-
.c-checkbutton {
|
2
|
-
display: inline-block;
|
3
|
-
user-select: none;
|
4
|
-
margin: .4rem;
|
5
|
-
padding: 0;
|
6
|
-
|
7
|
-
> input {
|
8
|
-
display: none;
|
9
|
-
}
|
10
|
-
|
11
|
-
> span {
|
12
|
-
border-radius: $border-radius-object;
|
13
|
-
padding: .4rem .8rem;
|
14
|
-
margin: 0;
|
15
|
-
border: 1px solid var(--db-border-color);
|
16
|
-
color: var(--db-text-color-inactive);
|
17
|
-
}
|
18
|
-
|
19
|
-
&:hover > span {
|
20
|
-
background-color: var(--db-highlight-color-hover);
|
21
|
-
color: var(--db-text-color-active);
|
22
|
-
}
|
23
|
-
|
24
|
-
> input:checked + span {
|
25
|
-
background-color: var(--db-highlight-color);
|
26
|
-
border: 1px solid var(--db-border-color);
|
27
|
-
color: var(--db-text-color-active);
|
28
|
-
}
|
29
|
-
|
30
|
-
}
|
1
|
+
.c-checkbutton {
|
2
|
+
display: inline-block;
|
3
|
+
user-select: none;
|
4
|
+
margin: .4rem;
|
5
|
+
padding: 0;
|
6
|
+
|
7
|
+
> input {
|
8
|
+
display: none;
|
9
|
+
}
|
10
|
+
|
11
|
+
> span {
|
12
|
+
border-radius: $border-radius-object;
|
13
|
+
padding: .4rem .8rem;
|
14
|
+
margin: 0;
|
15
|
+
border: 1px solid var(--db-border-color);
|
16
|
+
color: var(--db-text-color-inactive);
|
17
|
+
}
|
18
|
+
|
19
|
+
&:hover > span {
|
20
|
+
background-color: var(--db-highlight-color-hover);
|
21
|
+
color: var(--db-text-color-active);
|
22
|
+
}
|
23
|
+
|
24
|
+
> input:checked + span {
|
25
|
+
background-color: var(--db-highlight-color);
|
26
|
+
border: 1px solid var(--db-border-color);
|
27
|
+
color: var(--db-text-color-active);
|
28
|
+
}
|
29
|
+
|
30
|
+
}
|
data/_sass/components/_hero.scss
CHANGED
@@ -1,70 +1,70 @@
|
|
1
|
-
.c-hero {
|
2
|
-
overflow: hidden;
|
3
|
-
background-position: center;
|
4
|
-
background-repeat: no-repeat;
|
5
|
-
background-size: cover;
|
6
|
-
margin: auto;
|
7
|
-
display: flex;
|
8
|
-
height: calc( 100vh - var(--db-header-height) );
|
9
|
-
flex-direction: column;
|
10
|
-
align-items: center;
|
11
|
-
justify-content: center;
|
12
|
-
text-align: center;
|
13
|
-
|
14
|
-
@media #{$medium-screen} {
|
15
|
-
height: 40rem;
|
16
|
-
}
|
17
|
-
@media #{$large-screen} {
|
18
|
-
height: 44rem;
|
19
|
-
}
|
20
|
-
@media #{$wide-screen} {
|
21
|
-
height: 48rem;
|
22
|
-
}
|
23
|
-
|
24
|
-
&__title {
|
25
|
-
width: 80%;
|
26
|
-
font-size: 5rem;
|
27
|
-
line-height: 8rem;
|
28
|
-
color: var(--db-background-color);
|
29
|
-
text-shadow: 0 0 0.25rem rgb(var(--db-overlay-color-rgb), 30%);
|
30
|
-
}
|
31
|
-
|
32
|
-
&__description {
|
33
|
-
width: 80%;
|
34
|
-
font-size: 1.25rem;
|
35
|
-
line-height: 2rem;
|
36
|
-
color: var(--db-background-color);
|
37
|
-
text-shadow: 0 0 0.25rem rgb(var(--db-overlay-color-rgb), 30%);
|
38
|
-
}
|
39
|
-
|
40
|
-
&__links {
|
41
|
-
width: 80%;
|
42
|
-
font-size: 1.25rem;
|
43
|
-
line-height: 2rem;
|
44
|
-
color: var(--db-background-color);
|
45
|
-
text-shadow: 0 0 0.25rem var(--db-control-shadow-color);
|
46
|
-
margin-top: 2rem;
|
47
|
-
|
48
|
-
a[type="button"] {
|
49
|
-
padding: .4rem 1rem;
|
50
|
-
border: 2px solid var(--db-background-color);
|
51
|
-
border-radius: $border-radius-control;
|
52
|
-
|
53
|
-
&:hover {
|
54
|
-
box-shadow: 0 0 .25rem var(--db-control-shadow-color);
|
55
|
-
}
|
56
|
-
}
|
57
|
-
}
|
58
|
-
|
59
|
-
}
|
60
|
-
|
61
|
-
.l-hero {
|
62
|
-
//border-bottom: 1px solid var(--db-border-color);
|
63
|
-
box-shadow: 0 .5rem .5rem -.5rem var(--db-control-shadow-color);
|
64
|
-
background-color: var(--db-surface-color);
|
65
|
-
|
66
|
-
&--overflow .c-hero {
|
67
|
-
margin-top: calc( 0px - var(--db-header-height) );
|
68
|
-
padding-top: var(--db-header-height);
|
69
|
-
}
|
70
|
-
}
|
1
|
+
.c-hero {
|
2
|
+
overflow: hidden;
|
3
|
+
background-position: center;
|
4
|
+
background-repeat: no-repeat;
|
5
|
+
background-size: cover;
|
6
|
+
margin: auto;
|
7
|
+
display: flex;
|
8
|
+
height: calc( 100vh - var(--db-header-height) );
|
9
|
+
flex-direction: column;
|
10
|
+
align-items: center;
|
11
|
+
justify-content: center;
|
12
|
+
text-align: center;
|
13
|
+
|
14
|
+
@media #{$medium-screen} {
|
15
|
+
height: 40rem;
|
16
|
+
}
|
17
|
+
@media #{$large-screen} {
|
18
|
+
height: 44rem;
|
19
|
+
}
|
20
|
+
@media #{$wide-screen} {
|
21
|
+
height: 48rem;
|
22
|
+
}
|
23
|
+
|
24
|
+
&__title {
|
25
|
+
width: 80%;
|
26
|
+
font-size: 5rem;
|
27
|
+
line-height: 8rem;
|
28
|
+
color: var(--db-background-color);
|
29
|
+
text-shadow: 0 0 0.25rem rgb(var(--db-overlay-color-rgb), 30%);
|
30
|
+
}
|
31
|
+
|
32
|
+
&__description {
|
33
|
+
width: 80%;
|
34
|
+
font-size: 1.25rem;
|
35
|
+
line-height: 2rem;
|
36
|
+
color: var(--db-background-color);
|
37
|
+
text-shadow: 0 0 0.25rem rgb(var(--db-overlay-color-rgb), 30%);
|
38
|
+
}
|
39
|
+
|
40
|
+
&__links {
|
41
|
+
width: 80%;
|
42
|
+
font-size: 1.25rem;
|
43
|
+
line-height: 2rem;
|
44
|
+
color: var(--db-background-color);
|
45
|
+
text-shadow: 0 0 0.25rem var(--db-control-shadow-color);
|
46
|
+
margin-top: 2rem;
|
47
|
+
|
48
|
+
a[type="button"] {
|
49
|
+
padding: .4rem 1rem;
|
50
|
+
border: 2px solid var(--db-background-color);
|
51
|
+
border-radius: $border-radius-control;
|
52
|
+
|
53
|
+
&:hover {
|
54
|
+
box-shadow: 0 0 .25rem var(--db-control-shadow-color);
|
55
|
+
}
|
56
|
+
}
|
57
|
+
}
|
58
|
+
|
59
|
+
}
|
60
|
+
|
61
|
+
.l-hero {
|
62
|
+
//border-bottom: 1px solid var(--db-border-color);
|
63
|
+
box-shadow: 0 .5rem .5rem -.5rem var(--db-control-shadow-color);
|
64
|
+
background-color: var(--db-surface-color);
|
65
|
+
|
66
|
+
&--overflow .c-hero {
|
67
|
+
margin-top: calc( 0px - var(--db-header-height) );
|
68
|
+
padding-top: var(--db-header-height);
|
69
|
+
}
|
70
|
+
}
|