I am using vaadin 7 and the valo theme. And I am new to all the scss/mixin stuff…
I have set the default layout margins and they work fine… But there are few layouts in my application which needs a smaller layout margin… Adding a style name to the layout and adjusting the padding in css does not seem to work. The layout goes past its boundaries due to the css padding.
How can I achieve this different layout margin needs with valo… Please help… Have been struggling for quite some time now…
I could not find any example on vaadin forums or any other site.
Just for reference…
Within the
.custom-margins the classes need to be preceeded by "
& " - i.e.:
...
.custom-margins{
&.v-margin-left {padding-left: 250px;}
&.v-margin-right {padding-right: 250px;}
&.v-margin-top {padding-top: 100px;}
&.v-margin-bottom {padding-bottom: 300px;}
}
Further more you could use relative values, e.g.
$v-layout-margin-left/2 instead of
250px .
We use cookies to serve our customers and website visitors in the best possible way. Cookies are used for the proper functioning of the website and for improving the user experience, monitoring visitor traffic and marketing purposes. By continuing to browse the site, you agree to our use of cookies. You can read more about cookies here.
We use cookies to serve our customers and website visitors in the best possible way. Cookies are used for the proper functioning of the website and for improving the user experience, monitoring visitor traffic and marketing purposes. By continuing to browse the site, you agree to our use of cookies. You can read more about cookies here.