style buttons
This commit is contained in:
parent
3da0b99917
commit
ccfc708a3d
|
@ -1,4 +1,4 @@
|
|||
$button-color: #5B616B;
|
||||
$button-color: $primary-color;
|
||||
$button-cancel-color: grayscale($button-color);
|
||||
$button-delete-color: #CD2026;
|
||||
$button-submit-color: #215D9C;
|
||||
|
@ -68,7 +68,7 @@ a.button {
|
|||
line-height: 2.5em;
|
||||
}
|
||||
|
||||
a.button, button, input[type=submit], div.buttons input {
|
||||
%button {
|
||||
padding: 5px 15px;
|
||||
cursor: pointer;
|
||||
border: 0px solid #aaa;
|
||||
|
@ -76,18 +76,23 @@ a.button, button, input[type=submit], div.buttons input {
|
|||
vertical-align: baseline;
|
||||
border-radius: 3px;
|
||||
font-weight: bold;
|
||||
background: white;
|
||||
border: 1px solid $button-color;
|
||||
color: $button-color;
|
||||
&:hover {
|
||||
background: $button-color;
|
||||
color: white;
|
||||
border-color: darken($button-color, 20%);
|
||||
}
|
||||
&:active { border-color: darken($button-color, 10%); }
|
||||
&:focus {
|
||||
border-color: darken($button-color, 20%);
|
||||
}
|
||||
@include vendor-prefix('transition', 'border-color 0.2s ease, box-shadow 0.2s linear');
|
||||
}
|
||||
|
||||
a.button, button, input[type=submit], div.buttons input {
|
||||
background: $button-color;
|
||||
border: 1px solid $button-color;
|
||||
color: text-color($button-color);
|
||||
&:hover { background: darken($button-color, 20%); }
|
||||
&:active { background: darken($button-color, 10%); }
|
||||
&:focus {
|
||||
background: darken($button-color, 20%);
|
||||
}
|
||||
@include vendor-prefix('transition', 'background 0.2s ease, box-shadow 0.2s linear');
|
||||
@extend %button;
|
||||
}
|
||||
|
||||
input[type=submit] {
|
||||
|
@ -95,24 +100,35 @@ input[type=submit] {
|
|||
}
|
||||
|
||||
a.cancel-button, button.cancel-button, div.buttons .cancel-button input, div.buttons .cancel-button button {
|
||||
background: $button-cancel-color;
|
||||
color: $button-cancel-color;
|
||||
border-color: $button-cancel-color;
|
||||
&:hover { background: darken($button-cancel-color, 20%); }
|
||||
&:active { background: darken($button-cancel-color, 10%); }
|
||||
&:hover {
|
||||
background: white;
|
||||
border-color: darken($button-cancel-color, 20%);
|
||||
}
|
||||
&:active { border-color: darken($button-cancel-color, 10%); }
|
||||
}
|
||||
|
||||
a.delete-button, button.delete-button, div.buttons .delete-button input, div.buttons .delete-button button {
|
||||
background: $button-delete-color;
|
||||
color: $button-delete-color;
|
||||
border-color: $button-delete-color;
|
||||
&:hover { background: darken($button-delete-color, 20%); }
|
||||
&:active { background: darken($button-delete-color, 10%); }
|
||||
&:hover {
|
||||
background: $button-delete-color;
|
||||
color: white;
|
||||
border-color: darken($button-delete-color, 20%);
|
||||
}
|
||||
&:active { border-color: darken($button-delete-color, 10%); }
|
||||
}
|
||||
|
||||
a.submit-button, button.submit-button, div.buttons .submit-button input, div.buttons .submit-button button {
|
||||
background: $button-submit-color;
|
||||
color: $button-submit-color;
|
||||
border-color: $button-submit-color;
|
||||
&:hover { background: darken($button-submit-color, 20%); }
|
||||
&:active { background: darken($button-submit-color, 10%); }
|
||||
&:hover {
|
||||
color: white;
|
||||
background: $button-submit-color;
|
||||
border-color: darken($button-submit-color, 20%);
|
||||
}
|
||||
&:active { border-color: darken($button-submit-color, 10%); }
|
||||
}
|
||||
|
||||
form.disabled-during-submit {
|
||||
|
|
|
@ -1069,16 +1069,7 @@ $colors: "4e7ee2", "ff375e", "6f2b92";
|
|||
}
|
||||
& > a,
|
||||
span.actions > a {
|
||||
background: white;
|
||||
color: $primary-color;
|
||||
font-weight: bold;
|
||||
border-radius: 3px;
|
||||
border: 1px solid $primary-color;
|
||||
padding: 6px 14px;
|
||||
&:hover {
|
||||
background: $primary-color;
|
||||
color: white;
|
||||
}
|
||||
@extend %button;
|
||||
&.disabled {
|
||||
border-color: #aaa;
|
||||
color: #aaa;
|
||||
|
|
Loading…
Reference in New Issue