Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
知鸟1号
tabler
提交
2583d02b
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,发现更多精彩内容 >>
提交
2583d02b
编写于
1月 21, 2020
作者:
C
codecalm
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
topnav refactoring
上级
0abf8166
变更
5
显示空白变更内容
内联
并排
Showing
5 changed file
with
19 addition
and
30 deletion
+19
-30
pages/_includes/layout/topmenu.html
pages/_includes/layout/topmenu.html
+0
-12
pages/_includes/layout/topnav.html
pages/_includes/layout/topnav.html
+13
-2
pages/_layouts/default.html
pages/_layouts/default.html
+0
-4
pages/index.html
pages/index.html
+0
-2
scss/layout/_navbar.scss
scss/layout/_navbar.scss
+6
-10
未找到文件。
pages/_includes/layout/topmenu.html
已删除
100644 → 0
浏览文件 @
0abf8166
{% assign fixed = page.topnav-fixed %}
{% assign fixed = true %}
<nav
id=
"nav-main-menu"
class=
"navbar navbar-border fixed-top navbar-expand-lg {% if page.topmenu-dark %}navbar-dark bg-dark text-white{% else %}navbar-light bg-white{% endif %}{% if fixed %} fixed-top{% endif %}"
>
<div
class=
"container{% if include.fluid %}-fluid{% endif %}"
>
<div
class=
"collapse navbar-collapse"
>
{% include layout/menu.html top=true %}
{% include layout/navbar-search.html %}
</div>
</div>
</nav>
\ No newline at end of file
pages/_includes/layout/topnav.html
浏览文件 @
2583d02b
...
...
@@ -3,12 +3,12 @@
{% assign dark = page.topnav-dark %}
{% assign fixed = page.topnav-fixed %}
{% assign
fixed = true
%}
{% assign
breakpoint = 'lg'
%}
<header
class=
"navbar navbar-border {% if dark %}navbar-dark bg-dark text-white{% else %}navbar-light bg-white{% endif %}{% if fixed %} fixed-top{% endif %}"
>
<div
class=
"container{% if include.topnav-fluid %}-fluid{% endif %}"
>
<button
class=
"navbar-toggler mr-auto
hide-sidebar-visible
"
type=
"button"
data-toggle=
"collapse"
data-target=
"#nav-main-menu"
aria-expanded=
"false"
>
<button
class=
"navbar-toggler mr-auto
{% if page.sidebar %}hide-sidebar-visible{% else %}d-{{ breakpoint }}-none{% endif %}
"
type=
"button"
data-toggle=
"collapse"
data-target=
"#nav-main-menu"
aria-expanded=
"false"
>
<span
class=
"navbar-toggler-icon"
></span>
</button>
...
...
@@ -63,4 +63,15 @@
</div>
</header>
{% unless page.sidebar %}
<nav
id=
"nav-main-menu"
class=
"navbar navbar-border {% if page.topmenu-dark %}navbar-dark bg-dark text-white{% else %}navbar-light bg-white{% endif %}{% if fixed %} fixed-top{% endif %}"
>
<div
class=
"container{% if include.fluid %}-fluid{% endif %}"
>
<div
class=
"collapse navbar-collapse"
>
{% include layout/menu.html top=true %}
{% include layout/navbar-search.html %}
</div>
</div>
</nav>
{% endunless %}
pages/_layouts/default.html
浏览文件 @
2583d02b
...
...
@@ -10,10 +10,6 @@ layout: base
<div
class=
"content"
>
{% include layout/topnav.html %}
{% unless page.sidebar %}
{% include layout/topmenu.html %}
{% endunless %}
<div
class=
"content-page"
>
<main
class=
"container{% if page.container-size %}-{{ page.container-size }}{% endif %} my-4 flex-fill"
>
{% include layout/page-title.html %}
...
...
pages/index.html
浏览文件 @
2583d02b
...
...
@@ -3,8 +3,6 @@ title: Dashboard
page-title: Dashboard
page-pretitle: Overview
page-title-actions: buttons
sidebar: true
sidebar-dark: true
menu: home
---
...
...
scss/layout/_navbar.scss
浏览文件 @
2583d02b
...
...
@@ -9,19 +9,15 @@ Navbar
padding-top
:
$navbar-height
;
}
+
.navbar.fixed-top
{
top
:
$navbar-height
;
+
.content-page
{
padding-top
:
$navbar-height
*
2
;
+
.navbar
:not
(
.fixed-top
)
{
margin-top
:
$navbar-height
;
}
+
.navbar.fixed-top
{
top
:
$navbar-height
*
2
;
top
:
$navbar-height
;
+
.content-page
{
padding-top
:
$navbar-height
*
3
;
}
padding-top
:
$navbar-height
*
2
;
}
}
}
...
...
@@ -109,8 +105,8 @@ Navbar logo
}
.navbar-nav
{
margin-right
:
-
(
$navbar-padding-x
);
margin-left
:
-
(
$navbar-padding-x
);
margin-right
:
-
(
$navbar-
nav-link-
padding-x
);
margin-left
:
-
(
$navbar-
nav-link-
padding-x
);
.nav-link
{
padding-left
:
$navbar-nav-link-padding-x
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录