Skip to content

Commit

Permalink
fix: update outline button styles
Browse files Browse the repository at this point in the history
  • Loading branch information
danielmatthew committed Apr 19, 2021
1 parent a58cd78 commit 86470d8
Show file tree
Hide file tree
Showing 6 changed files with 62 additions and 22 deletions.
1 change: 0 additions & 1 deletion assets/app.js

This file was deleted.

2 changes: 2 additions & 0 deletions docs/assets/css/talis.css

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions docs/assets/css/talis.css.map

Large diffs are not rendered by default.

3 changes: 3 additions & 0 deletions scss/_alerts.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
.alert {
border-left-width: 3px;
}
54 changes: 54 additions & 0 deletions scss/_buttons.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
.btn-outline-primary,
.btn-outline-success,
.btn-outline-warning,
.btn-outline-info,
.btn-default,
.btn-success,
.btn-warning,
.btn-info,
.btn-link {
@include button-outline-variant(
$primary,
$accent,
$gray-200,
$accent,
$accent
)

&:focus {
box-shadow: 0 0 0 $btn-focus-width $primary;
}

&:active {
&:focus {
box-shadow: 0 0 0 $btn-focus-width $primary;
}
}
}

.btn-link {
border-color: transparent;
font-weight: 600;
text-decoration: none;
}

.btn-outline-danger,
.btn-danger {
@include button-outline-variant(
$red,
#a71a22,
$gray-200,
#a71a22,
#a71a22
)

&:focus {
box-shadow: 0 0 0 $btn-focus-width #a71a22;
}

&:active {
&:focus {
box-shadow: 0 0 0 $btn-focus-width #a71a22;
}
}
}
23 changes: 2 additions & 21 deletions scss/talis.scss
Original file line number Diff line number Diff line change
Expand Up @@ -139,24 +139,5 @@ $btn-font-weight: 600;
// Utilities
@import "bootstrap/scss/utilities/api";

.alert {
border-left-width: 3px;
}

.btn-outline-primary {
@include button-outline-variant(
$primary,
$accent,
$gray-200,
$accent,
$accent
)

&:focus {
box-shadow: 0 0 0 $btn-focus-width $primary;
}
}

.btn-default {
@extend .btn-outline-primary;
}
@import 'alerts';
@import 'buttons';

0 comments on commit 86470d8

Please sign in to comment.