[IMP] theme_vehicle: update the theme

This commit updates the theme to improve the design with shapes, new
pictures and new custom snippets.

task-2567592

Part-of: odoo/design-themes#29
This commit is contained in:
xlu-odoo
2021-07-06 09:44:46 +00:00
committed by qsm-odoo
parent 16b316ed4e
commit c4f1a7265a
38 changed files with 380 additions and 181 deletions
Binary file not shown.

Before

Width:  |  Height:  |  Size: 78 KiB

After

Width:  |  Height:  |  Size: 122 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 124 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 108 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 133 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 71 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 110 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 95 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 161 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 147 KiB

After

Width:  |  Height:  |  Size: 108 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 74 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 36 KiB

After

Width:  |  Height:  |  Size: 46 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 64 KiB

After

Width:  |  Height:  |  Size: 33 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 39 KiB

After

Width:  |  Height:  |  Size: 41 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 63 KiB

After

Width:  |  Height:  |  Size: 213 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 15 KiB

After

Width:  |  Height:  |  Size: 82 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 20 KiB

After

Width:  |  Height:  |  Size: 85 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 13 KiB

After

Width:  |  Height:  |  Size: 81 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 14 KiB

After

Width:  |  Height:  |  Size: 94 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 16 KiB

After

Width:  |  Height:  |  Size: 103 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 13 KiB

After

Width:  |  Height:  |  Size: 92 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 166 KiB

After

Width:  |  Height:  |  Size: 170 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 154 KiB

After

Width:  |  Height:  |  Size: 179 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 118 KiB

After

Width:  |  Height:  |  Size: 126 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 94 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 65 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 61 KiB

+11 -18
View File
@@ -16,42 +16,35 @@ const snippets = [
id: 's_text_image',
name: 'Text - Image',
},
{
id: 's_image_text',
name: 'Image - Text',
},
{
id: 's_picture',
name: 'Picture',
},
{
id: 's_masonry_block',
name: 'Masonry',
},
{
id: 's_text_image:last-of-type',
name: 'Image - Text',
},
{
id: 's_table_of_content',
name: 'Table of Content',
},
{
id: 's_call_to_action',
name: 'Call to Action',
},
{
id: 's_references',
name: 'References',
},
];
wTourUtils.registerThemeHomepageTour("vehicle_tour", [
wTourUtils.dragNDrop(snippets[0], 'top'),
wTourUtils.clickOnText(snippets[0], 'h1', 'top'),
wTourUtils.goBackToBlocks(),
wTourUtils.dragNDrop(snippets[1], 'top'),
wTourUtils.dragNDrop(snippets[2], 'top'),
wTourUtils.dragNDrop(snippets[3], 'top'),
wTourUtils.dragNDrop(snippets[4], 'top'),
wTourUtils.dragNDrop(snippets[5], 'top'),
wTourUtils.dragNDrop(snippets[6], 'top'),
wTourUtils.clickOnSnippet(snippets[6], 'top'),
wTourUtils.changeOption('BackgroundShape', 'we-toggler', _t('Background Shape')),
wTourUtils.selectNested('we-select-page', 'BackgroundShape', ':not(.o_we_pager_controls)', _t('Background Shape')),
wTourUtils.clickOnSnippet(snippets[5]),
wTourUtils.changeBackgroundColor(),
wTourUtils.selectColorPalette(),
]);
});
@@ -0,0 +1,6 @@
// Typography
//
// Font, line-height, and color for body text, headings, and more.
$headings-font-weight: $o-theme-headings-font-weight !default;
@@ -1,4 +1,4 @@
// Theme colors
// Theme colors - compatibility
$o-theme-color-palettes: map-merge($o-theme-color-palettes,
(
'vehicle-1': (
@@ -45,46 +45,32 @@ $o-theme-color-palettes: map-merge($o-theme-color-palettes,
),
)
);
//------------------------------------------------------------------------------
// Fonts
//------------------------------------------------------------------------------
$o-theme-h1-font-size-multiplier: (48.83 / 16);
$o-theme-h2-font-size-multiplier: (39.06 / 16);
$o-theme-h3-font-size-multiplier: (31.25 / 16);
$o-theme-h4-font-size-multiplier: (25.00 / 16);
$o-theme-h5-font-size-multiplier: (20.00 / 16);
$o-theme-h6-font-size-multiplier: 1.1;
$o-theme-h1-font-size-multiplier: (50 / 16);
$o-theme-h2-font-size-multiplier: (38 / 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);
$o-theme-headings-font-weight: 600;
$o-theme-font-configs: (
'Handlee': (
'family': ('Handlee', cursive),
'url': 'Handlee:300,300i,400,400i,700,700i',
'Fira Code': (
'family': ('Fira Code', mono),
'url': 'Fira+Code:300,300i,400,400i,700,700i',
),
'Gruppo': (
'family': ('Gruppo', cursive),
'url': 'Gruppo:300,300i,400,400i,700,700i',
),
'Darker Grotesque': (
'family': ('Darker Grotesque', sans-serif),
'url': 'Darker+Grotesque:300,300i,500,500i,700,700i',
'Fira Sans': (
'family': ('Fira Sans', sans-serif),
'url': 'Fira Sans: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',
@@ -109,22 +95,6 @@ $o-theme-font-configs: (
'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',
),
);
//------------------------------------------------------------------------------
@@ -135,12 +105,11 @@ $o-website-values-palettes: (
(
'color-palettes-name': 'vehicle-1',
'header-font-size': 1rem,
'font': 'Droid Sans',
'headings-font': 'Oswald',
'navbar-font': 'Oswald',
'font': 'Fira Code',
'headings-font': 'Fira Sans',
'navbar-font': 'Fira Sans',
'buttons-font': 'Oswald',
'buttons-font': 'Fira Sans',
'btn-primary-outline': false,
'btn-secondary-outline': true,
@@ -155,9 +124,8 @@ $o-website-values-palettes: (
'btn-font-size': 1.2rem,
'btn-font-size-lg': 2rem,
'header-template': 'hamburger',
'hamburger-type': 'off-canvas',
'hamburger-position': 'left',
'header-template': 'default',
'header-links-style': 'border-bottom',
'footer-template': 'minimalist',
),
);
@@ -194,3 +162,12 @@ $o-theme-color-palettes-compatibility-indexes: (
5: 'vehicle-5',
6: 'vehicle-6',
);
//------------------------------------------------------------------------------
// Shapes
//------------------------------------------------------------------------------
$o-bg-shapes: change-shape-colors-mapping('web_editor', 'Floats/09', (1: 3));
$o-bg-shapes: change-shape-colors-mapping('web_editor', 'Origins/18', (1: 1));
$o-bg-shapes: change-shape-colors-mapping('web_editor', 'Origins/05', (1: 1));
$o-bg-shapes: change-shape-colors-mapping('web_editor', 'Rainy/09_001', (1: 1));