blob: 6b67581a0f6c4392b655047a69c87adf7128c415 (
plain) (
blame)
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
|
<script>
const browser = window.browser || window.chrome
import url from "./url"
import GeneralIcon from "../icons/GeneralIcon.svelte"
import ServicesIcon from "../icons/ServicesIcon.svelte"
import AboutIcon from "../icons/AboutIcon.svelte"
</script>
<div>
<a href="#general" style={$url.hash == "#general" && "color: var(--active);"}>
<GeneralIcon class="margin margin_{document.body.dir}" />
{browser.i18n.getMessage("general") || "General"}
</a>
<a href="#services" style={$url.hash == "#services" && "color: var(--active);"}>
<ServicesIcon class="margin margin_{document.body.dir}" />
{browser.i18n.getMessage("services") || "Services"}
</a>
<a href="https://libredirect.github.io" target="_blank" rel="noopener noreferrer">
<AboutIcon class="margin margin_{document.body.dir}" />
{browser.i18n.getMessage("about") || "About"}
</a>
</div>
<style>
div {
display: flex;
flex-direction: column;
margin: 0 20px;
}
a {
display: flex;
align-items: center;
font-size: 18px;
text-decoration: none;
color: var(--text);
transition: 0.1s;
margin: 10px;
min-width: max-content;
}
a:hover {
color: var(--active);
}
@media (max-width: 1250px) {
div {
flex-direction: row;
justify-content: center;
margin: 0;
}
}
@media (max-width: 715px) {
a {
margin: 5px;
}
}
:global(.margin) {
margin-right: 5px;
margin-left: 0;
}
:global(.margin_rtl) {
margin-right: 0;
margin-left: 5px;
}
</style>
|