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,67 @@
|
|
1
|
+
---
|
2
|
+
layout: system
|
3
|
+
---
|
4
|
+
|
5
|
+
{%- assign taxonomy = "" | split: "" -%}
|
6
|
+
|
7
|
+
{%- if page.taxonomy == "year" -%}
|
8
|
+
{%- assign groups = site.posts | group_by_exp: "post", "post.date | date: '%Y'" | sort: "name" -%}
|
9
|
+
{%- for group in groups -%}
|
10
|
+
{%- assign item = "" | split: "" | push: group.name | push: group.items -%}
|
11
|
+
{%- assign taxonomy = taxonomy | push: item -%}
|
12
|
+
{%- endfor -%}
|
13
|
+
{%- elsif page.taxonomy == "category" or page.taxonomy == "tag" -%}
|
14
|
+
{%- if page.taxonomy == "category" -%}
|
15
|
+
{%- assign collection = site.categories -%}
|
16
|
+
{%- elsif page.taxonomy == "tag" -%}
|
17
|
+
{%- assign collection = site.tags -%}
|
18
|
+
{%- endif -%}
|
19
|
+
{%- assign sizeGroups = collection | group_by_exp: "group", "group[1].size" | sort: "name" | reverse -%}
|
20
|
+
{%- for sizeGroup in sizeGroups -%}
|
21
|
+
{%- for group in sizeGroup.items -%}
|
22
|
+
{%- assign item = "" | split: "" | push: group[0] | push: group[1] -%}
|
23
|
+
{%- assign taxonomy = taxonomy | push: item -%}
|
24
|
+
{%- endfor -%}
|
25
|
+
{%- endfor -%}
|
26
|
+
{%- elsif page.taxonomy == "author" -%}
|
27
|
+
{%- assign collection = "" | split: "" -%}
|
28
|
+
{%- for post in site.posts -%}
|
29
|
+
{%- if post.authors -%}
|
30
|
+
{%- for author in post.authors -%}
|
31
|
+
{%- unless author.first -%}
|
32
|
+
{%- assign item = "" | split: "" | push: author | push: post -%}
|
33
|
+
{%- assign collection = collection | push: item -%}
|
34
|
+
{%- endunless -%}
|
35
|
+
{%- endfor -%}
|
36
|
+
{%- elsif post.author -%}
|
37
|
+
{%- unless post.author.first -%}
|
38
|
+
{%- assign item = "" | split: "" | push: post.author | push: post -%}
|
39
|
+
{%- assign collection = collection | push: item -%}
|
40
|
+
{%- endunless -%}
|
41
|
+
{%- endif -%}
|
42
|
+
{%- endfor -%}
|
43
|
+
{%- assign authorGroups = collection | group_by_exp: "item", "item[0]" | sort: "name" -%}
|
44
|
+
{%- for authorGroup in authorGroups -%}
|
45
|
+
{%- assign posts = "" | split: "" -%}
|
46
|
+
{%- for item in authorGroup.items -%}
|
47
|
+
{%- assign posts = posts | push: item[1] -%}
|
48
|
+
{%- endfor -%}
|
49
|
+
{%- assign item = "" | split: "" | push: authorGroup.name | push: posts -%}
|
50
|
+
{%- assign taxonomy = taxonomy | push: item -%}
|
51
|
+
{%- endfor -%}
|
52
|
+
{%- endif -%}
|
53
|
+
|
54
|
+
<div class="c-archive">
|
55
|
+
{%- for group in taxonomy -%}
|
56
|
+
{%- assign id = group[0] | url_encode -%}
|
57
|
+
{%- assign posts = group[1] -%}
|
58
|
+
<div class="c-archive__toggler" id="!/{{group[0]}}"></div>
|
59
|
+
<a class="c-archive__link" href="#!/{{id}}">
|
60
|
+
{{- group[0] -}}
|
61
|
+
<span class="c-archive__count">{{- posts.size -}}</span>
|
62
|
+
</a>
|
63
|
+
<div class="c-archive__tab">
|
64
|
+
{%- include blog/list.liquid posts=posts -%}
|
65
|
+
</div>
|
66
|
+
{%- endfor -%}
|
67
|
+
</div>
|
data/_sass/_custom.scss
ADDED
File without changes
|
@@ -0,0 +1,42 @@
|
|
1
|
+
@import "variables";
|
2
|
+
|
3
|
+
@import "base/normalize";
|
4
|
+
@import "base/responsive";
|
5
|
+
@import "base/mixins";
|
6
|
+
@import "base/misc";
|
7
|
+
|
8
|
+
@import "theme/scheme";
|
9
|
+
|
10
|
+
@import "utilities/thinscrollbar";
|
11
|
+
|
12
|
+
@import "layout/wrapper";
|
13
|
+
@import "layout/main";
|
14
|
+
@import "layout/header";
|
15
|
+
@import "layout/body";
|
16
|
+
@import "layout/footer";
|
17
|
+
@import "layout/sidebar";
|
18
|
+
@import "layout/navbar";
|
19
|
+
@import "layout/article";
|
20
|
+
@import "layout/misc";
|
21
|
+
|
22
|
+
@import "components/archive";
|
23
|
+
@import "components/blog";
|
24
|
+
@import "components/forms";
|
25
|
+
@import "components/hero";
|
26
|
+
@import "components/notice";
|
27
|
+
@import "components/post";
|
28
|
+
@import "components/sidebar";
|
29
|
+
@import "components/tabs";
|
30
|
+
@import "components/toc";
|
31
|
+
@import "components/misc";
|
32
|
+
|
33
|
+
@import "typography/typography";
|
34
|
+
@import "typography/article";
|
35
|
+
@import "typography/doc";
|
36
|
+
@import "typography/table";
|
37
|
+
@import "typography/markdown";
|
38
|
+
@import "typography/highlight";
|
39
|
+
|
40
|
+
@import "debug";
|
41
|
+
|
42
|
+
@import "custom";
|
data/_sass/_debug.scss
ADDED
@@ -0,0 +1,24 @@
|
|
1
|
+
$medium-breakpoint: 768px;
|
2
|
+
$large-breakpoint: 1200px;
|
3
|
+
$wide-breakpoint: 1400px;
|
4
|
+
|
5
|
+
$header-height: 2.5rem; // 40px
|
6
|
+
$side-width: 18rem; // 288px
|
7
|
+
|
8
|
+
$border-radius-control: .4rem;
|
9
|
+
$border-radius-object: .2rem;
|
10
|
+
|
11
|
+
$spacing-unit: 2rem;
|
12
|
+
|
13
|
+
$spacing-control: 1rem;
|
14
|
+
$spacing-object: .5rem;
|
15
|
+
$spacing-text: .25rem;
|
16
|
+
|
17
|
+
$header-object-size: 2rem;
|
18
|
+
|
19
|
+
$page-spacing-small: 2rem;
|
20
|
+
$page-spacing-medium: 4rem;
|
21
|
+
$page-spacing-large: 8rem;
|
22
|
+
$page-spacing-wide: 12rem;
|
23
|
+
|
24
|
+
$page-max-width: 72rem;
|
File without changes
|
@@ -0,0 +1,32 @@
|
|
1
|
+
@mixin flex-center {
|
2
|
+
display: flex;
|
3
|
+
align-items: center;
|
4
|
+
justify-content: center;
|
5
|
+
}
|
6
|
+
|
7
|
+
@mixin text-link {
|
8
|
+
color: inherit;
|
9
|
+
text-decoration: none;
|
10
|
+
|
11
|
+
&:hover {
|
12
|
+
color: inherit;
|
13
|
+
text-decoration: underline;
|
14
|
+
}
|
15
|
+
}
|
16
|
+
|
17
|
+
@mixin fontawesome-icon {
|
18
|
+
display: flex;
|
19
|
+
align-items: center;
|
20
|
+
justify-content: center;
|
21
|
+
user-select: none;
|
22
|
+
font-family: 'Font Awesome 5 Free';
|
23
|
+
|
24
|
+
&::before {
|
25
|
+
font-weight: 600;
|
26
|
+
}
|
27
|
+
}
|
28
|
+
|
29
|
+
@mixin fontawesome-text {
|
30
|
+
font-family: 'Font Awesome 5 Free';
|
31
|
+
font-weight: 600;
|
32
|
+
}
|
@@ -0,0 +1,45 @@
|
|
1
|
+
html {
|
2
|
+
box-sizing: border-box;
|
3
|
+
font-size: 16px;
|
4
|
+
overflow-y: scroll;
|
5
|
+
font-family: Content, Roboto, sans-serif;
|
6
|
+
font-weight: normal;
|
7
|
+
|
8
|
+
*,
|
9
|
+
*:before,
|
10
|
+
*:after {
|
11
|
+
box-sizing: inherit;
|
12
|
+
margin: 0;
|
13
|
+
padding: 0;
|
14
|
+
}
|
15
|
+
}
|
16
|
+
|
17
|
+
body {
|
18
|
+
font-size: 1rem;
|
19
|
+
font-family:
|
20
|
+
"Helvetica Neue",
|
21
|
+
Helvetica,
|
22
|
+
Arial,
|
23
|
+
STXihei, "华文细黑",
|
24
|
+
"Microsoft YaHei", "微软雅黑",
|
25
|
+
Heiti, "黑体",
|
26
|
+
sans-serif;
|
27
|
+
}
|
28
|
+
|
29
|
+
template {
|
30
|
+
display: none;
|
31
|
+
}
|
32
|
+
|
33
|
+
[hidden] {
|
34
|
+
display: none;
|
35
|
+
}
|
36
|
+
|
37
|
+
a {
|
38
|
+
color: inherit;
|
39
|
+
text-decoration: none;
|
40
|
+
|
41
|
+
&:hover {
|
42
|
+
color: inherit;
|
43
|
+
text-decoration: none;
|
44
|
+
}
|
45
|
+
}
|
@@ -0,0 +1,28 @@
|
|
1
|
+
// (<768px)
|
2
|
+
$small-screen: "";
|
3
|
+
|
4
|
+
// (≥768px)
|
5
|
+
$medium-screen: "screen and (min-width: #{$medium-breakpoint})";
|
6
|
+
|
7
|
+
// (≥1200px)
|
8
|
+
$large-screen: "screen and (min-width: #{$large-breakpoint})";
|
9
|
+
|
10
|
+
// (≥1400px)
|
11
|
+
$wide-screen: "screen and (min-width: #{$wide-breakpoint})";
|
12
|
+
|
13
|
+
:root {
|
14
|
+
--db-header-height: #{$header-height};
|
15
|
+
--db-control-spacing: 1rem;
|
16
|
+
|
17
|
+
@media #{$medium-screen} {
|
18
|
+
--db-header-height: #{$header-height * 1.5};
|
19
|
+
}
|
20
|
+
|
21
|
+
@media #{$medium-screen} {
|
22
|
+
--db-control-spacing: 2rem;
|
23
|
+
}
|
24
|
+
@media #{$large-screen} {
|
25
|
+
--db-control-spacing: 4rem;
|
26
|
+
}
|
27
|
+
|
28
|
+
}
|
@@ -0,0 +1,49 @@
|
|
1
|
+
.c-archive {
|
2
|
+
display: flex;
|
3
|
+
flex-wrap: wrap;
|
4
|
+
|
5
|
+
&__link {
|
6
|
+
border: 1px solid var(--db-border-color);
|
7
|
+
width: calc(25% - 1rem);
|
8
|
+
margin: .25rem .5rem;
|
9
|
+
padding: .5rem;
|
10
|
+
border-radius: $border-radius-object;
|
11
|
+
color: var(--db-text-color-inactive);
|
12
|
+
|
13
|
+
&:hover {
|
14
|
+
text-decoration: none;
|
15
|
+
background-color: var(--db-background-hover-color);
|
16
|
+
}
|
17
|
+
}
|
18
|
+
|
19
|
+
&__count {
|
20
|
+
float: right;
|
21
|
+
margin-right: .25rem;
|
22
|
+
}
|
23
|
+
|
24
|
+
&__tab {
|
25
|
+
order: 2;
|
26
|
+
display: none;
|
27
|
+
margin-top: 2rem;
|
28
|
+
}
|
29
|
+
|
30
|
+
&__toggler {
|
31
|
+
display: none;
|
32
|
+
position: fixed;
|
33
|
+
top: 0;
|
34
|
+
left: 0;
|
35
|
+
width: 0;
|
36
|
+
height: 0;
|
37
|
+
}
|
38
|
+
|
39
|
+
&__toggler:target + &__link {
|
40
|
+
background-color: var(--db-control-color);
|
41
|
+
border-color: var(--db-control-border-color);
|
42
|
+
color: var(--db-control-text-color);
|
43
|
+
}
|
44
|
+
|
45
|
+
&__toggler:target + &__link + &__tab {
|
46
|
+
display: initial;
|
47
|
+
}
|
48
|
+
|
49
|
+
}
|
@@ -0,0 +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
|
+
}
|
@@ -0,0 +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
|
+
}
|
@@ -0,0 +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
|
+
}
|
@@ -0,0 +1,27 @@
|
|
1
|
+
.c-notice {
|
2
|
+
border: 1px solid var(--db-border-color);
|
3
|
+
background-color: var(--db-background-color);
|
4
|
+
border-radius: $border-radius-object;
|
5
|
+
margin-top: $spacing-unit / 2;
|
6
|
+
margin-bottom: $spacing-unit / 2;
|
7
|
+
padding: $spacing-unit / 4 $spacing-unit / 2;
|
8
|
+
border-left-width: $border-radius-object * 2;
|
9
|
+
|
10
|
+
&__header {
|
11
|
+
font-weight: bold;
|
12
|
+
margin-bottom: $spacing-unit / 4;
|
13
|
+
&:empty {
|
14
|
+
display: none;
|
15
|
+
}
|
16
|
+
}
|
17
|
+
|
18
|
+
&--inline {
|
19
|
+
.c-notice__header {
|
20
|
+
display: inline;
|
21
|
+
&::after {
|
22
|
+
content: ':';
|
23
|
+
margin-right: 1em;
|
24
|
+
}
|
25
|
+
}
|
26
|
+
}
|
27
|
+
}
|