Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
知鸟1号
tabler
提交
f3e080cd
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,发现更多精彩内容 >>
提交
f3e080cd
编写于
1月 22, 2020
作者:
C
codecalm
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
colorinput dark fix
上级
58f2d74b
变更
6
隐藏空白更改
内联
并排
Showing
6 changed file
with
33 addition
and
25 deletion
+33
-25
.github/workflows/lighthouse.yml
.github/workflows/lighthouse.yml
+0
-17
_config.yml
_config.yml
+8
-0
pages/_includes/parts/input-color.html
pages/_includes/parts/input-color.html
+9
-4
pages/_includes/parts/input-image.html
pages/_includes/parts/input-image.html
+5
-3
scss/_variables.scss
scss/_variables.scss
+4
-0
scss/ui/forms/_form-colorinput.scss
scss/ui/forms/_form-colorinput.scss
+7
-1
未找到文件。
.github/workflows/lighthouse.yml
已删除
100644 → 0
浏览文件 @
58f2d74b
name
:
Jekyll site CI
on
:
[
push
]
jobs
:
build
:
runs-on
:
ubuntu-latest
steps
:
-
name
:
Checkout
uses
:
actions/checkout@v1
-
name
:
Wait for Netlify
uses
:
JakePartusch/wait-for-netlify-action@v1.0
with
:
site_name
:
tabler
_config.yml
浏览文件 @
f3e080cd
...
...
@@ -117,6 +117,14 @@ colors:
hex
:
'
#868e96'
title
:
Gray
colors-extra
:
white
:
hex
:
'
#ffffff'
title
:
White
dark
:
hex
:
'
#303645'
title
:
Dark
variants
:
-
name
:
success
icon
:
check
...
...
pages/_includes/parts/input-color.html
浏览文件 @
f3e080cd
{% assign colors = 'dark,white' | split: ',' %}
{% for color in site.colors limit: 10 %}
{% assign colors = colors | push: color[0] %}
{% endfor %}
<div
class=
"mb-3"
>
<label
class=
"form-label"
>
Color Input
</label>
<div
class=
"row row-xs"
>
{% for color in
site.colors limit: 10
%}
{% for color in
colors
%}
<div
class=
"col-auto"
>
<label
class=
"form-colorinput"
>
<input
name=
"color"
type=
"checkbox"
value=
"{{ color
[0] }}"
class=
"form-colorinput-input"
{%
if
forloop.index=
=
2
%}
checked
{%
endif
%}
/>
<span
class=
"form-colorinput-color bg-{{ color
[0]
}}"
></span>
<label
class=
"form-colorinput
{% if color == 'white' %} form-colorinput-light{% endif %}
"
>
<input
name=
"color"
type=
"checkbox"
value=
"{{ color
}}"
class=
"form-colorinput-input"
{%
if
forloop.index
>
= 2 and forloop.index
<
=
4
%}
checked
{%
endif
%}
/>
<span
class=
"form-colorinput-color bg-{{ color }}"
></span>
</label>
</div>
{% endfor %}
...
...
pages/_includes/parts/input-image.html
浏览文件 @
f3e080cd
{% assign limit = include.limit | default:
6
%}
{% assign limit = include.limit | default:
9
%}
<div
class=
"mb-3"
>
<label
class=
"form-label"
>
Image Check
</label>
<div
class=
"row row-xs"
>
{% for photo in site.data.photos limit: limit offset: 30 %}
{% assign photos = site.data.photos | where: 'horizontal', true %}
{% for photo in photos limit: limit %}
<div
class=
"{{ include.row-class | default: 'col-6 col-sm-4' }}"
>
<label
class=
"form-imagecheck mb-2"
>
<input
name=
"form-imagecheck"
type=
"checkbox"
value=
"{{ forloop.index }}"
class=
"form-imagecheck-input"
{%
if
forloop.index =
=
2
or
forloop.index =
=
4
or
forloop.index =
=
7
%}
checked
{%
endif
%}
/>
<span
class=
"form-imagecheck-figure"
>
<img
src=
"{{ site.base }}/static/photos/{{ photo.file }}"
alt=
""
class=
"form-imagecheck-image"
>
<img
src=
"{{ site.base }}/static/photos/{{ photo.file }}"
alt=
"
{{ photo.title }}
"
class=
"form-imagecheck-image"
>
</span>
</label>
</div>
...
...
scss/_variables.scss
浏览文件 @
f3e080cd
...
...
@@ -388,6 +388,10 @@ $form-check-input-border: 1px solid $border-color !default;
$form-check-input-border-radius
:
$border-radius
!
default
;
$form-check-input-checked-bg-size
:
.8rem
!
default
;
$form-check-input-checked-color
:
$white
!
default
;
$form-check-input-checked-bg-image
:
url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path fill='none' stroke='
#{
$form-check-input-checked-color
}
' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='M4 8.5L6.5 11l6-6'/></svg>")
!
default
;
$form-check-input-checked-bg-image-dark
:
url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path fill='none' stroke='
#{
$dark
}
' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='M4 8.5L6.5 11l6-6'/></svg>")
!
default
;
$form-check-input-checked-border-color
:
$border-color
!
default
;
$form-select-indicator-color
:
opacify
(
$border-color
,
.24
)
!
default
;
...
...
scss/ui/forms/_form-colorinput.scss
浏览文件 @
f3e080cd
...
...
@@ -24,7 +24,7 @@ Color Input
border-radius
:
3px
;
box-shadow
:
0
1px
2px
0
rgba
(
0
,
0
,
0
,
.05
);
&
:
:
before
{
&
:before
{
position
:
absolute
;
top
:
0
;
left
:
0
;
...
...
@@ -45,5 +45,11 @@ Color Input
border-color
:
$primary
;
box-shadow
:
$input-btn-focus-box-shadow
;
}
.form-colorinput-light
&
{
&
:before
{
background-image
:
escape-svg
(
$form-check-input-checked-bg-image-dark
);
}
}
}
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录