Important Notice - Forums is archived
To simplify things and help our users to be more productive, we have archived the current forum and focus our efforts on helping developers on Stack Overflow. You can post new questions on Stack Overflow or join our Discord channel.

Vaadin lets you build secure, UX-first PWAs entirely in Java.
Free ebook & tutorial.
Theme Sass Compilation Error
I managed sass compiler to work, l have now the last version Ruby 2.2 (Gem; Sass), but still the problems remain:
1) VAADIN "made me" compile every scss file from reindeer and base theme. I wonder if this is really necessary?
2) So, I copied to VAADIN/themes all the files sass compiler required and then this error occurr.
Error: Undefined operation: "none times -1".
on line 409 of E:/Proyects/CapitanNemoStock/web/WEB-INF/VAADIN/themes/base/grid/grid.scss, in `base-grid'
. #{$primaryStyleName}-editor-footer {
display: table;
height: $v-grid-row-height;
border-top: $v-grid-cell-horizontal-border;
margin-top: nth($v-grid-cell-horizontal-border, 1) * -1; // line 409
background: $v-grid-row-background-color;
padding: 0 5px;
+ .#{$primaryStyleName}-editor-cells > div { // editor marks here an error "Unexpected Token" !!!
border-bottom: none;
border-top: $v-grid-cell-horizontal-border;
}
&:first-child {
border-top: none;
margin-top: 0;
border-bottom: $v-grid-cell-horizontal-border;
margin-bottom: nth($v-grid-cell-horizontal-border, 1) * -1;
}
}
3) I still would like to know how to use my theme including one of the VAADIN directly without scss compiling to scc
4) How to use VAADIN Sass compiler in netbeans.
Thanks.
Aleksander
Hi again!
I think that is something wrong with VAADIN 7.5.1. In my thema cnstema.css I have only this:
@import "../reindeer/styles.css"; // @import "../reindeer/legacy-styles.css" --> this option didn't work either
.v-verticallayout {
background-color: yellow;
}
.v-ui {
background: green;
}
When I add @Theme("cnstema") it broke everything.
So, I can't use scss because throws sass compiler compilation error and neither can use
"plain old CSS Themes".
So, I want to know, if I'm doing something wrong, or VAADI 7.5.1 has a bug, before I decide to change the VAADIN version.
Aleksander
I still can't get rid of this problem. But today I found an error in the tomcat's 8 log:
INFO: Requested resource [/VAADIN/themes/cnstema/styles.css] not found from filesystem or through class loader.
searching for answers I realized that my web.xml has a correct servlet mapping
<servlet-mapping>
<servlet-name>CapitanNemoStock</servlet-name>
<url-pattern>/VAADIN/*</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>CapitanNemoStock</servlet-name>
<url-pattern>/*</url-pattern>
</servlet-mapping>
my thema is in this folder> \Proyects\CapitanNemoStock\web\WEB-INF\VAADIN\themes\cnstema\styles.css
What is serveStaticResourcesInVAADIN?
I use Windows 7 and netbeans 8, java 8:
Thanks.