精品久久久久久亚洲精品_成人午夜网站_www日本高清_亚洲精品久久久久午夜福

Sass

Utilize our source Sass files to take advantage of variables, maps, mixins, and functions to help you build faster and customize your project.

Utilize our source Sass files to take advantage of variables, maps, mixins, and more.

File structure

Whenever possible, avoid modifying Bootstrap’s core files. For Sass, that means creating your own stylesheet that imports Bootstrap so you can modify and extend it. Assuming you’re using a package manager like npm, you’ll have a file structure that looks like this:

your-project/
├── scss
│   └── custom.scss
└── node_modules/
└── bootstrap
    ├── js
    └── scss

If you’ve downloaded our source files and aren’t using a package manager, you’ll want to manually setup something similar to that structure, keeping Bootstrap’s source files separate from your own.

your-project/
├── scss
│   └── custom.scss
└── bootstrap/
├── js
└── scss

Importing

In your custom.scss, you’ll import Bootstrap’s source Sass files. You have two options: include all of Bootstrap, or pick the parts you need. We encourage the latter, though be aware there are some requirements and dependencies across our components. You also will need to include some JavaScript for our plugins.

// Custom.scss
// Option A: Include all of Bootstrap

// Include any default variable overrides here (though functions won't be available)

@import "../node_modules/bootstrap/scss/bootstrap";

// Then add additional custom code here
// 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

With that setup in place, you can begin to modify any of the Sass variables and maps in your custom.scss. You can also start to add parts of Bootstrap under the // Optional section as needed. We suggest using the full import stack from our bootstrap.scss file as your starting point.

Variable defaults

Every Sass variable in Bootstrap includes the !default flag allowing you to override the variable’s default value in your own Sass without modifying Bootstrap’s source code. Copy and paste variables as needed, modify their values, and remove the !default flag. If a variable has already been assigned, then it won’t be re-assigned by the default values in Bootstrap.

You will find the complete list of Bootstrap’s variables in scss/_variables.scss. Some variables are set to null, these variables don’t output the property unless they are overridden in your configuration.

Variable overrides must come after our functions, variables, and mixins are imported, but before the rest of the imports.

Here’s an example that changes the background-color and color for the <body> when importing and compiling Bootstrap via npm:

// Required
@import "../node_modules/bootstrap/scss/functions";

// Default variable overrides
$body-bg: #000;
$body-color: #111;

// Required
@import "../node_modules/bootstrap/scss/variables";
@import "../node_modules/bootstrap/scss/mixins";

// Bootstrap and its default variables

// Optional Bootstrap components here
@import "../node_modules/bootstrap/scss/root";
@import "../node_modules/bootstrap/scss/reboot";
@import "../node_modules/bootstrap/scss/type";
// etc

Repeat as necessary for any variable in Bootstrap, including the global options below.

Get started with Bootstrap via npm with our starter project! Head to the twbs/bootstrap-npm-starter template repository to see how to build and customize Bootstrap in your own npm project. Includes Sass compiler, Autoprefixer, Stylelint, PurgeCSS, and Bootstrap Icons.

Maps and loops

Bootstrap includes a handful of Sass maps, key value pairs that make it easier to generate families of related CSS. We use Sass maps for our colors, grid breakpoints, and more. Just like Sass variables, all Sass maps include the !default flag and can be overridden and extended.

Some of our Sass maps are merged into empty ones by default. This is done to allow easy expansion of a given Sass map, but comes at the cost of making removing items from a map slightly more difficult.

Modify map

All variables in the $theme-colors map are defined as standalone variables. To modify an existing color in our $theme-colors map, add the following to your custom Sass file:

$primary: #0074d9;
$danger: #ff4136;

Later on, theses variables are set in Bootstrap’s $theme-colors map:

$theme-colors: (
"primary": $primary,
"danger": $danger
);

Add to map

Add new colors to $theme-colors, or any other map, by creating a new Sass map with your custom values and merging it with the original map. In this case, we’ll create a new $custom-colors map and merge it with $theme-colors.

// Create your own map
$custom-colors: (
"custom-color": #900
);

// Merge the maps
$theme-colors: map-merge($theme-colors, $custom-colors);

Remove from map

To remove colors from $theme-colors, or any other map, use map-remove. Be aware you must insert it between our requirements and options:

// Required
@import "../node_modules/bootstrap/scss/functions";
@import "../node_modules/bootstrap/scss/variables";
@import "../node_modules/bootstrap/scss/mixins";

$theme-colors: map-remove($theme-colors, "info", "light", "dark");

// Optional
@import "../node_modules/bootstrap/scss/root";
@import "../node_modules/bootstrap/scss/reboot";
@import "../node_modules/bootstrap/scss/type";
// etc

Required keys

Bootstrap assumes the presence of some specific keys within Sass maps as we used and extend these ourselves. As you customize the included maps, you may encounter errors where a specific Sass map’s key is being used.

For example, we use the primary, success, and danger keys from $theme-colors for links, buttons, and form states. Replacing the values of these keys should present no issues, but removing them may cause Sass compilation issues. In these instances, you’ll need to modify the Sass code that makes use of those values.

Functions

Colors

Next to the Sass maps we have, theme colors can also be used as standalone variables, like $primary.

.custom-element {
color: $gray-100;
background-color: $dark;
}

You can lighten or darken colors with Bootstrap’s tint-color() and shade-color() functions. These functions will mix colors with black or white, unlike Sass' native lighten() and darken() functions which will change the lightness by a fixed amount, which often doesn’t lead to the desired effect.

// Tint a color: mix a color with white
@function tint-color($color, $weight) {
@return mix(white, $color, $weight);
}

// Shade a color: mix a color with black
@function shade-color($color, $weight) {
@return mix(black, $color, $weight);
}

// Shade the color if the weight is positive, else tint it
@function shift-color($color, $weight) {
@return if($weight > 0, shade-color($color, $weight), tint-color($color, -$weight));
}

In practice, you’d call the function and pass in the color and weight parameters.

.custom-element {
color: tint-color($primary, 10%);
}

.custom-element-2 {
color: shade-color($danger, 30%);
}

Color contrast

In order to meet WCAG 2.0 accessibility standards for color contrast, authors must provide a contrast ratio of at least 4.5:1, with very few exceptions.

An additional function we include in Bootstrap is the color contrast function, color-contrast. It utilizes the WCAG 2.0 algorithm for calculating contrast thresholds based on relative luminance in a sRGB colorspace to automatically return a light (#fff), dark (#212529) or black (#000) contrast color based on the specified base color. This function is especially useful for mixins or loops where you’re generating multiple classes.

For example, to generate color swatches from our $theme-colors map:

@each $color, $value in $theme-colors {
.swatch-#{$color} {
color: color-contrast($value);
}
}

It can also be used for one-off contrast needs:

.custom-element {
color: color-contrast(#000); // returns `color: #fff`
}

You can also specify a base color with our color map functions:

.custom-element {
color: color-contrast($dark); // returns `color: #fff`
}

Escape SVG

We use the escape-svg function to escape the <, > and # characters for SVG background images. When using the escape-svg function, data URIs must be quoted.

Add and Subtract functions

We use the add and subtract functions to wrap the CSS calc function. The primary purpose of these functions is to avoid errors when a “unitless” 0 value is passed into a calc expression. Expressions like calc(10px - 0) will return an error in all browsers, despite being mathematically correct.

Example where the calc is valid:

$border-radius: .25rem;
$border-width: 1px;

.element {
// Output calc(.25rem - 1px) is valid
  border-radius: calc($border-radius - $border-width);
}

.element {
// Output the same calc(.25rem - 1px) as above
  border-radius: subtract($border-radius, $border-width);
}

Example where the calc is invalid:

$border-radius: .25rem;
$border-width: 0;

.element {
// Output calc(.25rem - 0) is invalid
  border-radius: calc($border-radius - $border-width);
}

.element {
// Output .25rem
  border-radius: subtract($border-radius, $border-width);
}
返回頂部
精品久久久久久亚洲精品_成人午夜网站_www日本高清_亚洲精品久久久久午夜福

      9000px;">

          一区二区三区 欧美| 蜜桃久久一区二区三区| 青青草成人免费| www日韩在线| 无码少妇一区二区| 久久影院一区二区| 日本一区二区欧美| 国产三级视频在线播放| 中文字幕 自拍| 天堂av免费在线| 免费看一级一片| 黄色一级片免费的| 中文字幕一二区| 少妇一级淫免费放| 亚洲一二三av| 中文字幕视频在线播放| av在线播放网址| 97免费在线观看视频| 亚洲久久在线观看| 亚洲av无码一区二区三区人 | 人人妻人人玩人人澡人人爽| 日本不卡一区视频| 依人在线免费视频| a毛片在线免费观看| 久久久久久久久97| 国产在线观看你懂的| 国产极品在线播放| av网在线播放| 久久久久久久国产视频| 伊人av在线播放| 高潮毛片7777777毛片| www.国产com| 麻豆久久久久久久久久| 中文字幕码精品视频网站| 国产精久久久久| 三级网站在线免费观看| 日韩专区第一页| 99视频只有精品| 日本人添下边视频免费| 亚洲欧美高清在线| 久久人妻少妇嫩草av蜜桃| 在线观看日本一区二区| 国产无遮挡又黄又爽| 天堂在线一区二区三区| 男女视频免费看| 亚洲精品国产精品乱码视色| 91精品啪在线观看国产| 爱情岛论坛成人| 日韩人妻无码一区二区三区| 天天摸夜夜添狠狠添婷婷| 成人黄色片在线观看| 国产日韩在线免费观看| 丝袜 亚洲 另类 欧美 重口| 成人午夜福利视频| 婷婷激情小说网| 国产一区二区小视频| 亚洲精品成人av久久| 欧美 日韩 成人| 亚洲成人天堂网| 国产日韩在线观看一区| 久久久久亚洲AV成人无在| 亚洲视频在线观看一区二区三区| 蜜臀aⅴ国产精品久久久国产老师| 一本一道人人妻人人妻αv| 波多野结衣av在线观看| 午夜久久福利视频| 亚洲精品免费一区亚洲精品免费精品一区 | 精品无码人妻少妇久久久久久| 老司机久久精品| 91丨porny丨九色| 无码人妻精品一区二区中文| 久久久久久免费观看| 国产传媒免费在线观看| 中文字幕永久视频| 国产第一页第二页| 最近中文字幕在线视频| 日韩av片在线播放| 狠狠人妻久久久久久| 99热只有这里有精品| 中文字幕在线播放不卡| 婷婷激情五月网| 欧美一级片免费在线观看| 亚洲视频在线观看一区二区| 视频二区在线播放| 美女日批在线观看| 国产又黄又粗又爽| 懂色av一区二区三区四区| 亚洲在线精品视频| 一区二区三区视频网| 少妇人妻一区二区| 日本不卡一二区| 欧美久久久久久久久久久久| 激情五月婷婷网| 国产精品老女人| 午夜视频1000| 色欲狠狠躁天天躁无码中文字幕 | 午夜免费一级片| 日日噜噜夜夜狠狠| 欧美日韩国产黄色| 美女日批在线观看| 精品无码人妻少妇久久久久久| 国产性猛交96| 精品国产午夜福利| 国产又粗又猛又黄又爽无遮挡| 国产人妻精品午夜福利免费| 国产精品久久久久久久成人午夜| 东京热无码av男人的天堂| 91麻豆精品国产91久久综合| 亚洲综合网在线观看| 亚洲专区第一页| 91av久久久| 日韩黄色在线播放| 秋霞网一区二区三区| 日韩欧美视频免费观看| 日韩激情小视频| 五月天婷婷激情网| 中文字幕欧美激情极品| 亚洲精品视频导航| 91视频这里只有精品| 国产精品suv一区二区88| 国产美女自慰在线观看| 国产又粗又猛视频| 蜜臀av在线观看| 少妇人妻一区二区| 中文字幕成人动漫| 91aaa在线观看| 国产超碰在线播放| 久久久久久久久久一区| 欧美在线视频第一页| 天天操天天干天天舔| 中文字幕久久久久久久| www.麻豆av| 黄色一级片免费播放| 欧美偷拍一区二区三区| 午夜免费福利在线| 亚洲影视一区二区| 国产一二三四在线| 日本精品一区在线| 中文字幕资源在线观看| 国产超碰人人模人人爽人人添| 精品国产成人亚洲午夜福利| 日韩综合第一页| 亚洲欧美偷拍视频| 国产嫩bbwbbw高潮| 日韩乱码一区二区三区| 中文字幕一区在线播放| 国产精品特级毛片一区二区三区| 久久久免费高清视频| 五月婷婷激情久久| xfplay5566色资源网站| 久久久久99精品成人片三人毛片 | 亚洲av人人澡人人爽人人夜夜| 亚洲精品国产成人av在线| 成人公开免费视频| 欧美bbbbb性bbbbb视频| 中文字幕人妻熟女在线| 国产三级精品三级在线| 日本中文在线播放| av官网在线观看| 欧美精品xxxxx| 91激情视频在线| 你懂的国产在线| 亚洲欧美综合视频| 久久久精品少妇| 中文字幕亚洲欧洲| 久久精品一卡二卡| 中文字幕在线免费看线人| 精品人体无码一区二区三区| 伊人久久久久久久久久久久久久 | 天天综合网在线观看| www.国产视频.com| 日韩精品成人一区| 国产黄色片av| 伊人网在线综合| 精品人妻一区二区三区潮喷在线| 亚洲av鲁丝一区二区三区| 黑人精品一区二区三区| 亚洲 欧美 日韩 在线| 国产一二三四在线| 亚洲精品乱码久久久久久蜜桃欧美| 精品在线免费观看视频| 亚洲中文字幕一区| 日韩人妻无码一区二区三区| 国产精品9191| 亚洲国产欧美91| 欧美特黄一级片| 国产3p在线播放| 亚洲国产精品二区| 日本黄色www| 国产欧美久久久| 91精品国自产在线| 天天色综合av| 久久久久久久黄色| 成人黄色a级片| 中文字字幕在线中文乱码| 男女做爰猛烈刺激| 国产乱码久久久| 一级成人黄色片| 在线视频一二区| 日韩永久免费视频|