Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
知鸟1号
tabler
提交
1217bd73
T
tabler
项目概览
知鸟1号
/
tabler
与 Fork 源项目一致
从无法访问的项目Fork
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
T
tabler
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
1217bd73
编写于
3月 21, 2021
作者:
C
codecalm
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
page container optimize
上级
c7cba005
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
31 addition
and
24 deletion
+31
-24
src/pages/_layouts/default.html
src/pages/_layouts/default.html
+13
-6
src/scss/_variables.scss
src/scss/_variables.scss
+1
-0
src/scss/layout/_footer.scss
src/scss/layout/_footer.scss
+2
-5
src/scss/layout/_page.scss
src/scss/layout/_page.scss
+15
-13
未找到文件。
src/pages/_layouts/default.html
浏览文件 @
1217bd73
...
...
@@ -4,7 +4,7 @@ layout: base
{% assign no-container = page.no-container | default: layout.no-container %}
<div
class=
"
page
"
>
<div
class=
"
wrapper
"
>
{% if page.layout-sidebar %}
{% include layout/sidebar.html dark=page.layout-sidebar-dark right=page.layout-sidebar-right transparent=page.layout-navbar-transparent breakpoint="lg" %}
{% endif %}
...
...
@@ -15,20 +15,27 @@ layout: base
<div
class=
"content{% if page.layout-content-full %} content-full{% endif %}"
>
{% if page.layout-content-full %}
<div
class=
"container"
>
{% include layout/page-header.html %}
</div>
<div
class=
"page-body"
>
{% if page.layout-content-full %}
{{ content }}
{% else %}
{% else %}
{% unless no-container %}
<div
class=
"container{% if page.layout-fluid %}-fluid{% else %}-xl{% endif %}{% if page.container-centered %} d-flex flex-column justify-content-center{% endif %}"
>
{% endunless %}
{% include layout/page-header.html %}
{{ content }}
{% unless no-container %}
</div>
{% endunless %}
{% include layout/footer.html %}
{% endif %}
{% endif %}
</div>
{% include layout/footer.html %}
</div>
</div>
src/scss/_variables.scss
浏览文件 @
1217bd73
...
...
@@ -471,6 +471,7 @@ $sidebar-width: 15rem !default;
$popover-border-color
:
$border-color
!
default
;
//footer
$footer-padding-y
:
2rem
!
default
;
$footer-bg
:
$white
!
default
;
$footer-border-color
:
$border-color
!
default
;
$footer-border-color
:
$border-color
!
default
;
...
...
src/scss/layout/_footer.scss
浏览文件 @
1217bd73
.footer
{
border-top
:
1px
solid
$footer-border-color
;
background-color
:
$footer-bg
;
padding
:
2rem
0
;
padding
:
$footer-padding-y
0
;
color
:
$text-muted
;
margin-bottom
:
(
-
$content-padding-y
);
margin-top
:
$content-padding-y
;
margin-top
:
auto
;
}
.footer-transparent
{
margin-top
:
0
;
background-color
:
transparent
;
border-top
:
0
;
}
\ No newline at end of file
src/scss/layout/_page.scss
浏览文件 @
1217bd73
...
...
@@ -10,21 +10,29 @@
}
.content
{
margin-top
:
$content-padding-y
;
margin-bottom
:
$content-padding-y
;
flex
:
1
;
display
:
flex
;
flex-direction
:
column
;
>[
class
^=
"container"
]
{
flex
:
1
;
}
@media
print
{
margin
:
0
!
important
;
}
}
// Content body
.page-body
{
margin-top
:
$content-padding-y
;
margin-bottom
:
0
;
}
.page-body-card
{
background
:
$card-bg
;
border-top
:
1px
solid
$card-border-color
;
padding
:
$content-padding-y
0
;
margin
:
0
;
flex
:
1
;
}
.content-cover
{
margin-top
:
-
$content-padding-y
;
margin-bottom
:
$content-padding-y
;
...
...
@@ -54,12 +62,6 @@
}
}
.content-white
{
background
:
$card-bg
;
border-top
:
1px
solid
$card-border-color
;
padding
:
$content-padding-y
0
;
}
.content-full
{
margin
:
0
;
}
...
...
@@ -69,7 +71,7 @@
flex-wrap
:
wrap
;
align-items
:
center
;
min-height
:
2
.25rem
;
margin
:
0
0
$content-padding-y
;
margin
:
$content-padding-y
0
0
;
>*
{
flex
:
1
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录