-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
ModuleHeader.svelte
56 lines (41 loc) · 1.06 KB
/
ModuleHeader.svelte
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
<script>
import { OLSKLocalized } from 'OLSKInternational';
import ROCORootLink from './node_modules/ROCORootLink/main.svelte';
import OLSKLanguageSwitcher from './node_modules/OLSKLanguageSwitcher/main.svelte';
</script>
<header class="Container">
<ROCORootLink />
<h1>Idiomatic</h1>
<OLSKLanguageSwitcher OLSKSharedActiveRouteConstant={ window.OLSKPublicConstants('OLSKSharedActiveRouteConstant') }
OLSKSharedPageLanguagesAvailable={ window.OLSKPublicConstants('OLSKSharedPageLanguagesAvailable') }
OLSKSharedPageCurrentLanguage={ window.OLSKPublicConstants('OLSKSharedPageCurrentLanguage') }
/>
</header>
<style>
.Container {
/* AppContainerFlexbox:Child */
flex-shrink: 0;
/* ContainerFlexbox:Parent */
display: flex;
justify-content: space-between;
align-items: center;
}
:global(.ROCORootLink) {
color: inherit;
}
:global(.ROCORootLink img) {
width: 36px;
}
h1 {
margin: 0;
font-size: 20px;
}
:global(.OLSKLanguageSwitcher) {
padding: 10px;
font-size: 13px;
}
:global(.OLSKLanguageSwitcher span) {
/* browser quirks */
padding-left: 4px;
}
</style>