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

Utility API

The utility API is a Sass-based tool to generate utility classes.

Bootstrap utilities are generated with our utility API and can be used to modify or extend our default set of utility classes via Sass. Our utility API is based on a series of Sass maps and functions for generating families of classes with various options. If you’re unfamiliar with Sass maps, read up on the official Sass docs to get started.

The $utilities map contains all our utilities and is later merged with your custom $utilities map, if present. The utility map contains a keyed list of utility groups which accept the following options:

Option Type Description
property Required Name of the property, this can be a string or an array of strings (e.g., horizontal paddings or margins).
values Required List of values, or a map if you don’t want the class name to be the same as the value. If null is used as map key, it isn’t compiled.
class Optional Variable for the class name if you don’t want it to be the same as the property. In case you don’t provide the class key and property key is an array of strings, the class name will be the first element of the property array.
state Optional List of pseudo-class variants like :hover or :focus to generate for the utility. No default value.
responsive Optional Boolean indicating if responsive classes need to be generated. false by default.
rfs Optional Boolean to enable fluid rescaling. Have a look at the RFS page to find out how this works. false by default.
print Optional Boolean indicating if print classes need to be generated. false by default.
rtl Optional Boolean indicating if utility should be kept in RTL. true by default.

API explained

All utility variables are added to the $utilities variable within our _utilities.scss stylesheet. Each group of utilities looks something like this:

$utilities: (
  "opacity": (
    property: opacity,
    values: (
      0: 0,
      25: .25,
      50: .5,
      75: .75,
      100: 1,
    )
  )
 );

Which outputs the following:

.opacity-0 { opacity: 0; }
.opacity-25 { opacity: .25; }
.opacity-50 { opacity: .5; }
.opacity-75 { opacity: .75; }
.opacity-100 { opacity: 1; }

Custom class prefix

Use the class option to change the class prefix used in the compiled CSS:

$utilities: (
  "opacity": (
    property: opacity,
    class: o,
    values: (
      0: 0,
      25: .25,
      50: .5,
      75: .75,
      100: 1,
    )
  )
 );

Output:

.o-0 { opacity: 0; }
.o-25 { opacity: .25; }
.o-50 { opacity: .5; }
.o-75 { opacity: .75; }
.o-100 { opacity: 1; }

States

Use the state option to generate pseudo-class variations. Example pseudo-classes are :hover and :focus. When a list of states are provided, classnames are created for that pseudo-class. For example, to change opacity on hover, add state: hover and you’ll get .opacity-hover:hover in your compiled CSS.

Need multiple pseudo-classes? Use a space-separated list of states: state: hover focus.

$utilities: (
  "opacity": (
    property: opacity,
    class: opacity,
    state: hover,
    values: (
      0: 0,
      25: .25,
      50: .5,
      75: .75,
      100: 1,
    )
  )
);

Output:

.opacity-0-hover:hover { opacity: 0; }
.opacity-25-hover:hover { opacity: .25; }
.opacity-50-hover:hover { opacity: .5; }
.opacity-75-hover:hover { opacity: .75; }
.opacity-100-hover:hover { opacity: 1; }

Responsive utilities

Add the responsive boolean to generate responsive utilities (e.g., .opacity-md-25) across all breakpoints.

$utilities: (
  "opacity": (
    property: opacity,
    responsive: true,
    values: (
      0: 0,
      25: .25,
      50: .5,
      75: .75,
      100: 1,
    )
  )
 );

Output:

.opacity-0 { opacity: 0; }
.opacity-25 { opacity: .25; }
.opacity-50 { opacity: .5; }
.opacity-75 { opacity: .75; }
.opacity-100 { opacity: 1; }

@media (min-width: 576px) {
  .opacity-sm-0 { opacity: 0; }
  .opacity-sm-25 { opacity: .25; }
  .opacity-sm-50 { opacity: .5; }
  .opacity-sm-75 { opacity: .75; }
  .opacity-sm-100 { opacity: 1; }
}

@media (min-width: 768px) {
  .opacity-md-0 { opacity: 0; }
  .opacity-md-25 { opacity: .25; }
  .opacity-md-50 { opacity: .5; }
  .opacity-md-75 { opacity: .75; }
  .opacity-md-100 { opacity: 1; }
}

@media (min-width: 992px) {
  .opacity-lg-0 { opacity: 0; }
  .opacity-lg-25 { opacity: .25; }
  .opacity-lg-50 { opacity: .5; }
  .opacity-lg-75 { opacity: .75; }
  .opacity-lg-100 { opacity: 1; }
}

@media (min-width: 1200px) {
  .opacity-xl-0 { opacity: 0; }
  .opacity-xl-25 { opacity: .25; }
  .opacity-xl-50 { opacity: .5; }
  .opacity-xl-75 { opacity: .75; }
  .opacity-xl-100 { opacity: 1; }
}

@media (min-width: 1400px) {
  .opacity-xxl-0 { opacity: 0; }
  .opacity-xxl-25 { opacity: .25; }
  .opacity-xxl-50 { opacity: .5; }
  .opacity-xxl-75 { opacity: .75; }
  .opacity-xxl-100 { opacity: 1; }
}

Changing utilities

Override existing utilities by using the same key. For example, if you want additional responsive overflow utility classes, you can do this:

$utilities: (
  "overflow": (
    responsive: true,
    property: overflow,
    values: visible hidden scroll auto,
  ),
);

Enabling the print option will also generate utility classes for print, which are only applied within the @media print { ... } media query.

$utilities: (
  "opacity": (
    property: opacity,
    print: true,
    values: (
      0: 0,
      25: .25,
      50: .5,
      75: .75,
      100: 1,
    )
  )
 );

Output:

.opacity-0 { opacity: 0; }
.opacity-25 { opacity: .25; }
.opacity-50 { opacity: .5; }
.opacity-75 { opacity: .75; }
.opacity-100 { opacity: 1; }

@media print {
  .opacity-print-0 { opacity: 0; }
  .opacity-print-25 { opacity: .25; }
  .opacity-print-50 { opacity: .5; }
  .opacity-print-75 { opacity: .75; }
  .opacity-print-100 { opacity: 1; }
}

Using the API

Now that you’re familiar with how the utilities API works, learn how to add your own custom classes and modify our default utilities.

Add utilities

New utilities can be added to the default $utilities map with a map-merge. Make sure our required Sass files and _utilities.scss are imported first, then use the map-merge to add your additional utilities. For example, here’s how to add a responsive cursor utility with three values.

@import "bootstrap/scss/functions";
@import "bootstrap/scss/variables";
@import "bootstrap/scss/utilities";

$utilities: map-merge(
  $utilities,
  (
    "cursor": (
      property: cursor,
      class: cursor,
      responsive: true,
      values: auto pointer grab,
    )
  )
);

Modify utilities

Modify existing utilities in the default $utilities map with map-get and map-merge functions. In the example below, we’re adding an additional value to the width utilities. Start with an initial map-merge and then specify which utility you want to modify. From there, fetch the nested "width" map with map-get to access and modify the utility’s options and values.

@import "bootstrap/scss/functions";
@import "bootstrap/scss/variables";
@import "bootstrap/scss/utilities";

$utilities: map-merge(
  $utilities,
  (
    "width": map-merge(
      map-get($utilities, "width"),
      (
        values: map-merge(
          map-get(map-get($utilities, "width"), "values"),
          (10: 10%),
        ),
      ),
    ),
  )
);

Rename utilities

Missing v4 utilities, or used to another naming convention? The utilities API can be used to override the resulting class of a given utility—for example, to rename .ms-* utilities to oldish .ml-*:

@import "bootstrap/scss/functions";
@import "bootstrap/scss/variables";
@import "bootstrap/scss/utilities";

$utilities: map-merge(
  $utilities, (
    "margin-start": map-merge(
      map-get($utilities, "margin-start"),
      ( class: ml ),
    ),
  )
);

Remove utilities

Remove any of the default utilities by setting the group key to null. For example, to remove all our width utilities, create a $utilities map-merge and add "width": null within.

@import "bootstrap/scss/functions";
@import "bootstrap/scss/variables";
@import "bootstrap/scss/utilities";

$utilities: map-merge(
  $utilities,
  (
    "width": null
  )
);

Remove utility in RTL

Some edge cases make RTL styling difficult, such as line breaks in Arabic. Thus utilities can be dropped from RTL output by setting the rtl option to false:

$utilities: (
  "word-wrap": (
    property: word-wrap word-break,
    class: text,
    values: (break: break-word),
    rtl: false
  ),
);

Output:

/* rtl:begin:remove */
.text-break {
  word-wrap: break-word !important;
  word-break: break-word !important;
}
/* rtl:end:remove */

This doesn’t output anything in RTL, thanks to the RTLCSS remove control directive.

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

      9000px;">

          99久久精品国产麻豆演员表| 美女精品一区二区| 欧美变态凌虐bdsm| 欧美午夜精品一区二区三区| 国产不卡一区视频| 国产精品影视在线观看| 日本一不卡视频| 日本怡春院一区二区| 天天做天天摸天天爽国产一区 | 国产成人亚洲精品青草天美| 久久草av在线| 激情丁香综合五月| 蜜臀av性久久久久蜜臀aⅴ四虎 | 97久久人人超碰| 成人教育av在线| 成人国产亚洲欧美成人综合网 | 精品视频999| 欧美日韩精品欧美日韩精品 | 99精品视频在线观看| 99综合电影在线视频| 99re6这里只有精品视频在线观看| 岛国精品在线观看| 99久久精品国产观看| 欧美性三三影院| 欧美日高清视频| 精品裸体舞一区二区三区| 久久新电视剧免费观看| 久久麻豆一区二区| 国产欧美日本一区视频| 亚洲美女在线一区| 秋霞电影网一区二区| 国产在线观看一区二区| 成人午夜又粗又硬又大| 91丝袜美腿高跟国产极品老师| 欧美色偷偷大香| 日韩午夜在线观看视频| 日本一区二区综合亚洲| 一区二区三区精品视频| 久久国产日韩欧美精品| 97久久久精品综合88久久| 欧美性做爰猛烈叫床潮| 欧美一区欧美二区| 国产精品传媒在线| 免费观看成人鲁鲁鲁鲁鲁视频| 国产不卡视频一区二区三区| 欧美日韩日本视频| 亚洲国产电影在线观看| 一区二区三区精品久久久| 久久电影国产免费久久电影| 色婷婷精品久久二区二区蜜臂av | 久久99蜜桃精品| 91在线观看美女| 日韩欧美精品在线| 欧美激情中文不卡| 免费观看一级欧美片| 色婷婷激情一区二区三区| 精品国产123| 亚洲国产成人av网| 99久久免费视频.com| 日韩一二在线观看| 亚洲激情图片小说视频| 国内精品国产成人国产三级粉色 | 亚洲影视在线观看| 高清成人在线观看| 日韩精品在线看片z| 亚洲国产一区二区视频| 成人av在线一区二区三区| 精品日韩一区二区三区| 日韩高清一区二区| 欧美在线看片a免费观看| 国产精品乱人伦| 国产在线精品国自产拍免费| 欧美一区二区视频网站| 亚洲午夜精品网| 色94色欧美sute亚洲13| 中文字幕av一区二区三区免费看| 三级一区在线视频先锋| 成人app网站| 欧美一级久久久久久久大片| 亚洲国产日韩在线一区模特| 色综合久久中文字幕| 国产精品午夜免费| 韩国精品久久久| 精品久久国产97色综合| 美女精品一区二区| 日韩美女天天操| 亚洲免费观看在线视频| gogo大胆日本视频一区| 国产精品美女久久福利网站| 成人免费毛片嘿嘿连载视频| 国产精品欧美一区喷水| 91色porny| 亚洲蜜桃精久久久久久久| 在线观看日韩精品| 亚洲一级电影视频| 日韩欧美国产高清| 久久国产精品免费| 国产欧美一区二区精品性色| 丁香天五香天堂综合| 成人免费在线视频| 欧美中文字幕亚洲一区二区va在线| 亚洲欧美国产毛片在线| 在线视频国内自拍亚洲视频| 婷婷丁香久久五月婷婷| 久久婷婷久久一区二区三区| 国产精品亚洲午夜一区二区三区| 国产精品久久国产精麻豆99网站| 色综合欧美在线视频区| 性感美女极品91精品| 日韩一区二区免费电影| 国产一区二区三区四区五区入口| 国产女主播在线一区二区| 在线一区二区三区| 久久超碰97中文字幕| 亚洲视频中文字幕| 91麻豆精品国产无毒不卡在线观看| 老汉av免费一区二区三区| 中文字幕一区二区在线播放 | 亚洲成在人线免费| 2020国产成人综合网| 色综合久久九月婷婷色综合| 全部av―极品视觉盛宴亚洲| 综合精品久久久| 欧美一区中文字幕| 91传媒视频在线播放| 国产乱码精品一区二区三| 亚洲一区二区三区影院| 久久久久久久久久电影| 欧美性欧美巨大黑白大战| 国产激情偷乱视频一区二区三区| 综合久久国产九一剧情麻豆| 精品女同一区二区| 91.麻豆视频| 成人激情免费网站| 裸体健美xxxx欧美裸体表演| 亚洲日韩欧美一区二区在线| 久久综合九色综合欧美就去吻| 欧美视频一区二| eeuss国产一区二区三区| 国产一区二区视频在线| 亚洲综合色婷婷| 亚洲免费在线看| 国产欧美一区二区精品仙草咪| 欧美成人a∨高清免费观看| 9人人澡人人爽人人精品| 激情综合亚洲精品| 免费观看成人av| 日韩激情视频网站| 亚洲精品成人悠悠色影视| 国产亚洲精品久| 久久综合99re88久久爱| 日韩视频在线一区二区| 制服丝袜亚洲精品中文字幕| 欧美日韩国产一区二区三区地区| 色狠狠一区二区三区香蕉| 东方aⅴ免费观看久久av| 韩国三级中文字幕hd久久精品| 琪琪久久久久日韩精品| 天堂久久久久va久久久久| 午夜精品久久久久久久久| 亚洲综合在线视频| 亚洲一区在线观看视频| 天堂蜜桃一区二区三区 | 国产一区二区免费在线| 亚洲成av人**亚洲成av**| 亚洲一二三四在线观看| 亚洲精品乱码久久久久久久久| 一区二区三区四区中文字幕| 日韩理论片在线| 亚洲综合在线视频| 亚洲一区二区三区激情| 亚洲电影视频在线| 热久久国产精品| 国产一区999| 懂色一区二区三区免费观看| 成人性生交大合| 91麻豆福利精品推荐| 欧美午夜视频网站| 欧美成人vps| 国产日韩影视精品| 亚洲老司机在线| 日韩av一级电影| 国产呦精品一区二区三区网站| 国产精品99久久久久久似苏梦涵| 国产成人福利片| 色www精品视频在线观看| 日韩一区二区三区三四区视频在线观看 | 亚洲欧美在线视频观看| 亚洲成人在线免费| 国产高清在线精品| 91成人看片片| 精品国内片67194| 亚洲精品福利视频网站| 麻豆成人久久精品二区三区红 | 国产美女久久久久| 色丁香久综合在线久综合在线观看| 欧美伦理电影网| 国产精品国产自产拍在线| 亚洲国产wwwccc36天堂| 国产剧情一区在线|