Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
schilder2000
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
schilder
schilder2000
Commits
1ecd8be0
Commit
1ecd8be0
authored
9 months ago
by
Thomas Schneider
Browse files
Options
Downloads
Plain Diff
Merge branch 'burger' into 'main'
Burger See merge request
!2
parents
46bfdecb
94ca0346
No related branches found
No related tags found
1 merge request
!2
Burger
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
frontend/src/main.less
+61
-9
61 additions, 9 deletions
frontend/src/main.less
schilder2000/templates/_base.html.j2
+11
-3
11 additions, 3 deletions
schilder2000/templates/_base.html.j2
with
72 additions
and
12 deletions
frontend/src/main.less
+
61
−
9
View file @
1ecd8be0
// the threshold at which we consider the screen "mobile"
@mobile_threshold: 700px;
* {
* {
box-sizing: border-box;
box-sizing: border-box;
font-family: sans-serif;
font-family: sans-serif;
...
@@ -37,10 +40,8 @@ a {
...
@@ -37,10 +40,8 @@ a {
}
}
nav {
nav {
&, #nav-links {
background-color: var(--accent);
background-color: var(--accent);
.active {
background-color: var(--accent2);
}
display: flex;
display: flex;
justify-content: flex-start;
justify-content: flex-start;
...
@@ -55,6 +56,57 @@ nav {
...
@@ -55,6 +56,57 @@ nav {
}
}
}
}
.active {
background-color: var(--accent2);
}
#title {
@media screen and (max-width: @mobile_threshold) {
flex-grow: 1;
}
}
#burger_checkbox {
display: none;
}
#burger {
height: 2rem;
width: 2rem;
padding: 0;
margin-right: 1rem;
flex-grow: 0;
flex-shrink: 0;
align-self: center;
@media screen and (min-width: (@mobile_threshold + 1)) {
visibility: hidden;
display: none;
}
}
#nav-links {
padding: 0;
}
@media screen and (max-width: @mobile_threshold) {
position: relative;
#burger_checkbox:not(:checked) ~ #nav-links {
display: none;
}
#burger_checkbox:checked ~ #nav-links {
position: absolute;
right: 0;
top: 100%;
flex-direction: column;
}
}
}
main {
main {
width: min(95vw, 100rem);
width: min(95vw, 100rem);
margin: 2rem auto;
margin: 2rem auto;
...
...
This diff is collapsed.
Click to expand it.
schilder2000/templates/_base.html.j2
+
11
−
3
View file @
1ecd8be0
...
@@ -25,9 +25,17 @@
...
@@ -25,9 +25,17 @@
{%- block body -%}
{%- block body -%}
{%- block nav -%}
{%- block nav -%}
<nav>
<nav>
<h1>
Schildergenerator NEU!
</h1>
<h1
id=
"title"
>
Schildergenerator NEU!
</h1>
<input
id=
"burger_checkbox"
type=
"checkbox"
/>
<label
id=
"burger"
for=
"burger_checkbox"
>
<svg
viewBox=
"0 0 30 30"
stroke=
"white"
stroke-width=
"2"
fill=
"none"
>
<path
d=
"M0,5 H30 M0,15 H30 M0,25 H30"
/>
</svg>
</label>
<div
id=
"nav-links"
>
<a
{{
maybe_active_href
("
views.index
")
}}
>
Startseite
</a>
<a
{{
maybe_active_href
("
views.index
")
}}
>
Startseite
</a>
<a
{{
maybe_active_href
("
views.create
")
}}
>
Neues Schild
</a>
<a
{{
maybe_active_href
("
views.create
")
}}
>
Neues Schild
</a>
</div>
</nav>
</nav>
{%- endblock nav -%}
{%- endblock nav -%}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment