O'Reilly logo

Vaadin 7 UI Design By Example Beginner's Guide by Alejandro Duarte

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Styling panels

Panels are rendered like this:

<div class="v-panel ... " ... >

  <div class="v-panel-captionwrap" ... >

    <div class="v-panel-nocaption">
      <span>My caption</span>
    </div>
  </div>

  <div class="v-panel-content ..." ... >
  </div>

  <div class="v-panel-deco" ... >
  </div>

</div>

Here is some CSS magic to make panels look like a post-it:

 .v-panel { overflow: auto; } .v-panel-content { background: #ffee00; border: 0px #fff; padding: 10px; font-family: cursive, sans-serif; } .v-panel:before, .v-panel:after { z-index: -1; position: absolute; content: ""; bottom: 15px; left: 10px; width: 50%; top: 80%; max-width:300px; background: #777; -webkit-box-shadow: 0 18px 10px #777; -moz-box-shadow: 0 18px 10px #777; box-shadow: 0 18px 10px #777; -webkit-transform: ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required