New Template „split-it“
Moderator: mikey
Re: New Template „split-it“
Thanks for the explanation
The tragedy of life is not that it ends so soon, but that we wait so long to begin it.
CSS Validator Template „split-it“
Hello
With WC3 CSS Validator, an error message for 5 lines including:
The error message is:
Value error in ./templates/split-it/stylesheet.css: background-image too few values for the property "linear-gradient, )"
Do you know why ?
Thanks, Doc.
With WC3 CSS Validator, an error message for 5 lines including:
Code: Select all
background-image: linear-gradient(to right, var(--link-main-color), rgba(172, 160, 224, 0));
Value error in ./templates/split-it/stylesheet.css: background-image too few values for the property "linear-gradient, )"
Do you know why ?
Thanks, Doc.
Re: New Template „split-it“
Known problem, see here.
The WC3 validator is also not God, but only as good as the development is maintained and updated.
The WC3 validator is also not God, but only as good as the development is maintained and updated.
„Bevor du den Pfeil der Wahrheit abschießt, tauche die Spitze in Honig!“ Ludwig's XH-Templates for MultiPage & OnePage
Re: New Template „split-it“
I do not know the CCS code.
I notice 2 calls for background-image:
I deleted (x5) what seems to me to be duplicate and cause concern:
I don't know if I did well, but the variable var(--link-main-color) = #9E9E9E
Maybe linear-gradient doesn't take a variable as an argument.
When do you think ?
I notice 2 calls for background-image:
Code: Select all
background-image: linear-gradient(to right, #9E9E9E, rgba(172, 160, 224, 0));
background-image: linear-gradient(to right, var(--link-main-color), rgba(172, 160, 224, 0));
Code: Select all
background-image: linear-gradient(to right, var(--link-main-color), rgba(172, 160, 224, 0));
Maybe linear-gradient doesn't take a variable as an argument.
When do you think ?
Re: New Template „split-it“
Yes, to please the CSS validator, that would be a possibility, but only for the sake of warnings. It works, only the validator nags because it hasn't learned it yet.
You could also create a variable for linear-gradient in :root {...} and use it accordingly.
So:
Code: Select all
--bg-linear: linear-gradient(to right, #9E9E9E, rgba(172, 160, 224, 0));
Code: Select all
background-image: linear-gradient(to right, #9E9E9E, rgba(172, 160, 224, 0));
background-image: var(--bg-linear);
The custom properties (CSS variables) are meant to be able to quickly change the color of the template. A change is only one place necessary and not at tens of other places.
„Bevor du den Pfeil der Wahrheit abschießt, tauche die Spitze in Honig!“ Ludwig's XH-Templates for MultiPage & OnePage