Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
知鸟1号
tabler
提交
391c12fb
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,发现更多精彩内容 >>
提交
391c12fb
编写于
1月 07, 2020
作者:
C
codecalm
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
top menu dropdowns
上级
446ef17b
变更
10
隐藏空白更改
内联
并排
Showing
10 changed file
with
81 addition
and
46 deletion
+81
-46
pages/_includes/layout/layouts-list.html
pages/_includes/layout/layouts-list.html
+1
-1
pages/_includes/layout/menu.html
pages/_includes/layout/menu.html
+12
-10
pages/_includes/layout/topmenu.html
pages/_includes/layout/topmenu.html
+1
-1
pages/_includes/layout/topnav.html
pages/_includes/layout/topnav.html
+1
-1
scss/_variables.scss
scss/_variables.scss
+5
-0
scss/layout/_layout.scss
scss/layout/_layout.scss
+39
-26
scss/layout/_navbar.scss
scss/layout/_navbar.scss
+13
-4
scss/ui/_cards.scss
scss/ui/_cards.scss
+1
-1
scss/ui/_dropdowns.scss
scss/ui/_dropdowns.scss
+7
-1
scss/ui/_lists.scss
scss/ui/_lists.scss
+1
-1
未找到文件。
pages/_includes/layout/layouts-list.html
浏览文件 @
391c12fb
...
...
@@ -3,7 +3,7 @@
<div
class=
"col-{% if include.wide %}12{% else %}6{% endif %} mb-{% if include.wide %}5{% else %}6{% endif %}{% if layout.soon %} opacity-25{% endif %}"
>
<div
class=
"row"
>
<div
class=
"col-auto"
>
<a
href=
"{{ site.base }}/{{ layout.page }}"
>
<a
href=
"{{ site.base }}/{{ layout.page }}"
class=
"position-relative"
>
{% include parts/demo-layout.html topmenu=layout.config.topmenu topmenu-dark=layout.config.topmenu-dark sidebar=layout.config.sidebar sidebar-narrow=layout.config.sidebar-narrow sidebar-right=layout.config.sidebar-right sidebar-dark=layout.config.sidebar-dark hide-topnav=layout.config.hide-topnav %}
</a>
</div>
...
...
pages/_includes/layout/menu.html
浏览文件 @
391c12fb
...
...
@@ -23,10 +23,10 @@
</a>
{% if level-1[1].children %}
<
div
class=
"dropdown-menu"
>
<
ul
class=
"dropdown-menu"
>
{% for level-2 in level-1[1].children %}
<
div
class=
"dropright"
>
<a
class=
"dropdown-item"
{%
if
level-2
[1].
children
%}
href=
"#sidebar-{{ level-2[0] }}"
data-toggle=
"dropdown"
role=
"button"
aria-expanded=
"false"
{%
else
%}
href=
"{{ site.base }}/{{ level-2[1].url }}"
{%
endif
%}
>
<
li
{%
if
level-2
[1].
children
%}
class=
"dropright"
{%
endif
%}
>
<a
class=
"dropdown-item
{% if level-2[1].children %} dropdown-toggle{% endif %}{% if level-1[0] == current-page[0] and level-2[0] == current-page[1] and current-page.size == 2 %} active{% endif %}
"
{%
if
level-2
[1].
children
%}
href=
"#sidebar-{{ level-2[0] }}"
data-toggle=
"dropdown"
role=
"button"
aria-expanded=
"false"
{%
else
%}
href=
"{{ site.base }}/{{ level-2[1].url }}"
{%
endif
%}
>
<span
class=
"nav-text"
>
{{ level-2[1].title }}
{% if level-2[1].label %}
...
...
@@ -34,15 +34,17 @@
{% endif %}
</span>
</a>
</div>
<ul
class=
"dropdown-menu"
>
<li><a
href=
""
>
AA
</a></li>
<li><a
href=
""
>
BB
</a></li>
<li><a
href=
""
>
CC
</a></li>
</ul>
{% if level-2[1].children %}
<div
class=
"dropdown-menu"
>
{% for level-3 in level-2[1].children %}
<a
href=
"{{ site.base }}/{{ level-3[1].url }}"
class=
"dropdown-item"
>
{{ level-3[1].title }}
</a>
{% endfor %}
</div>
{% endif %}
</li>
{% endfor %}
</
div
>
</
ul
>
{% endif %}
</li>
{% endfor %}
...
...
pages/_includes/layout/topmenu.html
浏览文件 @
391c12fb
<header
class=
"topnav
topbar
"
>
<header
class=
"topnav"
>
<div
class=
"navbar navbar-expand-lg {% if include.dark %}navbar-dark{% else %}navbar-light{% endif %}"
>
<div
class=
"container{% if include.fluid %}-fluid{% endif %}"
>
{% include layout/menu.html top=true %}
...
...
pages/_includes/layout/topnav.html
浏览文件 @
391c12fb
<header
class=
"topnav
topbar
"
>
<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 %}
...
...
scss/_variables.scss
浏览文件 @
391c12fb
...
...
@@ -49,6 +49,7 @@ $white: #ffffff !default;
$text-muted
:
$gray-700
!
default
;
$border-color
:
$gray-400
!
default
;
$hover-bg
:
$gray-200
!
default
;
$active-bg
:
rgba
(
$blue
,
.06
)
!
default
;
$primary
:
$blue
!
default
;
$secondary
:
$text-muted
!
default
;
...
...
@@ -231,6 +232,7 @@ $card-group-margin: 1.5rem !default;
$card-shadow
:
rgba
(
$dark
,
.04
)
0
2px
4px
0
!
default
;
$card-shadow-hover
:
rgba
(
$dark
,
.16
)
0
2px
16px
0
!
default
;
//close
$close-font-weight
:
400
!
default
;
$close-font-size
:
1
.5rem
!
default
;
...
...
@@ -244,6 +246,9 @@ $dropdown-link-hover-bg: $hover-bg !default;
$dropdown-link-hover-color
:
inherit
!
default
;
$dropdown-spacer
:
1px
!
default
;
$dropdown-link-active-color
:
$primary
!
default
;
$dropdown-link-active-bg
:
$active-bg
!
default
;
//grid
$grid-gutter-width
:
1
.5rem
!
default
;
...
...
scss/layout/_layout.scss
浏览文件 @
391c12fb
...
...
@@ -116,12 +116,27 @@ $sidenav-folded-item-height: 3.5rem;
/**
Topnav
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
;
&
+
&
{
top
:
add
(
$navbar-height
,
1px
);
}
&
+
&
+
&
{
top
:
add
(
$navbar-height
*
2
,
2px
);
}
@media
print
{
display
:
none
;
...
...
@@ -133,6 +148,25 @@ Topnav
min-height
:
$navbar-height
;
}
.nav-link
{
height
:
$navbar-height
;
}
.nav-item
{
&
.active
{
position
:
relative
;
&
:after
{
content
:
''
;
position
:
absolute
;
bottom
:
-1px
;
left
:
2px
;
right
:
2px
;
border-bottom
:
1px
solid
$primary
;
}
}
}
.navbar-brand-logo
{
&
-sm
{
display
:
none
;
...
...
@@ -148,27 +182,6 @@ Topnav
}
}
}
}
/**
Topbar
*/
.topbar
{
position
:
absolute
;
top
:
0
;
right
:
0
;
left
:
0
;
padding
:
0
.5rem
;
z-index
:
$zindex-sticky
;
min-height
:
$navbar-height
;
&
+
&
{
top
:
add
(
$navbar-height
,
1px
);
}
&
+
&
+
&
{
top
:
add
(
$navbar-height
*
2
,
2px
);
}
.sidebar
+
.content
&
{
left
:
$sidenav-width
;
...
...
@@ -186,7 +199,7 @@ Topbar
}
}
.top
bar
-fixed
{
.top
nav
-fixed
{
position
:
fixed
;
z-index
:
$zindex-fixed
;
}
...
...
@@ -235,15 +248,15 @@ Content
padding-top
:
0
!
important
;
}
.top
bar
+
&
{
.top
nav
+
&
{
padding-top
:
add
(
$navbar-height
,
1px
);
}
.top
bar
+
.topbar
+
&
{
.top
nav
+
.topnav
+
&
{
padding-top
:
add
(
$navbar-height
*
2
,
2px
);
}
.top
bar
+
.topbar
+
.topbar
+
&
{
.top
nav
+
.topnav
+
.topnav
+
&
{
padding-top
:
add
(
$navbar-height
*
3
,
3px
);
}
}
...
...
scss/layout/_navbar.scss
浏览文件 @
391c12fb
...
...
@@ -20,11 +20,20 @@ Navbar logo
padding-right
:
$navbar-nav-link-padding-x
;
}
.nav-item
{
.nav-item
:hover
,
.dropright
:hover
{
>
.dropdown-menu
{
display
:
block
;
}
}
.dropdown-menu
{
margin-top
:
0
;
&
:hover
{
.dropdown-menu
{
display
:
block
;
.dropdown
,
.dropright
{
.dropdown-toggle
:after
{
margin-left
:
auto
;
}
}
}
...
...
scss/ui/_cards.scss
浏览文件 @
391c12fb
...
...
@@ -77,7 +77,7 @@
&
:hover
{
text-decoration
:
none
;
background
:
rgba
(
$primary
,
.06
)
;
background
:
$active-bg
;
}
}
...
...
scss/ui/_dropdowns.scss
浏览文件 @
391c12fb
...
...
@@ -25,7 +25,6 @@
overflow-x
:
hidden
;
}
.dropdown-item
{
color
:
inherit
;
display
:
flex
;
...
...
@@ -60,3 +59,10 @@
}
}
}
.dropright
{
>
.dropdown-menu
{
margin-top
:
subtract
(
-
$dropdown-padding-y
,
1px
);
margin-left
:
0
;
}
}
scss/ui/_lists.scss
浏览文件 @
391c12fb
...
...
@@ -157,7 +157,7 @@
&
.active
{
font-weight
:
$font-weight-bold
;
color
:
inherit
;
background
:
rgba
(
$primary
,
.06
)
;
background
:
$active-bg
;
.icon
{
color
:
inherit
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录