Ajout d'un custom.css pour personnaliser le thème

This commit is contained in:
2021-08-07 17:35:44 +02:00
parent b85d5c9928
commit bba13658f3
36 changed files with 350 additions and 339 deletions

View File

@@ -38,7 +38,8 @@ module.exports = function (grunt) {
cssmin: {
target: {
files: {
'assets/dist/css/thelia.min.css': 'assets/src/css/thelia.css'
'assets/dist/css/thelia.min.css': 'assets/src/css/thelia.css',
'assets/dist/css/custom.min.css': 'assets/src/css/custom.css'
}
}
},
@@ -199,7 +200,7 @@ module.exports = function (grunt) {
}
},
cssmin: {
files: ['assets/src/css/thelia.css'],
files: ['assets/src/css/thelia.css','assets/src/css/custom.css'],
tasks: ['autoprefixer', 'cssmin'],
options: {
spawn: false,

View File

@@ -0,0 +1,7 @@
div.container {
width: 90% !important;
}
.container {
width: 95%
}

View File

@@ -63,6 +63,9 @@ GNU General Public License : http://www.gnu.org/licenses/
{stylesheets file='assets/dist/css/thelia.min.css'}
<link rel="stylesheet" href="{$asset_url}?v=1">
{/stylesheets}
{stylesheets file='assets/dist/css/custom.min.css'}
<link rel="stylesheet" href="{$asset_url}">
{/stylesheets}
{*
If you want to generate the CSS assets on the fly, just replace the stylesheet inclusion above by the following.
Then, in your back-office, go to Configuration -> System Variables and set process_assets to 1.