[IMP] theme_real_estate: theme improvement
Revamp of `theme_real_estate`
task-4178611
closes odoo/design-themes#945
X-original-commit: 1201131f28
Signed-off-by: Outagant Mehdi (mou) <mou@odoo.com>
|
Before Width: | Height: | Size: 81 KiB After Width: | Height: | Size: 75 KiB |
|
Before Width: | Height: | Size: 213 KiB After Width: | Height: | Size: 126 KiB |
|
Before Width: | Height: | Size: 100 KiB After Width: | Height: | Size: 159 KiB |
|
Before Width: | Height: | Size: 249 KiB After Width: | Height: | Size: 98 KiB |
|
Before Width: | Height: | Size: 145 KiB After Width: | Height: | Size: 249 KiB |
|
Before Width: | Height: | Size: 79 KiB After Width: | Height: | Size: 101 KiB |
@@ -4,29 +4,19 @@ import * as wTourUtils from "@website/js/tours/tour_utils";
|
||||
|
||||
const snippets = [
|
||||
{
|
||||
id: 's_banner',
|
||||
name: 'Banner',
|
||||
id: 's_cover',
|
||||
name: 'Cover',
|
||||
groupName: "Intro",
|
||||
},
|
||||
{
|
||||
id: 's_text_block',
|
||||
name: 'Text',
|
||||
groupName: "Text",
|
||||
},
|
||||
{
|
||||
id: 's_text_image',
|
||||
name: 'Text - Image',
|
||||
groupName: "Content",
|
||||
},
|
||||
{
|
||||
id: 's_image_text',
|
||||
name: 'Image - Text',
|
||||
groupName: "Content",
|
||||
},
|
||||
{
|
||||
id: 's_title',
|
||||
name: 'Title',
|
||||
groupName: "Text",
|
||||
id: 's_image_text',
|
||||
name: 'Image - Text',
|
||||
groupName: "Content",
|
||||
},
|
||||
{
|
||||
id: 's_three_columns',
|
||||
@@ -39,13 +29,13 @@ const snippets = [
|
||||
groupName: "Text",
|
||||
},
|
||||
{
|
||||
id: 's_masonry_block',
|
||||
name: 'Masonry',
|
||||
groupName: "Images",
|
||||
id: 's_references',
|
||||
name: 'References',
|
||||
groupName: "People",
|
||||
},
|
||||
{
|
||||
id: 's_numbers',
|
||||
name: 'Numbers',
|
||||
id: 's_numbers_showcase',
|
||||
name: 'Numbers Showcase',
|
||||
groupName: "Content",
|
||||
},
|
||||
{
|
||||
@@ -53,10 +43,15 @@ const snippets = [
|
||||
name: 'Quotes',
|
||||
groupName: "People",
|
||||
},
|
||||
{
|
||||
id: 's_call_to_action',
|
||||
name: 'Call To Action',
|
||||
groupName: "Content",
|
||||
},
|
||||
];
|
||||
|
||||
wTourUtils.registerThemeHomepageTour("real_estate_tour", () => [
|
||||
wTourUtils.assertCssVariable('--color-palettes-name', '"real-estate-4"'),
|
||||
wTourUtils.assertCssVariable('--color-palettes-name', '"default-28"'),
|
||||
...wTourUtils.dragNDrop(snippets[0]),
|
||||
...wTourUtils.clickOnText(snippets[0], 'h1'),
|
||||
wTourUtils.goBackToBlocks(),
|
||||
|
||||
@@ -66,36 +66,34 @@ $o-theme-font-configs: (
|
||||
'family': ('Playfair Display SC', serif),
|
||||
'url': 'Playfair+Display+SC:300,300i,400,400i,700,700i',
|
||||
),
|
||||
'IBM Plex Sans': (
|
||||
'family': ('IBM Plex Sans', sans-serif),
|
||||
'url': 'IBM+Plex+Sans: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);
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
// Website customizations
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
|
||||
$btn-font-weight: 500;
|
||||
|
||||
$o-website-values-palettes: (
|
||||
(
|
||||
'color-palettes-name': 'real-estate-4',
|
||||
'color-palettes-name': 'default-28',
|
||||
// Font
|
||||
'font': 'Roboto',
|
||||
'headings-font': 'IBM Plex Sans',
|
||||
|
||||
// Buttons
|
||||
'btn-border-radius': 0px,
|
||||
'btn-border-radius-sm': 0px,
|
||||
'btn-border-radius-lg': 0px,
|
||||
'btn-padding-y-lg': 0.75rem,
|
||||
'btn-padding-x-lg': 1.75rem,
|
||||
'btn-ripple': true,
|
||||
),
|
||||
);
|
||||
|
||||
$o-selected-color-palettes-names: append($o-selected-color-palettes-names, 'real-estate-4');
|
||||
$o-selected-color-palettes-names: append($o-selected-color-palettes-names, 'default-28');
|
||||
|
||||
$o-color-palettes-compatibility-indexes: (
|
||||
1: 'real-estate-1',
|
||||
|
||||