footer.less 1.63 KB
Newer Older
1
2
@import './colors.less';

Sandro Lutz's avatar
Sandro Lutz committed
3
footer {
4
  background-color: @color-dark-blue;
lic's avatar
lic committed
5
  color: @color-grey;
Sandro Lutz's avatar
Sandro Lutz committed
6

Sandro Lutz's avatar
Sandro Lutz committed
7
8
9
10
11
12
13
  > div {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    padding: 0 1em;
    margin: 0 auto;

    @media @wide, @desktop {
lic's avatar
lic committed
14
15
      grid-template-columns: 50% 25% 25%;
      grid-template-areas: 'copyright social-media-logos institution-logos';
Sandro Lutz's avatar
Sandro Lutz committed
16
      max-width: @dimension-max-content-width;
Sandro Lutz's avatar
Sandro Lutz committed
17
18
    }

Sandro Lutz's avatar
Sandro Lutz committed
19
    @media @tablet {
lic's avatar
lic committed
20
21
      grid-template-columns: 50% 25% 25%;
      grid-template-areas: 'copyright social-media-logos institution-logos';
Sandro Lutz's avatar
Sandro Lutz committed
22
23
24
25
      font-size: .7em;
    }

    @media @mobile {
lic's avatar
lic committed
26
      grid-template-columns: 1fr;
Sandro Lutz's avatar
Sandro Lutz committed
27
      grid-template-areas:
lic's avatar
lic committed
28
29
30
        'copyright'
        'social-media-logos'
        'institution-logos';
Sandro Lutz's avatar
Sandro Lutz committed
31
    }
Sandro Lutz's avatar
Sandro Lutz committed
32
  }
Sandro Lutz's avatar
Sandro Lutz committed
33
34
35
36
37
}

footer div.copyright {
  display: flex;
  align-items: center;
lic's avatar
lic committed
38
  justify-content: left;
Sandro Lutz's avatar
Sandro Lutz committed
39
  grid-area: copyright;
lic's avatar
lic committed
40
  padding: 2.5em .7em;
lic's avatar
lic committed
41

Sandro Lutz's avatar
Sandro Lutz committed
42
  @media @mobile {
lic's avatar
lic committed
43
    padding: 2.2em 0 1.2em;
lic's avatar
lic committed
44
    justify-content: center;
Sandro Lutz's avatar
Sandro Lutz committed
45
  }
lic's avatar
lic committed
46

Sandro Lutz's avatar
Sandro Lutz committed
47
48
49
50
51
52
53
  a {
    margin-left: 1em;
    color: @color-red;
    text-decoration: none;
  }
}

lic's avatar
lic committed
54
55
footer div.social-media-logos {
  display: flex;
lic's avatar
lic committed
56
  justify-content: center;
lic's avatar
lic committed
57
58
59
60
61
62
  align-items: center;
  grid-area: social-media-logos;

  @media @mobile {
    justify-content: center;
  }
Sandro Lutz's avatar
Sandro Lutz committed
63

lic's avatar
lic committed
64
65
  a {
    position: relative;
66
67
68
    display: inline-block;
    color: @color-white;
    padding: 1em .7em;
lic's avatar
lic committed
69
  }
Sandro Lutz's avatar
Sandro Lutz committed
70
71
}

lic's avatar
lic committed
72
footer div.institution-logos {
Sandro Lutz's avatar
Sandro Lutz committed
73
  display: flex;
lic's avatar
lic committed
74
  justify-content: right;
Sandro Lutz's avatar
Sandro Lutz committed
75
  align-items: center;
lic's avatar
lic committed
76
77
78
79
80
  grid-area: institution-logos;

  @media @mobile {
    justify-content: center;
  }
lic's avatar
lic committed
81

Sandro Lutz's avatar
Sandro Lutz committed
82
83
  a {
    position: relative;
lic's avatar
lic committed
84

Sandro Lutz's avatar
Sandro Lutz committed
85
86
87
88
    img {
      height: 4em;
      max-width: 100%;
      background-color: @color-dark-blue;
lic's avatar
lic committed
89
90
    }
  }
Sandro Lutz's avatar
Sandro Lutz committed
91
}