[ADD] theme saas-14.3
This commit is contained in:
@@ -8,7 +8,7 @@
|
||||
'author': 'Odoo S.A.',
|
||||
'depends': ['theme_common'],
|
||||
'data': [
|
||||
'views/assets.xml',
|
||||
'data/ir_asset.xml',
|
||||
'views/images_content.xml',
|
||||
|
||||
'views/snippets/s_cover.xml',
|
||||
@@ -18,13 +18,16 @@
|
||||
'views/snippets/s_media_list.xml',
|
||||
'views/snippets/s_references.xml',
|
||||
|
||||
'views/old_snippets/s_banner_parallax.xml',
|
||||
'views/old_snippets/s_features_carousel.xml',
|
||||
],
|
||||
],
|
||||
'images': [
|
||||
'static/description/kea_description.png',
|
||||
'static/description/kea_screenshot.jpg',
|
||||
],
|
||||
'license': 'LGPL-3',
|
||||
'live_test_url': 'https://theme-kea.odoo.com',
|
||||
'assets': {
|
||||
'website.assets_editor': [
|
||||
'theme_kea/static/src/js/tour.js',
|
||||
],
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,52 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<odoo>
|
||||
<data>
|
||||
|
||||
<record id="theme_kea.s_banner_parallax_000_variables_scss" model="theme.ir.asset">
|
||||
<field name="key">theme_kea.s_banner_parallax_000_variables_scss</field>
|
||||
<field name="name">Banner parallax 000 variables SCSS</field>
|
||||
<field name="bundle">web._assets_primary_variables</field>
|
||||
<field name="glob">theme_kea/static/src/old_snippets/s_banner_parallax/000_variables.scss</field>
|
||||
<field name="active" eval="False"/>
|
||||
</record>
|
||||
|
||||
<record id="theme_kea.s_features_carousel_000_variables_scss" model="theme.ir.asset">
|
||||
<field name="key">theme_kea.s_features_carousel_000_variables_scss</field>
|
||||
<field name="name">Features carousel 000 variables SCSS</field>
|
||||
<field name="bundle">web._assets_primary_variables</field>
|
||||
<field name="glob">theme_kea/static/src/old_snippets/s_features_carousel/000_variables.scss</field>
|
||||
<field name="active" eval="False"/>
|
||||
</record>
|
||||
|
||||
<record id="theme_kea.primary_variables_scss" model="theme.ir.asset">
|
||||
<field name="key">theme_kea.primary_variables_scss</field>
|
||||
<field name="name">Primary variables SCSS</field>
|
||||
<field name="bundle">web._assets_primary_variables</field>
|
||||
<field name="glob">theme_kea/static/src/scss/primary_variables.scss</field>
|
||||
</record>
|
||||
|
||||
<record id="theme_kea.secondary_variables_scss" model="theme.ir.asset">
|
||||
<field name="key">theme_kea.secondary_variables_scss</field>
|
||||
<field name="name">Secondary variables SCSS</field>
|
||||
<field name="bundle">web._assets_secondary_variables</field>
|
||||
<field name="glob">theme_kea/static/src/scss/secondary_variables.scss</field>
|
||||
</record>
|
||||
|
||||
<record id="theme_kea.bootstrap_overridden_scss" model="theme.ir.asset">
|
||||
<field name="key">theme_kea.bootstrap_overridden_scss</field>
|
||||
<field name="name">Bootstrap overridden SCSS</field>
|
||||
<field name="bundle">web._assets_frontend_helpers</field>
|
||||
<field name="directive">prepend</field>
|
||||
<field name="glob">theme_kea/static/src/scss/bootstrap_overridden.scss</field>
|
||||
</record>
|
||||
|
||||
<record id="theme_kea.compatibility_saas_11_4_variables_scss" model="theme.ir.asset">
|
||||
<field name="key">theme_kea.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_kea/static/src/scss/compatibility-saas-11.4-variables.scss</field>
|
||||
<field name="active" eval="False"/>
|
||||
</record>
|
||||
|
||||
</data>
|
||||
</odoo>
|
||||
@@ -9,4 +9,4 @@ class ThemeKea(models.AbstractModel):
|
||||
self.enable_view('website.template_footer_call_to_action')
|
||||
|
||||
# For compatibility
|
||||
# self.enable_view('theme_common.compatibility-saas-10-1')
|
||||
# self.enable_asset('theme_common.compatibility_saas_10_1')
|
||||
|
||||
@@ -10,113 +10,51 @@
|
||||
// this only applied to buttons though but we extended that to all components.
|
||||
// Success, info, warning and error buttons are also customized with epsilon,
|
||||
// gamma, delta and ... black colors (see theme.scss).
|
||||
$o-theme-color-palettes: (
|
||||
$o-theme-color-palettes: map-merge($o-theme-color-palettes,
|
||||
(
|
||||
alpha: #ffffff,
|
||||
beta: #dcdcdc,
|
||||
gamma: #9c9b9b,
|
||||
delta: #333333,
|
||||
epsilon: #e4677f,
|
||||
),
|
||||
(
|
||||
alpha: #c7d0d5,
|
||||
beta: #93b1c6,
|
||||
gamma: #ffffff,
|
||||
delta: #556672,
|
||||
epsilon: #ff7148,
|
||||
),
|
||||
(
|
||||
alpha: #ebe3e0,
|
||||
beta: #e3d6c6,
|
||||
gamma: #ffffff,
|
||||
delta: #333333,
|
||||
epsilon: #f9a646,
|
||||
),
|
||||
(
|
||||
alpha: #7ec2aa,
|
||||
beta: #4ca8a1,
|
||||
gamma: #ffffff,
|
||||
delta: #556672,
|
||||
epsilon: #f9a646,
|
||||
),
|
||||
(
|
||||
alpha: #7f909a,
|
||||
beta: #ed6639,
|
||||
gamma: #ffffff,
|
||||
delta: #333333,
|
||||
epsilon: #385b9f,
|
||||
),
|
||||
(
|
||||
alpha: #fcdf15,
|
||||
beta: #0b99bc,
|
||||
gamma: #ffffff,
|
||||
delta: #3c3c3c,
|
||||
epsilon: #d40e52,
|
||||
),
|
||||
);
|
||||
|
||||
// Grays
|
||||
$-gray-700: lighten(#000, 33.5%);
|
||||
$o-gray-color-palettes: ();
|
||||
@each $-palette in $o-theme-color-palettes {
|
||||
$o-gray-color-palettes: append($o-gray-color-palettes, (
|
||||
'900': lighten(#000, 20%),
|
||||
'700': $-gray-700,
|
||||
'600': lighten(#000, 46.7%),
|
||||
'300': #d4d4d4,
|
||||
'200': lighten(#000, 85%),
|
||||
));
|
||||
}
|
||||
|
||||
// Colors
|
||||
$o-color-palettes: (
|
||||
(
|
||||
'o-color-1': #e991a3,
|
||||
'o-color-2': #575757,
|
||||
'o-color-3': #f6f5f5,
|
||||
'o-color-4': #ffffff,
|
||||
'o-color-5': #333333,
|
||||
|
||||
'menu': 5,
|
||||
'footer': 5,
|
||||
'copyright': 5,
|
||||
),
|
||||
(
|
||||
'o-color-1': #f7a58e,
|
||||
'o-color-2': #4b6272,
|
||||
'o-color-3': #ecf0f2,
|
||||
'o-color-4': #ffffff,
|
||||
'o-color-5': #374249,
|
||||
|
||||
'menu': 4,
|
||||
'footer': 4,
|
||||
'copyright': 4,
|
||||
),
|
||||
(
|
||||
'o-color-1': #f9a646,
|
||||
'o-color-2': #68635d,
|
||||
'o-color-3': #f0efee,
|
||||
'o-color-4': #ffffff,
|
||||
'o-color-5': #333333,
|
||||
|
||||
'menu': 4,
|
||||
'footer': 4,
|
||||
'copyright': 4,
|
||||
),
|
||||
(
|
||||
'o-color-1': #ed6639,
|
||||
'o-color-2': #385b9f,
|
||||
'o-color-3': #d5dee3,
|
||||
'o-color-4': #ffffff,
|
||||
'o-color-5': #333333,
|
||||
|
||||
'o-cc4-link': 'o-color-4',
|
||||
'o-cc4-btn-primary': 'o-color-4',
|
||||
|
||||
'menu': 4,
|
||||
'footer': 4,
|
||||
'copyright': 4,
|
||||
),
|
||||
'kea-1': (
|
||||
alpha: #ffffff,
|
||||
beta: #dcdcdc,
|
||||
gamma: #9c9b9b,
|
||||
delta: #333333,
|
||||
epsilon: #e4677f,
|
||||
),
|
||||
'kea-2': (
|
||||
alpha: #c7d0d5,
|
||||
beta: #93b1c6,
|
||||
gamma: #ffffff,
|
||||
delta: #556672,
|
||||
epsilon: #ff7148,
|
||||
),
|
||||
'kea-3': (
|
||||
alpha: #ebe3e0,
|
||||
beta: #e3d6c6,
|
||||
gamma: #ffffff,
|
||||
delta: #333333,
|
||||
epsilon: #f9a646,
|
||||
),
|
||||
'kea-4': (
|
||||
alpha: #7ec2aa,
|
||||
beta: #4ca8a1,
|
||||
gamma: #ffffff,
|
||||
delta: #556672,
|
||||
epsilon: #f9a646,
|
||||
),
|
||||
'kea-5': (
|
||||
alpha: #7f909a,
|
||||
beta: #ed6639,
|
||||
gamma: #ffffff,
|
||||
delta: #333333,
|
||||
epsilon: #385b9f,
|
||||
),
|
||||
'kea-6': (
|
||||
alpha: #fcdf15,
|
||||
beta: #0b99bc,
|
||||
gamma: #ffffff,
|
||||
delta: #3c3c3c,
|
||||
epsilon: #d40e52,
|
||||
),
|
||||
)
|
||||
);
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
@@ -171,6 +109,8 @@ $o-theme-font-configs: (
|
||||
|
||||
$o-website-values-palettes: (
|
||||
(
|
||||
'color-palettes-name': 'kea-1',
|
||||
|
||||
'header-font-size': 1.25rem,
|
||||
'logo-height': 3rem,
|
||||
'fixed-logo-height': 3rem,
|
||||
@@ -186,3 +126,38 @@ $o-website-values-palettes: (
|
||||
'footer-template': 'call_to_action',
|
||||
),
|
||||
);
|
||||
|
||||
$o-palette-priority-prefix: 'kea';
|
||||
|
||||
$o-color-palettes-compatibility-indexes: (
|
||||
1: 'kea-1',
|
||||
2: 'kea-2',
|
||||
3: 'kea-3',
|
||||
4: 'kea-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',
|
||||
);
|
||||
|
||||
$o-theme-color-palettes-compatibility-indexes: (
|
||||
1: 'kea-1',
|
||||
2: 'kea-2',
|
||||
3: 'kea-3',
|
||||
4: 'kea-4',
|
||||
5: 'kea-5',
|
||||
6: 'kea-6',
|
||||
);
|
||||
|
||||
@@ -1,28 +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_kea/static/src/scss/primary_variables.scss"/>
|
||||
</xpath>
|
||||
</template>
|
||||
<template id="_assets_secondary_variables" inherit_id="website._assets_secondary_variables" priority="1">
|
||||
<xpath expr="//link" position="before">
|
||||
<link rel="stylesheet" type="text/scss" href="/theme_kea/static/src/scss/secondary_variables.scss"/>
|
||||
</xpath>
|
||||
</template>
|
||||
<template id="_assets_frontend_helpers" inherit_id="website._assets_frontend_helpers" priority="1">
|
||||
<xpath expr="//link" position="before">
|
||||
<link rel="stylesheet" type="text/scss" href="/theme_kea/static/src/scss/bootstrap_overridden.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_kea/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_kea/static/src/js/tour.js"/>
|
||||
</xpath>
|
||||
</template>
|
||||
</odoo>
|
||||
@@ -1,10 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<odoo>
|
||||
|
||||
<template id="_assets_snippet_s_banner_parallax_css_000_variables" inherit_id="theme_common._assets_snippet_s_banner_parallax_css_000_variables" active="False">
|
||||
<xpath expr="//link[last()]" position="after">
|
||||
<link rel="stylesheet" type="text/scss" href="/theme_kea/static/src/old_snippets/s_banner_parallax/000_variables.scss"/>
|
||||
</xpath>
|
||||
</template>
|
||||
|
||||
</odoo>
|
||||
@@ -1,10 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<odoo>
|
||||
|
||||
<template id="_assets_snippet_s_features_carousel_css_000_variables" inherit_id="theme_common._assets_snippet_s_features_carousel_css_000_variables" active="False">
|
||||
<xpath expr="//link[last()]" position="after">
|
||||
<link rel="stylesheet" type="text/scss" href="/theme_kea/static/src/old_snippets/s_features_carousel/000_variables.scss"/>
|
||||
</xpath>
|
||||
</template>
|
||||
|
||||
</odoo>
|
||||
Reference in New Issue
Block a user