精品久久久久久亚洲精品_成人午夜网站_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;">

          日韩影院精彩在线| 国产九色精品成人porny| 免费在线看成人av| 欧美一区二区三区视频免费播放| 香蕉久久一区二区不卡无毒影院 | 色综合久久88色综合天天免费| 国产精品免费丝袜| 欧美视频在线播放| 激情久久五月天| 一区二区三区日韩精品视频| 欧美va在线播放| 日本韩国欧美三级| 国产成人午夜视频| 国产最新精品精品你懂的| 国产精品网站在线观看| 精品视频123区在线观看| 蜜臀久久99精品久久久久久9 | 久久午夜电影网| 欧美日韩www| 久久综合狠狠综合久久综合88| 国产精品家庭影院| 国产91精品久久久久久久网曝门| 欧美巨大另类极品videosbest| 午夜av一区二区三区| 欧美一区二区人人喊爽| 国产原创一区二区| 久久久久久免费毛片精品| 日日摸夜夜添夜夜添精品视频| 欧美日韩国产bt| 免费人成精品欧美精品 | 欧美顶级少妇做爰| 国产精品久久久久久久久快鸭| 粉嫩av一区二区三区| 久久久蜜桃精品| 久久精品一区八戒影视| 日韩一区二区在线看| 久久久综合视频| 5月丁香婷婷综合| 成人免费视频一区| 国产馆精品极品| 91精品国产全国免费观看| 成人性色生活片免费看爆迷你毛片| 视频一区二区国产| 亚洲国产日韩a在线播放性色| 国产清纯白嫩初高生在线观看91 | 国产视频视频一区| 日韩在线播放一区二区| 亚洲视频一区二区在线| 中文成人av在线| 久久综合色鬼综合色| 日韩午夜小视频| 欧美精选在线播放| 91福利在线看| 成人美女在线视频| 精品一区二区三区的国产在线播放 | 亚洲免费观看在线观看| 国产片一区二区| 6080yy午夜一二三区久久| 亚洲成av人影院| 一区二区三区不卡视频| 亚洲精品写真福利| 一区二区在线观看视频在线观看| 亚洲婷婷国产精品电影人久久| 国产精品美女久久久久久久久久久| 欧美高清一级片在线观看| 亚洲同性同志一二三专区| 亚洲视频免费在线观看| 亚洲成av人片www| 精品一区二区在线观看| 国产成人在线免费观看| 91色综合久久久久婷婷| 欧美日本韩国一区二区三区视频| 制服.丝袜.亚洲.中文.综合| 久久久青草青青国产亚洲免观| 国产欧美日韩三级| 亚洲人快播电影网| 日韩在线一二三区| 成人蜜臀av电影| 这里是久久伊人| 亚洲欧美综合另类在线卡通| 午夜欧美电影在线观看| 国产精品99久久不卡二区| 99视频精品在线| 制服丝袜一区二区三区| 国产片一区二区三区| 亚洲综合一区二区精品导航| 青椒成人免费视频| 99久久精品国产麻豆演员表| 91精品国产aⅴ一区二区| 欧美激情一二三区| 亚洲成人免费观看| 成人精品免费视频| 欧美日韩三级在线| 欧美激情一区三区| 日韩国产欧美一区二区三区| 成人中文字幕合集| 欧美日韩亚洲不卡| 国产精品视频你懂的| 免费亚洲电影在线| 99在线视频精品| 精品日韩99亚洲| 69av一区二区三区| 欧洲精品一区二区| 国产精品美女久久久久aⅴ | 国产999精品久久久久久| 波多野结衣中文字幕一区| 在线播放国产精品二区一二区四区| 国产日韩精品一区二区三区在线| 日韩和欧美一区二区| 日本韩国欧美一区二区三区| 国产精品美女视频| 国产jizzjizz一区二区| 欧美电影免费提供在线观看| 亚洲国产精品久久艾草纯爱 | 欧美精品黑人性xxxx| 亚洲视频一区在线观看| 粉嫩高潮美女一区二区三区 | 国产欧美日本一区视频| 日韩电影在线一区二区三区| 欧美日韩亚洲不卡| 天堂资源在线中文精品| 在线日韩一区二区| 亚洲综合色网站| 欧美人与性动xxxx| 天堂一区二区在线| 在线日韩av片| 亚洲国产精品影院| 欧美日韩一区二区三区在线| 亚洲高清一区二区三区| 欧美写真视频网站| 五月天丁香久久| 日韩一区二区免费在线观看| 免费高清在线一区| 久久综合色一综合色88| 国产高清亚洲一区| 亚洲欧洲精品一区二区三区| 欧美在线free| 麻豆国产欧美日韩综合精品二区| 日韩女优视频免费观看| 国产美女精品在线| 亚洲欧美另类在线| 欧美系列亚洲系列| 国产中文字幕一区| 国产精品国产三级国产专播品爱网 | 亚洲午夜一区二区三区| 欧美日韩国产免费一区二区| 天堂精品中文字幕在线| 91精品国产福利在线观看| 欧美日韩在线观看一区二区| 午夜不卡在线视频| 久久先锋影音av| 色94色欧美sute亚洲线路一ni| 午夜视频在线观看一区二区| 欧美亚洲日本国产| 欧美激情一区三区| 亚洲综合在线观看视频| 色婷婷av一区二区| 丝袜亚洲另类欧美| 男男成人高潮片免费网站| 在线免费观看日本欧美| 日本成人在线不卡视频| 国产午夜精品在线观看| 欧美在线影院一区二区| 久色婷婷小香蕉久久| 亚洲老司机在线| www国产亚洲精品久久麻豆| 欧美午夜一区二区三区免费大片| 国模少妇一区二区三区| 亚洲电影激情视频网站| 国产精品女上位| 日韩欧美不卡在线观看视频| 美女视频一区二区| 99国产精品久久久| 久久99精品久久久久久| 欧美色窝79yyyycom| 国产精品国产精品国产专区不蜜| 91麻豆精品国产91| 国产精品欧美一级免费| 91视频你懂的| 国产一区免费电影| 天堂久久久久va久久久久| 天天综合网天天综合色| 国产99一区视频免费 | 国产精品剧情在线亚洲| 欧美一区二区性放荡片| 一本久久a久久免费精品不卡| 麻豆精品视频在线观看免费| 亚洲欧洲日韩在线| 韩国一区二区三区| 亚洲第一福利一区| 黄一区二区三区| 国产伦精品一区二区三区免费| 欧美日韩国产免费一区二区| 亚洲视频香蕉人妖| 欧美自拍偷拍一区| 石原莉奈在线亚洲二区| 国产精品毛片无遮挡高清| 91麻豆精品国产91久久久久久久久| www.综合网.com| av在线不卡网|