-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvo-footer.js
154 lines (138 loc) · 3.72 KB
/
vo-footer.js
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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
import { LitElement, html } from "./node_modules/vodomg-litelement/@polymer/lit-element/lit-element.js";
import './node_modules/vo-merklogo/vo-merklogo.js';
/**
* `vo-footer`
* De standaard footer voor websites en applicaties van de Vlaamse overheid
*
* ### Styling
*
* De volgende properties en mixins zijn beschikbaar voor stijl:
*
* Custom property | Description | Default
* ----------------|-------------|----------
* `--vo-footer-background` | de footer achtergrondkleur | `none`
* `--vo-footer-color` | de tekst kleur | `rgb(184, 184, 184)`
* `--vo-footer-a-color` | de link tekst kleur | `rgb(184, 184, 184)`
* `--vo-footer-a-hover-color` | de link zweef tekst kleur | `white`
*
* @customElement
* @polymer
* @demo demo/vo-footer.html
*/
class VoFooter extends LitElement {
/**
* Rendert het element.
*
* @return {TemplateResult}
*/
render() {
return html`
<style>
:host {
background: rgb(51, 51, 51);
color: var(--vo-footer-color, rgb(184, 184, 184));
font-size: 14px;
}
#wrapper {
background: var(--vo-footer-background, none);
max-width: 1040px;
width: 100%;
margin: auto;
}
vo-merklogo {
margin-right: 5px;
}
a,
a:active,
a:link,
a:visited {
color: var(--vo-footer-a-color, rgb(184, 184, 184));
text-decoration: none;
}
a:hover {
color: var(--vo-footer-a-hover-color, white);
}
.spacer {
-ms-flex: 10;
-webkit-flex: 10;
flex: 10;
}
#wrapper {
display: -ms-flexbox;
display: -webkit-flex;
display: flex;
-ms-flex-direction: column;
-webkit-flex-direction: column;
flex-direction: column;
align-items: stretch;
}
#top-row {
display: -ms-flexbox;
display: -webkit-flex;
display: flex;
-ms-flex-direction: row;
-webkit-flex-direction: row;
flex-direction: row;
margin: 20px 0;
}
#bottom-row {
display: -ms-flexbox;
display: -webkit-flex;
display: flex;
-ms-flex-direction: row;
-webkit-flex-direction: row;
flex-direction: row;
-ms-flex-align: center;
-webkit-align-items: center;
align-items: center;
-ms-flex-pack: justify;
-webkit-justify-content: space-between;
justify-content: space-between;
border-top: solid 1px #444;
padding: 3px 10px;
min-height: 36px;
}
#credits {
display: -ms-flexbox;
display: -webkit-flex;
display: flex;
-ms-flex-direction: column;
-webkit-flex-direction: column;
flex-direction: column;
-ms-flex-align: start;
-webkit-align-items: flex-start;
align-items: flex-start;
}
#vo-footer-content {
margin-left: auto;
}
#credits-vo {
font-size: 140%;
}
#credits-departement {
font-weight: 100;
}
#credits-departement a {
text-decoration: underline;
}
</style>
<div id='wrapper'>
<div id='top-row'>
<vo-merklogo></vo-merklogo>
<div id='credits'>
<span id='credits-vo'>Dit is een officiële website van de Vlaamse overheid</span>
<span id='credits-departement'>uitgegeven door
<a id='departement' target='_blank' href='//www.omgevingvlaanderen.be'>het departement Omgeving</a></span>
</div>
<div id="vo-footer-content">
<slot></slot>
</div>
</div>
<div id='bottom-row'>
<a id='disclaimer' href='//www.vlaanderen.be/nl/disclaimer' target="_blank">Disclaimer</a>
<div class="spacer"></div>
</div>
`;
}
}
customElements.define('vo-footer', VoFooter);