mirror of
https://github.com/odoo/design-themes.git
synced 2025-10-07 01:18:52 +07:00
fc64bce81e
Before this commit, if a theme wanted to define a main font for their theme and let the "headings", "navbar" and "buttons" ones use the same they had to add this in their map: ``` 'font': XXX, 'headings-font': null, 'navbar-font': null, 'button-font': null, ``` Indeed, without setting the "null" values, those font would use YYY which is the first font defined in the theme config, which might be different from XXX. And if forcing XXX 4 times, like most themes do at the moment, if the user wanted to change them all, he had to change the 4 ones instead of the main one. Now, only the 'font' value use the first font defined in the theme config if not explicitly set. So forcing the null values is not necessary, it will be the default behavior. The advantage is thus also functional, as most theme forced all their 4 fonts so changing the main one did not change the others. task-2993054 closes odoo/design-themes#591 Related: odoo/odoo#100867 Signed-off-by: Romain Derie (rde) <rde@odoo.com>
136 lines
3.9 KiB
SCSS
136 lines
3.9 KiB
SCSS
//------------------------------------------------------------------------------
|
|
// Fonts
|
|
//------------------------------------------------------------------------------
|
|
|
|
$o-theme-font-configs: (
|
|
'Handlee': (
|
|
'family': ('Handlee', cursive),
|
|
'url': 'Handlee:300,300i,400,400i,700,700i',
|
|
),
|
|
'Gruppo': (
|
|
'family': ('Gruppo', cursive),
|
|
'url': 'Gruppo:300,300i,400,400i,700,700i',
|
|
),
|
|
'Droid Sans': (
|
|
'family': ('Droid Sans', sans-serif),
|
|
),
|
|
'Bowlby One SC': (
|
|
'family': ('Bowlby One SC', cursive),
|
|
'url': 'Bowlby+One+SC:300,300i,400,400i,700,700i',
|
|
),
|
|
'Lobster': (
|
|
'family': ('Lobster', cursive),
|
|
'url': 'Lobster:300,300i,400,400i,700,700i',
|
|
),
|
|
'Nunito': (
|
|
'family': ('Nunito', sans-serif),
|
|
'url': 'Nunito:300,300i,400,400i,700,700i',
|
|
),
|
|
'Raleway': (
|
|
'family': ('Raleway', sans-serif),
|
|
'url': 'Raleway:300,300i,400,400i,700,700i',
|
|
),
|
|
'Source Sans Pro': (
|
|
'family': ('Source Sans Pro', sans-serif),
|
|
'url': 'Source+Sans+Pro:300,300i,400,400i,700,700i',
|
|
),
|
|
'Amatic SC': (
|
|
'family': ('Amatic SC', cursive),
|
|
'url': 'Amatic+SC:300,300i,400,400i,700,700i',
|
|
),
|
|
'Open Sans Condensed': (
|
|
'family': ('Open Sans Condensed', sans-serif),
|
|
'url': 'Open+Sans+Condensed:300,300i,400,400i,700,700i',
|
|
),
|
|
'Oswald': (
|
|
'family': ('Oswald', sans-serif),
|
|
'url': 'Oswald:300,300i,400,400i,700,700i',
|
|
),
|
|
'Roboto': (
|
|
'family': ('Roboto', sans-serif),
|
|
'url': 'Roboto:300,300i,400,400i,700,700i',
|
|
),
|
|
'Permanent Marker': (
|
|
'family': ('Permanent Marker', cursive),
|
|
'url': 'Permanent+Marker:300,300i,400,400i,700,700i',
|
|
),
|
|
'Pacifico': (
|
|
'family': ('Pacifico', cursive),
|
|
'url': 'Pacifico:300,300i,400,400i,700,700i',
|
|
),
|
|
'Playfair Display': (
|
|
'family': ('Playfair Display', serif),
|
|
'url': 'Playfair+Display:300,300i,400,400i,700,700i',
|
|
),
|
|
'Playfair Display SC': (
|
|
'family': ('Playfair Display SC', serif),
|
|
'url': 'Playfair+Display+SC:300,300i,400,400i,700,700i',
|
|
),
|
|
);
|
|
|
|
$o-theme-h1-font-size-multiplier: (62 / 16);
|
|
$o-theme-h2-font-size-multiplier: (36 / 16);
|
|
$o-theme-h3-font-size-multiplier: (24 / 16);
|
|
$o-theme-h4-font-size-multiplier: (20 / 16);
|
|
$o-theme-h5-font-size-multiplier: (18 / 16);
|
|
$o-theme-h6-font-size-multiplier: (16 / 16);
|
|
|
|
//------------------------------------------------------------------------------
|
|
// Website customizations
|
|
//------------------------------------------------------------------------------
|
|
|
|
|
|
$btn-font-weight: 500;
|
|
|
|
$o-website-values-palettes: (
|
|
(
|
|
'color-palettes-name': 'real-estate-4',
|
|
// Header
|
|
'header-template': 'default',
|
|
|
|
// Font
|
|
'font': 'Roboto',
|
|
|
|
// Buttons
|
|
'btn-border-radius': 0px,
|
|
'btn-border-radius-sm': 0px,
|
|
'btn-border-radius-lg': 0px,
|
|
'btn-ripple': true,
|
|
),
|
|
);
|
|
|
|
$o-selected-color-palettes-names: append($o-selected-color-palettes-names, 'real-estate-4');
|
|
|
|
$o-color-palettes-compatibility-indexes: (
|
|
1: 'real-estate-1',
|
|
2: 'real-estate-2',
|
|
3: 'real-estate-3',
|
|
4: 'real-estate-4',
|
|
5: 'generic-1',
|
|
6: 'generic-2',
|
|
7: 'generic-3',
|
|
8: 'generic-4',
|
|
9: 'generic-5',
|
|
10: 'generic-6',
|
|
11: 'generic-7',
|
|
12: 'generic-8',
|
|
13: 'generic-9',
|
|
14: 'generic-10',
|
|
15: 'generic-11',
|
|
16: 'generic-12',
|
|
17: 'generic-13',
|
|
18: 'generic-14',
|
|
19: 'generic-15',
|
|
20: 'generic-16',
|
|
21: 'generic-17',
|
|
);
|
|
|
|
//------------------------------------------------------------------------------
|
|
// Shapes
|
|
//------------------------------------------------------------------------------
|
|
|
|
$o-bg-shapes: change-shape-colors-mapping('web_editor', 'Origins/18', (1: 3));
|
|
|
|
/* Keep for compatibility */
|
|
$o-bg-shapes: change-shape-colors-mapping('web_editor', 'Origins/14', (4: 4));
|