mirror of
https://github.com/VCMP-SqMod/SqMod.git
synced 2025-07-12 11:57:11 +02:00
.github
bin
module
vendor
CPR
CivetWeb
ConcurrentQueue
DPP
Fmt
doc
_static
_templates
basic-bootstrap
bootstrap
mixins
alerts.less
background-variant.less
border-radius.less
buttons.less
center-block.less
clearfix.less
forms.less
gradients.less
grid-framework.less
grid.less
hide-text.less
image.less
labels.less
list-group.less
nav-divider.less
nav-vertical-align.less
opacity.less
pagination.less
panels.less
progress-bar.less
reset-filter.less
resize.less
responsive-visibility.less
size.less
tab-focus.less
table-row.less
text-emphasis.less
text-overflow.less
vendor-prefixes.less
alerts.less
badges.less
bootstrap.less
breadcrumbs.less
button-groups.less
buttons.less
carousel.less
close.less
code.less
component-animations.less
dropdowns.less
forms.less
glyphicons.less
grid.less
input-groups.less
jumbotron.less
labels.less
list-group.less
media.less
mixins.less
modals.less
navbar.less
navs.less
normalize.less
pager.less
pagination.less
panels.less
popovers.less
print.less
progress-bars.less
responsive-embed.less
responsive-utilities.less
scaffolding.less
tables.less
theme.less
thumbnails.less
tooltip.less
type.less
utilities.less
variables.less
wells.less
CMakeLists.txt
api.rst
build.py
conf.py
contents.rst
fmt.less
index.rst
python-license.txt
syntax.rst
usage.rst
include
src
support
test
CMakeLists.txt
CONTRIBUTING.md
ChangeLog.rst
LICENSE.rst
README.rst
MaxmindDB
POCO
PUGIXML
SAJSON
SimpleIni
Squirrel
TinyDir
ZMQ
xxHash
CMakeLists.txt
.gitignore
.gitmodules
CMakeLists.txt
LICENSE
README.md
53 lines
1.1 KiB
Plaintext
53 lines
1.1 KiB
Plaintext
// Button variants
|
|
//
|
|
// Easily pump out default styles, as well as :hover, :focus, :active,
|
|
// and disabled options for all buttons
|
|
|
|
.button-variant(@color; @background; @border) {
|
|
color: @color;
|
|
background-color: @background;
|
|
border-color: @border;
|
|
|
|
&:hover,
|
|
&:focus,
|
|
&.focus,
|
|
&:active,
|
|
&.active,
|
|
.open > .dropdown-toggle& {
|
|
color: @color;
|
|
background-color: darken(@background, 10%);
|
|
border-color: darken(@border, 12%);
|
|
}
|
|
&:active,
|
|
&.active,
|
|
.open > .dropdown-toggle& {
|
|
background-image: none;
|
|
}
|
|
&.disabled,
|
|
&[disabled],
|
|
fieldset[disabled] & {
|
|
&,
|
|
&:hover,
|
|
&:focus,
|
|
&.focus,
|
|
&:active,
|
|
&.active {
|
|
background-color: @background;
|
|
border-color: @border;
|
|
}
|
|
}
|
|
|
|
.badge {
|
|
color: @background;
|
|
background-color: @color;
|
|
}
|
|
}
|
|
|
|
// Button sizes
|
|
.button-size(@padding-vertical; @padding-horizontal; @font-size; @line-height; @border-radius) {
|
|
padding: @padding-vertical @padding-horizontal;
|
|
font-size: @font-size;
|
|
line-height: @line-height;
|
|
border-radius: @border-radius;
|
|
}
|