aboutsummaryrefslogtreecommitdiffstats
path: root/WebContent/VAADIN/themes/valo/components/_absolutelayout.scss
blob: 5f1ef9281e0e56e9e0072cfa578135e6b03f0a7a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
/**
 *
 *
 * @param {string} $primary-stylename (v-absolutelayout) - 
 *
 * @group absolutelayout
 */
@mixin valo-absolutelayout ($primary-stylename: v-absolutelayout) {
  
  .#{$primary-stylename}-wrapper {
    position: absolute;
  }
  
  .#{$primary-stylename}-margin,
  .#{$primary-stylename}-canvas {
    @include box-sizing(border-box);
  }
  
  .#{$primary-stylename}.v-has-height > div,
  .#{$primary-stylename}.v-has-height .#{$primary-stylename}-margin {
    height: 100%;
  }
  
  .#{$primary-stylename}.v-has-height > div,
  .#{$primary-stylename}.v-has-width .#{$primary-stylename}-margin {
    width: 100%;
  }
  
}