فهرست منبع

CSS: .repository .sha.label -> .ui .sha.label

This is because SHA1 label is used in many other places, not only inside
.repository container.
Adam Strzelecki 10 سال پیش
والد
کامیت
640dce12a8
3فایلهای تغییر یافته به همراه15 افزوده شده و 12 حذف شده
  1. 7 6
      public/css/gogs.css
  2. 8 0
      public/less/_base.less
  3. 0 6
      public/less/_repository.less

+ 7 - 6
public/css/gogs.css

@@ -913,6 +913,13 @@ pre.raw {
 .ui .form .fake {
   display: none !important;
 }
+.ui .sha.label {
+  font-family: Consolas, Menlo, Monaco, "Lucida Console", monospace;
+  font-size: 14px;
+  padding: 6px 10px 4px 10px;
+  font-weight: normal;
+  margin: 0 6px;
+}
 .ui.status.buttons .octicon {
   margin-right: 4px;
 }
@@ -2267,12 +2274,6 @@ footer .container .links > *:first-child {
 .repository .commits.table .date {
   width: 120px;
 }
-.repository .sha.label {
-  font-family: Consolas, Menlo, Monaco, "Lucida Console", monospace;
-  font-size: 14px;
-  padding: 6px 10px 4px 10px;
-  font-weight: normal;
-}
 .repository .diff-detail-box {
   margin: 15px 0;
   line-height: 30px;

+ 8 - 0
public/less/_base.less

@@ -219,6 +219,14 @@ pre {
 		}
 	}
 
+	.sha.label {
+		font-family: Consolas, Menlo, Monaco, "Lucida Console", monospace;
+		font-size: 14px;
+		padding: 6px 10px 4px 10px;
+		font-weight: normal;
+		margin: 0 6px;
+	}
+
 	&.status.buttons {
 		.octicon {
 			margin-right: 4px;

+ 0 - 6
public/less/_repository.less

@@ -630,12 +630,6 @@
 	    width: 120px;
 		}
 	}
-	.sha.label {
-		font-family: Consolas, Menlo, Monaco, "Lucida Console", monospace;
-		font-size: 14px;
-		padding: 6px 10px 4px 10px;
-		font-weight: normal;
-	}
 
 	.diff-detail-box {
     margin: 15px 0;