summaryrefslogtreecommitdiffstats
path: root/public/less
diff options
context:
space:
mode:
authorEpicCoder <EpicCoder@users.noreply.github.com>2019-01-30 01:45:08 +0100
committertechknowlogick <matti@mdranta.net>2019-01-29 19:45:08 -0500
commita967cf9e99461bbd89b8b26fd41faf9f4ed06010 (patch)
tree963fcc5bdc639449c36e06c752450a547e9d1145 /public/less
parent16678f5255ff0f2a1d9c37de6f382db898f16cbe (diff)
downloadgitea-a967cf9e99461bbd89b8b26fd41faf9f4ed06010.tar.gz
gitea-a967cf9e99461bbd89b8b26fd41faf9f4ed06010.zip
UI: Correct footer height if screen-width is to small (fixes #5878) (#5889) (#5889)
Diffstat (limited to 'public/less')
-rw-r--r--public/less/_base.less9
-rw-r--r--public/less/_home.less7
2 files changed, 9 insertions, 7 deletions
diff --git a/public/less/_base.less b/public/less/_base.less
index 20e6b8b972..7f156839df 100644
--- a/public/less/_base.less
+++ b/public/less/_base.less
@@ -439,14 +439,13 @@ pre, code {
}
footer {
- height: @footer-margin;
+ position: absolute;
background-color: white;
border-top: 1px solid #d6d6d6;
clear: both;
width: 100%;
color: #888888;
.container {
- padding-top: 10px;
.fa {
width: 16px;
text-align: center;
@@ -467,6 +466,12 @@ footer {
overflow-y: auto;
margin-bottom: 7px;
}
+
+ .ui {
+ &.left, &.right {
+ line-height: 40px;
+ }
+ }
}
.hide {
diff --git a/public/less/_home.less b/public/less/_home.less
index d0ce34fb86..0657c58d8c 100644
--- a/public/less/_home.less
+++ b/public/less/_home.less
@@ -49,13 +49,10 @@
}
footer {
- @media only screen and (max-width: 880px) {
- text-align: center;
- }
-
.ui.container .left, .ui.container .right {
@media only screen and (max-width: 880px) {
- display: inline;
+ display: block;
+ text-align: center;
float: none;
}
}