Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Dashboards
Tabler
提交
556cdc27
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,发现更多精彩内容 >>
提交
556cdc27
编写于
5月 08, 2019
作者:
C
chomik
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
ribbons
上级
3635db0e
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
37 addition
and
4 deletion
+37
-4
_config.yml
_config.yml
+1
-1
pages/_docs/ribbons.md
pages/_docs/ribbons.md
+33
-0
pages/_includes/cards/ribbon.html
pages/_includes/cards/ribbon.html
+2
-2
scss/ui/_ribbons.scss
scss/ui/_ribbons.scss
+1
-1
未找到文件。
_config.yml
浏览文件 @
556cdc27
...
...
@@ -119,6 +119,6 @@ docs-menu:
pages
:
[
index
]
components
:
title
:
Components
pages
:
[
alerts
,
avatars
,
badges
,
buttons
,
cards
,
carousel
,
spinners
,
steps
,
tabs
,
toasts
,
tooltips
,
typography
]
pages
:
[
alerts
,
avatars
,
badges
,
buttons
,
cards
,
carousel
,
ribbons
,
spinners
,
steps
,
tabs
,
toasts
,
tooltips
,
typography
]
pages/_docs/ribbons.md
0 → 100644
浏览文件 @
556cdc27
---
title
:
Ribbons
---
## Default markup
{% example html columns=1 %}
{% include cards/ribbon.html %}
{% endexample %}
## Ribbon position
{% example html columns=1 %}
{% include cards/ribbon.html top=true left=true %}
{% endexample %}
## Ribbon color
{% example html columns=1 %}
{% include cards/ribbon.html color="red" %}
{% endexample %}
## Ribbon text
{% example html columns=1 %}
{% include cards/ribbon.html color="green" text="-50%" %}
{% endexample %}
## Ribbon style
{% example html columns=1 %}
{% include cards/ribbon.html bookmark=true color="orange" text="-50%" %}
{% endexample %}
pages/_includes/cards/ribbon.html
浏览文件 @
556cdc27
...
...
@@ -6,5 +6,5 @@
<div
class=
"h-16"
></div>
</div>
<div
class=
"ribbon{% if include.top %} ribbon-top{% endif %}{% if include.left %} ribbon-left{% endif %}{% if include.bottom %} ribbon-bottom{% endif %}{% if include.bookmark %} ribbon-bookmark{% endif %}{% if include.color %} bg-{{ include.color }}{% endif %}"
>
{% include ui/icon.html icon="star" class="icon-filled icon-thin" %}
</div>
</div>
\ No newline at end of file
<div
class=
"ribbon{% if include.top %} ribbon-top{% endif %}{% if include.left %} ribbon-left{% endif %}{% if include.bottom %} ribbon-bottom{% endif %}{% if include.bookmark %} ribbon-bookmark{% endif %}{% if include.color %} bg-{{ include.color }}{% endif %}"
>
{% if include.text %}{{ include.text }}{% else %}{% include ui/icon.html icon="star" %}{% endif %}
</div>
</div>
scss/ui/_ribbons.scss
浏览文件 @
556cdc27
...
...
@@ -5,7 +5,7 @@
top
:
.75rem
;
right
:
-
(
$ribbon-margin
);
z-index
:
1
;
padding
:
.5rem
1rem
;
padding
:
.
37
5rem
1rem
;
font-weight
:
600
;
color
:
#fff
;
text-align
:
center
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录