summaryrefslogtreecommitdiff
path: root/addons/web/static/src/scss
diff options
context:
space:
mode:
authorqsm-odoo <qsm@odoo.com>2018-07-30 13:50:44 +0200
committerqsm-odoo <qsm@odoo.com>2018-07-30 15:08:16 +0200
commit203296e8a9419ad5c686f412f500785b0d4cf8e8 (patch)
tree254c6c570b3e51f2213ac08c86f5b0d2c11e5c86 /addons/web/static/src/scss
parent6e69de67071f2618e00856a74716d861b7f47391 (diff)
[FIX] web: BS4, fix custom radio button style
This is a standard BS4 bug: radio buttons's dot is not properly centered as soon as the html font-size is not a multiple of 4 (and our backend uses 13px). As a quick fix, I change that to 12px and use a font-size base of 13/12rem so that the body font-size does not change. Bootstrap will probably fix this in a future update.
Diffstat (limited to 'addons/web/static/src/scss')
-rw-r--r--addons/web/static/src/scss/primary_variables.scss4
1 files changed, 2 insertions, 2 deletions
diff --git a/addons/web/static/src/scss/primary_variables.scss b/addons/web/static/src/scss/primary_variables.scss
index 0f7f43411c4..5182e4e4bed 100644
--- a/addons/web/static/src/scss/primary_variables.scss
+++ b/addons/web/static/src/scss/primary_variables.scss
@@ -4,8 +4,8 @@
///
// Font sizes
-$o-root-font-size: 13px;
-$o-font-size-base: 1rem;
+$o-root-font-size: 12px;
+$o-font-size-base: 13rem * (1px / $o-root-font-size);
$o-line-height-base: 1.5; // This is BS default
// Colors