Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
知鸟1号
tabler
提交
dcf8f787
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,发现更多精彩内容 >>
提交
dcf8f787
编写于
6月 01, 2019
作者:
C
chomik
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
top menu
上级
285985b5
变更
7
显示空白变更内容
内联
并排
Showing
7 changed file
with
29 addition
and
75 deletion
+29
-75
_config.yml
_config.yml
+1
-0
pages/_includes/layout/menu.html
pages/_includes/layout/menu.html
+6
-4
pages/_includes/layout/topnav.html
pages/_includes/layout/topnav.html
+1
-3
pages/_layouts/error.html
pages/_layouts/error.html
+3
-3
pages/badges.html
pages/badges.html
+0
-65
scss/_variables.scss
scss/_variables.scss
+2
-0
scss/layout/_navbar.scss
scss/layout/_navbar.scss
+16
-0
未找到文件。
_config.yml
浏览文件 @
dcf8f787
...
...
@@ -52,6 +52,7 @@ defaults:
type
:
docs
values
:
layout
:
docs
nav-position
:
top
colors
:
...
...
pages/_includes/layout/menu.html
浏览文件 @
dcf8f787
...
...
@@ -9,14 +9,16 @@
<span
class=
"nav-link-title"
>
{{ level-1[1].title }}
{% unless include.top %}
{% if level-1[1].label %}
<span
class=
"badge bg-{{ level-1[1].label-color | default: 'primary' }} text-white ml-auto"
>
{{ level-1[1].label }}
</span>
{% endif %}
{% endunless %}
</span>
</a>
{% if level-1[1].children or level-1[1].docs %}
<div
class=
"collapse
navbar-collapse
{% if level-1[0] == current-page[0] %} show{% endif %}"
id=
"sidebar-{{ level-1[0] }}"
>
<ul
class=
"nav
nav-sm flex-column
"
>
<div
class=
"collapse{% if level-1[0] == current-page[0] %} show{% endif %}"
id=
"sidebar-{{ level-1[0] }}"
>
<ul
class=
"nav"
>
{% if level-1[1].docs %}
{% for d in site.data.docs %}
...
...
@@ -48,7 +50,7 @@
</span>
</a>
{% if level-2[1].children %}
<div
class=
"collapse
navbar-collapse
{% if level-2[0] == current-page[1] %} show{% endif %}"
id=
"sidebar-{{ level-2[0] }}"
>
<div
class=
"collapse{% if level-2[0] == current-page[1] %} show{% endif %}"
id=
"sidebar-{{ level-2[0] }}"
>
<ul
class=
"nav nav-sm flex-column"
>
{% for level-3 in level-2[1].children %}
<li
class=
"nav-item"
>
...
...
@@ -62,7 +64,7 @@
</a>
{% if level-3[1].children %}
<div
class=
"collapse
navbar-collapse
{% if level-3[0] == current-page[2] %} show{% endif %}"
id=
"sidebar-{{ level-3[0] }}"
>
<div
class=
"collapse{% if level-3[0] == current-page[2] %} show{% endif %}"
id=
"sidebar-{{ level-3[0] }}"
>
<ul
class=
"nav nav-sm flex-column"
>
{% for level-4 in level-3[1].children %}
<li
class=
"nav-item"
>
...
...
pages/_includes/layout/topnav.html
浏览文件 @
dcf8f787
...
...
@@ -2,12 +2,10 @@
{% include parts/navbar.html logo=true search=true user-menu=1 person=5 white-logo=include.dark %}
</header>
{% comment %}
{% if page.nav-position == "top" or page.nav-position == "all" %}
<header
class=
"navbar navbar-expand-md"
>
<div
class=
"container"
>
{% include layout/menu.html %}
{% include layout/menu.html
top=true
%}
</div>
</header>
{% endif %}
{% endcomment %}
pages/_layouts/error.html
浏览文件 @
dcf8f787
...
...
@@ -8,13 +8,13 @@ body-class: border-top-2 border-primary
<div
class=
"text-center p-4"
>
{% if page.error == 'maintenance' %}
<div
class=
"display-
3
text-muted mb-3"
>
{% include ui/icon.html icon="settings" class="icon-thin" %}
</div>
<div
class=
"display-
2
text-muted mb-3"
>
{% include ui/icon.html icon="settings" class="icon-thin" %}
</div>
<h1
class=
"h2 mb-3"
>
{{ error }}
</h1>
<p
class=
"h4 text-muted font-weight-normal mb-5"
>
We’ll be back shortly!
</p>
{% else %}
<div
class=
"display-
3
text-muted mb-3"
>
{{ page.error }}
</div>
<div
class=
"display-
2
text-muted mb-3"
>
{{ page.error }}
</div>
<h1
class=
"h2 mb-3
font-weight-bolder
"
>
Oops
…
You just found an error page 😭
</h1>
<h1
class=
"h2 mb-3"
>
Oops
…
You just found an error page 😭
</h1>
<p
class=
"h4 text-muted font-weight-normal mb-5"
>
{{ error }}
</p>
<a
class=
"btn btn-primary"
href=
"javascript:history.back()"
>
...
...
pages/badges.html
已删除
100644 → 0
浏览文件 @
285985b5
---
title: Badges
page-title: Badges
done: true
---
<div
class=
"row"
>
<div
class=
"col-md-6"
>
<div
class=
"card"
>
<div
class=
"card-header"
>
<div
class=
"card-title"
>
Standard badges
</div>
</div>
<div
class=
"card-body"
>
<p>
{% for variant in site.variants %}
<span
class=
"badge badge-{{ variant }}"
>
{{ variant }}
</span>
{% endfor %}
</p>
<p>
{% for color in site.colors %}
<span
class=
"badge badge-{{ color[0] }}"
>
{{ color[0] }}
</span>
{% endfor %}
</p>
</div>
</div>
</div>
<div
class=
"col-md-6"
>
<div
class=
"card"
>
<div
class=
"card-header"
>
<div
class=
"card-title"
>
Light badges
</div>
</div>
<div
class=
"card-body"
>
<p>
{% for variant in site.variants %}
<span
class=
"badge badge-{{ variant }}-lt"
>
{{ variant }}
</span>
{% endfor %}
</p>
<p>
{% for color in site.colors %}
<span
class=
"badge badge-{{ color[0] }}-lt"
>
{{ color[0] }}
</span>
{% endfor %}
</p>
</div>
</div>
</div>
<div
class=
"col-md-6"
>
<div
class=
"card"
>
<div
class=
"card-header"
>
<div
class=
"card-title"
>
Bordered badges
</div>
</div>
<div
class=
"card-body"
>
<p>
{% for variant in site.variants %}
<span
class=
"badge badge-{{ variant }} badge-outline"
>
{{ variant }}
</span>
{% endfor %}
</p>
<p>
{% for color in site.colors %}
<span
class=
"badge badge-{{ color[0] }} badge-outline"
>
{{ color[0] }}
</span>
{% endfor %}
</p>
</div>
</div>
</div>
</div>
scss/_variables.scss
浏览文件 @
dcf8f787
...
...
@@ -241,6 +241,8 @@ $sidenav-border-color: $border-color !default;
$sidenav-dark-bg
:
$dark
!
default
;
$sidenav-link-padding-x
:
.75rem
!
default
;
$navbar-nav-link-padding-x
:
.75rem
!
default
;
//steps
$steps-border-width
:
2px
!
default
;
$steps-color-inactive
:
#f3f5f5
!
default
;
...
...
scss/layout/_navbar.scss
浏览文件 @
dcf8f787
.navbar
{
background
:
#fff
;
color
:
$body-color
;
...
...
@@ -10,11 +11,26 @@
.nav-link
{
color
:
inherit
;
white-space
:
nowrap
;
.icon
{
font-size
:
0
.875rem
;
vertical-align
:
top
;
}
}
}
.navbar-nav
{
flex-direction
:
row
;
margin
:
0
(
-
$navbar-nav-link-padding-x
);
.nav-link
{
color
:
$text-muted
;
transition
:
.3s
color
;
&
:hover
{
color
:
$body-color
;
}
}
.navbar-nav
{
padding-left
:
.5rem
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录