[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
+7 -6
View File
@@ -8,19 +8,20 @@
'author': 'Odoo S.A.',
'depends': ['theme_common', 'website_animate'],
'data': [
'views/assets.xml',
'data/ir_asset.xml',
'views/image_content.xml',
'views/customizations.xml',
'views/old_snippets/s_big_icons.xml',
'views/old_snippets/s_big_image_parallax.xml',
'views/old_snippets/s_big_image.xml',
'views/old_snippets/s_icon_box.xml',
],
],
'images': [
'static/description/bewise_description.jpg',
'static/description/bewise_screenshot.jpeg',
],
'license': 'LGPL-3',
'live_test_url': 'https://theme-bewise.odoo.com',
'assets': {
'website.assets_editor': [
'theme_bewise/static/src/js/tour.js',
],
}
}
+45
View File
@@ -0,0 +1,45 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<data>
<record id="theme_bewise.s_big_image_parallax_000_scss" model="theme.ir.asset">
<field name="key">theme_bewise.s_big_image_parallax_000_scss</field>
<field name="name">Big image parallax 000 SCSS</field>
<field name="bundle">web.assets_frontend</field>
<field name="glob">theme_bewise/static/src/old_snippets/s_big_image_parallax/000.scss</field>
<field name="active" eval="False"/>
</record>
<record id="theme_bewise.s_big_image_000_scss" model="theme.ir.asset">
<field name="key">theme_bewise.s_big_image_000_scss</field>
<field name="name">Big image 000 SCSS</field>
<field name="bundle">web.assets_frontend</field>
<field name="glob">theme_bewise/static/src/old_snippets/s_big_image/000.scss</field>
<field name="active" eval="False"/>
</record>
<record id="theme_bewise.s_icon_box_000_scss" model="theme.ir.asset">
<field name="key">theme_bewise.s_icon_box_000_scss</field>
<field name="name">Icon box 000 SCSS</field>
<field name="bundle">web.assets_frontend</field>
<field name="glob">theme_bewise/static/src/old_snippets/s_icon_box/000.scss</field>
<field name="active" eval="False"/>
</record>
<record id="theme_bewise.s_big_icons_000_scss" model="theme.ir.asset">
<field name="key">theme_bewise.s_big_icons_000_scss</field>
<field name="name">Big icons 000 SCSS</field>
<field name="bundle">web.assets_frontend</field>
<field name="glob">theme_bewise/static/src/old_snippets/s_big_icons/000.scss</field>
<field name="active" eval="False"/>
</record>
<record id="theme_bewise.primary_variables_scss" model="theme.ir.asset">
<field name="key">theme_bewise.primary_variables_scss</field>
<field name="name">Primary variables SCSS</field>
<field name="bundle">web._assets_primary_variables</field>
<field name="glob">theme_bewise/static/src/scss/primary_variables.scss</field>
</record>
</data>
</odoo>
+3 -2
View File
@@ -6,9 +6,10 @@ class ThemeBewise(models.AbstractModel):
def _theme_bewise_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.footer_custom')
self.enable_view('website.template_footer_headline')
self.enable_view('website.option_ripple_effect')
self.enable_asset('website.ripple_effect_scss')
self.enable_asset('website.ripple_effect_js')
@@ -4,84 +4,37 @@
//------------------------------------------------------------------------------
// Theme colors
$o-theme-color-palettes: (
$o-theme-color-palettes: map-merge($o-theme-color-palettes,
(
alpha: #11b6a8,
beta: #B9EAE8,
gamma: #fda301,
delta: #febf00,
epsilon: #1b7f7e,
),
(
alpha: #45AADA,
beta: #B3DCF0,
gamma: #f74b94,
delta: #FDC6DD,
epsilon: #ea3884,
),
(
alpha: #8578b9,
beta: #c1badb,
gamma: #FDF002,
delta: #FEF994,
epsilon: #dbb132,
),
(
alpha: #87bd70,
beta: #C4E6B5,
gamma: #fe5e6d,
delta: #F2BFC5,
epsilon: #ce2b3a,
),
);
// Grays
$o-gray-color-palettes: ();
@each $-palette in $o-theme-color-palettes {
$o-gray-color-palettes: append($o-gray-color-palettes, (
'900': lighten(#000, 40%),
'700': lighten(#000, 55%),
'600': lighten(#000, 70%),
'200': lighten(#000, 80%),
));
}
// Colors
$o-color-palettes: (
(
'o-color-1': #162238,
'o-color-2': #fda301,
'o-color-3': #f0f4f4,
'o-color-4': #ffffff,
'o-color-5': #222222,
'o-cc4-bg': #b4904f,
'body': 'o-color-3',
'menu': 4,
'footer': 1,
'copyright': 1,
),
(
'o-color-1': #f74b94,
'o-color-2': #45AADA,
'o-color-3': #edf2f4,
'o-color-4': #ffffff,
'o-color-5': #333333,
'footer': 1,
'copyright': 1,
),
(
'o-color-1': #dbb132,
'o-color-2': #8578b9,
'o-color-3': #f4f4f4,
'o-color-4': #ffffff,
'o-color-5': #333333,
'footer': 1,
'copyright': 1,
),
'bewise-1': (
alpha: #11b6a8,
beta: #B9EAE8,
gamma: #fda301,
delta: #febf00,
epsilon: #1b7f7e,
),
'bewise-2': (
alpha: #45AADA,
beta: #B3DCF0,
gamma: #f74b94,
delta: #FDC6DD,
epsilon: #ea3884,
),
'bewise-3': (
alpha: #8578b9,
beta: #c1badb,
gamma: #FDF002,
delta: #FEF994,
epsilon: #dbb132,
),
'bewise-4': (
alpha: #87bd70,
beta: #C4E6B5,
gamma: #fe5e6d,
delta: #F2BFC5,
epsilon: #ce2b3a,
)
)
);
//------------------------------------------------------------------------------
@@ -148,6 +101,8 @@ $o-theme-font-configs: (
$o-website-values-palettes: (
(
'color-palettes-name': 'bewise-1',
'header-font-size': (20 / 16) * 1rem,
'font': 'Darker Grotesque',
'font-size-base': 1.2rem,
@@ -164,3 +119,34 @@ $o-website-values-palettes: (
'btn-padding-x-lg': 2.5rem,
),
);
$o-palette-priority-prefix: 'bewise';
$o-color-palettes-compatibility-indexes: (
1: 'bewise-1',
2: 'bewise-2',
3: 'bewise-3',
4: 'generic-1',
5: 'generic-2',
6: 'generic-3',
7: 'generic-4',
8: 'generic-5',
9: 'generic-6',
10: 'generic-7',
11: 'generic-8',
12: 'generic-9',
13: 'generic-10',
14: 'generic-11',
15: 'generic-12',
16: 'generic-13',
17: 'generic-14',
18: 'generic-15',
19: 'generic-16',
20: 'generic-17',
);
$o-theme-color-palettes-compatibility-indexes: (
1: 'bewise-1',
2: 'bewise-2',
3: 'bewise-3',
4: 'bewise-4',
);
-15
View File
@@ -1,15 +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_bewise/static/src/scss/primary_variables.scss"/>
</xpath>
</template>
<!-- Onboarding Tour -->
<template id="assets_editor" inherit_id="website.assets_editor">
<xpath expr="//script[last()]" position="after">
<script type="text/javascript" src="/theme_bewise/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_big_icons_css_000" inherit_id="theme_common.assets_snippet_s_big_icons_css_000" active="False">
<xpath expr="//link[last()]" position="after">
<link rel="stylesheet" type="text/scss" href="/theme_bewise/static/src/old_snippets/s_big_icons/000.scss"/>
</xpath>
</template>
</odoo>
@@ -1,10 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<template id="assets_snippet_s_big_image_css_000" inherit_id="theme_common.assets_snippet_s_big_image_css_000" active="False">
<xpath expr="//link[last()]" position="after">
<link rel="stylesheet" type="text/scss" href="/theme_bewise/static/src/old_snippets/s_big_image/000.scss"/>
</xpath>
</template>
</odoo>
@@ -1,10 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<template id="assets_snippet_s_big_image_parallax_css_000" inherit_id="theme_common.assets_snippet_s_big_image_parallax_css_000" active="False">
<xpath expr="//link[last()]" position="after">
<link rel="stylesheet" type="text/scss" href="/theme_bewise/static/src/old_snippets/s_big_image_parallax/000.scss"/>
</xpath>
</template>
</odoo>
@@ -1,10 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<template id="assets_snippet_s_icon_box_css_000" inherit_id="theme_common.assets_snippet_s_icon_box_css_000" active="False">
<xpath expr="//link[last()]" position="after">
<link rel="stylesheet" type="text/scss" href="/theme_bewise/static/src/old_snippets/s_icon_box/000.scss"/>
</xpath>
</template>
</odoo>