1
0
mirror of https://github.com/tabler/tabler.git synced 2026-07-29 14:34:37 +04:00

buttons, float buttons

This commit is contained in:
codecalm
2020-01-08 21:44:17 +01:00
parent 272a16c724
commit d1711c8194
5 changed files with 25 additions and 2 deletions
+3
View File
@@ -121,6 +121,9 @@
"peity": "3.3.0",
"selectize": "0.12.6"
},
"resolutions": {
"**/**/node-gyp": "5.0.0"
},
"bundlesize": [
{
"path": "./dist/css/tabler.css",
+2 -2
View File
@@ -11,7 +11,7 @@
{% for type in variants %}
{% if show-link or type[0] != 'link' %}
<div class="col-6 col-sm-4 col-md-2 col-xl{% if include.auto-columns %}-auto{% endif %} mb-3">
{% if include.icon == true %}
{% if include.icon or include.icon-only %}
{% assign icon = type[1].icon %}
{% endif %}
@@ -25,7 +25,7 @@
{% assign text = type[1].title %}
{% assign color = type[0] %}
{% include ui/button.html block=true color=false class=class icon=icon icon-only=icon-only text=text %}
{% include ui/button.html block=true color=false class=class icon=icon icon-only=include.icon-only text=text %}
</div>
{% endif %}
{% endfor %}
+9
View File
@@ -69,6 +69,15 @@ menu: base.buttons
</div>
</div>
<div class="card">
<div class="card-header">
<h3 class="card-title">Icon buttons</h3>
</div>
<div class="card-body">
{% include parts/buttons-table.html variants=site.socials hide-labels=true icon-only=true auto-columns=true %}
</div>
</div>
<div class="card">
<div class="card-header">
<h3 class="card-title">Social colors</h3>
+3
View File
@@ -2,6 +2,9 @@
page-title: Search results
---
{% include ui/button.html color="primary" icon="plus" icon-only=true class="btn-floating" size="lg" %}
<div class="row">
<div class="col-4">
+8
View File
@@ -116,3 +116,11 @@
height: 1rem;
}
}
.btn-floating {
position: fixed;
z-index: $zindex-fixed;
bottom: 1.5rem;
right: 1.5rem;
border-radius: 50%;
}