summaryrefslogtreecommitdiff
path: root/ui/app/components/layout/layout.less
blob: dae99aa3ceeefc0a837726e034904fe22ac5ea93 (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
@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%;}