-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Initial work on scoping Bootstrap styles.
* Bootstrap is loaded via NPM, and styles are loaded from node_modules into a build file. The corresponding change has not yet been made in the JavaScript, so the Libraries directory still remains. * Bootstrap styles are built using a script at assets/src/bootstrap that scopes the styles to the `.pf_container` parent element. I made some attempts to use PostCSS for proper scoping but it was difficult to integrate into the build process so I'm going with this expedient for the time being. * The resulting change in specificity for Bootstrap's core styles means that some PF-specific styles were no longer taking precedence. As such, some such styles had to be scoped as well. This happens mostly in the new assets/src/reader.scss, which is registered with WP as 'pf-reader'. See #1169.
- Loading branch information
1 parent
221b7a0
commit 931b9e3
Showing
9 changed files
with
10,576 additions
and
10,384 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
// This bootstraps Bootstrap so that we can scope it in post-CSS. | ||
import './bootstrap.scss'; |
Oops, something went wrong.