mirror of
https://github.com/mdbootstrap/mdb-ui-kit.git
synced 2025-07-27 08:29:53 +03:00
Correcting the mini buttons alignment of icons in!
====== Corrigindo os botões mini alinhamento dos icones dentro!
This commit is contained in:
parent
1125333006
commit
5e13352831
3
dist/css/material-fullpalette.css
vendored
3
dist/css/material-fullpalette.css
vendored
|
@ -19487,8 +19487,9 @@ body .jumbotron-material-blue-grey-A700,
|
||||||
.btn.btn-fab.btn-fab-mini {
|
.btn.btn-fab.btn-fab-mini {
|
||||||
width: 40px;
|
width: 40px;
|
||||||
height: 40px;
|
height: 40px;
|
||||||
padding: 13px;
|
padding: 13px 9px;
|
||||||
font-size: 15px;
|
font-size: 15px;
|
||||||
|
box-sizing: border-box;
|
||||||
}
|
}
|
||||||
.btn.btn-fab i {
|
.btn.btn-fab i {
|
||||||
position: relative;
|
position: relative;
|
||||||
|
|
2
dist/css/material-fullpalette.css.map
vendored
2
dist/css/material-fullpalette.css.map
vendored
File diff suppressed because one or more lines are too long
3
dist/css/material.css
vendored
3
dist/css/material.css
vendored
|
@ -3599,8 +3599,9 @@ body .jumbotron-material-blue-grey,
|
||||||
.btn.btn-fab.btn-fab-mini {
|
.btn.btn-fab.btn-fab-mini {
|
||||||
width: 40px;
|
width: 40px;
|
||||||
height: 40px;
|
height: 40px;
|
||||||
padding: 13px;
|
padding: 13px 9px;
|
||||||
font-size: 15px;
|
font-size: 15px;
|
||||||
|
box-sizing: border-box;
|
||||||
}
|
}
|
||||||
.btn.btn-fab i {
|
.btn.btn-fab i {
|
||||||
position: relative;
|
position: relative;
|
||||||
|
|
2
dist/css/material.css.map
vendored
2
dist/css/material.css.map
vendored
File diff suppressed because one or more lines are too long
2
dist/css/material.min.css
vendored
2
dist/css/material.min.css
vendored
File diff suppressed because one or more lines are too long
2
dist/css/material.min.css.map
vendored
2
dist/css/material.min.css.map
vendored
File diff suppressed because one or more lines are too long
|
@ -1,144 +1,145 @@
|
||||||
.btn {
|
.btn {
|
||||||
position: relative;
|
position: relative;
|
||||||
padding: 8px 30px;
|
padding: 8px 30px;
|
||||||
border: 0;
|
border: 0;
|
||||||
margin: 10px 1px;
|
margin: 10px 1px;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
border-radius: 2px;
|
border-radius: 2px;
|
||||||
text-transform: uppercase;
|
text-transform: uppercase;
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
color: @darkbg-text;
|
color: @darkbg-text;
|
||||||
|
|
||||||
&:hover:not(.btn-link):not(.btn-flat):not(.btn-fab) {
|
&:hover:not(.btn-link):not(.btn-flat):not(.btn-fab) {
|
||||||
.shadow-z-1();
|
.shadow-z-1();
|
||||||
}
|
}
|
||||||
&:active:not(.btn-link):not(.btn-flat):not(.btn-fab) {
|
&:active:not(.btn-link):not(.btn-flat):not(.btn-fab) {
|
||||||
.shadow-z-1-hover();
|
.shadow-z-1-hover();
|
||||||
}
|
}
|
||||||
transition: background-color 0.2s ease, box-shadow 0.28s cubic-bezier(0.4, 0, 0.2, 1);
|
transition: background-color 0.2s ease, box-shadow 0.28s cubic-bezier(0.4, 0, 0.2, 1);
|
||||||
outline: none !important;
|
outline: none !important;
|
||||||
|
|
||||||
|
|
||||||
.variations(~".btn-flat:not(.btn-link)", color, @lightbg-text);
|
.variations(~".btn-flat:not(.btn-link)", color, @lightbg-text);
|
||||||
|
|
||||||
.background-variations(~":not(.btn-link):not(.btn-flat)", @btn-default);
|
.background-variations(~":not(.btn-link):not(.btn-flat)", @btn-default);
|
||||||
|
|
||||||
// BTN hover effect
|
// BTN hover effect
|
||||||
.generic-variations(~":hover:not(.btn-link):not(.btn-flat)", @btn-default, {
|
.generic-variations(~":hover:not(.btn-link):not(.btn-flat)", @btn-default, {
|
||||||
background-color: contrast(@material-color, darken(@material-color, 4%), lighten(@material-color, 4%), @contrast-factor);
|
background-color: contrast(@material-color, darken(@material-color, 4%), lighten(@material-color, 4%), @contrast-factor);
|
||||||
});
|
});
|
||||||
// BTN active effect
|
// BTN active effect
|
||||||
.generic-variations(~":active:not(.btn-link):not(.btn-flat)", @btn-default, {
|
.generic-variations(~":active:not(.btn-link):not(.btn-flat)", @btn-default, {
|
||||||
background-color: contrast(@material-color, darken(@material-color, 6%), lighten(@material-color, 6%), @contrast-factor);
|
background-color: contrast(@material-color, darken(@material-color, 6%), lighten(@material-color, 6%), @contrast-factor);
|
||||||
});
|
});
|
||||||
// BTN .active effect
|
// BTN .active effect
|
||||||
.generic-variations(~".active:not(.btn-link):not(.btn-flat)", @btn-default, {
|
.generic-variations(~".active:not(.btn-link):not(.btn-flat)", @btn-default, {
|
||||||
background-color: contrast(@material-color, darken(@material-color, 6%), lighten(@material-color, 6%), @contrast-factor);
|
background-color: contrast(@material-color, darken(@material-color, 6%), lighten(@material-color, 6%), @contrast-factor);
|
||||||
});
|
});
|
||||||
// BTN flat hover effect
|
// BTN flat hover effect
|
||||||
.generic-variations(~".btn-flat:hover:not(.btn-ink)", @btn-default, {
|
.generic-variations(~".btn-flat:hover:not(.btn-ink)", @btn-default, {
|
||||||
background-color: fade(@material-color, 20%);
|
background-color: fade(@material-color, 20%);
|
||||||
});
|
});
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.btn {
|
.btn {
|
||||||
&.btn-flat {
|
&.btn-flat {
|
||||||
background: none;
|
background: none;
|
||||||
box-shadow: none;
|
box-shadow: none;
|
||||||
font-weight: 500;
|
font-weight: 500;
|
||||||
&:disabled {
|
&:disabled {
|
||||||
color: @text-disabled !important;
|
color: @text-disabled !important;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
// Size variations
|
// Size variations
|
||||||
&.btn-sm {
|
&.btn-sm {
|
||||||
padding: 5px 20px;
|
padding: 5px 20px;
|
||||||
}
|
}
|
||||||
&.btn-xs {
|
&.btn-xs {
|
||||||
padding: 4px 15px;
|
padding: 4px 15px;
|
||||||
font-size: 10px;
|
font-size: 10px;
|
||||||
}
|
}
|
||||||
|
|
||||||
&.btn-raised {
|
&.btn-raised {
|
||||||
.btn-shadow();
|
.btn-shadow();
|
||||||
}
|
}
|
||||||
|
|
||||||
&.btn-fab {
|
&.btn-fab {
|
||||||
margin: 0;
|
margin: 0;
|
||||||
padding: 15px;
|
padding: 15px;
|
||||||
font-size: 26px;
|
font-size: 26px;
|
||||||
width: 56px;
|
width: 56px;
|
||||||
height: 56px;
|
height: 56px;
|
||||||
&, &:hover, &:active {
|
&, &:hover, &:active {
|
||||||
.variations(~"", background-color, transparent);
|
.variations(~"", background-color, transparent);
|
||||||
|
}
|
||||||
|
&, &:hover {
|
||||||
|
.shadow-z-1();
|
||||||
|
}
|
||||||
|
&:active {
|
||||||
|
.shadow-z-1-hover();
|
||||||
|
}
|
||||||
|
&, .ripple-wrapper {
|
||||||
|
border-radius: 100%;
|
||||||
|
}
|
||||||
|
&.btn-fab-mini {
|
||||||
|
width: 40px;
|
||||||
|
height: 40px;
|
||||||
|
padding: 13px 9px;
|
||||||
|
font-size: 15px;
|
||||||
|
box-sizing: border-box;
|
||||||
|
}
|
||||||
|
i {
|
||||||
|
position: relative;
|
||||||
|
top: -5px;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
&, &:hover {
|
|
||||||
.shadow-z-1();
|
|
||||||
}
|
|
||||||
&:active {
|
|
||||||
.shadow-z-1-hover();
|
|
||||||
}
|
|
||||||
&, .ripple-wrapper {
|
|
||||||
border-radius: 100%;
|
|
||||||
}
|
|
||||||
&.btn-fab-mini {
|
|
||||||
width: 40px;
|
|
||||||
height: 40px;
|
|
||||||
padding: 13px;
|
|
||||||
font-size: 15px;
|
|
||||||
}
|
|
||||||
i {
|
|
||||||
position: relative;
|
|
||||||
top: -5px;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// This is needed to style buttons which has not a variation suffix (they must be stiled as btn-default)
|
// This is needed to style buttons which has not a variation suffix (they must be stiled as btn-default)
|
||||||
.btn-link, .btn:not([class*="btn-"]), .btn-default {
|
.btn-link, .btn:not([class*="btn-"]), .btn-default {
|
||||||
color: @lightbg-text;
|
|
||||||
&:hover {
|
|
||||||
color: @lightbg-text;
|
color: @lightbg-text;
|
||||||
}
|
&:hover {
|
||||||
|
color: @lightbg-text;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
.btn:not([class*="btn-"]), .btn-default, .btn-flat:not(.btn-link) {
|
.btn:not([class*="btn-"]), .btn-default, .btn-flat:not(.btn-link) {
|
||||||
&:hover, &.active {
|
&:hover, &.active {
|
||||||
background-color: rgba(255,255,255,0.5);
|
background-color: rgba(255,255,255,0.5);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.open > .dropdown-toggle.btn {
|
.open > .dropdown-toggle.btn {
|
||||||
.variations(~"", background-color, @btn-default);
|
.variations(~"", background-color, @btn-default);
|
||||||
}
|
}
|
||||||
.btn-group .btn+.btn, .btn-group .btn+.btn-group, .btn-group .btn-group+.btn, .btn-group .btn-group+.btn-group {
|
.btn-group .btn+.btn, .btn-group .btn+.btn-group, .btn-group .btn-group+.btn, .btn-group .btn-group+.btn-group {
|
||||||
margin-left: 0;
|
margin-left: 0;
|
||||||
}
|
}
|
||||||
.btn-group, .btn-group-vertical {
|
.btn-group, .btn-group-vertical {
|
||||||
position: relative;
|
position: relative;
|
||||||
border-radius: 2px;
|
border-radius: 2px;
|
||||||
margin: 10px 1px;
|
margin: 10px 1px;
|
||||||
|
|
||||||
.btn-shadow();
|
|
||||||
&.open .dropdown-toggle {
|
|
||||||
box-shadow: none;
|
|
||||||
}
|
|
||||||
&.btn-group-raised {
|
|
||||||
.btn-shadow();
|
.btn-shadow();
|
||||||
}
|
&.open .dropdown-toggle {
|
||||||
.btn, .btn:active, .btn-group {
|
box-shadow: none;
|
||||||
box-shadow: none !important;
|
}
|
||||||
margin: 0;
|
&.btn-group-raised {
|
||||||
}
|
.btn-shadow();
|
||||||
|
}
|
||||||
|
.btn, .btn:active, .btn-group {
|
||||||
|
box-shadow: none !important;
|
||||||
|
margin: 0;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
.btn-group-flat {
|
.btn-group-flat {
|
||||||
box-shadow: none !important;
|
box-shadow: none !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
.btn-shadow() {
|
.btn-shadow() {
|
||||||
.shadow-z-1();
|
.shadow-z-1();
|
||||||
transition: box-shadow 0.28s cubic-bezier(0.4, 0, 0.2, 1);
|
transition: box-shadow 0.28s cubic-bezier(0.4, 0, 0.2, 1);
|
||||||
&:active:not(.btn-link) {
|
&:active:not(.btn-link) {
|
||||||
.shadow-z-1-hover();
|
.shadow-z-1-hover();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -34,6 +34,9 @@
|
||||||
@extend .shadow-z-3;
|
@extend .shadow-z-3;
|
||||||
}
|
}
|
||||||
outline: none !important;
|
outline: none !important;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
// This is needed to style buttons which has not a variation suffix (they must stiled as btn-default)
|
// This is needed to style buttons which has not a variation suffix (they must stiled as btn-default)
|
||||||
.btn-link, .btn:not([class^="btn btn-"]), .btn-default {
|
.btn-link, .btn:not([class^="btn btn-"]), .btn-default {
|
||||||
|
@ -101,8 +104,9 @@
|
||||||
&.btn-mini {
|
&.btn-mini {
|
||||||
width: 40px;
|
width: 40px;
|
||||||
height: 40px;
|
height: 40px;
|
||||||
padding: 13px;
|
padding: 13px 9px;
|
||||||
font-size: 15px;
|
font-size: 15px;
|
||||||
|
box-sizing: border-box;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -110,26 +114,26 @@
|
||||||
// --------------------------------------------------
|
// --------------------------------------------------
|
||||||
|
|
||||||
.btn-default {
|
.btn-default {
|
||||||
@include button-variant($btn-default);
|
@include button-variant($btn-default);
|
||||||
}
|
}
|
||||||
.btn-primary {
|
.btn-primary {
|
||||||
@include button-variant($primary);
|
@include button-variant($primary);
|
||||||
}
|
}
|
||||||
// Success appears as green
|
// Success appears as green
|
||||||
.btn-success {
|
.btn-success {
|
||||||
@include button-variant($success);
|
@include button-variant($success);
|
||||||
}
|
}
|
||||||
// Info appears as blue-green
|
// Info appears as blue-green
|
||||||
.btn-info {
|
.btn-info {
|
||||||
@include button-variant($info);
|
@include button-variant($info);
|
||||||
}
|
}
|
||||||
// Warning appears as orange
|
// Warning appears as orange
|
||||||
.btn-warning {
|
.btn-warning {
|
||||||
@include button-variant($warning);
|
@include button-variant($warning);
|
||||||
}
|
}
|
||||||
// Danger and error appear as red
|
// Danger and error appear as red
|
||||||
.btn-danger {
|
.btn-danger {
|
||||||
@include button-variant($danger);
|
@include button-variant($danger);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Material shades
|
// Material shades
|
||||||
|
|
Loading…
Reference in New Issue
Block a user