From 9b98352f5fdebf5c7ef9b31f9665bb17078c5e58 Mon Sep 17 00:00:00 2001 From: xlu-odoo Date: Mon, 23 May 2022 13:29:47 +0000 Subject: [PATCH] [IMP] web: bs5 utility-classes, add border-width Define "Bootstrap v5 ready" utility-classes to handle border-width. These classes definitions can be safely removed after migrating to v5. task-2842691 Part-of: odoo/odoo#91298 --- .../static/src/libs/bs5_utility_classes.scss | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/addons/web/static/src/libs/bs5_utility_classes.scss b/addons/web/static/src/libs/bs5_utility_classes.scss index deed8f9dbf3..960f7a9aec9 100644 --- a/addons/web/static/src/libs/bs5_utility_classes.scss +++ b/addons/web/static/src/libs/bs5_utility_classes.scss @@ -93,3 +93,22 @@ $position-properties: ( .fst-normal { font-style: normal !important; } + +// == Border-width +//------------------------------------------------------------------------------ +// "Bootstrap v5 ready" utility-classes to handle border-width. +// These classes definitions can be safely removed after migrating to BTS v5. + +$border-widths: ( + 1: 1px, + 2: 2px, + 3: 3px, + 4: 4px, + 5: 5px +); + +@each $length, $border-width in $border-widths { + .border-#{$length} { + border-width: $border-width !important; + } +}