Repository navigation
Expand file tree
/
Copy pathbase.html
More file actions
118 lines (104 loc) · 1.99 KB
/
Copy pathbase.html
File metadata and controls
118 lines (104 loc) · 1.99 KB
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
<!DOCTYPE html>
{% load i18n menus %}
<html lang="{{ request.LANGUAGE_CODE }}">
<head>
<title>{% block title %}feincms3{% endblock %}</title>
<style>
*, *::before, *::after { box-sizing: inherit; }
body {
padding: 0; margin: 0;
font-family: 'Helvetica Neue', Helvetica, sans-serif;
background: #e2e2e2;
box-sizing: border-box;
}
.wrap {
box-shadow: 0 0 5px 0 rgba(0, 0, 50, .3);
max-width: 40rem;
margin: 0 auto;
border: 1px solid #aaa;
min-height: 100vh;
background: #fff;
display: flex;
flex-direction: column;
}
header {
display: flex;
align-items: center;
justify-content: space-between;
padding: 0 1rem;
}
header>* {
margin: 0;
}
header a,
.main-nav a,
.footer-nav a {
text-decoration: none;
color: inherit;
}
.nav {
display: flex;
}
.nav a {
display: block;
padding: 1rem 2rem;
background: lightblue;
color: inherit;
flex: 1 0 auto;
text-align: center;
margin-right: 1px;
transition: .3s;
}
.nav a:hover,
.nav a.active {
background: lightgreen;
}
.content {
flex: 1 1 auto;
padding: 1rem;
}
.columns {
display: flex;
}
.columns .main {
flex-basis: 75%;
max-width: 75%;
}
.columns .sidebar {
flex-basis: 25%;
max-width: 25%;
}
img {
max-width: 100%;
}
a.article { display: block; }
</style>
</head>
<body>
<div class="wrap">
<header>
<h1><a href="/{{ request.LANGUAGE_CODE }}/">feincms3</a></h1>
<nav class="language-nav">
<a href="/en/">english</a>
<a href="/de/">deutsch</a>
</nav>
</header>
{% menus as menus %}
<nav class="nav main-nav">
{% for p in menus.main %}
<a {% if p.id in page.tree_path %}class="active"{% endif %}
href="{{ p.get_absolute_url }}">{{ p }}</a>
{% endfor %}
</nav>
<div class="content">
{% block content %}{% endblock %}
</div>
<nav class="nav footer-nav">
{% for p in menus.footer %}
<a {% if p.id in page.tree_path %}class="active"{% endif %}
href="{{ p.get_absolute_url }}">{{ p }}</a>
{% endfor %}
</nav>
</div>
</body>
</html>