[ADD] theme saas-14.3

This commit is contained in:
Jeremy Kersten
2021-05-10 15:46:42 +02:00
parent 2bdf71a2b2
commit 84ba083d17
208 changed files with 3170 additions and 4050 deletions
+6 -1
View File
@@ -8,7 +8,7 @@
'author': 'Odoo S.A.',
'depends': ['theme_common'],
'data': [
'views/assets.xml',
'data/ir_asset.xml',
'views/images.xml',
'views/snippets/s_banner.xml',
@@ -23,4 +23,9 @@
],
'license': 'LGPL-3',
'live_test_url': 'https://theme-real-estate.odoo.com',
'assets': {
'website.assets_editor': [
'theme_real_estate/static/src/js/tour.js',
],
}
}
+21
View File
@@ -0,0 +1,21 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<data>
<record id="theme_real_estate.primary_variables_scss" model="theme.ir.asset">
<field name="key">theme_real_estate.primary_variables_scss</field>
<field name="name">Primary variables SCSS</field>
<field name="bundle">web._assets_primary_variables</field>
<field name="glob">theme_real_estate/static/src/scss/primary_variables.scss</field>
</record>
<record id="theme_real_estate.compatibility_saas_11_4_variables_scss" model="theme.ir.asset">
<field name="key">theme_real_estate.compatibility_saas_11_4_variables_scss</field>
<field name="name">Compatibility saas 11 4 variables SCSS</field>
<field name="bundle">web._assets_primary_variables</field>
<field name="glob">/theme_real_estate/static/src/scss/compatibility-saas-11.4-variables.scss</field>
<field name="active" eval="False"/>
</record>
</data>
</odoo>
@@ -6,7 +6,7 @@ class ThemeRealEstate(models.AbstractModel):
def _theme_real_estate_post_copy(self, mod):
# For compatibility
# self.enable_view('theme_common.compatibility-saas-10-2')
# self.enable_asset('theme_common.compatibility_saas_10_2')
self.disable_view('website.template_header_default')
self.enable_view('website.template_header_hamburger')
@@ -15,4 +15,5 @@ class ThemeRealEstate(models.AbstractModel):
self.disable_view('website.footer_custom')
self.enable_view('website.template_footer_descriptive')
self.enable_view('website.option_ripple_effect')
self.enable_asset('website.ripple_effect_scss')
self.enable_asset('website.ripple_effect_js')
@@ -1,55 +1,3 @@
//------------------------------------------------------------------------------
// Palette
//------------------------------------------------------------------------------
$o-color-palettes: (
(
'o-color-1': #539b80,
'o-color-2': #2e2e2e,
'o-color-3': #f4f4f4,
'o-color-4': #ffffff,
'o-color-5': #000000,
'o-cc1-btn-primary': #1ad68f,
'o-cc5-link': #1ad68f,
'menu': 2,
'footer': 2,
'copyright': 2,
),
(
'o-color-1': #006bff,
'o-color-2': #fda400,
'o-color-3': #F1F1F4,
'o-color-4': #ffffff,
'o-color-5': #2A2A33,
'footer': 1,
'copyright': 1,
),
(
'o-color-1': #cddf66,
'o-color-2': #b62682,
'o-color-3': #f4f5f2,
'o-color-4': #ffffff,
'o-color-5': #000000,
'footer': 1,
'copyright': 1,
),
(
'o-color-1': #007882,
'o-color-2': #48578a,
'o-color-3': #f4efeb,
'o-color-4': #ffffff,
'o-color-5': #33302e,
'o-cc5-link': #70c7cf,
'menu': 5,
),
);
//------------------------------------------------------------------------------
// Fonts
//------------------------------------------------------------------------------
@@ -126,6 +74,7 @@ $o-theme-font-configs: (
$o-website-values-palettes: (
(
'color-palettes-name': 'real-estate-1',
'header-font-size': (18 / 16) * 1rem,
'font': 'Nunito',
'headings-font': 'Nunito',
@@ -138,3 +87,29 @@ $o-website-values-palettes: (
'footer-template': 'descriptive',
),
);
$o-palette-priority-prefix: 'real-estate';
$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',
);
-18
View File
@@ -1,18 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<template id="_assets_primary_variables" inherit_id="website._assets_primary_variables" priority="1">
<xpath expr="//link[last()]" position="after">
<link rel="stylesheet" type="text/scss" href="/theme_real_estate/static/src/scss/primary_variables.scss"/>
</xpath>
</template>
<template id="compatibility-saas-11-4-variables" name="Compatibility for saas-11.4 (variables)" inherit_id="theme_common.compatibility-saas-11-4-variables">
<xpath expr="//link[last()]" position="before">
<link rel="stylesheet" type="text/scss" href="/theme_real_estate/static/src/scss/compatibility-saas-11.4-variables.scss"/>
</xpath>
</template>
<template id="assets_editor" inherit_id="website.assets_editor">
<xpath expr="//script[last()]" position="after">
<script type="text/javascript" src="/theme_real_estate/static/src/js/tour.js"/>
</xpath>
</template>
</odoo>