CSS3 variables in 2020.04
Forum rules
Always add your Laravel, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
Always add your Laravel, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
CSS3 variables in 2020.04
I have just installed Aimeos 2020.04 using
and tried the CSS example
mentioned in the announcement but nothing happens.
I've added this CSS code to myfile.css and added it to the app.blade.php, before the theme's css.
What am I missing?
Code: Select all
composer create-project aimeos/aimeos myshop
Code: Select all
aimeos {
--ai-primary: #FFA840;
--ai-primary-light: #FFB850;
--ai-secondary: #555;
--ai-light: #D0D0D0;
--ai-bg: #FFF;
}
I've added this CSS code to myfile.css and added it to the app.blade.php, before the theme's css.
What am I missing?
Re: CSS3 variables in 2020.04
You forgot the dot before the "aimeos" CSS class. Use:
Code: Select all
.aimeos {
--ai-primary: #FFA840;
--ai-primary-light: #FFB850;
--ai-secondary: #555;
--ai-light: #D0D0D0;
--ai-bg: #FFF;
}
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, give us a star
If you like Aimeos, give us a star
Re: CSS3 variables in 2020.04
Thanks!
First I felt really stupid for not being able to copy-paste the code correctly.
But now that I've corrected the code, it still doesn't work.
I tried
But nothing changes.
I looked at
but there are no references to any of these variables.
So, there is something I'm still missing completely.
First I felt really stupid for not being able to copy-paste the code correctly.
But now that I've corrected the code, it still doesn't work.
I tried
Code: Select all
.aimeos {
--ai-primary: #FF0000;
--ai-primary-light: #FF0000;
--ai-secondary: #FF0000;
--ai-light: #FF0000;
--ai-bg: #FF0000;
}
I looked at
Code: Select all
/packages/aimeos/shop/themes/elegance/aimeos.css
So, there is something I'm still missing completely.
Re: CSS3 variables in 2020.04
Did you update your installation? Then you have to publish the new CSS files first using:
Code: Select all
php artisan vendor:publish --all
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, give us a star
If you like Aimeos, give us a star
Re: CSS3 variables in 2020.04
Hi!
Thanks.
No, I didn't do anything like that.
I thought I had to create a CSS file with that code and simply add it the app.blade.php, before the theme's CSS.
But now I have tried
[/code]php artisan vendor:publish --all[/code]
but still nothing happens.
What do you mean by updating my installation?
I run
And now I have tried
What am I missing?
Thanks.
No, I didn't do anything like that.
I thought I had to create a CSS file with that code and simply add it the app.blade.php, before the theme's CSS.
But now I have tried
[/code]php artisan vendor:publish --all[/code]
but still nothing happens.
What do you mean by updating my installation?
I run
Code: Select all
composer create-project aimeos/aimeos myshop
Code: Select all
composer update
Re: CSS3 variables in 2020.04
Sorry, the aimeos/aimeos distribution is still using 2019.10 LTS. You have to use
and perform the installation of the Aimeos package manually to use the latest release:
https://github.com/aimeos/aimeos-larave ... of-content
Code: Select all
composer create-project laravel/laravel:~6.0
composer require aimeos/aimeos-laravel:~2020.04
https://github.com/aimeos/aimeos-larave ... of-content
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, give us a star
If you like Aimeos, give us a star
Re: CSS3 variables in 2020.04
Now it's working, thanks!
I could have looked at composer.json and see I wan't on 2020.04!
I could have looked at composer.json and see I wan't on 2020.04!