Skip to content

Commit

Permalink
fix: update buttons
Browse files Browse the repository at this point in the history
  • Loading branch information
danielmatthew committed Apr 20, 2021
1 parent 460bfe8 commit 242b9c2
Show file tree
Hide file tree
Showing 4 changed files with 80 additions and 13 deletions.
2 changes: 1 addition & 1 deletion docs/assets/css/talis.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/assets/css/talis.css.map

Large diffs are not rendered by default.

82 changes: 72 additions & 10 deletions scss/_buttons.scss
Original file line number Diff line number Diff line change
@@ -1,29 +1,31 @@
.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(
@include button-variant(
$white,
$primary,
$primary,
$gray-200,
$accent,
$accent,
$gray-200,
$accent,
$accent
$accent,
$white,
$gray-500,
$gray-500
)

background-color: $white;

&:focus {
box-shadow: 0 0 0 $btn-focus-width $primary;
background-color: $white;
box-shadow: 0 0 0 $btn-focus-width $accent;
}

&:active {
&:focus {
box-shadow: 0 0 0 $btn-focus-width $primary;
box-shadow: 0 0 0 $btn-focus-width $accent;
}
}
}
Expand All @@ -35,6 +37,13 @@
text-decoration: none;
}

.btn-outline-primary,
.btn-outline-success,
.btn-outline-warning,
.btn-outline-info {
@extend .btn-default;
}

.btn-outline-danger,
.btn-danger {
@include button-outline-variant(
Expand Down Expand Up @@ -63,4 +72,57 @@
border-color: $white;
box-shadow: 0px 0px 0px $btn-focus-width $white, 0px 0px 0px 2px $primary;
}

&:disabled,
&.disabled {
background-color: $gray-500;
border-color: $gray-500;
}
}

.btn-alert {
@include button-outline-variant(
$black,
$gray-200,
transparent,
$black,
$black
)

&:hover {
color: $black;
background-color: $gray-200;
}

&:focus {
border-color: $black;
box-shadow: 0px 0px 0px $btn-focus-width $black, 0px 0px 0px 2px transparent;
}
}

.btn-alert--primary {
@include button-variant(
$black,
$black,
$white,
$gray-900,
$gray-900,
$white,
$black,
$white,
$white,
$gray-500,
$gray-500,
$white
)

&:focus {
border-color: $black;
box-shadow: 0px 0px 0px $btn-focus-width $white, 0px 0px 0px 2px $black;
}
}

.btn-lg {
font-weight: 400;
}

7 changes: 6 additions & 1 deletion scss/talis.scss
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,12 @@ $modal-backdrop-opacity: .8;

$input-btn-focus-width: 1px !default;
$input-btn-focus-box-shadow: 0 0 0 1px currentColor !default;
$btn-font-weight: 600;
$btn-font-weight: 600 !default;
$btn-transition: background-color 1s cubic-bezier(0.19, 1, 0.22, 1) !default;
$btn-disabled-opacity: 1 !default;
$btn-link-color: $primary !default;
$btn-link-hover-color: $accent !default;
$btn-link-disabled-color: $gray-500 !default;

@import "bootstrap/scss/variables";
@import "bootstrap/scss/mixins";
Expand Down

0 comments on commit 242b9c2

Please sign in to comment.