Skip to content
This repository was archived by the owner on Mar 27, 2025. It is now read-only.

Commit 02750f5

Browse files
committed
fix: scss
ci: fix script
1 parent 7af6903 commit 02750f5

File tree

7 files changed

+79
-1
lines changed

7 files changed

+79
-1
lines changed

.github/workflows/release-main.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ jobs:
6565
if: ${{ steps.release.outputs.releases_created }}
6666

6767
- name: Build Library
68-
run: pnpm run build-emit --filter bootstrap-vue-next && pnpm run build --filter @bootstrap-vue-next/nuxt
68+
run: pnpm run build-emit --filter bootstrap-vue-next --filter @bootstrap-vue-next/nuxt
6969
if: ${{ steps.release.outputs.releases_created }}
7070

7171
- name: Publish Main

package.json

+1
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
"prepare": "husky install && turbo run build",
2727
"dev": "turbo run dev --parallel",
2828
"build": "turbo run build",
29+
"build-emit": "turbo run build-emit",
2930
"lint": "turbo run lint",
3031
"test:lint": "turbo run test:lint",
3132
"test:unit": "turbo run test:unit",
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
$b-toast-background-opacity: alpha($toast-background-color) !default;
2+
3+
.b-toast {
4+
display: block;
5+
position: relative;
6+
max-width: $toast-max-width;
7+
backface-visibility: hidden;
8+
background-clip: padding-box;
9+
z-index: 1;
10+
11+
@include border-radius($toast-border-radius);
12+
13+
.toast {
14+
// Allow us to override Bootstrap's default toast opacity
15+
// As they do not provide it as a variable
16+
background-color: rgba($toast-background-color, $b-toast-background-opacity);
17+
}
18+
19+
&:not(:last-child) {
20+
margin-bottom: $toast-padding-x;
21+
}
22+
23+
&.b-toast-solid {
24+
.toast {
25+
background-color: rgba($toast-background-color, 1);
26+
}
27+
}
28+
29+
.toast {
30+
// Override default Bootstrap v4.x opacity of 0
31+
// Needed for re-usable fade transition
32+
.toast-body {
33+
display: block; // Needed when we use a link as the body element
34+
}
35+
}
36+
}
37+
38+
// .b-toast-primary{
39+
// color: red
40+
// }
41+
// rgba(204,229,255,.85)
42+
@mixin b-toast-variant($background, $border, $color) {
43+
// Based on alert-variant mixin
44+
background-color: rgba(lighten($background, 5%), $b-toast-background-opacity) !important;
45+
border-color: rgba($border, $b-toast-background-opacity) !important;
46+
color: $color;
47+
48+
.toast-header {
49+
color: $color;
50+
background-color: rgba($background, $b-toast-background-opacity);
51+
border-bottom-color: rgba($border, $b-toast-background-opacity);
52+
}
53+
54+
&.b-toast-solid {
55+
.toast {
56+
background-color: rgba(lighten($background, 5%), 1);
57+
}
58+
}
59+
}
60+
61+
@each $color, $value in $theme-colors {
62+
.b-toast-#{$color} {
63+
@include b-toast-variant(
64+
shift-color($value, $alert-bg-scale),
65+
shift-color($value, $alert-border-scale),
66+
shift-color($value, $alert-color-scale)
67+
);
68+
}
69+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
@import "toast";
2+
// @import "toaster";

packages/bootstrap-vue-next/src/styles/styles.scss

+1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
@import "../components/BTable/table";
1111
@import "../components/BFormInput/form-input";
1212
@import "../components/BFormSpinButton/spinbutton";
13+
@import "../components/BToast/index";
1314

1415
.container,
1516
.container-fluid {

packages/nuxt/package.json

+1
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
"prepack": "nuxt-module-build",
2525
"dev": "nuxi dev playground --port 3030",
2626
"build": "pnpm run dev:build && pnpm run prepack",
27+
"build-emit": "pnpm run build",
2728
"dev:build": "nuxi build playground",
2829
"dev:prepare": "nuxt-module-build --stub && nuxi prepare playground",
2930
"lint": "eslint --ext .js,.ts,.vue --ignore-path ../../.gitignore --fix",

turbo.json

+4
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@
55
"dependsOn": ["^build"],
66
"outputs": ["dist/**"]
77
},
8+
"build-emit": {
9+
"dependsOn": ["^build-emit"],
10+
"outputs": ["dist/**"]
11+
},
812
"test": {
913
"outputs": []
1014
},

0 commit comments

Comments
 (0)