Skip to content
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

Add scss mixin for alert #22

Merged
merged 1 commit into from
Nov 11, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions themes/boodark/css/theme.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion themes/boodark/css/theme.css.map

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions themes/boodark/css/theme.rtl.css

Large diffs are not rendered by default.

26 changes: 0 additions & 26 deletions themes/boodark/scss/_alert.scss

This file was deleted.

3 changes: 2 additions & 1 deletion themes/boodark/scss/_bootstrap.scss
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@

// 4. Remove colors from `$theme-colors`
// $theme-colors: map-remove($theme-colors, "light", "dark");
@import "mixins/alert";

// 5. Include any optional Bootstrap CSS as needed
@import "../../../node_modules/bootstrap/scss/utilities";
Expand All @@ -34,7 +35,7 @@
@import "../../../node_modules/bootstrap/scss/breadcrumb";
@import "../../../node_modules/bootstrap/scss/pagination";
@import "../../../node_modules/bootstrap/scss/badge";
// @import "../../../node_modules/bootstrap/scss/alert";
@import "../../../node_modules/bootstrap/scss/alert";
// @import "../../../node_modules/bootstrap/scss/progress";
@import "../../../node_modules/bootstrap/scss/list-group";
@import "../../../node_modules/bootstrap/scss/close";
Expand Down
16 changes: 16 additions & 0 deletions themes/boodark/scss/mixins/_alert.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
// stylelint-disable at-rule-empty-line-before
// Alert mixins

// for dark mode, switch between $color and $background
// default bootstrap alert mixin
// @mixin alert-variant($background, $border, $color)

@mixin alert-variant($color, $border, $background) {
color: $color;
@include gradient-bg($background);
border-color: $border;

.alert-link {
color: shade-color($color, 20%);
}
}
2 changes: 1 addition & 1 deletion themes/boodark/scss/theme.scss
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
// @import "card";
@import "breadcrumb";
// @import "pagination";
@import "alert";
// @import "alert";
// @import "list-group";
@import "modal";
@import "console";
Expand Down