footer.less 1.59 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
    justify-content: center;
Sandro Lutz's avatar
Sandro Lutz committed
44
  }
lic's avatar
lic committed
45

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

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

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

lic's avatar
lic committed
63
64
65
66
67
  a {
    position: relative;

    img {
      height: 2em;
lic's avatar
lic committed
68
      padding: 0 .7em;
lic's avatar
lic committed
69
70
    }
  }
Sandro Lutz's avatar
Sandro Lutz committed
71
72
}

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

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

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

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