Files
namaste/html/sass/mdb/free/_buttons.scss
gramps 373ebc8c93 Archive: Namaste PHP AMQP framework v1.0 (2017-2020)
952 days continuous production uptime, 40k+ tp/s single node.
Original corpo Bitbucket history not included — clean archive commit.
2026-04-05 09:49:30 -07:00

126 lines
2.1 KiB
SCSS
Executable File

// Buttons
button:focus {
outline:0 !important;
}
.btn {
@extend .z-depth-1;
font-size: 0.8rem;
padding: 0.85rem 2.13rem;
margin: 6px;
@extend .white-text;
border-radius: 2px;
border: 0;
transition: .2s ease-out;
text-transform: uppercase;
white-space: normal !important;
word-wrap: break-word;
cursor: pointer;
&:hover,
&:active,
&:focus,
&:active:focus {
@extend .z-depth-1-half;
outline: 0;
}
.fa {
font-size: 1rem;
position: relative;
vertical-align: middle;
margin-top: -2px;
&.right {
margin-left: 3px;
}
&.left {
margin-right: 3px;
}
}
&.btn-lg {
font-size: 0.9rem;
padding: 1rem 2.4rem;
.fa {
font-size: 1.2rem;
}
}
&.btn-md {
font-size: 0.7rem;
padding: 0.7rem 1.6rem;
.fa {
font-size: 0.9rem;
}
}
&.btn-sm {
font-size: 0.6rem;
padding: 0.5rem 1.6rem;
&.btn-table {
padding: 0.5rem 0.9rem;
}
.fa {
font-size: 0.7rem;
}
}
&.btn-tb {
padding: 0.3rem 1rem;
}
&.disabled,
&:disabled {
cursor: not-allowed;
pointer-events: none;
}
&[class*="btn-outline-"] {
padding-top:.76rem;
padding-bottom: .76rem;
&.btn-sm {
padding-top:.42rem;
padding-bottom: .42rem;
}
&.btn-md {
padding-top:.58rem;
padding-bottom: .58rem;
}
&.btn-lg {
padding-top:.9rem;
padding-bottom: .9rem;
}
}
}
.btn-secondary.disabled, .btn-secondary:disabled {
background-color: #b579d2!important;
border-color: #b579d2 !important;
}
.btn-group {
.btn {
margin: 0;
}
}
.btn-block {
margin: inherit;
}
.btn-split {
padding-left: 0.85rem;
padding-right: 1.25rem;
}
.btn-link {
background-color: transparent;
@extend .black-text;
box-shadow: none !important;
&:hover,
&:focus {
background-color: transparent;
box-shadow: none !important;
}
}
.btn-flat {
box-shadow: none;
&:active,
&:focus,
&:hover {
box-shadow: none !important;
}
}
@each $btn-name, $color-value in $material-colors {
@include make-button($btn-name, $color-value);
@include make-outline-button($btn-name, $color-value);
}