Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
thalia
concrexit
Commits
e2a59dac
Verified
Commit
e2a59dac
authored
Nov 08, 2018
by
Sébastiaan Versteeg
Browse files
Improve usability of header on mobile devices
parent
12c9f048
Changes
2
Hide whitespace changes
Inline
Side-by-side
website/thaliawebsite/static/css/base.scss
View file @
e2a59dac
#accentbar
{
position
:
-
webkit-sticky
;
position
:
sticky
;
background
:
$preset
;
height
:
5px
;
top
:
0
;
z-index
:
1020
;
}
.navbar
{
position
:
-
webkit-sticky
;
position
:
sticky
;
font-size
:
16px
;
background-color
:
$white
;
border-bottom
:
1px
solid
$grey
;
top
:
5px
;
z-index
:
1020
;
>
.container
{
justify-content
:
end
;
...
...
@@ -95,7 +102,7 @@
}
}
@media
(
max-width
:
1
200
px
)
{
@media
(
max-width
:
1
199
px
)
{
.navbar
{
.navbar-brand
{
img
{
...
...
@@ -105,6 +112,23 @@
}
}
@media
(
max-width
:
767px
)
{
#accentbar
,
.navbar
{
position
:
relative
;
top
:
0
;
}
}
@media
(
max-width
:
359px
)
{
.navbar
{
.navbar-brand
{
img
{
max-height
:
3rem
;
}
}
}
}
#page-header
{
height
:
200px
;
...
...
website/thaliawebsite/templates/base.html
View file @
e2a59dac
...
...
@@ -64,9 +64,9 @@
{% include "announcements/announcement.html" with announcements=announcements %}
</section>
<div
id=
"accentbar"
class=
"sticky-top"
></div>
<div
id=
"accentbar"
></div>
<nav
class=
"navbar navbar-expand-lg
sticky-top
"
>
<nav
class=
"navbar navbar-expand-lg"
>
<div
class=
"container"
>
<a
class=
"navbar-brand"
href=
"{% url 'index' %}"
>
<img
...
...
Jelle Besseling
@jbesseling
mentioned in commit
b5bb12b8
·
Nov 08, 2018
mentioned in commit
b5bb12b8
mentioned in commit b5bb12b8b89fa961d4a423519d4b9d94df5d1562
Toggle commit list
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment