Добавление дополнительных прокладок в бутстрап 5 ⇐ CSS

Разбираемся в CSS
Anonymous
Добавление дополнительных прокладок в бутстрап 5

Сообщение Anonymous »


I'd like to add additional spacers to bootstrap 5. I'm including it in sass and overwriting variables.

I want to avoid repeating bootstraps spacer definitions which are :

$spacers: ( 0: 0, 1: $spacer * .25, 2: $spacer * .5, 3: $spacer, 4: $spacer * 1.5, 5: $spacer * 3, ); According to documentation I should be able to add to an existing map without re-declaring existing variables :


Изображение


I'd prefer not to re-declare, i'd just like to add an additional item like so :


Изображение


Is this possible ?

Thanks for reading my question.


Источник: https://stackoverflow.com/questions/715 ... ootstrap-5

Вернуться в «CSS»