summaryrefslogtreecommitdiff
path: root/ui/app/components/layout/layout.less
blob: 81e61afb9ee4c897542b3f66a4c292c4713fd273 (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
@gutter: 20px;

.horizontal-layout {
  display: -webkit-flex;
  display: flex;
  -webkit-flex-direction: row;
  flex-direction: row;
  -webkit-flex: 1 1 auto;
  flex: 1 1 auto;
  > .layout-column {
    display: -webkit-flex;
    display: flex;
    -webkit-flex: 1 1 auto;
    flex: 1 1 auto;
    margin-right: @gutter;
  }
  > .layout-column:last-child {
    margin-right: 0px;
  }
}

.horizontal-layout.equal1 > .layout-column {width: 100%;}
.horizontal-layout.equal2 > .layout-column {width: 50%;}
.horizontal-layout.equal3 > .layout-column {width: 33.33%;}
.horizontal-layout.equal4 > .layout-column {width: 25%;}

.vertical-layout {
  display: -webkit-flex;
  display: flex;
  -webkit-flex-direction: column;
  flex-direction: column;
  -webkit-flex: 1 1 auto;
  flex: 1 1 auto;
  > .layout-row {
    //display: -webkit-flex;
    //display: flex;
    margin-bottom: @gutter;
    &.expand {
      -webkit-flex: 1 1 auto;
      flex: 1 1 auto;
    }
    &.shrink {
      -webkit-flex: 0 1 auto;
      flex: 0 1 auto;
    }
  }
  > .layout-row:last-child {
    margin-bottom: 0px;
  }
}

.vertical-layout.equal1 > .layout-row {width: 100%;}
.vertical-layout.equal2 > .layout-row {width: 50%;}
.vertical-layout.equal3 > .layout-row {width: 33.33%;}
.vertical-layout.equal4 > .layout-row {width: 25%;}