-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvo-header.js
102 lines (91 loc) · 2.14 KB
/
vo-header.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
import { LitElement, html } from "./node_modules/vodomg-litelement/@polymer/lit-element/lit-element.js";
import './node_modules/vo-merklogo/vo-merklogo.js';
/**
* `vo-header`
* De standaard header voor websites en applicaties van de Vlaamse overheid
*
* ### Styling
*
* De volgende properties en mixins zijn beschikbaar voor stijl:
*
* Custom property | Description | Default
* ----------------|-------------|----------
* `--vo-header-wrapper-style` | de wrapper mixin | `{}`
*
* @customElement
* @polymer
* @demo demo/vo-header.html
*/
class VoHeader extends LitElement {
/**
* Rendert het element.
*
* @return {TemplateResult}
*/
render() {
return html`
<style>
:host {
display: block;
background: rgb(51, 51, 51);
color: rgb(184, 184, 184);
font-size: 14px;
}
#wrapper {
width: 100%;
max-width: 1040px;
margin: auto;
@apply --vo-header-wrapper-style;
}
vo-merklogo {
margin-right: 5px;
}
a,
a:active,
a:link,
a:visited {
color: rgb(184, 184, 184);
text-decoration: none;
}
a:hover {
color: white
}
.separator {
margin: auto 1em;
height: 1.5em;
border-left: solid 1px #444;
}
.spacer {
-ms-flex: 10;
-webkit-flex: 10;
flex: 10;
}
#wrapper {
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;
padding-right: 10px;
box-sizing: border-box;
}
#vlaanderen {
font-size: 18px;
font-weight: 500;
}
</style>
<div id='wrapper'>
<vo-merklogo></vo-merklogo>
<a id='vlaanderen' href='//www.vlaanderen.be' target='_self'>VLAANDEREN.be</a>
<div class='separator'></div>
<a id='departement' href='//www.omgevingvlaanderen.be' target='_self'>Departement Omgeving</a>
<div class='spacer'></div>
</div>
`;
}
}
customElements.define('vo-header', VoHeader);