123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960 |
- %button {
- display: inline-block;
- padding: 0.5rem 1rem;
- font-weight: 400;
- cursor: pointer;
- vertical-align: middle;
- outline: none;
- &:active {
- margin: 1px 0 -1px 0;
- }
- i {
- //margin-right: 5px;
- }
- &.button-small {
- padding: 4px 8px;
- font-size: 95%;
- }
- &.button-x-small {
- padding: 2px 5px;
- font-size: 90%;
- }
- &:disabled {
- opacity: .6;
- cursor: no-drop;
- }
- }
- @mixin button-color($color, $text:$white, $lighter:null) {
- color: rgba($text, 0.85);
- border-radius: $border-radius;
- background: $color;
- @if ($lighter == null) {
- $lighter: lightness($color) > 50;
- }
- @if ($lighter) {
- &:hover {
- background: shade($color,15%);
- color: $text;
- }
- &.dropdown-toggle {
- border-left: 1px solid lighten($color, 5%);
- }
- } @else {
- &:hover {
- background: tint($color,15%);
- color: $text;
- }
- &.dropdown-toggle {
- border-left: 1px solid darken($color, 5%);
- }
- }
- }
|