]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
Add a banner mixin, helping future releases and maintenance (#36178)
authorGeoSot <geo.sotis@gmail.com>
Mon, 11 Jul 2022 23:36:12 +0000 (02:36 +0300)
committerGitHub <noreply@github.com>
Mon, 11 Jul 2022 23:36:12 +0000 (16:36 -0700)
* Add a banner mixin, helping future releases and maintenance

* Update scss/bootstrap-reboot.scss

Co-authored-by: Julien Déramond <julien.deramond@orange.com>
* Apply suggestions from code review

Co-authored-by: Julien Déramond <julien.deramond@orange.com>
Co-authored-by: Mark Otto <markd.otto@gmail.com>
scss/bootstrap-grid.scss
scss/bootstrap-reboot.scss
scss/bootstrap-utilities.scss
scss/bootstrap.scss
scss/mixins/_banner.scss [new file with mode: 0644]

index 115cab4db5537548d90b4ad5e9c5bd3fb4485fad..1c4cdd1a0f93d387ea0cd84af287ab739247be18 100644 (file)
@@ -1,9 +1,5 @@
-/*!
- * Bootstrap Grid v5.2.0-beta1 (https://getbootstrap.com/)
- * Copyright 2011-2022 The Bootstrap Authors
- * Copyright 2011-2022 Twitter, Inc.
- * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
- */
+@import "mixins/banner";
+@include bsBanner(Grid);
 
 $include-column-box-sizing: true !default;
 
index 4bae00fe785e513714f3054abc48ac7402c2cd30..af527459438a09e23125ac6192cb897a7fbcf416 100644 (file)
@@ -1,10 +1,5 @@
-/*!
- * Bootstrap Reboot v5.2.0-beta1 (https://getbootstrap.com/)
- * Copyright 2011-2022 The Bootstrap Authors
- * Copyright 2011-2022 Twitter, Inc.
- * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
- * Forked from Normalize.css, licensed MIT (https://github.com/necolas/normalize.css/blob/master/LICENSE.md)
- */
+@import "mixins/banner";
+@include bsBanner(Reboot);
 
 @import "functions";
 @import "variables";
index 43a40c5c66c29420da428103678e9526904a05ea..c940676ac1c2aa670b3db5b452a98b9644fd6639 100644 (file)
@@ -1,9 +1,5 @@
-/*!
- * Bootstrap Utilities v5.2.0-beta1 (https://getbootstrap.com/)
- * Copyright 2011-2022 The Bootstrap Authors
- * Copyright 2011-2022 Twitter, Inc.
- * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
- */
+@import "mixins/banner";
+@include bsBanner(Utilities);
 
 // Configuration
 @import "functions";
index a167ff89a73f366e60aa61e7cecd9868a780c671..8f8296deff98d6dd4110f237d019cc765dbd2e34 100644 (file)
@@ -1,9 +1,6 @@
-/*!
- * Bootstrap v5.2.0-beta1 (https://getbootstrap.com/)
- * Copyright 2011-2022 The Bootstrap Authors
- * Copyright 2011-2022 Twitter, Inc.
- * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
- */
+@import "mixins/banner";
+@include bsBanner("");
+
 
 // scss-docs-start import-stack
 // Configuration
diff --git a/scss/mixins/_banner.scss b/scss/mixins/_banner.scss
new file mode 100644 (file)
index 0000000..718c937
--- /dev/null
@@ -0,0 +1,9 @@
+@mixin bsBanner($file, $suffix:"") {
+  /*!
+   * Bootstrap #{$file} v5.2.0-beta1 (https://getbootstrap.com/)
+   * Copyright 2011-2022 The Bootstrap Authors
+   * Copyright 2011-2022 Twitter, Inc.
+   * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
+   */
+}
+