[ADD] theme saas-14.3
This commit is contained in:
@@ -8,7 +8,7 @@
|
||||
'author': 'Odoo S.A.',
|
||||
'depends': ['website'],
|
||||
'data': [
|
||||
'views/assets.xml',
|
||||
'data/ir_asset.xml',
|
||||
'views/images.xml',
|
||||
'views/customizations.xml',
|
||||
],
|
||||
@@ -17,5 +17,10 @@
|
||||
'static/description/cobalt_screenshot.jpg',
|
||||
],
|
||||
'license': 'LGPL-3',
|
||||
'live_test_url': 'https://theme-cobalt.odoo.com'
|
||||
'live_test_url': 'https://theme-cobalt.odoo.com',
|
||||
'assets': {
|
||||
'website.assets_editor': [
|
||||
'theme_cobalt/static/src/js/tour.js',
|
||||
],
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,22 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<odoo>
|
||||
<data>
|
||||
|
||||
<record id="theme_cobalt.primary_variables_scss" model="theme.ir.asset">
|
||||
<field name="key">theme_cobalt.primary_variables_scss</field>
|
||||
<field name="name">Primary variables SCSS</field>
|
||||
<field name="bundle">web._assets_primary_variables</field>
|
||||
<field name="directive">prepend</field>
|
||||
<field name="glob">theme_cobalt/static/src/scss/primary_variables.scss</field>
|
||||
</record>
|
||||
|
||||
<record id="theme_cobalt.bootstrap_overridden_scss" model="theme.ir.asset">
|
||||
<field name="key">theme_cobalt.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_cobalt/static/src/scss/bootstrap_overridden.scss</field>
|
||||
</record>
|
||||
|
||||
</data>
|
||||
</odoo>
|
||||
@@ -6,7 +6,8 @@ class ThemeCobalt(models.AbstractModel):
|
||||
|
||||
def _theme_cobalt_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.enable_view('website.option_ripple_effect')
|
||||
self.enable_asset('website.ripple_effect_scss')
|
||||
self.enable_asset('website.ripple_effect_js')
|
||||
self.enable_header_off_canvas()
|
||||
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 204 KiB After Width: | Height: | Size: 212 KiB |
@@ -1,27 +1,3 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// Colors
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
$o-color-palettes: (
|
||||
( // Palette 1
|
||||
'o-color-1': #116466,
|
||||
'o-color-2': #2B3737,
|
||||
'o-color-3': #F6F4F2,
|
||||
'o-color-4': #ffffff,
|
||||
'o-color-5': #a9bcbc,
|
||||
|
||||
'o-cc3-headings': 'o-color-3',
|
||||
'o-cc3-text': 'o-color-5',
|
||||
'o-cc3-link': 'o-color-4',
|
||||
'o-cc3-btn-primary': 'o-color-4',
|
||||
'o-cc3-btn-secondary': 'o-color-5',
|
||||
|
||||
'header': 1,
|
||||
'footer': 3,
|
||||
'copyright': 'black-15',
|
||||
),
|
||||
);
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
// Fonts
|
||||
//------------------------------------------------------------------------------
|
||||
@@ -52,6 +28,8 @@ $o-theme-font-configs: (
|
||||
|
||||
$o-website-values-palettes: (
|
||||
(
|
||||
'color-palettes-name': 'cobalt-1',
|
||||
|
||||
'font': 'Inter',
|
||||
'headings-font': 'Inter',
|
||||
'navbar-font': 'Inter',
|
||||
@@ -73,3 +51,26 @@ $o-website-values-palettes: (
|
||||
'btn-padding-x-lg': 3.3rem,
|
||||
),
|
||||
);
|
||||
|
||||
$o-palette-priority-prefix: 'cobalt';
|
||||
|
||||
$o-color-palettes-compatibility-indexes: (
|
||||
1: 'cobalt-1',
|
||||
2: 'generic-1',
|
||||
3: 'generic-2',
|
||||
4: 'generic-3',
|
||||
5: 'generic-4',
|
||||
6: 'generic-5',
|
||||
7: 'generic-6',
|
||||
8: 'generic-7',
|
||||
9: 'generic-8',
|
||||
10: 'generic-9',
|
||||
11: 'generic-10',
|
||||
12: 'generic-11',
|
||||
13: 'generic-12',
|
||||
14: 'generic-13',
|
||||
15: 'generic-14',
|
||||
16: 'generic-15',
|
||||
17: 'generic-16',
|
||||
18: 'generic-17',
|
||||
);
|
||||
|
||||
@@ -1,20 +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_cobalt/static/src/scss/primary_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_cobalt/static/src/scss/bootstrap_overridden.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_cobalt/static/src/js/tour.js"/>
|
||||
</xpath>
|
||||
</template>
|
||||
</odoo>
|
||||
@@ -19,6 +19,28 @@
|
||||
|
||||
<!-- Snippets -->
|
||||
|
||||
<!-- ==== Banner ===== -->
|
||||
<template id="s_banner" inherit_id="website.s_banner" name="Cobalt s_banner">
|
||||
<xpath expr="//section" position="attributes">
|
||||
<attribute name="class" add="pt152 pb152 o_half_screen_height" remove="pt96 pb96" separator=" "/>
|
||||
</xpath>
|
||||
<xpath expr="//div[hasclass('col-lg-6')]" position="attributes">
|
||||
<attribute name="class" add="offset-lg-6 p-5 shadow-lg rounded" remove="pt32 pb32" separator=" "/>
|
||||
</xpath>
|
||||
<xpath expr="//h1" position="replace">
|
||||
<h1>Reach more People.<br/>Grow your Business.</h1><br/>
|
||||
</xpath>
|
||||
<xpath expr="//p" position="replace">
|
||||
<p class="lead">Building game-changing digital experiences designed to set your brand apart.</p>
|
||||
</xpath>
|
||||
<xpath expr="//a" position="before">
|
||||
<br/>
|
||||
</xpath>
|
||||
<xpath expr="//a" position="replace">
|
||||
<a href="#" class="btn btn-primary mb-2">Start now</a>
|
||||
</xpath>
|
||||
</template>
|
||||
|
||||
<!-- ==== Image-Text ===== -->
|
||||
<template id="s_image_text" inherit_id="website.s_image_text" name="Cobalt s_image_text">
|
||||
<xpath expr="//section" position="attributes">
|
||||
@@ -35,15 +57,16 @@
|
||||
</xpath>
|
||||
|
||||
<xpath expr="//h2" position="replace">
|
||||
<h1>Reach more People.<br/>Grow your Business.</h1><br/>
|
||||
<h1>Digital strategy synchronising multiple channels</h1><br/>
|
||||
</xpath>
|
||||
|
||||
<xpath expr="//p" position="replace"/>
|
||||
<xpath expr="//p" position="replace"/>
|
||||
|
||||
<xpath expr="//a[hasclass('btn')]" position="replace">
|
||||
<a href="#" class="btn btn-primary btn-lg mb-2">START NOW</a>
|
||||
<xpath expr="//p" position="replace">
|
||||
<p>We create a consistent customer experience through a detailed digital strategy built on precise customer research.</p>
|
||||
</xpath>
|
||||
|
||||
<xpath expr="//p[last()-1]" position="replace"/>
|
||||
|
||||
<xpath expr="//a[hasclass('btn')]" position="replace"/>
|
||||
</template>
|
||||
|
||||
<!-- ==== Text-Image ===== -->
|
||||
@@ -162,12 +185,16 @@
|
||||
<div class="o_we_shape o_web_editor_Bold_01 o_we_flip_y"></div>
|
||||
</xpath>
|
||||
|
||||
<xpath expr="//div[hasclass('container')]" position="attributes">
|
||||
<attribute name="class" add="container-fluid px-5 px-lg-0" remove="container" separator=" "/>
|
||||
</xpath>
|
||||
|
||||
<xpath expr="//h2" position="replace"/>
|
||||
<xpath expr="//p" position="replace"/>
|
||||
<xpath expr="//p" position="replace"/>
|
||||
|
||||
<xpath expr="//img" position="attributes">
|
||||
<attribute name="class" add="" remove="img-thumbnail padding-large" separator=" "/>
|
||||
<attribute name="class" add="img-fluid" remove="img-thumbnail padding-large" separator=" "/>
|
||||
</xpath>
|
||||
|
||||
<xpath expr="//figcaption" position="replace">
|
||||
@@ -175,7 +202,7 @@
|
||||
</xpath>
|
||||
|
||||
<xpath expr="//div[hasclass('row')]/div" position="before">
|
||||
<div class="col col-lg-5">
|
||||
<div class="col offset-lg-2">
|
||||
<h2>Our Offices</h2>
|
||||
<p/>
|
||||
<div class="row">
|
||||
@@ -198,7 +225,7 @@
|
||||
</xpath>
|
||||
|
||||
<xpath expr="//div[hasclass('offset-lg-1')]" position="attributes">
|
||||
<attribute name="class" add="col-lg-6" remove="col-lg-10" separator=" "/>
|
||||
<attribute name="class" add="col-lg-6 px-0" remove="col-lg-10" separator=" "/>
|
||||
<attribute name="style" remove="text-align: center;" separator=";"/>
|
||||
</xpath>
|
||||
</template>
|
||||
|
||||
Reference in New Issue
Block a user