Skip to content

Commit

Permalink
feat: 404 layout and search panel style optimized
Browse files Browse the repository at this point in the history
  • Loading branch information
kitian616 committed Oct 16, 2018
1 parent e9bd7c2 commit 6dc85e5
Show file tree
Hide file tree
Showing 8 changed files with 23 additions and 7 deletions.
1 change: 1 addition & 0 deletions README-zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ TeXt 是针对个人或团队网站、博客、项目、文档等的一款高度
- 流程图, 序列图,甘特图([mermaid](https://mermaidjs.github.io/)
- 柱状图,折线图,饼图,雷达图([chartjs](http://www.chartjs.org/)
- 阅读次数统计([LeanCloud](https://leancloud.cn/)
- 分享([AddToAny](https://www.addtoany.com/)
- 评论([Disqus](https://disqus.com/), [gitalk](https://gitalk.github.io/)
- Google Analytics

Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ TeXt is a super customizable Jekyll theme for personal site, team site, blog, pr
- Flowchart, Sequence diagram, Gantt diagram ([mermaid](https://mermaidjs.github.io/))
- Line Chart, Bar Chart, Radar Chart, Pie Chart ([chartjs](http://www.chartjs.org/))
- Page views ([LeanCloud](https://leancloud.cn/))
- Share ([AddToAny](https://www.addtoany.com/))
- Comments ([Disqus](https://disqus.com/))
- Google Analytics

Expand Down
3 changes: 2 additions & 1 deletion _layouts/404.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,9 @@
show_title: false
---
<div class="layout--404">
<div class="main">
<div class="sign">
<h1>404</h1>
<p>Page not found :(</p>
</div>
</div>

Expand Down
3 changes: 2 additions & 1 deletion _sass/common/_variables.scss
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,8 @@ $responsive: (
);

$animation: (
duration: .6s,
duration: .4s,
duration-sm: .2s,
timing-function: ease-in-out
);

Expand Down
4 changes: 4 additions & 0 deletions _sass/components/_search.scss
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@
list-style-type: none;
a {
padding: .4rem 1rem;
@include transition(none);
@include clickable($text-color, transparent, $text-color-3, $main-color-3);
.search--light & {
@include clickable($text-color-theme-light, transparent, $text-color-3, $main-color-3);
Expand All @@ -111,6 +112,9 @@
color: $text-color-3;
background-color: $main-color-3;
}
@include active() {
@include transition(map-get($link, transition));
}
}
}
}
Expand Down
15 changes: 11 additions & 4 deletions _sass/layout/_404.scss
Original file line number Diff line number Diff line change
@@ -1,7 +1,14 @@
.layout--404 {
@include flexbox;
@include align-items(center);
& > .main > h1 {
font-size: 7rem;
.sign {
display: table;
margin: map-get($base, vertical-space-lg) auto;
margin-top: map-get($base, vertical-space-lg) * 2;
h1 {
font-size: map-get($base, font-size-xl) * 4;
line-height: 1;
}
p {
font-size: map-get($base, font-size-xl) * 1.2;
}
}
}
2 changes: 1 addition & 1 deletion _sass/layout/_page.scss
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
height: 100%;
background-color: $background-color;
@include split-line(right);
@include transition(transform .4s);
@include transition(transform map-get($animation, duration));
@include overflow(auto);
.sidebar-toc {
padding: map-get($spacers, 3) map-get($spacers, 3) map-get($spacers, 4) map-get($spacers, 4);
Expand Down
1 change: 1 addition & 0 deletions about.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ TeXt is a super customizable Jekyll theme for personal site, team site, blog, pr
- Flowchart, Sequence diagram, Gantt diagram ([mermaid](https://mermaidjs.github.io/))
- Line Chart, Bar Chart, Radar Chart, Pie Chart ([chartjs](http://www.chartjs.org/))
- Page views ([LeanCloud](https://leancloud.cn/))
- Share ([AddToAny](https://www.addtoany.com/))
- Comments ([Disqus](https://disqus.com/))
- Google Analytics

Expand Down

0 comments on commit 6dc85e5

Please sign in to comment.