Default alignment #679
-
How do I make the text block be Centered as a default. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
Please note that styles shared between blocks in the same "theme" have to be consistents. If you want a block to not follow the same theme of other blocks then delcare it in a new theme. In versafix you can see there is a frameTheme and a contentTheme and you can see some block belongs to the frameTheme while others belong to the contentTheme. The longTextStyle.color property must be the same for every block in the contentTheme but it can be different from the color used in the frameTheme's blocks. This is needed in order to correctly use the global/local changes when working with the template. |
Beta Was this translation helpful? Give feedback.
-
How do I change the contentTheme ? |
Beta Was this translation helpful? Give feedback.
-
contentTheme.longTextStyle.align is automatically generated the first time longTextStyle.align is used in a contentTheme block. The following occourences will check if the value is the same of the theme and complaint otherwise (as you found out). So, if you simply change the text-align: from left to center in every occourence of the "longTextStyle.align" in blocks using contentTheme block (or everywhere if you want to change it also in the frameTheme). If you are working in the MML source ( https://github.com/voidlabs/versafix-template/blob/master/template-def/template-versafix-1.htmml#L977 ) for versafix then you simply have to change:
with
|
Beta Was this translation helpful? Give feedback.
Please note that styles shared between blocks in the same "theme" have to be consistents.
So if you change longTextStyle.align to center you have to change it everywhere the same style is used in other blocks sharing the same theme.
If you want a block to not follow the same theme of other blocks then delcare it in a new theme.
In versafix you can see there is a frameTheme and a contentTheme and you can see some block belongs to the frameTheme while others belong to the contentTheme.
The longTextStyle.color property must be the same for every block in the contentTheme but it can be different from the color used in the frameTheme's blocks.
This is needed in order to correctly use the globa…