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

          亚洲国产精品18久久久久久| 黄色av一区二区三区| 亚洲毛片亚洲毛片亚洲毛片| 亚洲欧美久久久久| 18国产免费视频| 懂色av蜜臀av粉嫩av分享吧最新章节| 亚洲中文字幕一区二区| youjizz.com国产| 国产视频第一页| 久草视频在线资源站| 免费视频久久久| 少妇人妻一区二区| 在线免费视频a| av亚洲天堂网| 精品人妻一区二区三区日产乱码 | 青青草原国产在线视频| 色婷婷激情五月| 中文字幕第69页| 99久久久久久久久久| 国产农村妇女aaaaa视频| 欧美日韩午夜视频| 亚洲av无码一区二区二三区| 97超碰中文字幕| 激情网站在线观看| 天堂中文资源在线观看| 一级 黄 色 片一| 国产又大又黑又粗免费视频| 日本黄色一级网站| 亚洲五月激情网| 国产一级一片免费播放| 欧美成人一区二区三区四区| 中文字幕乱码一区二区| 国产福利第一页| 日本不卡视频一区| 亚洲欧美偷拍视频| 国产性一乱一性一伧一色| 人妻中文字幕一区二区三区| 亚洲另类在线观看| 韩国av中国字幕| 在线免费观看一区二区| 国产裸体永久免费无遮挡| 少妇精品一区二区| www.蜜桃av.com| 日批视频免费看| 粉嫩av一区二区夜夜嗨| 色婷婷综合网站| www.国产福利| 日韩精品成人一区| www黄色网址| 日本中文字幕免费观看| 亚洲区 欧美区| 九九热精彩视频| 中文字幕在线观看免费视频 | 国产成人强伦免费视频网站| 日本网站在线播放| 成年人免费观看视频网站| 日本精品久久久久中文| www夜片内射视频日韩精品成人| 欧美在线aaa| 国产高清视频网站| 亚洲av成人片无码| 精品国产午夜福利在线观看| 亚洲国产精品18久久久久久| 久一区二区三区| www.av黄色| 午夜国产在线观看| 精品国产乱子伦| 亚洲一卡二卡在线观看| 日本中文字幕精品| 国产精品视频一区二区三| 一区二区美女视频| 久久中文字幕免费| 俄罗斯女人裸体性做爰| 尤物视频在线观看国产| 日本女人性生活视频| 国产一级二级av| 亚洲一区二区在线免费| 神马一区二区三区| 久久国产高清视频| 国产ts在线观看| 中文有码在线播放| 日韩成人av免费| 精品熟女一区二区三区| 成人午夜免费在线观看| 中文字幕国产高清| 手机毛片在线观看| 免费av网站观看| 国产美女视频免费看| 一道本无吗一区| 亚洲av综合一区| 色综合免费视频| 欧美 日韩 精品| 久久久久久久国产精品毛片| 国产精品成人免费一区二区视频| 亚洲天堂网站在线| 中文字幕国产高清| 在线免费观看一级片| 神马午夜精品95| 殴美一级黄色片| 久久综合伊人77777麻豆最新章节| 国产破处视频在线观看| av中文在线观看| 69视频在线观看免费| 中文字幕剧情在线观看| 中文字幕1234区| 亚州国产精品视频| 无码免费一区二区三区| 日韩三级视频在线播放| 日韩成人免费观看| 人妻少妇偷人精品久久久任期| 老熟妇高潮一区二区三区| 久久国产精品波多野结衣| 国产一区二区三区成人| 国产又粗又长视频| 国产一区二区三区四区视频| 国产又粗又硬又长又爽| 国产一级特黄aaa大片| 国产又黄又大又爽| 精品人妻一区二区三区免费看| 国产性生活网站| 精品欧美一区二区久久久| 黄色片网站免费| 九九热视频精品| 免费一级片视频| 日产精品久久久| 天天色综合天天色| 樱花草www在线| 91蝌蚪视频在线观看| xxxwww国产| 久草免费新视频| 欧美熟妇精品一区二区蜜桃视频| 欧美性猛交xxxx乱大交91| 日韩欧美亚洲视频| 一区二区三区四区五区| 亚洲欧美日本一区| 成人一级黄色大片| 国产在成人精品线拍偷自揄拍| 老熟妻内射精品一区| 日韩精品一区二区亚洲av| 五月婷婷之综合激情| 亚洲男人第一天堂| 国产成人精品一区二三区 | 久久久久久久人妻无码中文字幕爆| 免费a v网站| 亚洲 国产 日韩 欧美| 亚洲另类第一页| 国产精品自拍电影| 久久久久久久久久99| 手机免费av片| 99久久综合网| 精品人妻无码一区二区三区| 日韩成年人视频| 亚洲一区二区影视| 精品人妻一区二区三区香蕉 | 香蕉视频国产在线| 99这里有精品视频| 久久精品国产成人av| 在线播放黄色av| 国产成人在线视频观看| 日韩av片在线播放| 亚洲图片综合网| 久久精品国产亚洲av无码娇色| 天天干天天插天天射| 白白色免费视频| 免费在线一级片| 亚洲午夜精品久久久| 久久久精品成人| 中文字幕国产在线观看| 黄网在线观看视频| 一区二区三区黄色片| 国产网址在线观看| 五月激情婷婷在线| 国产一区二区99| 一起操在线视频| 国内精品久久久久久久久久久 | 久久精品国产亚洲av麻豆色欲| 一起草av在线| 国产一区二区三区四区在线 | 免费精品99久久国产综合精品应用 | 99视频国产精品免费观看a| 久久久夜色精品| 亚洲一级在线播放| 人妻无码中文字幕| 国产精品国产三级国产专区52| 日韩高清在线一区二区| 国产精品成人av久久| 性欧美一区二区三区| 激情五月激情综合| 亚洲最大成人在线视频| 日本三级一区二区| 国产精品一区二区小说| 中文久久久久久| 妺妺窝人体色WWW精品| 国产福利视频导航| 中国一级片在线观看| 欧美黑人一级片| 国产美女久久久久久| 亚洲精品久久久久久动漫器材一区| 欧美 日韩 国产 成人 在线观看| 超碰在线免费av|