[IMP] theme_avantgarde: theme improvement

Revamp of `theme_avantgarde`

task-4178015

closes odoo/design-themes#912

Signed-off-by: Benoit Socias (bso) <bso@odoo.com>
This commit is contained in:
Antoine (anso)
2024-09-17 11:27:14 +02:00
parent d8e52e96b5
commit 2d06f47f79
28 changed files with 442 additions and 317 deletions
Binary file not shown.

Before

Width:  |  Height:  |  Size: 146 KiB

After

Width:  |  Height:  |  Size: 97 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 45 KiB

After

Width:  |  Height:  |  Size: 19 KiB

File diff suppressed because one or more lines are too long

Before

Width:  |  Height:  |  Size: 18 KiB

After

Width:  |  Height:  |  Size: 104 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 78 KiB

After

Width:  |  Height:  |  Size: 96 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 25 KiB

After

Width:  |  Height:  |  Size: 95 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 81 KiB

After

Width:  |  Height:  |  Size: 72 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 130 KiB

After

Width:  |  Height:  |  Size: 64 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 68 KiB

After

Width:  |  Height:  |  Size: 44 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 89 KiB

After

Width:  |  Height:  |  Size: 38 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 167 KiB

After

Width:  |  Height:  |  Size: 74 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 98 KiB

After

Width:  |  Height:  |  Size: 76 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 10 KiB

After

Width:  |  Height:  |  Size: 64 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.8 KiB

After

Width:  |  Height:  |  Size: 54 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 33 KiB

After

Width:  |  Height:  |  Size: 26 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 43 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 38 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 9.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 9.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 13 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 18 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 9.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 11 KiB

+21 -15
View File
@@ -3,34 +3,39 @@ import * as wTourUtils from '@website/js/tours/tour_utils';
const snippets = [
{
id: 's_cover',
name: 'Cover',
id: 's_sidegrid',
name: 'Sidegrid',
groupName: "Intro",
},
{
id: 's_picture',
name: 'Title - Image',
groupName: "Images",
},
{
id: 's_three_columns',
name: 'Columns',
id: 's_features_wall',
name: 'Features Wall',
groupName: "Columns",
},
{
id: 's_text_image',
name: 'Text - Image',
id: 's_masonry_block',
name: 'Masonry',
groupName: "Images",
},
{
id: 's_carousel',
name: 'Carousel',
groupName: "Intro",
},
{
id: 's_timeline',
name: 'Timeline',
groupName: "Content",
},
{
id: 's_call_to_action',
name: 'Call to Action',
groupName: "Content",
id: 's_quadrant',
name: 'Quadrant',
groupName: "Images",
},
];
wTourUtils.registerThemeHomepageTour("avantgarde_tour", () => [
wTourUtils.assertCssVariable('--color-palettes-name', '"avantgarde-3"'),
wTourUtils.assertCssVariable('--color-palettes-name', '"default-15"'),
...wTourUtils.dragNDrop(snippets[0], 'top'),
...wTourUtils.clickOnText(snippets[0], 'h1', 'left'),
wTourUtils.goBackToBlocks(),
@@ -41,4 +46,5 @@ wTourUtils.registerThemeHomepageTour("avantgarde_tour", () => [
wTourUtils.goBackToBlocks(),
...wTourUtils.dragNDrop(snippets[3], 'top'),
...wTourUtils.dragNDrop(snippets[4], 'top'),
...wTourUtils.dragNDrop(snippets[5], 'top'),
]);
@@ -173,21 +173,20 @@ $o-theme-font-configs: (
$o-website-values-palettes: (
(
'color-palettes-name': 'avantgarde-3',
'color-palettes-name': 'default-15',
'font': 'Syne',
'font': 'Open Sans',
'headings-font': 'Syne',
'header-template': 'hamburger',
'hamburger-position': 'right',
'footer-template': 'descriptive',
'btn-primary-outline': true,
'link-underline': 'never',
),
);
$o-selected-color-palettes-names: append($o-selected-color-palettes-names, 'avantgarde-3');
$o-selected-color-palettes-names: append($o-selected-color-palettes-names, 'default-15');
$o-color-palettes-compatibility-indexes: (
1: 'avantgarde-1',