Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
Data Logistics Service
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
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
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
eFlows4HPC WP2
Data Logistics Service
Commits
e29aee17
Commit
e29aee17
authored
3 years ago
by
Maria Petrova-El Sayed
Browse files
Options
Downloads
Patches
Plain Diff
Detach the footer from the content. Works also on mobile devices
parent
54d57fc7
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Pipeline
#86513
passed
3 years ago
Stage: test
Stage: deploy
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
templates/main.html
+21
-3
21 additions, 3 deletions
templates/main.html
with
21 additions
and
3 deletions
templates/main.html
+
21
−
3
View file @
e29aee17
...
...
@@ -86,12 +86,12 @@
{% block footer %}
{% if not current_user.is_anonymous %}
{% set version_label = 'Version' %}
<!-- Use a wrapper div to detach the footer from the content
.
-->
<div
style=
"padding-bottom:
3
rem !important; visibility: hidden !important; flex-grow: 1 !important; -ms-flex-direction: column !important; display: flex !important;
<!-- Use a wrapper div to detach the footer from the content
-> just nice to have
-->
<div
style=
"padding-bottom:
1
rem !important; visibility: hidden !important; flex-grow: 1 !important; -ms-flex-direction: column !important; display: flex !important;
flex-direction: column !important;"
>
.
</div>
<footer
class=
"footer"
style=
"background-image: url(https://eflows4hpc.eu/wp-content/uploads/2021/02/Barra-gris-footer.png) !important; height: auto; color: #575756 !important; background-repeat: no-repeat !important; background-size: cover !important; margin-top:
2rem
;"
>
<footer
class=
"footer"
style=
"background-image: url(https://eflows4hpc.eu/wp-content/uploads/2021/02/Barra-gris-footer.png) !important; height: auto; color: #575756 !important; background-repeat: no-repeat !important; background-size: cover !important; margin-top:
auto !important
;"
>
<div
class=
"container p-0"
style=
"padding: 0px !important"
>
<div
class=
"p-0 w-100"
style=
"background-image: url(https://eflows4hpc.eu/wp-content/uploads/2021/01/barra-3-color-8.png) !important; width: 100%; height: 15px; background-repeat: no-repeat !important; background-size: cover !important; padding: 0px; !important"
></div>
<div
class=
"row mt-2 px-3"
style=
"margin-top: 0.5rem; padding-right: 1rem;"
>
...
...
@@ -143,6 +143,24 @@
var
csrfToken
=
'
{{ csrf_token() }}
'
;
$
(
'
time[title]
'
).
tooltip
();
</script>
<!-- Calculate the size of the dynamic footer to make sure that it doesn't cover the content of the page. Helps also on mobile devices. -->
<script>
function
footerAlign
()
{
$
(
'
footer
'
).
css
(
'
display
'
,
'
block
'
);
$
(
'
footer
'
).
css
(
'
height
'
,
'
auto
'
);
var
footerHeight
=
$
(
'
footer
'
).
outerHeight
();
$
(
'
body
'
).
css
(
'
padding-bottom
'
,
footerHeight
);
$
(
'
footer
'
).
css
(
'
height
'
,
footerHeight
);
}
$
(
document
).
ready
(
function
(){
footerAlign
();
});
$
(
window
).
resize
(
function
()
{
footerAlign
();
});
</script>
<!--[if IE ]>
<script src="{{ url_for_asset('ie.js') }}"></script>
<![endif]-->
...
...
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