-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make use of currentColor #62
Changes from all commits
96d4dec
bf23d90
22a5f99
8a2cede
ebbc304
972366f
5bfaba6
a9e7613
79d7148
711d8df
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -69,7 +69,7 @@ a.btn { | |
.btn-default, | ||
.btn-success, | ||
.btn-warning { | ||
@include button-variant-plain($btn-default-color, $btn-default-bg, $btn-default-border); | ||
@include button-variant-plain($btn-default-color, $btn-default-bg); | ||
} | ||
// Appears in Talis turqoise | ||
.btn-primary { | ||
|
@@ -78,12 +78,12 @@ a.btn { | |
|
||
// Info appears as pink | ||
.btn-info { | ||
@include button-variant-plain($btn-default-color, $btn-default-bg, $btn-default-border); | ||
@include button-variant-plain($btn-default-color, $btn-default-bg); | ||
} | ||
|
||
// Danger and error appear as a plain button with red text... | ||
.btn-danger { | ||
@include button-variant-plain($btn-danger-color, $btn-danger-bg, $btn-danger-color); | ||
@include button-variant-plain($btn-danger-color, $btn-danger-bg); | ||
} | ||
|
||
.btn-alert { | ||
|
@@ -96,8 +96,8 @@ a.btn { | |
|
||
// Make a button look and behave like a link | ||
.btn-link { | ||
font-weight: 400; | ||
color: $link-color; | ||
border-color: transparent; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
font-weight: 600; | ||
|
||
&, | ||
|
@@ -115,26 +115,26 @@ a.btn { | |
} | ||
|
||
&:hover { | ||
border-color: $btn-default-border; | ||
border-color: currentColor; | ||
background-color: $gray200; | ||
} | ||
|
||
&:focus { | ||
border-color: $btn-default-color; | ||
border-color: currentColor; | ||
background-color: transparent; | ||
box-shadow: 0px 0px 0px 1px $btn-default-border; | ||
box-shadow: 0px 0px 0px 1px currentColor; | ||
} | ||
|
||
&:hover:focus { | ||
background-color: $gray200; | ||
border-color: $btn-default-color; | ||
box-shadow: 0px 0px 0px 1px $btn-default-border; | ||
border-color: currentColor; | ||
box-shadow: 0px 0px 0px 1px currentColor | ||
} | ||
|
||
&:active { | ||
background-color: $gray200; | ||
border-color: $btn-default-color; | ||
box-shadow: 0px 0px 0px 1px $btn-default-border; | ||
border-color: currentColor; | ||
box-shadow: 0px 0px 0px 1px currentColor; | ||
} | ||
|
||
&[disabled], | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,4 +15,10 @@ | |
a { | ||
color: $text-color; | ||
} | ||
.btn-alert { | ||
text-decoration: none; | ||
&:hover { | ||
color: $white !important; | ||
} | ||
} | ||
Comment on lines
+18
to
+23
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,10 +3,10 @@ | |
// Easily pump out default styles, as well as :hover, :focus, :active, | ||
// and disabled options for all buttons | ||
|
||
@mixin button-variant-plain($color, $background, $border) { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The |
||
@mixin button-variant-plain($color, $background) { | ||
color: $color; | ||
background-color: $background; | ||
border-color: $border; | ||
border-color: currentColor; | ||
|
||
&:hover { | ||
background-color: #E9ECEF; | ||
|
@@ -17,13 +17,13 @@ | |
&.focus { | ||
color: darken(saturate(adjust-hue($color, -0.2776), 1.4706), 7.0588); | ||
background-color: $background; | ||
border-color: darken(saturate(adjust-hue($color, -0.2776), 1.4706), 7.0588);; | ||
box-shadow: 0px 0px 0px 1px $color; | ||
border-color: currentColor; | ||
box-shadow: 0px 0px 0px 1px currentColor; | ||
} | ||
|
||
&:focus:hover { | ||
background-color: #E9ECEF; | ||
box-shadow: 0px 0px 0px 1px $color; | ||
box-shadow: 0px 0px 0px 1px currentColor; | ||
} | ||
|
||
&:active, | ||
|
@@ -35,7 +35,7 @@ | |
&:focus, | ||
&.focus { | ||
background-color: #E9ECEF; | ||
box-shadow: 0px 0px 0px 1px $color; | ||
box-shadow: 0px 0px 0px 1px currentColor; | ||
} | ||
} | ||
|
||
|
@@ -199,6 +199,10 @@ | |
background-image: none; | ||
} | ||
|
||
&:hover:active { | ||
background-color: $black; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Should favour hover There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Was it going transparent again when clicked? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
} | ||
|
||
&.disabled, | ||
&[disabled], | ||
fieldset[disabled] { | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Redefined two lines below