mirror of
https://github.com/odoo/design-themes.git
synced 2025-10-07 01:18:52 +07:00
[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/paptic_screenshot.jpg',
|
||||
],
|
||||
'license': 'LGPL-3',
|
||||
'live_test_url': 'https://theme-paptic.odoo.com'
|
||||
'live_test_url': 'https://theme-paptic.odoo.com',
|
||||
'assets': {
|
||||
'website.assets_editor': [
|
||||
'theme_paptic/static/src/js/tour.js',
|
||||
],
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,22 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<odoo>
|
||||
<data>
|
||||
|
||||
<record id="theme_paptic.primary_variables_scss" model="theme.ir.asset">
|
||||
<field name="key">theme_paptic.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_paptic/static/src/scss/primary_variables.scss</field>
|
||||
</record>
|
||||
|
||||
<record id="theme_paptic.bootstrap_overridden_scss" model="theme.ir.asset">
|
||||
<field name="key">theme_paptic.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_paptic/static/src/scss/bootstrap_overridden.scss</field>
|
||||
</record>
|
||||
|
||||
</data>
|
||||
</odoo>
|
||||
@@ -6,8 +6,9 @@ class ThemePaptic(models.AbstractModel):
|
||||
|
||||
def _theme_paptic_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_view('website.template_footer_centered')
|
||||
self.enable_header_off_canvas()
|
||||
|
||||
@@ -1,34 +1,3 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// Colors
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
$o-color-palettes: (
|
||||
( // Palette 1
|
||||
'o-color-1': #6772E5,
|
||||
'o-color-2': #F5F9F9,
|
||||
'o-color-3': #34B885,
|
||||
'o-color-4': #ffffff,
|
||||
'o-color-5': #9BA9BB,
|
||||
|
||||
'o-cc1-headings': 'o-color-5',
|
||||
'o-cc1-link': 'o-color-1',
|
||||
'o-cc1-btn-secondary': 'o-color-5',
|
||||
'o-cc1-btn-secondary-border': 'o-color-5',
|
||||
|
||||
'o-cc2-headings': 'o-color-2',
|
||||
'o-cc2-link': #40fffb,
|
||||
|
||||
'o-cc3-headings': 'o-color-3',
|
||||
|
||||
'o-cc4-link': #40fffb,
|
||||
'o-cc5-link': #40fffb,
|
||||
|
||||
'header': 1,
|
||||
'footer': 1,
|
||||
'copyright': 3,
|
||||
),
|
||||
);
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
// Fonts
|
||||
//------------------------------------------------------------------------------
|
||||
@@ -64,6 +33,8 @@ $o-theme-font-configs: (
|
||||
|
||||
$o-website-values-palettes: (
|
||||
(
|
||||
'color-palettes-name': 'paptic-1',
|
||||
|
||||
'font': 'Inter',
|
||||
'headings-font': 'Nunito',
|
||||
'navbar-font': 'Nunito',
|
||||
@@ -85,3 +56,26 @@ $o-website-values-palettes: (
|
||||
'btn-padding-x-lg': (28 / 16) * 1rem,
|
||||
),
|
||||
);
|
||||
|
||||
$o-palette-priority-prefix: 'paptic';
|
||||
|
||||
$o-color-palettes-compatibility-indexes: (
|
||||
1: 'paptic-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_paptic/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_paptic/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_paptic/static/src/js/tour.js"/>
|
||||
</xpath>
|
||||
</template>
|
||||
</odoo>
|
||||
Reference in New Issue
Block a user