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': ['theme_common'],
|
||||
'data': [
|
||||
'views/assets.xml',
|
||||
'data/ir_asset.xml',
|
||||
'views/images_library.xml',
|
||||
|
||||
'views/snippets/s_carousel.xml',
|
||||
@@ -16,13 +16,16 @@
|
||||
'views/snippets/s_media_list.xml',
|
||||
'views/snippets/s_company_team.xml',
|
||||
|
||||
'views/old_snippets/s_banner_parallax.xml',
|
||||
'views/old_snippets/s_features_carousel.xml',
|
||||
],
|
||||
],
|
||||
'images': [
|
||||
'static/description/Notes_description.png',
|
||||
'static/description/notes_screenshot.jpg',
|
||||
],
|
||||
'license': 'LGPL-3',
|
||||
'live_test_url': 'https://theme-notes.odoo.com',
|
||||
'assets': {
|
||||
'website.assets_editor': [
|
||||
'theme_notes/static/src/js/tour.js',
|
||||
],
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,52 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<odoo>
|
||||
<data>
|
||||
|
||||
<record id="theme_notes.s_banner_parallax_000_variables_scss" model="theme.ir.asset">
|
||||
<field name="key">theme_notes.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_notes/static/src/old_snippets/s_banner_parallax/000_variables.scss</field>
|
||||
<field name="active" eval="False"/>
|
||||
</record>
|
||||
|
||||
<record id="theme_notes.s_features_carousel_000_variables_scss" model="theme.ir.asset">
|
||||
<field name="key">theme_notes.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_notes/static/src/old_snippets/s_features_carousel/000_variables.scss</field>
|
||||
<field name="active" eval="False"/>
|
||||
</record>
|
||||
|
||||
<record id="theme_notes.primary_variables_scss" model="theme.ir.asset">
|
||||
<field name="key">theme_notes.primary_variables_scss</field>
|
||||
<field name="name">Primary variables SCSS</field>
|
||||
<field name="bundle">web._assets_primary_variables</field>
|
||||
<field name="glob">theme_notes/static/src/scss/primary_variables.scss</field>
|
||||
</record>
|
||||
|
||||
<record id="theme_notes.secondary_variables_scss" model="theme.ir.asset">
|
||||
<field name="key">theme_notes.secondary_variables_scss</field>
|
||||
<field name="name">Secondary variables SCSS</field>
|
||||
<field name="bundle">web._assets_secondary_variables</field>
|
||||
<field name="glob">theme_notes/static/src/scss/secondary_variables.scss</field>
|
||||
</record>
|
||||
|
||||
<record id="theme_notes.bootstrap_overridden_scss" model="theme.ir.asset">
|
||||
<field name="key">theme_notes.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_notes/static/src/scss/bootstrap_overridden.scss</field>
|
||||
</record>
|
||||
|
||||
<record id="theme_notes.compatibility_saas_11_4_variables_scss" model="theme.ir.asset">
|
||||
<field name="key">theme_notes.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_notes/static/src/scss/compatibility-saas-11.4-variables.scss</field>
|
||||
<field name="active" eval="False"/>
|
||||
</record>
|
||||
|
||||
</data>
|
||||
</odoo>
|
||||
@@ -14,4 +14,4 @@ class ThemeNotes(models.AbstractModel):
|
||||
self.enable_view('website.template_footer_descriptive')
|
||||
|
||||
# For compatibility
|
||||
# self.enable_view('theme_common.compatibility-saas-10-1')
|
||||
# self.enable_asset('theme_common.compatibility_saas_10_1')
|
||||
|
||||
@@ -3,114 +3,53 @@
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
// Theme colors
|
||||
$o-theme-color-palettes: (
|
||||
$o-theme-color-palettes: map-merge($o-theme-color-palettes,
|
||||
(
|
||||
'alpha': #ffffff,
|
||||
'beta': #47464b,
|
||||
'gamma': #3B3D4D,
|
||||
'delta': #E6FA16,
|
||||
'epsilon': #9B96B4,
|
||||
),
|
||||
(
|
||||
'alpha': #ffffff,
|
||||
'beta': #101010,
|
||||
'gamma': #474747,
|
||||
'delta': #ff0000,
|
||||
'epsilon': #e94060,
|
||||
),
|
||||
(
|
||||
'alpha': #ffffff,
|
||||
'beta': #19272c,
|
||||
'gamma': #90c0cf,
|
||||
'delta': #e94060,
|
||||
'epsilon': #5ed7e9,
|
||||
),
|
||||
(
|
||||
'alpha': #ffffff,
|
||||
'beta': #212523,
|
||||
'gamma': #2d6a51,
|
||||
'delta': #72bd9e,
|
||||
'epsilon': #bcfa16,
|
||||
),
|
||||
(
|
||||
'alpha': #ffffff,
|
||||
'beta': #4B4D52,
|
||||
'gamma': #DE8642,
|
||||
'delta': #B9B1A8,
|
||||
'epsilon': #FFF2E7,
|
||||
),
|
||||
(
|
||||
'alpha': #ffffff,
|
||||
'beta': #fee202,
|
||||
'gamma': #514947,
|
||||
'delta': #48372f,
|
||||
'epsilon': #766151,
|
||||
),
|
||||
'notes-1': (
|
||||
'alpha': #ffffff,
|
||||
'beta': #47464b,
|
||||
'gamma': #3B3D4D,
|
||||
'delta': #E6FA16,
|
||||
'epsilon': #9B96B4,
|
||||
),
|
||||
'notes-2': (
|
||||
'alpha': #ffffff,
|
||||
'beta': #101010,
|
||||
'gamma': #474747,
|
||||
'delta': #ff0000,
|
||||
'epsilon': #e94060,
|
||||
),
|
||||
'notes-3': (
|
||||
'alpha': #ffffff,
|
||||
'beta': #19272c,
|
||||
'gamma': #90c0cf,
|
||||
'delta': #e94060,
|
||||
'epsilon': #5ed7e9,
|
||||
),
|
||||
'notes-4': (
|
||||
'alpha': #ffffff,
|
||||
'beta': #212523,
|
||||
'gamma': #2d6a51,
|
||||
'delta': #72bd9e,
|
||||
'epsilon': #bcfa16,
|
||||
),
|
||||
'notes-5': (
|
||||
'alpha': #ffffff,
|
||||
'beta': #4B4D52,
|
||||
'gamma': #DE8642,
|
||||
'delta': #B9B1A8,
|
||||
'epsilon': #FFF2E7,
|
||||
),
|
||||
'notes-6': (
|
||||
'alpha': #ffffff,
|
||||
'beta': #fee202,
|
||||
'gamma': #514947,
|
||||
'delta': #48372f,
|
||||
'epsilon': #766151,
|
||||
),
|
||||
)
|
||||
);
|
||||
|
||||
$o-color-palettes: (
|
||||
(
|
||||
'o-color-1': #a1c005,
|
||||
'o-color-2': #9B96B4,
|
||||
'o-color-3': #f7f7f7,
|
||||
'o-color-4': #ffffff,
|
||||
'o-color-5': #212121,
|
||||
|
||||
'o-cc2-headings': 'o-color-5',
|
||||
|
||||
'menu': 5,
|
||||
'copyright': 4,
|
||||
),
|
||||
(
|
||||
'o-color-1': #5191f0,
|
||||
'o-color-2': #394b44,
|
||||
'o-color-3': #f6f3ef,
|
||||
'o-color-4': #ffffff,
|
||||
'o-color-5': #212523,
|
||||
|
||||
'menu': 3,
|
||||
'footer': 3,
|
||||
'copyright': 4,
|
||||
),
|
||||
(
|
||||
'o-color-1': #DE8642,
|
||||
'o-color-2': #B9B1A8,
|
||||
'o-color-3': #f7f7f7,
|
||||
'o-color-4': #ffffff,
|
||||
'o-color-5': #4B4D52,
|
||||
|
||||
'menu': 4,
|
||||
'footer': 4,
|
||||
'copyright': 5,
|
||||
),
|
||||
(
|
||||
'o-color-1': #ebd425,
|
||||
'o-color-2': #48372f,
|
||||
'o-color-3': #f7f7f7,
|
||||
'o-color-4': #ffffff,
|
||||
'o-color-5': #352e2e,
|
||||
|
||||
'o-cc2-headings': 'o-color-5',
|
||||
'o-cc4-text': 'o-color-5',
|
||||
|
||||
'menu': 3,
|
||||
'footer': 3,
|
||||
'copyright': 4,
|
||||
),
|
||||
);
|
||||
|
||||
// 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%),
|
||||
'200': lighten(#000, 85%),
|
||||
));
|
||||
}
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
// Fonts
|
||||
//------------------------------------------------------------------------------
|
||||
@@ -174,6 +113,7 @@ $o-theme-font-configs: (
|
||||
|
||||
$o-website-values-palettes: (
|
||||
(
|
||||
'color-palettes-name': 'notes-1',
|
||||
'header-font-size': 1.25rem,
|
||||
'logo-height': 3rem,
|
||||
'fixed-logo-height': 3rem,
|
||||
@@ -188,3 +128,38 @@ $o-website-values-palettes: (
|
||||
'hamburger-type': 'off-canvas',
|
||||
),
|
||||
);
|
||||
|
||||
$o-palette-priority-prefix: 'notes';
|
||||
|
||||
$o-color-palettes-compatibility-indexes: (
|
||||
1: 'notes-1',
|
||||
2: 'notes-2',
|
||||
3: 'notes-3',
|
||||
4: 'notes-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: 'notes-1',
|
||||
2: 'notes-2',
|
||||
3: 'notes-3',
|
||||
4: 'notes-4',
|
||||
5: 'notes-5',
|
||||
6: 'notes-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_notes/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_notes/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_notes/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_notes/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_notes/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_notes/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_notes/static/src/old_snippets/s_features_carousel/000_variables.scss"/>
|
||||
</xpath>
|
||||
</template>
|
||||
|
||||
</odoo>
|
||||
Reference in New Issue
Block a user