Skip to content
GitLab
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
79d4182a
Commit
79d4182a
authored
Oct 14, 2018
by
Sébastiaan Versteeg
Committed by
Luko van der Maas
Oct 17, 2018
Browse files
Move header image to img tag
parent
168867cd
Changes
2
Hide whitespace changes
Inline
Side-by-side
website/thaliawebsite/static/css/base.scss
View file @
79d4182a
...
...
@@ -98,13 +98,13 @@
#page-header
{
height
:
360px
;
overflow
:
hidden
;
display
:
flex
;
justify-content
:
center
;
.image
{
width
:
100%
;
width
:
auto
;
height
:
100%
;
background-size
:
cover
;
background-repeat
:
no-repeat
;
background-position
:
center
center
;
max-width
:
none
;
}
}
...
...
website/thaliawebsite/templates/base.html
View file @
79d4182a
...
...
@@ -104,11 +104,7 @@
<header
id=
"page-header"
>
{% block header_image_container %}
<div
class=
"image"
style=
"background-image: url('{% block header_image %}{% pick_header_image %}{% endblock header_image %}')"
>
</div>
<img
src=
"{% block header_image %}{% pick_header_image %}{% endblock header_image %}"
class=
"image"
/>
{% endblock header_image_container %}
</header>
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment