Browse Source

css: start using fixing width container

Get rid of responsive issue.

Also fixes #4527.
Unknwon 7 years ago
parent
commit
16913ba814
5 changed files with 13 additions and 13 deletions
  1. 1 1
      gogs.go
  2. 5 4
      public/css/gogs.css
  3. 0 3
      public/less/_admin.less
  4. 6 4
      public/less/_base.less
  5. 1 1
      templates/.VERSION

+ 1 - 1
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

+ 5 - 4
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;

+ 0 - 3
public/less/_admin.less

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

+ 6 - 4
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;
 	}
 }

+ 1 - 1
templates/.VERSION

@@ -1 +1 @@
-0.11.13.0602
+0.11.13.0603