-
Notifications
You must be signed in to change notification settings - Fork 756
Open
Description
Let's create an abbreviated form of writing properties and variables.
When there are variables in the amount of 1000 pieces, then this is a heavy code.
It was:
@property --color {
syntax: '<color>';
initial-value: red;
inherits: false;
}Will be:
It would be convenient to have an abbreviated spelling :
@--gradient-start: <syntax> <initial-value> inherits;Example:
@--gradient-start: color red inherit;In the writing of 2 dashes they will show that this is a property.
@--header-color: color white noinherit;
@--header-background-color: color black noinherit;
@--header-border-color: color green noinherit;
@--wiget-color: color white noinherit;
@--wiget-background-color: color black noinherit;
@--wiget-border-color: color green noinherit;
....
....
And so on and so forth<aside style="@--title-color: color white noinherit;">... html code</aside>Use default values for each type:
color default: black;
font size default: 1 rem;
lenght size: 1px;Short write propertis without default value:
@--header-color: color;
@--header-background-color: color;
@--header-border-color: color;
@--wiget-color: color;
@--wiget-background-color: color;
@--wiget-border-color: color;
....