Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Dashboards
Tabler
提交
4d677d30
T
Tabler
项目概览
Dashboards
/
Tabler
11 个月 前同步成功
通知
0
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
T
Tabler
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
4d677d30
编写于
1月 21, 2020
作者:
C
codecalm
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
navbar-toggler design
上级
1007cf95
变更
7
显示空白变更内容
内联
并排
Showing
7 changed file
with
38 addition
and
12 deletion
+38
-12
pages/_includes/layout/layouts-list.html
pages/_includes/layout/layouts-list.html
+2
-2
pages/_includes/layout/navbar.html
pages/_includes/layout/navbar.html
+0
-0
pages/_includes/layout/topmenu.html
pages/_includes/layout/topmenu.html
+1
-1
pages/_includes/layout/topnav.html
pages/_includes/layout/topnav.html
+2
-5
scss/_variables.scss
scss/_variables.scss
+2
-0
scss/layout/_navbar.scss
scss/layout/_navbar.scss
+28
-3
scss/ui/_cards.scss
scss/ui/_cards.scss
+3
-1
未找到文件。
pages/_includes/layout/layouts-list.html
浏览文件 @
4d677d30
<div
class=
"row row-md
mb-n{% if include.wide %}5{% else %}6
{% endif %}{% if include.class %} {{ include.class }}{% endif %}"
>
<div
class=
"row row-md
{% if include.wide %}mb-n5{% else %}mb-n3 mb-md-n5
{% endif %}{% if include.class %} {{ include.class }}{% endif %}"
>
{% for layout in site.data.layouts %}
<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=
"
{% if include.wide %}col-12{% else %}col-lg-6{% endif %} {% if include.wide %}mb-5{% else %}mb-3 mb-md-5
{% endif %}{% if layout.soon %} opacity-25{% endif %}"
>
<div
class=
"row"
>
<div
class=
"col-auto"
>
<a
href=
"{{ site.base }}/{{ layout.page }}"
class=
"position-relative"
>
...
...
pages/_includes/layout/navbar.html
已删除
100644 → 0
浏览文件 @
1007cf95
pages/_includes/layout/topmenu.html
浏览文件 @
4d677d30
{% assign fixed = page.topnav-fixed %}
{% assign fixed = true %}
<nav
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 %}"
>
<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 %}
...
...
pages/_includes/layout/topnav.html
浏览文件 @
4d677d30
{% assign expand = 'lg' %}
{% assign person-id = include.person-id | default: 12 | minus: 1 %}
{% assign person = site.data.people[person-id] %}
...
...
@@ -6,10 +5,10 @@
{% assign fixed = page.topnav-fixed %}
{% assign fixed = true %}
<header
class=
"navbar navbar-border
navbar-expand-{{ expand }}
{% if dark %}navbar-dark bg-dark text-white{% else %}navbar-light bg-white{% endif %}{% if fixed %} fixed-top{% endif %}"
>
<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
barSupportedContent
"
aria-expanded=
"false"
>
<button
class=
"navbar-toggler mr-auto hide-sidebar-visible"
type=
"button"
data-toggle=
"collapse"
data-target=
"#nav
-main-menu
"
aria-expanded=
"false"
>
<span
class=
"navbar-toggler-icon"
></span>
</button>
...
...
@@ -61,8 +60,6 @@
</div>
</li>
</ul>
</div>
</header>
...
...
scss/_variables.scss
浏览文件 @
4d677d30
...
...
@@ -307,6 +307,8 @@ $navbar-toggler-padding-x: .75rem !default;
$navbar-toggler-margin
:
-.75rem
!
default
;
$navbar-toggler-font-size
:
1rem
!
default
;
$navbar-toggler-size
:
1
.5rem
!
default
;
$navbar-toggler-item-height
:
2px
!
default
;
$navbar-toggler-transform-time
:
.3s
!
default
;
//popover
$popover-border-color
:
$border-color
!
default
;
...
...
scss/layout/_navbar.scss
浏览文件 @
4d677d30
/*
Navbar
*/
.navbar
{
min-height
:
$navbar-height
;
...
...
@@ -36,18 +39,24 @@ navbar toggler
position
:
relative
;
}
.navbar-toggler-icon
{
$time
:
$navbar-toggler-transform-time
/
2
;
background-image
:
none
!
important
;
position
:
absolute
;
width
:
1
.5rem
;
height
:
2px
;
width
:
$navbar-toggler-size
;
height
:
$navbar-toggler-item-height
;
border-radius
:
3px
;
left
:
50%
;
top
:
50%
;
margin-left
:
-
(
$navbar-toggler-size
/
2
);
margin-top
:
-
(
$navbar-toggler-item-height
/
2
);
background
:
currentColor
;
transform
:
translateX
(
-50%
);
transform-origin
:
center
;
transition
:
transform
$time
,
top
$time
$time
,
bottom
$time
$time
;
&
:before
,
&
:after
{
...
...
@@ -58,6 +67,7 @@ navbar toggler
width
:
inherit
;
left
:
0
;
border-radius
:
inherit
;
transition
:
inherit
;
}
&
:before
{
...
...
@@ -67,6 +77,21 @@ navbar toggler
&
:after
{
bottom
:
.5rem
;
}
.navbar-toggler.collapsed
&
{
transform
:
rotate
(
45deg
);
transition
:
top
$time
,
bottom
$time
,
transform
$time
$time
,
opacity
$time
;
&
:before
{
top
:
0
;
transform
:
rotate
(
-90deg
);
}
&
:after
{
bottom
:
0
;
opacity
:
0
;
}
}
}
/**
...
...
scss/ui/_cards.scss
浏览文件 @
4d677d30
...
...
@@ -30,8 +30,10 @@
.card-md
{
.card-body
{
@include
media-breakpoint-up
(
md
)
{
padding
:
map-get
(
$spacers
,
6
);
}
}
}
.card-group
{
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录