fix: handful of button bugfixing
This commit is contained in:
parent
9179375295
commit
2755fbb7de
3 changed files with 50 additions and 76 deletions
|
@ -1,5 +1,12 @@
|
|||
|
||||
// Mixins and colorizations
|
||||
// Mixins, variables and colorizations
|
||||
|
||||
|
||||
@mixin button() {
|
||||
@include borders();
|
||||
@include border-radius();
|
||||
text-shadow: 0px -1px 0px rgba(0,0,0,0.3);
|
||||
}
|
||||
|
||||
@mixin button-lighten($background-color, $text-color) {
|
||||
background-color: lighten($background-color, 10%);
|
||||
|
@ -29,32 +36,34 @@
|
|||
// 11.1 - Buttons
|
||||
|
||||
.btn {
|
||||
@include borders();
|
||||
@include border-radius();
|
||||
box-shadow: $large-shadow, $inset-shadow;
|
||||
text-shadow: 0px -1px 0px rgba(0,0,0,0.3);
|
||||
}
|
||||
@include button();
|
||||
box-shadow: $inset-shadow;
|
||||
&:hover {
|
||||
box-shadow: $inset-shadow;
|
||||
@include button();
|
||||
}
|
||||
|
||||
.btn:hover {
|
||||
position:relative;
|
||||
box-shadow: $narrow-shadow, $inset-shadow;
|
||||
top:1px;
|
||||
@include borders();
|
||||
}
|
||||
&:focus {
|
||||
box-shadow: $inset-shadow, 0px 0px 0px 2px rgba(0, 0, 0, 0.3)!important;
|
||||
outline: none;
|
||||
}
|
||||
|
||||
.btn:active {
|
||||
position:relative;
|
||||
box-shadow: $inset-shadow-inverted;
|
||||
top:2px;
|
||||
@include borders();
|
||||
&:active {
|
||||
box-shadow: $inset-shadow-inverted;
|
||||
@include button();
|
||||
|
||||
&:focus {
|
||||
box-shadow: $inset-shadow-inverted, 0px 0px 0px 2px rgba(0, 0, 0, 0.3)!important;
|
||||
outline: none;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.btn-group {
|
||||
box-shadow: $large-shadow;
|
||||
box-shadow: none;
|
||||
}
|
||||
|
||||
.btn-group .btn {
|
||||
box-shadow: $inset-shadow;
|
||||
@include border-radius();
|
||||
&:not(:first-child) {
|
||||
border-top-left-radius: 0;
|
||||
|
@ -66,27 +75,6 @@
|
|||
}
|
||||
}
|
||||
|
||||
.btn-group .btn:hover {
|
||||
position:relative;
|
||||
top:1px;
|
||||
box-shadow: $inset-shadow;
|
||||
}
|
||||
|
||||
.btn-group .btn:active, .btn:not(:disabled):not(.disabled):active, .btn:not(:disabled):not(.disabled).active,
|
||||
.show > .btn.dropdown-toggle {
|
||||
position:relative;
|
||||
box-shadow: $inset-shadow-inverted!important;
|
||||
top:2px;
|
||||
@include borders();
|
||||
}
|
||||
|
||||
.btn:focus, .btn-primary:focus, .btn-secondary:focus, .btn-danger:focus, .btn-warning:focus, .btn-success:focus, .btn-info:focus, .btn-dark:focus, .btn-light:focus {
|
||||
position:relative;
|
||||
box-shadow: $narrow-shadow, $inset-shadow, 0px 0px 0px 2px rgba(0, 0, 0, 0.3);
|
||||
top:1px;
|
||||
outline: none;
|
||||
}
|
||||
|
||||
.btn {
|
||||
&-blue { @include button-color($color-blue, #FFF); }
|
||||
&-violet { @include button-color($color-violet, #FFF); }
|
||||
|
@ -139,7 +127,8 @@
|
|||
/* 11.3 - Réseaux sociaux */
|
||||
|
||||
.share-buttons {
|
||||
margin:15px;
|
||||
margin-top:15px;
|
||||
margin-bottom:15px;
|
||||
}
|
||||
|
||||
.reagir {
|
||||
|
|
53
style.css
53
style.css
|
@ -542,30 +542,35 @@ a.list-group-item:hover {
|
|||
.btn {
|
||||
border: 1px solid rgba(0, 0, 0, 0.3);
|
||||
border-radius: 3px 3px 3px 3px;
|
||||
box-shadow: 0px 2px 10px rgba(0, 0, 0, 0.3), inset 0px -2px 0px rgba(0, 0, 0, 0.2);
|
||||
text-shadow: 0px -1px 0px rgba(0, 0, 0, 0.3);
|
||||
box-shadow: inset 0px -2px 0px rgba(0, 0, 0, 0.2);
|
||||
}
|
||||
.btn:hover {
|
||||
box-shadow: inset 0px -2px 0px rgba(0, 0, 0, 0.2);
|
||||
border: 1px solid rgba(0, 0, 0, 0.3);
|
||||
border-radius: 3px 3px 3px 3px;
|
||||
text-shadow: 0px -1px 0px rgba(0, 0, 0, 0.3);
|
||||
}
|
||||
|
||||
.btn:hover {
|
||||
position: relative;
|
||||
box-shadow: 0px 2px 6px rgba(0, 0, 0, 0.3), inset 0px -2px 0px rgba(0, 0, 0, 0.2);
|
||||
top: 1px;
|
||||
border: 1px solid rgba(0, 0, 0, 0.3);
|
||||
.btn:focus {
|
||||
box-shadow: inset 0px -2px 0px rgba(0, 0, 0, 0.2), 0px 0px 0px 2px rgba(0, 0, 0, 0.3) !important;
|
||||
outline: none;
|
||||
}
|
||||
|
||||
.btn:active {
|
||||
position: relative;
|
||||
box-shadow: inset 0px 2px 0px rgba(0, 0, 0, 0.2);
|
||||
top: 2px;
|
||||
border: 1px solid rgba(0, 0, 0, 0.3);
|
||||
border-radius: 3px 3px 3px 3px;
|
||||
text-shadow: 0px -1px 0px rgba(0, 0, 0, 0.3);
|
||||
}
|
||||
.btn:active:focus {
|
||||
box-shadow: inset 0px 2px 0px rgba(0, 0, 0, 0.2), 0px 0px 0px 2px rgba(0, 0, 0, 0.3) !important;
|
||||
outline: none;
|
||||
}
|
||||
|
||||
.btn-group {
|
||||
box-shadow: 0px 2px 10px rgba(0, 0, 0, 0.3);
|
||||
box-shadow: none;
|
||||
}
|
||||
|
||||
.btn-group .btn {
|
||||
box-shadow: inset 0px -2px 0px rgba(0, 0, 0, 0.2);
|
||||
border-radius: 3px 3px 3px 3px;
|
||||
}
|
||||
.btn-group .btn:not(:first-child) {
|
||||
|
@ -577,27 +582,6 @@ a.list-group-item:hover {
|
|||
border-bottom-right-radius: 0;
|
||||
}
|
||||
|
||||
.btn-group .btn:hover {
|
||||
position: relative;
|
||||
top: 1px;
|
||||
box-shadow: inset 0px -2px 0px rgba(0, 0, 0, 0.2);
|
||||
}
|
||||
|
||||
.btn-group .btn:active, .btn:not(:disabled):not(.disabled):active, .btn:not(:disabled):not(.disabled).active,
|
||||
.show > .btn.dropdown-toggle {
|
||||
position: relative;
|
||||
box-shadow: inset 0px 2px 0px rgba(0, 0, 0, 0.2) !important;
|
||||
top: 2px;
|
||||
border: 1px solid rgba(0, 0, 0, 0.3);
|
||||
}
|
||||
|
||||
.btn:focus, .btn-primary:focus, .btn-secondary:focus, .btn-danger:focus, .btn-warning:focus, .btn-success:focus, .btn-info:focus, .btn-dark:focus, .btn-light:focus {
|
||||
position: relative;
|
||||
box-shadow: 0px 2px 6px rgba(0, 0, 0, 0.3), inset 0px -2px 0px rgba(0, 0, 0, 0.2), 0px 0px 0px 2px rgba(0, 0, 0, 0.3);
|
||||
top: 1px;
|
||||
outline: none;
|
||||
}
|
||||
|
||||
.btn-blue {
|
||||
background-color: #4e63c9;
|
||||
color: #FFF;
|
||||
|
@ -907,7 +891,8 @@ a.list-group-item:hover {
|
|||
|
||||
/* 11.3 - Réseaux sociaux */
|
||||
.share-buttons {
|
||||
margin: 15px;
|
||||
margin-top: 15px;
|
||||
margin-bottom: 15px;
|
||||
}
|
||||
|
||||
.reagir {
|
||||
|
|
File diff suppressed because one or more lines are too long
Reference in a new issue