Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
知鸟1号
tabler
提交
62fd5ab8
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,发现更多精彩内容 >>
提交
62fd5ab8
编写于
12月 25, 2019
作者:
C
codecalm
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
sidebar menu 3rd level
上级
61e7a5e0
变更
6
隐藏空白更改
内联
并排
Showing
6 changed file
with
41 addition
and
13 deletion
+41
-13
pages/_data/menu.yml
pages/_data/menu.yml
+10
-0
pages/_includes/layout/homepage.html
pages/_includes/layout/homepage.html
+0
-8
pages/_includes/layout/menu-aside.html
pages/_includes/layout/menu-aside.html
+25
-5
pages/invoice.html
pages/invoice.html
+1
-0
pages/tmp.html
pages/tmp.html
+1
-0
scss/layout/_layout.scss
scss/layout/_layout.scss
+4
-0
未找到文件。
pages/_data/menu.yml
浏览文件 @
62fd5ab8
...
...
@@ -72,6 +72,16 @@ charts:
title
:
Charts
icon
:
pie-chart
a
:
title
:
A
icon
:
menu
children
:
b
:
title
:
B
children
:
c
:
title
:
C
url
:
tmp.html
layouts
:
title
:
Layouts
...
...
pages/_includes/layout/homepage.html
浏览文件 @
62fd5ab8
...
...
@@ -63,14 +63,6 @@
<div
class=
"col-sm-6 col-xl-3"
>
{% include cards/small-stats.html color="yellow" chart-type="pie" chart-data="22/100" color="yellow" count="132" subtitle="Comments" description="16 waiting" %}
</div>
</div>
<div
class=
"row row-deck"
>
{% for article in site.data.articles limit: 3 offset: 4 %}
<div
class=
"col-lg"
>
{% include cards/blog-single.html article=article type="image" %}
</div>
{% endfor %}
<div
class=
"col-12"
>
{% include cards/invoices.html %}
...
...
pages/_includes/layout/menu-aside.html
浏览文件 @
62fd5ab8
...
...
@@ -5,7 +5,7 @@
{% for level-1 in site.data.menu %}
<li
class=
"sidebar-nav-item"
>
<a
{%
unless
level-1
[1].
children
%}
href=
"{{ site.base }}/{{ level-1[1].url }}"
{%
endunless
%}
class=
"sidebar-nav-link{% if level-1[0] == current-page[0] and current-page.size == 1 %} active{% endif %}"
{%
if
level-1
[1].
children
%}
data-toggle=
"collapse"
data-target=
"#sidebar-menu-{{ level-1[0] }}"
{%
if
level-1[0] =
=
current-page
[0]
%}
aria-expanded=
"true"
{%
endif
%}{%
endif
%}
>
<a
{%
unless
level-1
[1].
children
%}
href=
"{{ site.base }}/{{ level-1[1].url }}"
{%
endunless
%}
class=
"sidebar-nav-link{% if level-1[0] == current-page[0] and current-page.size == 1 %} active{% endif %}"
{%
if
level-1
[1].
children
%}
data-toggle=
"collapse"
data-target=
"#sidebar-menu-{{ level-1[0] }}"
{%
if
level-1[0] =
=
current-page
[0]
%}
aria-expanded=
"true"
{%
endif
%}{%
endif
%}
>
{% if level-1[1].icon %}
{% assign icon = level-1[1].icon %}
{% include ui/icon.html icon=icon class="nav-icon" %}
...
...
@@ -19,22 +19,42 @@
{% include ui/badge.html text=badge color=badge-color %}
{% endif %}
{% if level-1[1].children %}
<span
class=
"sidebar-nav-arrow"
></span>
{% endif %}
{% if level-1[1].children %}
<span
class=
"sidebar-nav-arrow"
></span>
{% endif %}
</a>
{% if level-1[1].children %}
<ul
class=
"sidebar-subnav collapse{% if level-1[0] == current-page[0] %} show{% endif %}"
id=
"sidebar-menu-{{ level-1[0] }}"
>
{% for level-2 in level-1[1].children %}
<li
class=
"sidebar-nav-item"
>
<a
href=
"{{ site.base }}/{{ level-2[1].url }}"
class=
"sidebar-nav-link{% if level-1[0] == current-page[0] and level-2[0] == current-page[1] and current-page.size == 2 %} active{% endif %}"
>
<a
{%
unless
level-2
[1].
children
%}
href=
"{{ site.base }}/{{ level-2[1].url }}"
{%
endunless
%}
class=
"sidebar-nav-link{% 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
%}
data-toggle=
"collapse"
data-target=
"#sidebar-menu-{{ level-2[0] }}"
{%
if
level-1[0] =
=
current-page
[0]
and
level-2[0] =
=
current-page
[1]
%}
aria-expanded=
"true"
{%
endif
%}{%
endif
%}
>
<span>
{{ level-2[1].title }}
</span>
{% if level-2[1].badge %}
{% assign badge = level-2[1].badge %}
{% include ui/badge.html text=badge color="green" %}
{% endif %}
{% if level-2[1].children %}
<span
class=
"sidebar-nav-arrow"
></span>
{% endif %}
</a>
{% if level-2[1].children %}
<ul
class=
"sidebar-subnav collapse{% if level-1[0] == current-page[0] and level-2[0] == current-page[1] %} show{% endif %}"
id=
"sidebar-menu-{{ level-2[0] }}"
>
{% for level-3 in level-2[1].children %}
<li
class=
"sidebar-nav-item"
>
<a
href=
"{{ site.base }}/{{ level-3[1].url }}"
class=
"sidebar-nav-link{% if level-1[0] == current-page[0] and level-2[0] == current-page[1] and level-3[0] == current-page[2] and current-page.size == 3 %} active{% endif %}"
>
<span>
{{ level-3[1].title }}
</span>
{% if level-3[1].badge %}
{% assign badge = level-3[1].badge %}
{% include ui/badge.html text=badge color="green" %}
{% endif %}
</a>
</li>
{% endfor %}
</ul>
{% endif %}
</li>
{% endfor %}
</ul>
...
...
pages/invoice.html
浏览文件 @
62fd5ab8
---
title: Invoice
layout: default
menu: extra.invoice
---
{% include cards/invoice.html %}
pages/tmp.html
浏览文件 @
62fd5ab8
---
tmp: true
menu: a.b.c
---
<div
class=
"row"
>
...
...
scss/layout/_layout.scss
浏览文件 @
62fd5ab8
...
...
@@ -367,6 +367,10 @@ Sidebar menu
margin-left
:
auto
;
@include
caret
(
right
);
&
:after
{
transition
:
.3s
transform
;
}
.sidebar-nav-link
[
aria-expanded
=
"true"
]
&
:after
{
transform
:
rotate
(
-45deg
);
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录