提交 696cab9a 编写于 作者: C codecalm

inout group link

上级 563624ef
......@@ -22,8 +22,8 @@
</div>
<div class="mb-3">
<label class="form-label">Price</label>
{% include ui/form/input-group.html prepend="$" append=".00" %}
<label class="form-label">Input with appended link</label>
{% include ui/form/input-group.html append-link="Show password" class="input-group-flat" %}
</div>
<div class="mb-3">
......
......@@ -22,4 +22,11 @@
</span>
</div>
{% endif %}
{% if include.append-link %}
<div class="input-group-append">
<span class="input-group-text">
<a href="#" class="input-group-link">{{ include.append-link }}</a>
</span>
</div>
{% endif %}
</div>
......@@ -130,6 +130,10 @@ Input group
border-left: 0;
}
.input-group-link {
font-size: $h5-font-size;
}
.input-group-flat {
&:focus-within {
box-shadow: $input-focus-box-shadow;
......@@ -158,6 +162,7 @@ Input group
.input-group-prepend {
margin-right: 0;
border-right: 0;
.input-group-text {
padding-right: 0;
......@@ -167,6 +172,10 @@ Input group
.input-group-append {
margin-left: 0;
&:not(:last-child) .input-group-text {
border-right: 0;
}
.input-group-text {
padding-left: 0;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册