Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Dashboards
Tabler
提交
6d5d97e1
T
Tabler
项目概览
Dashboards
/
Tabler
10 个月 前同步成功
通知
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,体验更适合开发者的 AI 搜索 >>
提交
6d5d97e1
编写于
4月 04, 2020
作者:
C
codecalm
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
navbar fixes
上级
600a4c16
变更
6
隐藏空白更改
内联
并排
Showing
6 changed file
with
32 addition
and
12 deletion
+32
-12
pages/_includes/layout/navbar-search.html
pages/_includes/layout/navbar-search.html
+1
-1
pages/_includes/layout/navbar.html
pages/_includes/layout/navbar.html
+1
-1
pages/_includes/ui/form/input-icon.html
pages/_includes/ui/form/input-icon.html
+3
-3
pages/_layouts/default.html
pages/_layouts/default.html
+2
-6
scss/layout/_navbar.scss
scss/layout/_navbar.scss
+13
-0
scss/ui/_forms.scss
scss/ui/_forms.scss
+12
-1
未找到文件。
pages/_includes/layout/navbar-search.html
浏览文件 @
6d5d97e1
...
...
@@ -2,6 +2,6 @@
<div
class=
"d-none d-{{ breakpoint }}-block {% if include.class %} {{ include.class }}{% endif %}"
>
<form
action=
"."
method=
"get"
>
{% include ui/form/input-icon.html prepend=true
light
=include.dark %}
{% include ui/form/input-icon.html prepend=true
icon-class="text-muted" dark
=include.dark %}
</form>
</div>
pages/_includes/layout/navbar.html
浏览文件 @
6d5d97e1
...
...
@@ -22,7 +22,7 @@
<div
class=
"navbar collapse navbar-collapse {% if include.dark-secondary %}navbar-dark{% else %}navbar-light{% endif %}"
id=
"navbar-menu"
>
<div
class=
"container-xl"
>
{% include layout/navbar-menu.html %}
{% include layout/navbar-search.html breakpoint=breakpoint dark=dark-secondary %}
{% include layout/navbar-search.html breakpoint=breakpoint dark=
include.
dark-secondary %}
</div>
</div>
</div>
...
...
pages/_includes/ui/form/input-icon.html
浏览文件 @
6d5d97e1
{% capture addon %}
{% if include.loader %}
<span
class=
"input-icon-addon"
>
<span
class=
"input-icon-addon
{% if include.icon-class %} {{ include.icon-class }}{% endif %}
"
>
{% include ui/spinner.html class="text-muted" size="sm" %}
</span>
{% else %}
{% assign icon = include.icon | default: 'search' %}
<span
class=
"input-icon-addon"
>
<span
class=
"input-icon-addon
{% if include.icon-class %} {{ include.icon-class }}{% endif %}
"
>
{% include ui/icon.html icon=icon %}
</span>
{% endif %}
...
...
@@ -16,7 +16,7 @@
{{ addon }}
{% endif %}
<input
type=
"text"
class=
"form-control{% if include.light %} form-control-light{% endif %}{% if include.input-class %} {{ include.input-class }}{% endif %}"
placeholder=
"{{ include.placeholder | default: 'Search…' }}"
>
<input
type=
"text"
class=
"form-control{% if include.light %} form-control-light{% endif %}{% if include.
dark %} form-control-dark{% endif %}{% if include.
input-class %} {{ include.input-class }}{% endif %}"
placeholder=
"{{ include.placeholder | default: 'Search…' }}"
>
{% unless include.prepend %}
{{ addon }}
...
...
pages/_layouts/default.html
浏览文件 @
6d5d97e1
...
...
@@ -5,15 +5,11 @@ layout: base
{% assign page-header = page.page-header | default: layout.page-header %}
<div
class=
"page"
>
{% include layout/navbar.html %}
{% include layout/navbar.html dark=true %}
{% comment %}
{% include layout/navbar.html dark=true background="#7952b3" %}
{% include layout/navbar.html %}
{% endcomment %}
{% comment %}{% include layout/topnav.html %}{% endcomment %}
{% include layout/navbar.html secondary=true %}
{% include layout/navbar.html secondary=true dark-secondary=true %}
{% comment %}
{% include layout/navbar-primary.html %}
...
...
scss/layout/_navbar.scss
浏览文件 @
6d5d97e1
.navbar-expand
{
@each
$breakpoint
in
map-keys
(
$grid-breakpoints
)
{
$next
:
breakpoint-next
(
$breakpoint
,
$grid-breakpoints
);
$infix
:
breakpoint-infix
(
$next
,
$grid-breakpoints
);
&
#{
$infix
}
{
@include
media-breakpoint-up
(
$next
)
{
}
}
}
}
/**
Navbar
*/
...
...
scss/ui/_forms.scss
浏览文件 @
6d5d97e1
...
...
@@ -77,12 +77,23 @@ Form control
}
.form-control-light
{
background-color
:
$gray-100
;
border-color
:
transparent
;
}
.form-control-dark
{
background-color
:
rgba
(
$black
,
.1
);
color
:
$white
;
border-color
:
transparent
;
&
:focus
{
background-color
:
inherit
;
background-color
:
rgba
(
$black
,
.1
);
box-shadow
:
none
;
border-color
:
rgba
(
$white
,
.24
);
}
&
::placeholder
{
color
:
rgba
(
$white
,
$text-muted-opacity
);
}
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录