jekyll-text-theme 1.5.0 → 2.0.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 +4 -4
- data/README.md +41 -153
- data/_data/authors.yml +0 -0
- data/_data/licenses.yml +16 -0
- data/_data/locale.yml +4 -10
- data/_data/navigation.yml +13 -0
- data/_data/variables.yml +22 -6
- data/_includes/analytics-providers/custom.html +0 -0
- data/_includes/analytics-providers/google.html +16 -0
- data/_includes/analytics.html +7 -0
- data/_includes/article-footer/custom.html +1 -0
- data/_includes/article-footer/license.html +24 -0
- data/_includes/article-info.html +90 -0
- data/_includes/aside/toc.html +1 -0
- data/_includes/author-profile.html +50 -0
- data/_includes/comments-providers/custom.html +0 -0
- data/_includes/comments-providers/disqus.html +22 -0
- data/_includes/comments-providers/gitalk.html +32 -0
- data/_includes/comments.html +9 -0
- data/_includes/follow-me.html +84 -0
- data/_includes/footer.html +39 -0
- data/_includes/head.html +54 -0
- data/_includes/header.html +33 -0
- data/_includes/markdown-enhancements.html +32 -0
- data/_includes/{utils → markdown-enhancements}/chart.html +1 -3
- data/_includes/{utils → markdown-enhancements}/mathjax.html +11 -4
- data/_includes/{utils → markdown-enhancements}/mermaid.html +1 -3
- data/_includes/pageview-providers/custom.html +0 -0
- data/_includes/pageview-providers/custom/home.html +0 -0
- data/_includes/pageview-providers/custom/post.html +0 -0
- data/_includes/pageview-providers/leancloud/home.html +35 -0
- data/_includes/pageview-providers/leancloud/leancloud.js +71 -0
- data/_includes/pageview-providers/leancloud/post.html +31 -0
- data/_includes/pageview.html +31 -0
- data/_includes/scripts/archieve.js +238 -0
- data/_includes/scripts/article-list.html +27 -0
- data/_includes/scripts/article.js +24 -0
- data/_includes/scripts/aside/affix.js +26 -0
- data/_includes/scripts/aside/toc.js +37 -0
- data/_includes/scripts/common.js +3 -0
- data/_includes/scripts/home.js +3 -0
- data/_includes/scripts/lib/affix.js +103 -0
- data/_includes/scripts/{utils.html → lib/lazyload.js} +55 -92
- data/_includes/scripts/lib/scroll.js +13 -0
- data/_includes/scripts/lib/throttle.js +28 -0
- data/_includes/scripts/lib/toc.js +106 -0
- data/_includes/scripts/page.js +3 -0
- data/_includes/scripts/sidebar.js +14 -0
- data/_includes/scripts/utils.js +38 -0
- data/_includes/scripts/variables.html +27 -0
- data/_includes/sidebar/toc.html +27 -0
- data/_includes/snippets/assign.html +5 -0
- data/_includes/snippets/get-nav-url.html +3 -2
- data/_includes/snippets/page-title.html +11 -6
- data/_includes/snippets/page-url.html +3 -1
- data/_includes/snippets/to-boolean.html +7 -0
- data/_includes/{icon → svg/icon}/social/behance.svg +0 -0
- data/_includes/{icon → svg/icon}/social/douban.svg +0 -0
- data/_includes/{icon → svg/icon}/social/facebook.svg +0 -0
- data/_includes/{icon → svg/icon}/social/flicker.svg +0 -0
- data/_includes/{icon → svg/icon}/social/github.svg +0 -0
- data/_includes/{icon → svg/icon}/social/googleplus.svg +0 -0
- data/_includes/{icon → svg/icon}/social/linkedin.svg +0 -0
- data/_includes/{icon → svg/icon}/social/mail.svg +0 -0
- data/_includes/{icon → svg/icon}/social/pinterest.svg +0 -0
- data/_includes/{icon → svg/icon}/social/qq.svg +0 -0
- data/_includes/{icon → svg/icon}/social/twitter.svg +0 -0
- data/_includes/{icon → svg/icon}/social/weibo.svg +0 -0
- data/_includes/{icon → svg/icon}/social/weixin.svg +0 -0
- data/_includes/{icon → svg/icon}/social/zhihu.svg +0 -0
- data/_includes/{logo → svg}/logo.svg +1 -1
- data/_includes/tags.html +52 -0
- data/_layouts/404.html +12 -0
- data/_layouts/archive.html +25 -0
- data/_layouts/article.html +78 -0
- data/_layouts/base.html +13 -33
- data/_layouts/home.html +135 -121
- data/_layouts/landing.html +164 -0
- data/_layouts/page.html +157 -9
- data/_sass/additional/_alert.scss +25 -0
- data/_sass/additional/_photo-frame.scss +17 -0
- data/_sass/animate/_fade-in-down.scss +1 -1
- data/_sass/animate/_fade-in.scss +1 -1
- data/_sass/common/_classes.scss +5 -2
- data/_sass/common/_reset.scss +32 -22
- data/_sass/common/_variables.scss +87 -31
- data/_sass/common/classes/_animation.scss +9 -0
- data/_sass/common/classes/_clearfix.scss +8 -0
- data/_sass/common/classes/_grid.scss +48 -0
- data/_sass/common/classes/_horizontal-rules.scss +14 -0
- data/_sass/common/classes/_link.scss +18 -145
- data/_sass/common/classes/_media.scss +1 -2
- data/_sass/common/classes/_overflow.scss +8 -0
- data/_sass/common/classes/_pseudo.scss +26 -0
- data/_sass/common/classes/_shadow.scss +13 -5
- data/_sass/common/classes/_spacing.scss +52 -0
- data/_sass/common/components/_button.scss +179 -47
- data/_sass/common/components/_card.scss +18 -0
- data/_sass/common/components/_menu.scss +43 -0
- data/_sass/common/components/_toc.scss +125 -0
- data/_sass/components/_article.content.scss +37 -45
- data/_sass/components/_article.info.scss +25 -0
- data/_sass/components/_author-profile.scss +43 -0
- data/_sass/components/_follow-me.scss +16 -19
- data/_sass/components/_footer.scss +16 -6
- data/_sass/components/_header.scss +26 -18
- data/_sass/components/_license.scss +1 -25
- data/_sass/components/_main.scss +13 -11
- data/_sass/components/_tags.scss +17 -36
- data/_sass/layout/{_error-404.scss → _404.scss} +2 -2
- data/_sass/layout/_all.scss +72 -63
- data/_sass/layout/_article.scss +44 -0
- data/_sass/layout/_home.scss +61 -52
- data/_sass/layout/_landing.scss +104 -0
- data/_sass/layout/_page.scss +155 -0
- data/_sass/{colors → skins}/_chocolate.scss +17 -6
- data/_sass/skins/_dark.scss +56 -0
- data/_sass/{colors → skins}/_default.scss +16 -5
- data/_sass/{colors → skins}/_forest.scss +16 -5
- data/_sass/{colors → skins}/_ocean.scss +16 -5
- data/_sass/{colors → skins}/_orange.scss +20 -9
- data/assets/android-chrome-192x192.png +0 -0
- data/assets/android-chrome-512x512.png +0 -0
- data/assets/apple-touch-icon.png +0 -0
- data/assets/browserconfig.xml +9 -0
- data/assets/css/main.scss +46 -0
- data/assets/favicon-16x16.png +0 -0
- data/assets/favicon-32x32.png +0 -0
- data/assets/favicon.ico +0 -0
- data/assets/images/logo/logo.svg +1 -1
- data/assets/mstile-144x144.png +0 -0
- data/assets/mstile-150x150.png +0 -0
- data/assets/mstile-310x150.png +0 -0
- data/assets/mstile-310x310.png +0 -0
- data/assets/mstile-70x70.png +0 -0
- data/assets/safari-pinned-tab.svg +38 -0
- data/assets/site.webmanifest +19 -0
- metadata +108 -76
- data/_includes/common-head.html +0 -10
- data/_includes/components/article-data.html +0 -55
- data/_includes/components/follow-me.html +0 -78
- data/_includes/components/footer.html +0 -10
- data/_includes/components/header.html +0 -42
- data/_includes/components/license.html +0 -26
- data/_includes/components/tags.html +0 -52
- data/_includes/head-icons-rel.html +0 -38
- data/_includes/icon/clear.svg +0 -3
- data/_includes/icon/link.svg +0 -1
- data/_includes/icon/menu.svg +0 -3
- data/_includes/icon/next.svg +0 -3
- data/_includes/icon/omit.svg +0 -1
- data/_includes/icon/previous.svg +0 -3
- data/_includes/icon/search.svg +0 -3
- data/_includes/scripts/all.html +0 -244
- data/_includes/scripts/common.html +0 -30
- data/_includes/scripts/data.html +0 -27
- data/_includes/scripts/home.html +0 -26
- data/_includes/scripts/page-post.html +0 -32
- data/_includes/scripts/post.html +0 -183
- data/_includes/utils/comment-disqus.html +0 -19
- data/_includes/utils/comment-gitalk.html +0 -25
- data/_includes/utils/google-analytics.html +0 -11
- data/_layouts/all.html +0 -20
- data/_layouts/error-404.html +0 -9
- data/_layouts/post.html +0 -60
- data/_sass/colors/_dark.scss +0 -45
- data/_sass/common/classes/_shape.scss +0 -19
- data/_sass/common/classes/_space.scss +0 -40
- data/_sass/components/_article.content.extra.scss +0 -41
- data/_sass/components/_article.data.scss +0 -36
- data/_sass/components/_pagination.scss +0 -19
- data/_sass/components/_toc.scss +0 -72
- data/_sass/layout/_default.scss +0 -19
- data/_sass/layout/_post.scss +0 -80
- data/assets/css/blog.scss +0 -41
- data/assets/images/logo/icon-120x120.png +0 -0
- data/assets/images/logo/icon-128x128.png +0 -0
- data/assets/images/logo/icon-150x150.png +0 -0
- data/assets/images/logo/icon-152x152.png +0 -0
- data/assets/images/logo/icon-167x167.png +0 -0
- data/assets/images/logo/icon-16x16.png +0 -0
- data/assets/images/logo/icon-180x180.png +0 -0
- data/assets/images/logo/icon-192x192.png +0 -0
- data/assets/images/logo/icon-310x150.png +0 -0
- data/assets/images/logo/icon-310x310.png +0 -0
- data/assets/images/logo/icon-48x48.png +0 -0
- data/assets/images/logo/icon-70x70.png +0 -0
@@ -1,22 +1,20 @@
|
|
1
|
-
.
|
1
|
+
.article__content {
|
2
2
|
word-wrap: break-word;
|
3
|
-
line-height: map-get($base, line-height-
|
3
|
+
line-height: map-get($base, line-height-lg);
|
4
4
|
@include block-elements() {
|
5
|
-
margin: map-get($base, vertical-space-
|
5
|
+
margin: map-get($base, vertical-space-lg) 0;
|
6
6
|
}
|
7
7
|
@include heading-elements() {
|
8
8
|
position: relative;
|
9
|
-
margin-top: map-get($base, vertical-space-
|
9
|
+
margin-top: map-get($base, vertical-space-lg) * 1.5;
|
10
10
|
& > .anchor {
|
11
|
-
@include link-
|
11
|
+
@include link-colors($border-color, $main-color-1, $main-color-1);
|
12
12
|
margin-left: .2rem;
|
13
13
|
visibility: hidden;
|
14
14
|
text-decoration: none;
|
15
15
|
opacity: 0;
|
16
|
-
& >
|
17
|
-
|
18
|
-
height: map-get($base, font-size);
|
19
|
-
margin-bottom: - .2 * map-get($base, font-size);
|
16
|
+
& > i {
|
17
|
+
font-size: map-get($base, font-size-sm);
|
20
18
|
}
|
21
19
|
}
|
22
20
|
&:hover {
|
@@ -33,44 +31,37 @@
|
|
33
31
|
}
|
34
32
|
hr {
|
35
33
|
border: none;
|
36
|
-
|
37
|
-
content: '...';
|
38
|
-
font-size: map-get($base, font-size-h3);
|
39
|
-
color: $text-color-l;
|
40
|
-
display: block;
|
41
|
-
letter-spacing: .8em;
|
42
|
-
text-align: center;
|
43
|
-
}
|
34
|
+
@include horizontal-rules();
|
44
35
|
}
|
45
36
|
blockquote {
|
46
37
|
padding-left: 1rem;
|
47
38
|
@include split-line(left, 4px, $border-color);
|
48
|
-
font-size: map-get($base, font-size-
|
39
|
+
font-size: map-get($base, font-size-sm);
|
49
40
|
color: $text-color-l;
|
50
41
|
p {
|
51
42
|
margin: map-get($base, vertical-space) 0;
|
52
43
|
}
|
53
|
-
|
44
|
+
& > :last-child {
|
54
45
|
margin-bottom: 0;
|
55
46
|
}
|
56
47
|
}
|
57
48
|
img:not(.emoji) {
|
58
49
|
max-width: 100%;
|
59
|
-
max-height: 37rem;
|
60
50
|
vertical-align: middle;
|
61
51
|
}
|
62
52
|
.emoji {
|
63
53
|
display: inline-block;
|
64
54
|
vertical-align: text-bottom;
|
65
|
-
width: map-get($base, line-height-
|
66
|
-
height: map-get($base, line-height-
|
55
|
+
width: map-get($base, line-height-lg) * .7rem;
|
56
|
+
height: map-get($base, line-height-lg) * .7rem;
|
67
57
|
}
|
68
58
|
.footnotes {
|
69
59
|
@include split-line();
|
70
|
-
margin-top: map-get($base, vertical-space-
|
60
|
+
margin-top: map-get($base, vertical-space-lg) * 2;
|
71
61
|
}
|
72
62
|
code {
|
73
|
-
|
63
|
+
border-radius: map-get($base, border-radius);
|
64
|
+
padding: .2rem .5rem;
|
74
65
|
background-color: $text-background-color;
|
75
66
|
span {
|
76
67
|
padding: 0;
|
@@ -78,13 +69,15 @@
|
|
78
69
|
}
|
79
70
|
}
|
80
71
|
pre {
|
81
|
-
overflow
|
82
|
-
|
83
|
-
&>code {
|
72
|
+
@include overflow(auto);
|
73
|
+
& > code {
|
84
74
|
padding: 0;
|
85
75
|
background-color: transparent;
|
86
76
|
word-wrap: normal;
|
87
77
|
&.language-mermaid, &.language-chart {
|
78
|
+
svg {
|
79
|
+
width: 100%;
|
80
|
+
}
|
88
81
|
display: none;
|
89
82
|
&[data-processed] {
|
90
83
|
display: block;
|
@@ -92,12 +85,13 @@
|
|
92
85
|
}
|
93
86
|
}
|
94
87
|
}
|
95
|
-
.highlighter-rouge
|
96
|
-
|
97
|
-
|
88
|
+
.highlighter-rouge > .highlight, figure.highlight {
|
89
|
+
& > pre {
|
90
|
+
border-radius: map-get($base, border-radius);
|
91
|
+
padding: 1rem 0 1rem 1rem;
|
98
92
|
margin: 0;
|
99
93
|
background-color: $text-background-color;
|
100
|
-
|
94
|
+
& > code {
|
101
95
|
display: block;
|
102
96
|
}
|
103
97
|
}
|
@@ -106,8 +100,8 @@
|
|
106
100
|
&:before {
|
107
101
|
content: attr(data-lang);
|
108
102
|
display: block;
|
109
|
-
border-top-left-radius: map-get($
|
110
|
-
border-top-right-radius: map-get($
|
103
|
+
border-top-left-radius: map-get($base, border-radius);
|
104
|
+
border-top-right-radius: map-get($base, border-radius);
|
111
105
|
padding: .5rem 1rem .5rem 0;
|
112
106
|
color: $decorate-color;
|
113
107
|
background-color: $text-background-color;
|
@@ -115,12 +109,12 @@
|
|
115
109
|
text-align: right;
|
116
110
|
text-transform: uppercase;
|
117
111
|
}
|
118
|
-
|
112
|
+
& > pre {
|
119
113
|
padding-top: 0;
|
120
114
|
border-top-left-radius: 0;
|
121
115
|
border-top-right-radius: 0;
|
122
|
-
|
123
|
-
|
116
|
+
& > code {
|
117
|
+
& > .rouge-table {
|
124
118
|
width: auto;
|
125
119
|
margin: 0 0 -1rem -1rem;
|
126
120
|
tbody, tr, td {
|
@@ -128,15 +122,14 @@
|
|
128
122
|
padding-top: 0;
|
129
123
|
padding-bottom: 0;
|
130
124
|
}
|
131
|
-
|
125
|
+
& > tbody {
|
132
126
|
@include flexbox;
|
133
|
-
|
127
|
+
& > tr {
|
134
128
|
width: 100%;
|
135
129
|
@include flexbox;
|
136
|
-
|
130
|
+
& > .code {
|
137
131
|
padding: 0 0 1rem .5rem;
|
138
|
-
overflow
|
139
|
-
-webkit-overflow-scrolling: touch;
|
132
|
+
@include overflow(auto);
|
140
133
|
}
|
141
134
|
}
|
142
135
|
}
|
@@ -144,8 +137,8 @@
|
|
144
137
|
&.gl {
|
145
138
|
padding-left: 1rem;
|
146
139
|
}
|
147
|
-
|
148
|
-
|
140
|
+
& > pre {
|
141
|
+
border-radius: 0;
|
149
142
|
display: block;
|
150
143
|
overflow: visible;
|
151
144
|
margin: 0;
|
@@ -189,9 +182,8 @@
|
|
189
182
|
table {
|
190
183
|
display: block;
|
191
184
|
width: 100%;
|
192
|
-
overflow-x: auto;
|
193
|
-
-webkit-overflow-scrolling: touch;
|
194
185
|
border-collapse: collapse;
|
186
|
+
@include overflow(auto);
|
195
187
|
thead, tfoot {
|
196
188
|
background-color: $text-background-color;
|
197
189
|
}
|
@@ -0,0 +1,25 @@
|
|
1
|
+
.article__info {
|
2
|
+
font-size: map-get($base, font-size-sm);
|
3
|
+
.left-col {
|
4
|
+
float: left;
|
5
|
+
@include media-breakpoint-down(md) {
|
6
|
+
float: none;
|
7
|
+
}
|
8
|
+
}
|
9
|
+
.right-col {
|
10
|
+
float: right;
|
11
|
+
color: $text-color-l;
|
12
|
+
margin-left: map-get($button, padding-x-sm);
|
13
|
+
@include media-breakpoint-down(md) {
|
14
|
+
float: none;
|
15
|
+
}
|
16
|
+
& > li {
|
17
|
+
&:not(:last-child) {
|
18
|
+
@include split-line(right, default, $border-color);
|
19
|
+
line-height: map-get($base, line-height-xs);
|
20
|
+
padding-right: .6rem;
|
21
|
+
margin-right: .8rem;
|
22
|
+
}
|
23
|
+
}
|
24
|
+
}
|
25
|
+
}
|
@@ -0,0 +1,43 @@
|
|
1
|
+
.author-profile {
|
2
|
+
max-width: 25rem;
|
3
|
+
background-color: $text-background-color;
|
4
|
+
font-size: map-get($base, font-size-sm);
|
5
|
+
margin: map-get($base, vertical-space-lg) 0;
|
6
|
+
@include media-breakpoint-down(md) {
|
7
|
+
text-align: center;
|
8
|
+
}
|
9
|
+
img {
|
10
|
+
width: 5rem;
|
11
|
+
border-radius: 50%;
|
12
|
+
margin-top: map-get($base, vertical-space);
|
13
|
+
}
|
14
|
+
.author-profile__name {
|
15
|
+
font-size: map-get($base, font-size-lg);
|
16
|
+
font-weight: map-get($base, font-weight-bold);
|
17
|
+
a {
|
18
|
+
@include link-colors($text-color, $text-color, $text-color);
|
19
|
+
}
|
20
|
+
}
|
21
|
+
.left-col {
|
22
|
+
float: left;
|
23
|
+
@include media-breakpoint-down(md) {
|
24
|
+
float: none;
|
25
|
+
}
|
26
|
+
}
|
27
|
+
.right-col {
|
28
|
+
margin-left: 5rem;
|
29
|
+
padding-left: map-get($spacers, 4);
|
30
|
+
@include media-breakpoint-down(md) {
|
31
|
+
float: none;
|
32
|
+
margin-left: 0;
|
33
|
+
padding-left: 0;
|
34
|
+
margin-left: 0;
|
35
|
+
}
|
36
|
+
.follow-me {
|
37
|
+
float: left;
|
38
|
+
@include media-breakpoint-down(md) {
|
39
|
+
float: none;
|
40
|
+
}
|
41
|
+
}
|
42
|
+
}
|
43
|
+
}
|
@@ -1,33 +1,30 @@
|
|
1
1
|
.follow-me {
|
2
|
-
text-align: center;
|
3
2
|
& > ul {
|
4
3
|
margin: 0;
|
5
|
-
justify-content: center;
|
6
|
-
@include horizontal-space();
|
7
4
|
& > li > {
|
8
|
-
.mail {
|
9
|
-
@include
|
5
|
+
.mail-button {
|
6
|
+
@include button-colors($text-color-1, $mail-color);
|
10
7
|
}
|
11
|
-
.weibo {
|
12
|
-
@include
|
8
|
+
.weibo-button {
|
9
|
+
@include button-colors($text-color-1, $weibo-color);
|
13
10
|
}
|
14
|
-
.facebook {
|
15
|
-
@include
|
11
|
+
.facebook-button {
|
12
|
+
@include button-colors($text-color-1, $facebook-color);
|
16
13
|
}
|
17
|
-
.twitter {
|
18
|
-
@include
|
14
|
+
.twitter-button {
|
15
|
+
@include button-colors($text-color-1, $twitter-color);
|
19
16
|
}
|
20
|
-
.googlepluse {
|
21
|
-
@include
|
17
|
+
.googlepluse-button {
|
18
|
+
@include button-colors($text-color-1, $google-plus-color);
|
22
19
|
}
|
23
|
-
.github {
|
24
|
-
@include
|
20
|
+
.github-button {
|
21
|
+
@include button-colors($text-color-1, $github-color, default, default, default, default, default, default, 'dark');
|
25
22
|
}
|
26
|
-
.linkedin {
|
27
|
-
@include
|
23
|
+
.linkedin-button {
|
24
|
+
@include button-colors($text-color-1, $linkedin-color);
|
28
25
|
}
|
29
|
-
.douban {
|
30
|
-
@include
|
26
|
+
.douban-button {
|
27
|
+
@include button-colors($text-color-1, $douban-color);
|
31
28
|
}
|
32
29
|
}
|
33
30
|
}
|
@@ -2,21 +2,31 @@
|
|
2
2
|
* Site Info
|
3
3
|
*/
|
4
4
|
|
5
|
-
.
|
5
|
+
.footer {
|
6
6
|
@include flexbox;
|
7
7
|
@include align-items(center);
|
8
|
-
height: map-get($layout, footer-height);
|
9
|
-
margin-top: - map-get($layout, footer-height);
|
10
8
|
background-color: $main-color-3;
|
9
|
+
height: map-get($layout, footer-height);
|
10
|
+
.follow-me {
|
11
|
+
padding-top: 1rem;
|
12
|
+
}
|
11
13
|
p {
|
12
14
|
color: $text-color-3;
|
13
15
|
}
|
14
16
|
a {
|
15
|
-
@include link-
|
17
|
+
@include link-colors ($text-color-3, $main-color-1, $main-color-1);
|
16
18
|
}
|
17
19
|
.site-info {
|
18
20
|
text-align: center;
|
19
|
-
font-size: map-get($base, font-size-
|
20
|
-
margin: 0 auto;
|
21
|
+
font-size: map-get($base, font-size-xs);
|
22
|
+
margin: 1rem auto 0 auto;
|
23
|
+
}
|
24
|
+
.site-info__rss {
|
25
|
+
@include split-line(left, default, $text-color-3);
|
26
|
+
padding-left: .3rem;
|
27
|
+
margin-left: .1rem;
|
28
|
+
}
|
29
|
+
.site-info__copyright, .site-info__rss {
|
30
|
+
line-height: map-get($base, line-height-xs);
|
21
31
|
}
|
22
32
|
}
|
@@ -1,54 +1,62 @@
|
|
1
|
-
.
|
2
|
-
background-color: $main-color-3;
|
1
|
+
.header {
|
3
2
|
a {
|
4
3
|
font-weight: map-get($base, font-weight);
|
5
|
-
|
4
|
+
text-decoration: none;
|
5
|
+
@include link-colors($text-color, $main-color-1, $main-color-1);
|
6
6
|
}
|
7
|
-
|
7
|
+
& > .main > .logo {
|
8
8
|
float: left;
|
9
|
-
@include
|
9
|
+
@include menu(3, 0);
|
10
10
|
@include align-items(center);
|
11
11
|
height: map-get($layout, header-height);
|
12
|
-
|
12
|
+
& > svg {
|
13
13
|
margin-right: .8rem;
|
14
14
|
vertical-align: middle;
|
15
15
|
width: map-get($base, font-size-h4) * 1.6;
|
16
16
|
height: map-get($base, font-size-h4) * 1.6;
|
17
|
-
@include media-breakpoint-down(
|
17
|
+
@include media-breakpoint-down(md) {
|
18
18
|
margin-right: .5rem;
|
19
19
|
width: map-get($base, font-size-h4) * 1.2;
|
20
20
|
height: map-get($base, font-size-h4) * 1.2;
|
21
21
|
}
|
22
22
|
}
|
23
|
-
|
23
|
+
& > a {
|
24
24
|
display: inline-block;
|
25
25
|
font-size: map-get($base, font-size-h4);
|
26
|
-
@include media-breakpoint-down(
|
26
|
+
@include media-breakpoint-down(md) {
|
27
27
|
font-size: map-get($base, font-size-h4-small);
|
28
28
|
}
|
29
29
|
}
|
30
|
-
@include media-breakpoint-down(
|
30
|
+
@include media-breakpoint-down(md) {
|
31
31
|
float: none;
|
32
|
-
height: map-get($layout, header-height-
|
32
|
+
height: map-get($layout, header-height-sm);
|
33
33
|
}
|
34
34
|
}
|
35
|
-
|
35
|
+
& > .main > nav {
|
36
36
|
display: block;
|
37
37
|
float: right;
|
38
|
-
overflow-x: auto;
|
39
38
|
white-space: nowrap;
|
40
|
-
|
39
|
+
@include overflow(auto);
|
41
40
|
ul {
|
42
41
|
margin: 0;
|
43
|
-
@include
|
42
|
+
@include menu(3, 2, nowrap);
|
44
43
|
@include align-items(center);
|
45
44
|
height: map-get($layout, header-height);
|
46
|
-
@include media-breakpoint-down(
|
45
|
+
@include media-breakpoint-down(md) {
|
47
46
|
height: auto;
|
48
47
|
}
|
48
|
+
& > li {
|
49
|
+
@include split-line(bottom, 4px, transparent);
|
50
|
+
&.active {
|
51
|
+
@include split-line(bottom, 4px, $main-color-1);
|
52
|
+
a {
|
53
|
+
@include link-colors($main-color-1, $main-color-1, $main-color-1);
|
54
|
+
}
|
55
|
+
}
|
56
|
+
}
|
49
57
|
}
|
50
|
-
@include media-breakpoint-down(
|
58
|
+
@include media-breakpoint-down(md) {
|
51
59
|
float: none;
|
52
60
|
}
|
53
61
|
}
|
54
|
-
}
|
62
|
+
}
|
@@ -1,26 +1,2 @@
|
|
1
|
-
.
|
2
|
-
@include round-rect(1rem, .5rem 1rem);
|
3
|
-
@include box-shadow();
|
4
|
-
background-color: $text-background-color;
|
5
|
-
font-weight: map-get($base, font-weight-bold);
|
6
|
-
img {
|
7
|
-
vertical-align: bottom;
|
8
|
-
}
|
9
|
-
.url {
|
10
|
-
word-wrap: break-word;
|
11
|
-
}
|
12
|
-
.octocat {
|
13
|
-
float: right;
|
14
|
-
img {
|
15
|
-
width: 4rem;
|
16
|
-
height: auto;
|
17
|
-
margin: 0 1rem;
|
18
|
-
border-width: 0;
|
19
|
-
border-radius: 2rem;
|
20
|
-
}
|
21
|
-
}
|
22
|
-
.license {
|
23
|
-
float: right;
|
24
|
-
margin-left: 1rem;
|
25
|
-
}
|
1
|
+
.license {
|
26
2
|
}
|