mirror of
https://github.com/tabler/tabler.git
synced 2025-12-21 17:34:25 +04:00
buttons
This commit is contained in:
88
_config.yml
88
_config.yml
@@ -62,30 +62,74 @@ jekyll_tidy:
|
|||||||
ignore_env: development
|
ignore_env: development
|
||||||
|
|
||||||
colors:
|
colors:
|
||||||
blue: '#467fcf'
|
blue:
|
||||||
azure: '#45aaf2'
|
hex: '#467fcf'
|
||||||
indigo: '#6574cd'
|
name: Blue
|
||||||
purple: '#a55eea'
|
azure:
|
||||||
pink: '#f66d9b'
|
hex: '#45aaf2'
|
||||||
red: '#e74c3c'
|
name: Azure
|
||||||
orange: '#fd9644'
|
indigo:
|
||||||
yellow: '#f1c40f'
|
hex: '#6574cd'
|
||||||
lime: '#7bd235'
|
name: Indigo
|
||||||
green: '#5eba00'
|
purple:
|
||||||
teal: '#2bcbba'
|
hex: '#a55eea'
|
||||||
cyan: '#17a2b8'
|
name: Purple
|
||||||
gray: '#868e96'
|
pink:
|
||||||
gray-dark: '#343a40'
|
hex: '#f66d9b'
|
||||||
|
name: Pink
|
||||||
|
red:
|
||||||
|
hex: '#e74c3c'
|
||||||
|
name: Red
|
||||||
|
orange:
|
||||||
|
hex: '#fd9644'
|
||||||
|
name: Orange
|
||||||
|
yellow:
|
||||||
|
hex: '#f1c40f'
|
||||||
|
name: Yellow
|
||||||
|
lime:
|
||||||
|
hex: '#7bd235'
|
||||||
|
name: Lime
|
||||||
|
green:
|
||||||
|
hex: '#5eba00'
|
||||||
|
name: Green
|
||||||
|
teal:
|
||||||
|
hex: '#2bcbba'
|
||||||
|
name: Teal
|
||||||
|
cyan:
|
||||||
|
hex: '#17a2b8'
|
||||||
|
name: Cyan
|
||||||
|
gray:
|
||||||
|
hex: '#868e96'
|
||||||
|
name: Gray
|
||||||
|
gray-dark:
|
||||||
|
hex: '#343a40'
|
||||||
|
name: Dark gray
|
||||||
|
|
||||||
theme-colors:
|
theme-colors:
|
||||||
primary: '#467fcf'
|
primary:
|
||||||
secondary: '#868e96'
|
hex: '#467fcf'
|
||||||
success: '#38c172'
|
name: Primary
|
||||||
info: '#17a2b8'
|
secondary:
|
||||||
warning: '#f8b700'
|
hex: '#868e96'
|
||||||
danger: '#f90049'
|
name: Secondary
|
||||||
light: '#f8f9fa'
|
success:
|
||||||
dark: '#343a40'
|
hex: '#38c172'
|
||||||
|
name: Success
|
||||||
|
info:
|
||||||
|
hex: '#17a2b8'
|
||||||
|
name: Info
|
||||||
|
warning:
|
||||||
|
hex: '#f8b700'
|
||||||
|
name: Warning
|
||||||
|
danger:
|
||||||
|
hex: '#f90049'
|
||||||
|
name: Danger
|
||||||
|
light:
|
||||||
|
hex: '#f8f9fa'
|
||||||
|
name: Light
|
||||||
|
dark:
|
||||||
|
hex: '#343a40'
|
||||||
|
name: Dark
|
||||||
|
|
||||||
button-types:
|
button-types:
|
||||||
primary: 'Primary'
|
primary: 'Primary'
|
||||||
|
|||||||
@@ -29,6 +29,16 @@ Use any of the available button classes to quickly create a styled button . We p
|
|||||||
<a href="#" class="btn btn-link">Link</a>
|
<a href="#" class="btn btn-link">Link</a>
|
||||||
{% endexample %}
|
{% endexample %}
|
||||||
|
|
||||||
|
### Disabled buttons
|
||||||
|
|
||||||
|
Make buttons look inactive by adding the disabled boolean attribute to any `.btn` element. `<a>`s don’t support the disabled attribute, so you must add the `.disabled` class to make it visually appear disabled.
|
||||||
|
|
||||||
|
{% example html wrapper=btn-list %}
|
||||||
|
{% for button in site.button-types %}
|
||||||
|
<a href="#" class="btn btn-{{ button[0] }} disabled">{{ button[1] }}</a>
|
||||||
|
{% endfor %}
|
||||||
|
{% endexample %}
|
||||||
|
|
||||||
|
|
||||||
### Color variations
|
### Color variations
|
||||||
|
|
||||||
@@ -36,7 +46,7 @@ The classic button, in different colors.
|
|||||||
|
|
||||||
{% example html wrapper=btn-list %}
|
{% example html wrapper=btn-list %}
|
||||||
{% for button in site.colors %}
|
{% for button in site.colors %}
|
||||||
<a href="#" class="btn btn-{{ button[0] }}">{{ button[0] }}</a>
|
<a href="#" class="btn btn-{{ button[0] }}">{{ button[1].name }}</a>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
{% endexample %}
|
{% endexample %}
|
||||||
|
|
||||||
|
|||||||
@@ -519,7 +519,7 @@ samp {
|
|||||||
}
|
}
|
||||||
|
|
||||||
code {
|
code {
|
||||||
font-size: 87.5%;
|
font-size: 85%;
|
||||||
color: #868e96;
|
color: #868e96;
|
||||||
word-break: break-word;
|
word-break: break-word;
|
||||||
}
|
}
|
||||||
@@ -530,7 +530,7 @@ a > code {
|
|||||||
|
|
||||||
kbd {
|
kbd {
|
||||||
padding: 0.2rem 0.4rem;
|
padding: 0.2rem 0.4rem;
|
||||||
font-size: 87.5%;
|
font-size: 85%;
|
||||||
color: #fff;
|
color: #fff;
|
||||||
background-color: #343a40;
|
background-color: #343a40;
|
||||||
border-radius: 3px;
|
border-radius: 3px;
|
||||||
@@ -544,7 +544,7 @@ kbd kbd {
|
|||||||
|
|
||||||
pre {
|
pre {
|
||||||
display: block;
|
display: block;
|
||||||
font-size: 87.5%;
|
font-size: 85%;
|
||||||
color: #212529;
|
color: #212529;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -27,7 +27,10 @@ require.config({
|
|||||||
});
|
});
|
||||||
|
|
||||||
window.tabler = {
|
window.tabler = {
|
||||||
colors: {{ site.colors | jsonify | lstrip }}
|
colors: {
|
||||||
|
{% for color in site.colors %}"{{ color[0] }}": "{{ color[1].hex }}"{% unless forloop.last %},{% endunless %}
|
||||||
|
{% endfor %}
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
require(['core']);
|
require(['core']);
|
||||||
@@ -125,7 +125,7 @@ $body-bg: #f5f7fb;
|
|||||||
$body-color: $gray-700;
|
$body-color: $gray-700;
|
||||||
|
|
||||||
// Code
|
// Code
|
||||||
$code-font-size: 87.5%;
|
$code-font-size: 85%;
|
||||||
$code-color: $gray-600;
|
$code-color: $gray-600;
|
||||||
|
|
||||||
$kbd-color: #fff;
|
$kbd-color: #fff;
|
||||||
|
|||||||
Reference in New Issue
Block a user