summaryrefslogtreecommitdiffstats
path: root/WebContent/VAADIN/themes/valo/components/_gridlayout.scss
blob: e1777750cd5794e810617d3aa474f8e44d448dc6 (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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
/**
 *
 *
 * @param {string} $primary-stylename (v-gridlayout) - 
 *
 * @group gridlayout
 */
@mixin valo-gridlayout-global ($primary-stylename: v-gridlayout) {
  .#{$primary-stylename} {
    position: relative;
  }
  .#{$primary-stylename}-slot {
    position: absolute;
    line-height: $v-line-height;
  }
  .#{$primary-stylename}-spacing-on {
    overflow: hidden;
  }
  .#{$primary-stylename}-spacing,
  .#{$primary-stylename}-spacing-off {
    padding-left: 0;
    padding-top: 0;
  }
  .#{$primary-stylename}-spacing-off {
    overflow: hidden;
  }
}


/**
 *
 *
 * @param {string} $primary-stylename (v-gridlayout) - 
 *
 * @group gridlayout
 */
@mixin valo-gridlayout($primary-stylename : v-gridlayout) {

  .#{$primary-stylename}-margin-top {
    padding-top: $v-layout-margin-top;
  }

  .#{$primary-stylename}-margin-bottom {
    padding-bottom: $v-layout-margin-bottom;
  }

  .#{$primary-stylename}-margin-left {
    padding-left: $v-layout-margin-left;
  }

  .#{$primary-stylename}-margin-right {
    padding-right: $v-layout-margin-right;
  }

  .#{$primary-stylename}-spacing-on {
    padding-left: $v-layout-spacing-horizontal;
    padding-top: $v-layout-spacing-vertical;
  }


}