Sizing
To implement size in ACoreX, we have created two variables --ax-sys-size-base
and --ax-sys-size-base
. In fact, their definition and value is as follows
styles.scss
To change the size, we have created different classes, each of which changes the --ax-sys-size-base
variable. In fact, these classes increase or decrease the value of --ax-sys-size-base
to a certain ratio. If you want to change the size, you should use the following classes for an element. And if you want to change the --ax-sys-size-base
value for the whole project, you should increase or decrease the --ax-sys-size-base
variable. The default value of --ax-sys-size-base
is 2.5rem.
For example, size classes are written like this
styles.scss
An example of placing a size on an element
app.component.html