Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
知鸟1号
tabler
提交
60169a73
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,发现更多精彩内容 >>
提交
60169a73
编写于
1月 14, 2020
作者:
C
codecalm
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
top navigation fixes
上级
65111700
变更
8
隐藏空白更改
内联
并排
Showing
8 changed file
with
29 addition
and
12 deletion
+29
-12
pages/_includes/layout/navbar.html
pages/_includes/layout/navbar.html
+2
-2
pages/_includes/layout/topmenu.html
pages/_includes/layout/topmenu.html
+1
-1
pages/_includes/layout/topnav.html
pages/_includes/layout/topnav.html
+3
-3
pages/layout-dark-navigation.html
pages/layout-dark-navigation.html
+1
-0
pages/layout-dark-topnav.html
pages/layout-dark-topnav.html
+1
-0
pages/tmp-dark.html
pages/tmp-dark.html
+0
-1
pages/tmp.html
pages/tmp.html
+0
-1
scss/layout/_layout.scss
scss/layout/_layout.scss
+21
-4
未找到文件。
pages/_includes/layout/navbar.html
浏览文件 @
60169a73
...
...
@@ -4,12 +4,12 @@
{% if page.sidebar %}
{% include layout/navbar-search.html class="mr-4" %}
{% else %}
{% include layout/navbar-logo.html class="mr-4" %}
{% include layout/navbar-logo.html class="mr-4"
dark=include.dark
%}
{% endif %}
<ul
class=
"nav navbar-menu align-items-center ml-auto"
>
<li
class=
"nav-item d-none d-lg-flex mr-3"
>
{% include ui/button.html href=site.github_url text="Source code" icon="brand/github"
icon-color="github"
external=true %}
{% include ui/button.html href=site.github_url text="Source code" icon="brand/github" external=true %}
</li>
<li
class=
"nav-item dropdown"
>
...
...
pages/_includes/layout/topmenu.html
浏览文件 @
60169a73
<header
class=
"topnav"
>
<div
class=
"navbar navbar-expand-lg {% if
include.dark %}navbar-dark
{% else %}navbar-light{% endif %}"
>
<div
class=
"navbar navbar-expand-lg {% if
page.topmenu-dark %}navbar-dark bg-dark text-white
{% else %}navbar-light{% endif %}"
>
<div
class=
"container{% if include.fluid %}-fluid{% endif %}"
>
{% include layout/menu.html top=true %}
...
...
pages/_includes/layout/topnav.html
浏览文件 @
60169a73
<header
class=
"topnav"
>
<div
class=
"
container{% if include.fluid %}-fluid
{% endif %}"
>
<div
class=
"
navbar navbar-expand-lg {% if include.dark %}navbar-dark bg-dark text-white{% else %}navbar-light{% endif %}{% if include.sticky %} navbar-sticky
{% endif %}"
>
{% include layout/navbar.html
search=true
menu-layout=page.menu-layout %}
<div
class=
"
navbar navbar-expand-lg {% if page.topnav-dark %}navbar-dark bg-dark text-white{% else %}navbar-light{% endif %}{% if include.sticky %} navbar-sticky
{% endif %}"
>
<div
class=
"
container{% if include.fluid %}-fluid
{% endif %}"
>
{% include layout/navbar.html
dark=page.topnav-dark
menu-layout=page.menu-layout %}
</div>
</div>
</header>
...
...
pages/layout-dark-navigation.html
浏览文件 @
60169a73
---
page-title: Page Layouts
menu: layouts
topmenu-dark: true
---
{% include layout/layouts.html %}
pages/layout-dark-topnav.html
浏览文件 @
60169a73
---
page-title: Page Layouts
menu: layouts
topnav-dark: true
---
{% include layout/layouts.html %}
pages/tmp-dark.html
浏览文件 @
60169a73
---
tmp: true
page-title: Dark
---
...
...
pages/tmp.html
浏览文件 @
60169a73
---
tmp: true
menu: a.b.c
---
...
...
scss/layout/_layout.scss
浏览文件 @
60169a73
...
...
@@ -123,16 +123,14 @@ $sidenav-folded-item-height: 3.5rem;
Top nav
*/
.topnav
{
border-bottom
:
1px
solid
;
background-color
:
$navbar-bg
;
border-color
:
$navbar-border-color
;
position
:
absolute
;
top
:
0
;
right
:
0
;
left
:
0
;
padding
:
0
.5rem
;
z-index
:
$zindex-sticky
;
min-height
:
$navbar-height
;
box-shadow
:
inset
0
-1px
0
0px
$navbar-border-color
;
user-select
:
none
;
&
+
&
{
...
...
@@ -166,7 +164,7 @@ Top nav
&
:after
{
content
:
''
;
position
:
absolute
;
bottom
:
-1px
;
bottom
:
0
;
left
:
2px
;
right
:
2px
;
border-bottom
:
1px
solid
$primary
;
...
...
@@ -439,3 +437,22 @@ Sidebar dark
@include
scrollbar
(
true
);
}
}
/**
Right sidebar
*/
.sidebar-right
{
left
:
auto
;
right
:
0
;
box-shadow
:
inset
1px
0
$sidenav-border-color
;
+
.content
{
margin-left
:
0
;
margin-right
:
$sidenav-width
;
.topnav
{
left
:
0
;
right
:
$sidenav-width
;
}
}
}
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录