aboutsummaryrefslogtreecommitdiffstats
path: root/web/src/css/layout.less
blob: e1f222498e1a17e7418f88bad9c72c8eef3cb9b3 (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
html, body, #container {
  height: 100%;
  margin: 0;
  overflow: hidden;
}

header, footer {
  display: block;
}

@headerheight: 153px;
@footerheight: 25px;

#container {
  //Set padding on container so that #main can take 100% height
  //If we don't do it, the scrollbars will be too large.
  padding: @headerheight 0 @footerheight;
}

header {
  height: @headerheight;
  //Substract #container padding
  margin-top: -@headerheight;
}

#main {
  height: 100%;
  display: block;
  overflow-y: auto;
}

footer {
  //This starts at the beginning of the #container padding, all fine.
  height: @footerheight;
  line-height: @footerheight;
}