diff options
| author | Andrea Ulliana <aul@odoo.com> | 2019-06-26 12:28:13 +0000 |
|---|---|---|
| committer | qsm-odoo <qsm@odoo.com> | 2019-07-30 09:59:28 +0000 |
| commit | 7deceae18c209c67f6cfbbe3f7704798bb02a42e (patch) | |
| tree | 625139a2d2a20e9cf4ee0768c92dc172bbde892b /addons/website/static/src/scss/primary_variables.scss | |
| parent | 15bae2920cf6cf9e8f399ecc0374da04654ef66f (diff) | |
[IMP] website, *: use "auto" widget for font customization
* theme_bootswatch, theme_default, website_theme_install
This commit makes use of the new 'auto' widget for font selection:
instead of enabling a template which will enable a scss file which sets
a font variable to a specific value... we directly allow to do a scss
custo which sets that value.
The code in charge of resetting font customizations on theme switching
is also moved and refactored here in website (instead of being specific
to each theme).
Part of https://github.com/odoo/odoo/pull/33442
task-1974659
Co-authored-by: qsm-odoo <qsm@odoo.com>
Diffstat (limited to 'addons/website/static/src/scss/primary_variables.scss')
| -rw-r--r-- | addons/website/static/src/scss/primary_variables.scss | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/addons/website/static/src/scss/primary_variables.scss b/addons/website/static/src/scss/primary_variables.scss index bb9d182756a..605bf113396 100644 --- a/addons/website/static/src/scss/primary_variables.scss +++ b/addons/website/static/src/scss/primary_variables.scss @@ -51,6 +51,10 @@ $o-website-values-palettes: ( ( 'logo-height': null, // Default to navbar height (see portal) 'header-font-size': null, // Default to BS (normal font-size) + 'font-number': 1, + 'headings-font-number': 1, + 'navbar-font-number': 1, + 'buttons-font-number': 1, ), ) !default; $o-website-values-palette-number: 1 !default; @@ -87,7 +91,3 @@ $o-theme-font-names: ( 'Noto Serif', 'Arvo', ) !default; -$o-theme-font-number: 1 !default; -$o-theme-headings-font-number: 1 !default; -$o-theme-buttons-font-number: 1 !default; -$o-theme-navbar-font-number: 1 !default; |
