Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
大白技术控
yanglr2010
提交
9c43f99e
Y
yanglr2010
项目概览
大白技术控
/
yanglr2010
通知
1
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
Y
yanglr2010
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
9c43f99e
编写于
9月 10, 2019
作者:
EvanOne(文一)
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
refactor: Optimize the display of ui
上级
9690018f
变更
14
隐藏空白更改
内联
并排
Showing
14 changed file
with
92 addition
and
79 deletion
+92
-79
layout/_layout.pug
layout/_layout.pug
+5
-5
layout/_third-party/pjax.pug
layout/_third-party/pjax.pug
+2
-0
layout/page.pug
layout/page.pug
+1
-6
source/css/_common/components/pages/page.styl
source/css/_common/components/pages/page.styl
+21
-17
source/css/_common/components/plugins/friends.styl
source/css/_common/components/plugins/friends.styl
+1
-1
source/css/_common/components/post/post-list.styl
source/css/_common/components/post/post-list.styl
+1
-3
source/css/_common/components/widgets/comments.styl
source/css/_common/components/widgets/comments.styl
+1
-1
source/css/_common/components/widgets/pagination.styl
source/css/_common/components/widgets/pagination.styl
+1
-1
source/css/_common/outline/macro.styl
source/css/_common/outline/macro.styl
+36
-37
source/css/_common/responsive.styl
source/css/_common/responsive.styl
+14
-3
source/css/_common/scaffolding/base.styl
source/css/_common/scaffolding/base.styl
+5
-1
source/js/scroll.js
source/js/scroll.js
+1
-1
source/js/sidebar.js
source/js/sidebar.js
+2
-2
source/js/utils.js
source/js/utils.js
+1
-1
未找到文件。
layout/_layout.pug
浏览文件 @
9c43f99e
...
...
@@ -19,17 +19,17 @@ html(lang=config.language)
main#main.main
div.main-inner
div#content
.content
div.content
-inner
(class=`${is_home() ? 'content-home' : ''}`)
div#content
-wrap.content-wrap
div.content(class=`${is_home() ? 'content-home' : ''}`)
block content
if page.comments
include ./_partials/widgets/comments.pug
aside#sidebar.sidebar
div.sidebar-inner
!= partial('./_partials/sidebar/sidebar.pug', null, { cache: theme.cache })
if page.comments
include ./_partials/widgets/comments.pug
div.clearfix
footer#footer.footer
...
...
layout/_third-party/pjax.pug
浏览文件 @
9c43f99e
...
...
@@ -46,6 +46,8 @@ script.
// 重置页面 Y 方向上的滚动偏移量
document.addEventListener('pjax:send', function () {
$('.header-nav-menu').removeClass('show');
$('html').velocity('scroll', {
duration: 500,
offset: $('#header').height(),
...
...
layout/page.pug
浏览文件 @
9c43f99e
...
...
@@ -17,13 +17,8 @@ block content
div.category-total= __("page.categories") + " - "
span= site.categories.length
!= list_categories()
else if (page.type === "about")
div.about
if page.photos && page.photos.length
+gallery(page)
!= page.content
else
div.custom
div.custom
-page
if page.photos && page.photos.length
+gallery(page)
!= page.content
source/css/_common/components/pages/page.styl
浏览文件 @
9c43f99e
.archive {
position: relative;
margin: 0 0 0 1rem;
&::before {
content: '';
position: absolute;
top: $font-size-main;
bottom: $font-size-main;
left: 0;
border-left: .3rem dashed $post-timeline-line-color;
transform: translateX(-50%);
}
margin-left: 1rem;
&-total {
position: relative;
margin-bottom: 1.5rem;
padding-left: 1.5rem;
font-size: 1.2em;
padding: 0 0 1.5rem 1.5rem;
font-size: calc(1em + 2px);
&::before {
content: '';
position: absolute;
top:
50%
;
top:
1em
;
left: 0;
z-index: $z-index0;
border: .2rem solid $post-timeline-dot-color;
...
...
@@ -32,6 +20,16 @@
transform: translate(-50%, -50%);
}
&::after {
content: '';
position: absolute;
top: 1em;
bottom: 0;
left: 0;
border-left: .3rem dashed $post-timeline-line-color;
transform: translateX(-50%);
}
&:hover {
&::before {
border-color: $post-timeline-dot-hover-color;
...
...
@@ -40,10 +38,16 @@
}
}
.custom-page {
width: 100%;
}
.tagcloud,
.category {
width: 100%;
&-total {
font-size:
$font-size-base + 10px
;
font-size:
calc(1em + 10px)
;
text-align: center;
cursor: default;
}
...
...
source/css/_common/components/plugins/friends.styl
浏览文件 @
9c43f99e
...
...
@@ -5,7 +5,7 @@
&__item {
display: block;
float: left;
padding: .5rem;
padding: .5rem
1rem
;
width: 50%;
height: 100px;
transition: background-color .3s;
...
...
source/css/_common/components/post/post-list.styl
浏览文件 @
9c43f99e
...
...
@@ -3,10 +3,8 @@
.post-list {
.post {
margin: 0 0 1.5rem;
border-radius: 5px;
padding: 1.5rem 2rem;
width: 100%;
background-color: $white
;
layout-card()
;
&-body {
&-more {
...
...
source/css/_common/components/widgets/comments.styl
浏览文件 @
9c43f99e
if (hexo-config('gitalk.enable') || hexo-config('valine.enable') || hexo-config('livere.enable') || hexo-config('disqus.enable')) {
.comments {
margin: 1.5rem 0 0;
width:
$content-width
;
width:
100%
;
layout-card();
if (hexo-config('sidebar.position') == 'left') {
...
...
source/css/_common/components/widgets/pagination.styl
浏览文件 @
9c43f99e
...
...
@@ -2,10 +2,10 @@
margin-top: 1.5em;
border-radius: 5px;
text-align: center;
background-color: $white;
&-inner {
padding: .8em 0;
background-color: $white;
}
.space,
...
...
source/css/_common/outline/macro.styl
浏览文件 @
9c43f99e
...
...
@@ -39,7 +39,7 @@ if (hexo-config('sidebar.enable')) {
}
}
.content {
.content
-wrap
{
width: 'calc(100% - %s)' % ($sidebar-width + $main-sidebar-gap);
if (hexo-config('sidebar.position') == 'left') {
...
...
@@ -47,51 +47,50 @@ if (hexo-config('sidebar.enable')) {
} else if (hexo-config('sidebar.position') == 'right') {
float: left;
}
}
&-inner {
width: 100%;
height: 100%;
layout-card();
.content {
width: 100%;
layout-card();
img {
border: 1px solid $img-border-color;
border-radius: 3px;
padding: .2rem;
}
img {
border: 1px solid $img-border-color;
border-radius: 3px;
padding: .2rem;
}
.post-body {
if (hexo-config('heading_line')) {
h1,
h2 {
border-bottom: 1px solid $heading-line-color;
padding-bottom: .3em;
}
.post-body {
if (hexo-config('heading_line')) {
h1,
h2 {
border-bottom: 1px solid $heading-line-color;
padding-bottom: .3em;
}
}
}
.table-container {
overflow: auto;
margin-bottom: 1rem;
}
.table-container {
overflow: auto;
margin-bottom: 1rem;
}
.heading-link {
color: $heading-color;
cursor: pointer;
.heading-link {
color: $heading-color;
cursor: pointer;
&::after {
content: $icon-heading-link;
margin-left: .3em;
color: $heading-logo-color;
opacity: 0;
transition-property: opacity;
transition-ease();
fontawesome-base();
}
&:hover {
&::after {
content: $icon-heading-link;
margin-left: .3em;
color: $heading-logo-color;
opacity: 0;
transition-property: opacity;
transition-ease();
fontawesome-base();
}
&:hover {
&::after {
opacity: 1;
}
opacity: 1;
}
}
}
...
...
source/css/_common/responsive.styl
浏览文件 @
9c43f99e
...
...
@@ -28,7 +28,7 @@
margin: 1rem 0;
}
.content {
.content
-wrap
{
width: 100%;
}
...
...
@@ -129,13 +129,24 @@
width: 100%;
}
.content-inner {
.content,
.comments {
padding: .6rem .8rem;
font-size: $font-size-base;
}
.archive {
margin-left: .5rem;
&-total {
padding-left: 1rem;
}
}
.post-timeline {
&-item {
padding-left: 1rem;
}
}
.header-nav-search {
...
...
@@ -160,7 +171,7 @@
}
.friends-plugin {
.friends-
item {
&__
item {
margin: 0;
padding: .5rem 1rem;
width: 100%;
...
...
source/css/_common/scaffolding/base.styl
浏览文件 @
9c43f99e
...
...
@@ -32,7 +32,7 @@ h5,
h6 {
padding: 0;
font-family: $font-family-heading;
font-weight: $font-weight-bold;
font-weight: $font-weight-bold
er
;
line-height: $line-height-heading;
}
...
...
@@ -58,6 +58,10 @@ a {
}
}
ul {
padding-left: 1.5em;
}
img,
video,
iframe {
...
...
source/js/scroll.js
浏览文件 @
9c43f99e
...
...
@@ -89,7 +89,7 @@ $(document).ready(function () {
Stun
.
utils
.
pjaxReloadScroll
=
function
()
{
// Click the heading.
$
(
'
#content
'
)
$
(
'
#content
-wrap
'
)
.
find
(
'
h1,h2,h3,h4,h5,h6
'
)
.
on
(
'
click
'
,
function
()
{
scrollHeadingToTop
(
'
#
'
+
$
(
this
).
attr
(
'
id
'
));
...
...
source/js/sidebar.js
浏览文件 @
9c43f99e
...
...
@@ -103,7 +103,7 @@ $(document).ready(function () {
// Update the reading progress lines of post.
function
readProgress
()
{
var
$post
=
$
(
'
#content
'
);
var
$post
=
$
(
'
#content
-wrap
'
);
var
scrollH
=
(
$post
[
0
]
&&
$post
[
0
].
getBoundingClientRect
().
top
*
-
1
)
||
0
;
...
...
@@ -138,7 +138,7 @@ $(document).ready(function () {
var
$navOv
=
$
(
'
.sidebar-nav-ov
'
);
var
$tocWrap
=
$
(
'
.sidebar-toc
'
);
var
$overview
=
$
(
'
.sidebar-ov
'
);
$navToc
.
on
(
'
click
'
,
function
()
{
if
(
$
(
this
).
hasClass
(
'
current
'
))
return
;
...
...
source/js/utils.js
浏览文件 @
9c43f99e
...
...
@@ -304,7 +304,7 @@ Stun.utils = Stun.$u = {
},
// Click to zoom in image, without fancybox.
registerClickToZoomImage
:
function
()
{
$
(
'
#content img
'
).
not
(
'
:hidden
'
).
each
(
function
()
{
$
(
'
#content
-wrap
img
'
).
not
(
'
:hidden
'
).
each
(
function
()
{
$
(
this
).
addClass
(
'
zoom-image
'
);
});
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录