...
Page Properties |
---|
|
Product Version |
|
---|
Report Note | published |
---|
Assignee | Kolibri |
---|
Resources & Remarks Modification History Name | Date | Product Version | Action |
---|
Antje | 08 FEB 2021 | 2.4 | New page properties macro. |
|
If you are creating a new application intended to handle specific data of the yuuvis® backends , and you only need the CSS files, you can use the npm package: https://www.npmjs.com/package/@yuuvis/styles.
Shortly, we will publish a website that shows the contained all styles used as an example application on https://yuuvis-cc.yuuvis.org/
Changing the Appearance of Form Controls
As with most of the components of the @yuuvis/framework, you are able to overwrite styling using CSS. To globally change the look and feel of components, we recommend to create a new *.scss
file that you import in your project's styles.scss
(Make sure to place the import after the imported styles from @yuuvis/framework). The following code snippet changes the position of labels in forms:
Code Block |
---|
language | css |
---|
linenumbers | true |
---|
|
yuv-object-form .yuv-form-input:not(.checkbox) .fe-wrapper {
> label {
order: 0;
}
> .control {
order: 1;
}
> .tag {
order: 2;
}
} |
You could also position the labels at the top of the input:
Code Block |
---|
language | css |
---|
linenumbers | true |
---|
|
yuv-object-form .yuv-form-input:not(.checkbox) .fe-wrapper {
display: grid;
grid-template-rows: auto 1fr;
grid-template-columns: auto 1fr;
grid-template-areas:
'label tag'
'fe fe';
> label {
grid-area: label;
}
> .control {
grid-area: fe;
}
> .tag {
grid-area: tag;
}
} |