diff options
author | Unknwon <u@gogs.io> | 2017-06-03 02:58:54 -0400 |
---|---|---|
committer | Unknwon <u@gogs.io> | 2017-06-03 02:58:54 -0400 |
commit | 16913ba8141c997367f5ec91126d2073b0324455 (patch) | |
tree | d1366ac761d3d768cd6b852dc9085d4f102cec0f /public/less | |
parent | 6bb9c442b2d95bf683702c089085bb50b987818f (diff) |
css: start using fixing width container
Get rid of responsive issue.
Also fixes #4527.
Diffstat (limited to 'public/less')
-rw-r--r-- | public/less/_admin.less | 3 | ||||
-rw-r--r-- | public/less/_base.less | 10 |
2 files changed, 6 insertions, 7 deletions
diff --git a/public/less/_admin.less b/public/less/_admin.less index 4f60511d..86714b42 100644 --- a/public/less/_admin.less +++ b/public/less/_admin.less @@ -70,9 +70,6 @@ &:first-child { width: 100px; } - &:not(first-child) { - max-width: 0; - } } } } diff --git a/public/less/_base.less b/public/less/_base.less index e41fc065..92a0081f 100644 --- a/public/less/_base.less +++ b/public/less/_base.less @@ -4,6 +4,11 @@ body { 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 { + width: 980px !important; } h1, h2, h3, h4, h5, .ui.header, @@ -28,10 +33,7 @@ pre, code { overflow: auto; } &.wrap { - white-space: pre-wrap; /* CSS 3 */ -// white-space: -moz-normal; /* Mozilla, since 1999 */ -// white-space: -normal; /* Opera 4-6 */ -// white-space: -o-normal; /* Opera 7 */ + white-space: pre-wrap; word-break: break-word; } } |