[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
+8 -2
View File
@@ -8,7 +8,7 @@
'author': 'Odoo S.A.',
'depends': ['theme_common', 'website_animate'],
'data': [
'views/assets.xml',
'data/ir_asset.xml',
'views/images.xml',
'views/snippets/s_title.xml',
@@ -17,11 +17,17 @@
'views/snippets/s_text_image.xml',
'views/snippets/s_product_list.xml',
'views/snippets/s_call_to_action.xml',
'views/snippets/s_cover.xml',
],
'images': [
'static/description/bookstore_description.png',
'static/description/bookstore_screenshot.jpg',
],
'license': 'LGPL-3',
'live_test_url': 'https://theme-bookstore.odoo.com'
'live_test_url': 'https://theme-bookstore.odoo.com',
'assets': {
'website.assets_editor': [
'theme_bookstore/static/src/js/tour.js',
],
}
}
+29
View File
@@ -0,0 +1,29 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<data>
<record id="theme_bookstore.primary_variables_scss" model="theme.ir.asset">
<field name="key">theme_bookstore.primary_variables_scss</field>
<field name="name">Primary variables SCSS</field>
<field name="bundle">web._assets_primary_variables</field>
<field name="glob">theme_bookstore/static/src/scss/primary_variables.scss</field>
</record>
<record id="theme_bookstore.bootstrap_overridden_scss" model="theme.ir.asset">
<field name="key">theme_bookstore.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_bookstore/static/src/scss/bootstrap_overridden.scss</field>
</record>
<record id="theme_bookstore.compatibility_saas_11_4_variables_scss" model="theme.ir.asset">
<field name="key">theme_bookstore.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_bookstore/static/src/scss/compatibility-saas-11.4-variables.scss</field>
<field name="active" eval="False"/>
</record>
</data>
</odoo>
@@ -1,94 +1,3 @@
// Colors
$o-color-palettes: (
(
'o-color-1': #a1a52f,
'o-color-2': #66555c,
'o-color-3': #f7f7f7,
'o-color-4': #ffffff,
'o-color-5': #242327,
'o-cc2-link': 'o-color-5',
'o-cc5-link': 'o-color-4',
'o-cc5-btn-primary': 'o-color-4',
'o-cc5-btn-secondary': 'o-color-5',
'menu': 5,
'footer': 5,
'copyright': 5,
),
(
'o-color-1': #679b96,
'o-color-2': #345552,
'o-color-3': #e9e9e9,
'o-color-4': #ffffff,
'o-color-5': #1e222f,
'o-cc2-link': 'o-color-5',
'o-cc2-headings': 'o-color-5',
'menu': 2,
'footer': 2,
'copyright': 2,
),
(
'o-color-1': #df699c,
'o-color-2': #590046,
'o-color-3': #dbe8ed,
'o-color-4': #ffffff,
'o-color-5': #222222,
'o-cc2-link': 'o-color-5',
'o-cc2-headings': 'o-color-5',
'menu': 2,
'footer': 2,
'copyright': 2,
),
(
'o-color-1': #b29964,
'o-color-2': #62624c,
'o-color-3': #f5f4f4,
'o-color-4': #ffffff,
'o-color-5': #333333,
'o-cc2-link': 'o-color-5',
'menu': 4,
'footer': 4,
'copyright': 4,
),
(
'o-color-1': #1ad68f,
'o-color-2': #2e2e2e,
'o-color-3': #f7f7f7,
'o-color-4': #ffffff,
'o-color-5': #000000,
'o-cc2-link': 'o-color-5',
'o-cc4-link': 'o-color-5',
'o-cc4-text': 'o-color-5',
'menu': 4,
'footer': 4,
'copyright': 4,
),
(
'o-color-1': #cfd744,
'o-color-2': #3d504a,
'o-color-3': #f0f1f1,
'o-color-4': #ffffff,
'o-color-5': #112625,
'o-cc2-link': 'o-color-5',
'o-cc4-link': 'o-color-5',
'o-cc4-text': 'o-color-5',
'menu': 4,
'footer': 4,
'copyright': 4,
),
);
//------------------------------------------------------------------------------
// Fonts
//------------------------------------------------------------------------------
@@ -149,6 +58,7 @@ $o-theme-font-configs: (
$o-website-values-palettes: (
(
'color-palettes-name': 'bookstore-1',
'header-font-size': (18 / 16) * 1rem,
'btn-border-radius': 0px,
'btn-border-radius-sm': 0px,
@@ -162,3 +72,31 @@ $o-website-values-palettes: (
'header-links-style': 'border-bottom',
),
);
$o-palette-priority-prefix: 'bookstore';
$o-color-palettes-compatibility-indexes: (
1: 'bookstore-1',
2: 'bookstore-2',
3: 'bookstore-3',
4: 'bookstore-4',
5: 'bookstore-5',
6: 'bookstore-6',
7: 'generic-1',
8: 'generic-2',
9: 'generic-3',
10: 'generic-4',
11: 'generic-5',
12: 'generic-6',
13: 'generic-7',
14: 'generic-8',
15: 'generic-9',
16: 'generic-10',
17: 'generic-11',
18: 'generic-12',
19: 'generic-13',
20: 'generic-14',
21: 'generic-15',
22: 'generic-16',
23: 'generic-17',
);
-23
View File
@@ -1,23 +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_bookstore/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_bookstore/static/src/scss/compatibility-saas-11.4-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_bookstore/static/src/scss/bootstrap_overridden.scss"/>
</xpath>
</template>
<template id="assets_editor" inherit_id="website.assets_editor">
<xpath expr="//script[last()]" position="after">
<script type="text/javascript" src="/theme_bookstore/static/src/js/tour.js"/>
</xpath>
</template>
</odoo>
@@ -0,0 +1,13 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<template id="s_cover" inherit_id="website.s_cover">
<!-- Section -->
<xpath expr="//section" position="attributes">
<attribute name="class" add="pt64 pb64 o_half_screen_height s_parallax_no_overflow_hidden bg-black-50" remove="parallax s_parallax_is_fixed" separator=" "/>
<attribute name="data-scroll-background-ratio">0</attribute>
<attribute name="style">background-image: url('/web/image/website.s_cover_default_image'); background-position: 50% 55%;</attribute>
</xpath>
<!-- Parallax -->
<xpath expr="//span[hasclass('s_parallax_bg')]" position="replace"/>
</template>
</odoo>