Browse Source

css: start using fixing width container

Get rid of responsive issue.

Also fixes #4527.
pull/4495/merge
Unknwon 8 years ago
parent
commit
16913ba814
No known key found for this signature in database
GPG Key ID: 25B575AE3213B2B3
  1. 2
      gogs.go
  2. 9
      public/css/gogs.css
  3. 3
      public/less/_admin.less
  4. 10
      public/less/_base.less
  5. 2
      templates/.VERSION

2
gogs.go

@ -16,7 +16,7 @@ import (
"github.com/gogits/gogs/pkg/setting"
)
const APP_VER = "0.11.13.0602"
const APP_VER = "0.11.13.0603"
func init() {
setting.AppVer = APP_VER

9
public/css/gogs.css

@ -8,6 +8,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,
@ -41,7 +46,6 @@ code.raw {
pre.wrap,
code.wrap {
white-space: pre-wrap;
/* CSS 3 */
word-break: break-word;
}
.dont-break-out {
@ -3122,9 +3126,6 @@ footer .ui.language .menu {
.admin.config .log-config table tbody tr td:first-child {
width: 100px;
}
.admin.config .log-config table tbody tr td:not(first-child) {
max-width: 0;
}
.explore {
padding-top: 15px;
padding-bottom: 80px;

3
public/less/_admin.less

@ -70,9 +70,6 @@
&:first-child {
width: 100px;
}
&:not(first-child) {
max-width: 0;
}
}
}
}

10
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;
}
}

2
templates/.VERSION

@ -1 +1 @@
0.11.13.0602
0.11.13.0603
Loading…
Cancel
Save