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