summaryrefslogtreecommitdiffstats
path: root/public/less/_base.less
diff options
context:
space:
mode:
authorsilverwind <me@silverwind.io>2019-02-24 22:02:45 +0100
committerzeripath <art27@cantab.net>2019-02-24 21:02:45 +0000
commit28fcbf33dc67cf5f7940bf799e8ed863aca717b4 (patch)
treed89c6b479050a25d1891a6978709160f954d7a59 /public/less/_base.less
parent15ecc08475c49926b9d5f6fb4182578683f75d63 (diff)
downloadgitea-28fcbf33dc67cf5f7940bf799e8ed863aca717b4.tar.gz
gitea-28fcbf33dc67cf5f7940bf799e8ed863aca717b4.zip
UI: Make document body a flexbox (#6139)
* UI: Make document body a flexbox Fixes: https://github.com/go-gitea/gitea/issues/6118 * ie11 fixes * increase padding to 80px * add flex-grow
Diffstat (limited to 'public/less/_base.less')
-rw-r--r--public/less/_base.less12
1 files changed, 5 insertions, 7 deletions
diff --git a/public/less/_base.less b/public/less/_base.less
index bdf56f4eab..17638b7632 100644
--- a/public/less/_base.less
+++ b/public/less/_base.less
@@ -1,10 +1,10 @@
-@footer-margin: 40px;
-
body {
font-family: "Lato", "Segoe UI", "Microsoft YaHei", Arial, Helvetica, sans-serif !important;
background-color: #fff;
overflow-y: scroll;
-webkit-font-smoothing: antialiased;
+ display: flex;
+ flex-direction: column;
}
img {
border-radius: 3px;
@@ -56,9 +56,8 @@ pre, code {
hyphens: auto;
}
.full.height {
- padding: 0;
- margin: 0 0 calc(-@footer-margin - 2px) 0;
- min-height: 100%;
+ flex-grow: 1;
+ padding-bottom: 80px;
}
.following.bar {
z-index: 900;
@@ -440,11 +439,10 @@ pre, code {
}
footer {
- position: absolute;
background-color: white;
border-top: 1px solid #d6d6d6;
- clear: both;
width: 100%;
+ height: 40px;
color: #888888;
.container {
width: 100vw !important;