From af4cf463f567bbbbfbcf347e8fbd2b1b35e15cd8 Mon Sep 17 00:00:00 2001 From: Unknwon Date: Sat, 3 Jun 2017 04:34:01 -0400 Subject: [PATCH] css: fix fluid container for spilt diff view --- public/css/gogs.css | 4 ++-- public/less/_base.less | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/public/css/gogs.css b/public/css/gogs.css index 6f4979c26..48c3d4052 100644 --- a/public/css/gogs.css +++ b/public/css/gogs.css @@ -4,14 +4,14 @@ display: inline-block; background-size: contain; } -body { +body:not(.full-width) { font-family: "PingFang SC", "Helvetica Neue", "Microsoft YaHei", Arial, Helvetica, sans-serif !important; background-color: #fff; overflow-y: scroll; overflow-x: auto; min-width: 1020px; } -.ui.container { +.ui.container:not(.fluid) { width: 980px !important; } h1, diff --git a/public/less/_base.less b/public/less/_base.less index 92a0081f2..2c5ee4071 100644 --- a/public/less/_base.less +++ b/public/less/_base.less @@ -1,13 +1,13 @@ @footer-margin: 40px; -body { +body:not(.full-width) { font-family: "PingFang SC", "Helvetica Neue", "Microsoft YaHei", Arial, Helvetica, sans-serif !important; background-color: #fff; overflow-y: scroll; overflow-x: auto; min-width: 1020px; } -.ui.container { +.ui.container:not(.fluid) { width: 980px !important; } h1, h2, h3, h4, h5,