Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
menu search
person
Welcome To Ask or Share your Answers For Others

Categories

mytheme.scss file:

@import "../valo/valo.scss";

@mixin mytheme {

 @include valo;  
 background-image: url("img/light-background.jpg");
  }

my image is in ...VAADIN/themes/mytheme/img/light-background.jpg

where is no compiling/running errors, why image isn't displayed as a background?

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
229 views
Welcome To Ask or Share your Answers For Others

1 Answer

Edit: On hold until additional details are provided.

Try setting it as the background image for your UI's generated div:

@mixin mytheme {
  @include valo;

  .v-ui {
     background-image: url("img/light-background.jpg");
  }
}


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
...