mirror of
https://github.com/twbs/bootstrap.git
synced 2025-02-26 23:54:23 +01:00
Minor formatting
This commit is contained in:
parent
c0ac568ff6
commit
47a195e3ac
@ -105,7 +105,6 @@
|
||||
|
||||
// Gets the value of a specific option for a given utility
|
||||
@function utilities-get-option($utility-name, $option-name) {
|
||||
|
||||
$options: utilities-get-options($utility-name);
|
||||
|
||||
@if ($options) {
|
||||
@ -144,7 +143,6 @@
|
||||
|
||||
// Gets a specific value for the given utility
|
||||
@function utilities-get-value($utility-name, $value-name) {
|
||||
|
||||
$values: utilities-get-values($utility-name);
|
||||
|
||||
@return map-get(
|
||||
@ -157,13 +155,10 @@
|
||||
// Set options for a given utility, merged with the existing ones by default.
|
||||
// To completely replace the existing options, set the 3rd `$merge` parameter to false
|
||||
@mixin utilities-set-options($utility-name, $options, $merge: true) {
|
||||
|
||||
@if ($merge) {
|
||||
|
||||
$existing-options: utilities-get-options($utility-name);
|
||||
|
||||
// Allow the mixin to create a new utility
|
||||
// when setting an unknown utility name
|
||||
// Allow the mixin to create a new utility when setting an unknown utility name
|
||||
$options: if(
|
||||
$existing-options,
|
||||
map-merge(
|
||||
@ -190,7 +185,6 @@
|
||||
// use `utilities-set-option` to provide a new map
|
||||
// for the `values` option
|
||||
@mixin utilities-add-values($utility-name, $values) {
|
||||
|
||||
$existing-values: utilities-get-values($utility-name);
|
||||
|
||||
@include utilities-set-option(
|
||||
@ -205,7 +199,6 @@
|
||||
|
||||
// Remove specific values from a given utility
|
||||
@mixin utilities-remove-values($utility-name, $value-names...) {
|
||||
|
||||
$values: utilities-get-values($utility-name);
|
||||
|
||||
$updated-values: map-remove($values, $value-names...);
|
||||
|
Loading…
x
Reference in New Issue
Block a user