根據 Bootstrap檔案,當我們想要包含 SASS 模塊時,我們應該使用
// Custom.scss
// Option B: Include parts of Bootstrap
// 1. Include functions first (so you can manipulate colors, SVGs, calc, etc)
@import "../node_modules/bootstrap/scss/functions";
// 2. Include any default variable overrides here
// 3. Include remainder of required Bootstrap stylesheets
@import "../node_modules/bootstrap/scss/variables";
@import "../node_modules/bootstrap/scss/mixins";
// 4. Include any optional Bootstrap components as you like
@import "../node_modules/bootstrap/scss/root";
@import "../node_modules/bootstrap/scss/reboot";
@import "../node_modules/bootstrap/scss/type";
@import "../node_modules/bootstrap/scss/images";
@import "../node_modules/bootstrap/scss/containers";
@import "../node_modules/bootstrap/scss/grid";
// 5. Add additional custom code here
該目錄bootstrap/scss包含所有這些檔案:
-a---- 26-10-1985 10:15 2621 _accordion.scss
-a---- 26-10-1985 10:15 1474 _alert.scss
-a---- 26-10-1985 10:15 624 _badge.scss
-a---- 26-10-1985 10:15 923 _breadcrumb.scss
-a---- 26-10-1985 10:15 2969 _button-group.scss
-a---- 26-10-1985 10:15 2232 _buttons.scss
-a---- 26-10-1985 10:15 4800 _card.scss
-a---- 26-10-1985 10:15 5625 _carousel.scss
-a---- 26-10-1985 10:15 1127 _close.scss
-a---- 26-10-1985 10:15 1196 _containers.scss
-a---- 26-10-1985 10:15 5501 _dropdown.scss
-a---- 26-10-1985 10:15 256 _forms.scss
-a---- 26-10-1985 10:15 10621 _functions.scss
-a---- 26-10-1985 10:15 602 _grid.scss
-a---- 26-10-1985 10:15 266 _helpers.scss
-a---- 26-10-1985 10:15 1158 _images.scss
-a---- 26-10-1985 10:15 4552 _list-group.scss
-a---- 26-10-1985 10:15 899 _mixins.scss
-a---- 26-10-1985 10:15 5658 _modal.scss
-a---- 26-10-1985 10:15 2668 _nav.scss
-a---- 26-10-1985 10:15 7536 _navbar.scss
-a---- 26-10-1985 10:15 1933 _offcanvas.scss
-a---- 26-10-1985 10:15 1681 _pagination.scss
-a---- 26-10-1985 10:15 859 _placeholders.scss
-a---- 26-10-1985 10:15 4402 _popover.scss
-a---- 26-10-1985 10:15 1169 _progress.scss
-a---- 26-10-1985 10:15 12571 _reboot.scss
-a---- 26-10-1985 10:15 1880 _root.scss
-a---- 26-10-1985 10:15 1521 _spinners.scss
-a---- 26-10-1985 10:15 4215 _tables.scss
-a---- 26-10-1985 10:15 1168 _toasts.scss
-a---- 26-10-1985 10:15 2608 _tooltip.scss
-a---- 26-10-1985 10:15 425 _transitions.scss
-a---- 26-10-1985 10:15 1344 _type.scss
-a---- 26-10-1985 10:15 14038 _utilities.scss
-a---- 26-10-1985 10:15 67864 _variables.scss
如何準確知道要包括哪些資產?有表解釋嗎?
uj5u.com熱心網友回復:
絕大多數可選檔案是特定于組件的。您可以通過瀏覽檔案的組件部分來決定是否需要給定組件。
例如,_accordion.scss對應于Accordion Component。打算使用它?包括它!如果沒有,請跳過它。
任何不是組件的東西都記錄在 Bootstrap 的布局(例如_grid.scss)、內容(例如_type.scss)、表單、幫助程式或實用程式部分中。
您可以在 Bootstrap 檔案中找到所有這些內容。查看目錄或使用每個目錄的搜索功能。
轉載請註明出處,本文鏈接:https://www.uj5u.com/houduan/445233.html
標籤:推特引导
