Selaa lähdekoodia

Revert less files to upstream

All less files are identical to upstream now.  Custom CSS rules will be
moved to a custom.css file and injected through the custom header:

https://gogs.io/docs/features/custom_template#include-custom-css-file
Achilleas Koutsou 6 vuotta sitten
vanhempi
commit
27abc50285

+ 19 - 239
public/css/gogs.css

@@ -65,7 +65,7 @@ code.wrap {
 }
 }
 .full.height {
 .full.height {
   padding: 0;
   padding: 0;
-  margin: 0 0 -200px 0;
+  margin: 0 0 -80px 0;
   min-height: 100%;
   min-height: 100%;
 }
 }
 .following.bar {
 .following.bar {
@@ -150,16 +150,16 @@ code.wrap {
   box-shadow: none;
   box-shadow: none;
 }
 }
 .ui .text.red {
 .ui .text.red {
-  color: #2854a4 !important;
+  color: #d95c5c !important;
 }
 }
 .ui .text.red a {
 .ui .text.red a {
-  color: #2854a4 !important;
+  color: #d95c5c !important;
 }
 }
 .ui .text.red a:hover {
 .ui .text.red a:hover {
-  color: #428bca !important;
+  color: #E67777 !important;
 }
 }
 .ui .text.blue {
 .ui .text.blue {
-  color: #2854a4 !important;
+  color: #428bca !important;
 }
 }
 .ui .text.blue a {
 .ui .text.blue a {
   color: #15c !important;
   color: #15c !important;
@@ -315,8 +315,8 @@ code.wrap {
   font-weight: 700 !important;
   font-weight: 700 !important;
 }
 }
 footer {
 footer {
-  margin-top: 114px !important;
-  height: 100px;
+  margin-top: 54px !important;
+  height: 40px;
   background-color: white;
   background-color: white;
   border-top: 1px solid #d6d6d6;
   border-top: 1px solid #d6d6d6;
   clear: both;
   clear: both;
@@ -879,7 +879,7 @@ footer .ui.language .menu {
   border-top: 0;
   border-top: 0;
 }
 }
 .home {
 .home {
-  padding-bottom: 200px;
+  padding-bottom: 80px;
 }
 }
 .home .logo {
 .home .logo {
   margin-bottom: 20px;
   margin-bottom: 20px;
@@ -892,7 +892,7 @@ footer .ui.language .menu {
   font-size: 2em;
   font-size: 2em;
 }
 }
 .home .hero .octicon {
 .home .hero .octicon {
-  color: #2854a4;
+  color: #d9453d;
   font-size: 40px;
   font-size: 40px;
   width: 50px;
   width: 50px;
 }
 }
@@ -906,15 +906,15 @@ footer .ui.language .menu {
   padding-top: 30px;
   padding-top: 30px;
 }
 }
 .home a {
 .home a {
-  color: #2854a4;
+  color: #d9453d;
 }
 }
 .signup {
 .signup {
   padding-top: 15px;
   padding-top: 15px;
-  padding-bottom: 200px;
+  padding-bottom: 80px;
 }
 }
 .install {
 .install {
   padding-top: 45px;
   padding-top: 45px;
-  padding-bottom: 200px;
+  padding-bottom: 80px;
 }
 }
 .install form label {
 .install form label {
   text-align: right;
   text-align: right;
@@ -1138,7 +1138,7 @@ footer .ui.language .menu {
 }
 }
 .repository {
 .repository {
   padding-top: 15px;
   padding-top: 15px;
-  padding-bottom: 200px;
+  padding-bottom: 80px;
 }
 }
 .repository .head .column {
 .repository .head .column {
   padding-top: 5px !important;
   padding-top: 5px !important;
@@ -1246,6 +1246,7 @@ footer .ui.language .menu {
 .repository #clone-panel {
 .repository #clone-panel {
   margin-top: -8px;
   margin-top: -8px;
   margin-left: 5px;
   margin-left: 5px;
+  width: auto;
 }
 }
 .repository #clone-panel input {
 .repository #clone-panel input {
   border-radius: 0;
   border-radius: 0;
@@ -2770,7 +2771,7 @@ footer .ui.language .menu {
 }
 }
 .organization {
 .organization {
   padding-top: 15px;
   padding-top: 15px;
-  padding-bottom: 200px;
+  padding-bottom: 80px;
 }
 }
 .organization .head .ui.header .text {
 .organization .head .ui.header .text {
   vertical-align: middle;
   vertical-align: middle;
@@ -2895,7 +2896,7 @@ footer .ui.language .menu {
 }
 }
 .user:not(.icon) {
 .user:not(.icon) {
   padding-top: 15px;
   padding-top: 15px;
-  padding-bottom: 200px;
+  padding-bottom: 80px;
 }
 }
 .user.settings .list .item.ui.grid {
 .user.settings .list .item.ui.grid {
   margin-top: 15px;
   margin-top: 15px;
@@ -2981,7 +2982,7 @@ footer .ui.language .menu {
 }
 }
 .dashboard {
 .dashboard {
   padding-top: 15px;
   padding-top: 15px;
-  padding-bottom: 200px;
+  padding-bottom: 80px;
 }
 }
 .dashboard.feeds .context.user.menu,
 .dashboard.feeds .context.user.menu,
 .dashboard.issues .context.user.menu {
 .dashboard.issues .context.user.menu {
@@ -3118,7 +3119,7 @@ footer .ui.language .menu {
 }
 }
 .admin {
 .admin {
   padding-top: 15px;
   padding-top: 15px;
-  padding-bottom: 200px;
+  padding-bottom: 80px;
 }
 }
 .admin .table.segment {
 .admin .table.segment {
   padding: 0;
   padding: 0;
@@ -3175,7 +3176,7 @@ footer .ui.language .menu {
 }
 }
 .explore {
 .explore {
   padding-top: 15px;
   padding-top: 15px;
-  padding-bottom: 200px;
+  padding-bottom: 80px;
 }
 }
 .explore .navbar .octicon {
 .explore .navbar .octicon {
   width: 16px;
   width: 16px;
@@ -3230,224 +3231,3 @@ footer .ui.language .menu {
 .ui.user.list .item .description a:hover {
 .ui.user.list .item .description a:hover {
   text-decoration: underline;
   text-decoration: underline;
 }
 }
-.ginsubtitle {
-  font-family: "Kaushan Script", "Helvetica Neue", Helvetica, Arial, cursive;
-  font-size: 16px;
-}
-.supersmall {
-  padding-left: 10px;
-  font-size: 0.8em;
-  text-align: left;
-}
-.leftspace {
-  padding-left: 20px;
-}
-figure {
-  float: right;
-  max-width: 600px;
-}
-figure img {
-  display: block;
-  margin-left: auto;
-  margin-right: auto;
-}
-figure figcaption {
-  display: block;
-  margin-left: auto;
-  margin-right: auto;
-  font-style: italic;
-  text-align: justify;
-}
-#cloudberry-view {
-  margin-top: 14px;
-}
-.ui.codetab {
-  padding: 0;
-}
-#file-buttons {
-  padding-right: 5px;
-}
-.ginsubtitle {
-  font-family: "Kaushan Script", "Helvetica Neue", Helvetica, Arial, cursive;
-  font-size: 16px;
-}
-.supersmall {
-  padding-left: 10px;
-  font-size: 0.8em;
-  text-align: left;
-}
-.leftspace {
-  padding-left: 40px;
-}
-figure {
-  float: right;
-  max-width: 600px;
-}
-figure img {
-  display: block;
-  margin-left: auto;
-  margin-right: auto;
-}
-figure figcaption {
-  display: block;
-  margin-left: auto;
-  margin-right: auto;
-  font-style: italic;
-  text-align: justify;
-}
-#cloudberry-view {
-  margin-top: 14px;
-}
-.ui.codetab {
-  padding: 0;
-}
-#file-buttons {
-  padding-right: 5px;
-}
-.ui.segment.results.hide {
-  z-index: 1000;
-}
-.gin.doi {
-  float: left;
-  background-color: #5b5b5b;
-  color: white;
-  border-top-left-radius: 0.28571429rem;
-  border-bottom-left-radius: 0.28571429rem;
-  padding: 0.833em 1em;
-}
-.gin.doinr {
-  background-color: #2185D0;
-  float: right;
-  color: white;
-  border-top-right-radius: 0.28571429rem;
-  border-bottom-right-radius: 0.28571429rem;
-  padding: 0.833em 1em;
-}
-.ui.image.label.nobg {
-  background: none;
-}
-.ui.image.label.nobg > a {
-  opacity: 1;
-}
-textarea#description {
-  height: 5em;
-  min-height: 5em;
-}
-.ui.loading.ginsearch .input > i.icon:after {
-  position: absolute;
-  content: '';
-  top: 50%;
-  left: 50%;
-  margin: -0.64285714em 0 0 -0.64285714em;
-  width: 1.28571429em;
-  height: 1.28571429em;
-  -webkit-animation: button-spin 0.6s linear;
-  animation: button-spin 0.6s linear;
-  -webkit-animation-iteration-count: infinite;
-  animation-iteration-count: infinite;
-  border-radius: 500rem;
-  border-color: #767676 transparent transparent;
-  border-style: solid;
-  border-width: 0.2em;
-  box-shadow: 0 0 0 1px transparent;
-}
-/*--------------
-    Results
----------------*/
-.ui.ginsearch > .results {
-  display: none;
-  position: absolute;
-  top: 100%;
-  left: 0%;
-  -webkit-transform-origin: center top;
-  transform-origin: center top;
-  white-space: normal;
-  background: #FFFFFF;
-  margin-top: 0.5em;
-  width: 18em;
-  border-radius: 0.28571429rem;
-  -webkit-box-shadow: 0px 2px 4px 0px rgba(34, 36, 38, 0.12), 0px 2px 10px 0px rgba(34, 36, 38, 0.15);
-  box-shadow: 0px 2px 4px 0px rgba(34, 36, 38, 0.12), 0px 2px 10px 0px rgba(34, 36, 38, 0.15);
-  border: 1px solid #D4D4D5;
-  z-index: 998;
-}
-.ui.ginsearch > .results > :first-child {
-  border-radius: 0.28571429rem 0.28571429rem 0em 0em;
-}
-.ui.ginsearch > .results > :last-child {
-  border-radius: 0em 0em 0.28571429rem 0.28571429rem;
-}
-/*--------------
-    Result
----------------*/
-.ui.ginsearch > .results .result {
-  cursor: pointer;
-  display: block;
-  overflow: hidden;
-  font-size: 1em;
-  padding: 0.85714286em 1.14285714em;
-  color: rgba(0, 0, 0, 0.87);
-  line-height: 1.33;
-  border-bottom: 1px solid rgba(34, 36, 38, 0.1);
-}
-.ui.ginsearch > .results .result:last-child {
-  border-bottom: none !important;
-}
-/* Image */
-.ui.ginsearch > .results .result .image {
-  float: right;
-  overflow: hidden;
-  background: none;
-  width: 5em;
-  height: 3em;
-  border-radius: 0.25em;
-}
-.ui.ginsearch > .results .result .image img {
-  display: block;
-  width: auto;
-  height: 100%;
-}
-/*--------------
-    Message
----------------*/
-.ui.ginsearch > .results > .message {
-  padding: 1em 1em;
-}
-.ui.ginsearch > .results > .message .header {
-  font-family: 'Lato', 'Helvetica Neue', Arial, Helvetica, sans-serif;
-  font-size: 1rem;
-  font-weight: bold;
-  color: rgba(0, 0, 0, 0.87);
-}
-.ui.ginsearch > .results > .message .description {
-  margin-top: 0.25rem;
-  font-size: 1em;
-  color: rgba(0, 0, 0, 0.87);
-}
-/* View All Results */
-.ui.ginsearch > .results > .action {
-  display: block;
-  border-top: none;
-  background: #F3F4F5;
-  padding: 0.92857143em 1em;
-  color: rgba(0, 0, 0, 0.87);
-  font-weight: bold;
-  text-align: center;
-}
-#file-buttons > a:first-child {
-  border-top-left-radius: 0.28571429rem;
-  border-bottom-left-radius: 0.28571429rem;
-  border-top-right-radius: 0;
-  border-bottom-right-radius: 0;
-}
-.textnode.focusable.whitespace {
-  display: none !important;
-}
-.footericon {
-  height: 35px;
-  vertical-align: middle;
-}
-.footertext {
-  font-size: 1rem;
-  vertical-align: middle;
-}

+ 5 - 5
public/less/_base.less

@@ -1,4 +1,4 @@
-@footer-margin: 100px;
+@footer-margin: 40px;
 
 
 body:not(.full-width) {
 body:not(.full-width) {
 	font-family: "PingFang SC", "Helvetica Neue", "Microsoft YaHei", Arial, Helvetica, sans-serif !important;
 	font-family: "PingFang SC", "Helvetica Neue", "Microsoft YaHei", Arial, Helvetica, sans-serif !important;
@@ -156,16 +156,16 @@ pre, code {
 
 
 	.text {
 	.text {
 		&.red {
 		&.red {
-			color: #2854a4 !important;
+			color: #d95c5c !important;
 			a {
 			a {
-				color: #2854a4 !important;
+				color: #d95c5c !important;
 				&:hover {
 				&:hover {
-					color: #428bca !important;
+					color: #E67777 !important;
 				}
 				}
 			}
 			}
 		}
 		}
 		&.blue {
 		&.blue {
-			color: #2854a4 !important;
+			color: #428bca !important;
 			a {
 			a {
 				color: #15c !important;
 				color: #15c !important;
 				&:hover {
 				&:hover {

+ 0 - 266
public/less/_gin.less

@@ -1,266 +0,0 @@
-.ginsubtitle{
-  font-family: "Kaushan Script", "Helvetica Neue", Helvetica, Arial, cursive;
-  font-size: 16px;
-}
-
-.supersmall {
-  padding-left: 10px;
-  font-size: 0.8em;
-  text-align: left;
-}
-
-.leftspace {
-  padding-left: 20px;
-}
-
-
-figure {
-  float: right;
-  max-width: 600px;
-}
-figure img {
-  display: block;
-  margin-left: auto;
-  margin-right: auto;
-}
-
-figure figcaption {
-  display: block;
-  margin-left: auto;
-  margin-right: auto;
-  font-style: italic;
-  text-align: justify;
-}
-
-#cloudberry-view {
-  margin-top: 14px;
-}
-
-.ui.codetab{
-  padding: 0;
-}
-
-#file-buttons {
-  padding-right: 5px;
-}
-
-.ginsubtitle{
-  font-family: "Kaushan Script", "Helvetica Neue", Helvetica, Arial, cursive;
-  font-size: 16px;
-}
-
-.supersmall {
-  padding-left: 10px;
-  font-size: 0.8em;
-  text-align: left;
-}
-
-.leftspace {
-  padding-left: 40px;
-}
-
-figure {
-  float: right;
-  max-width: 600px;
-}
-figure img {
-  display: block;
-  margin-left: auto;
-  margin-right: auto;
-}
-
-figure figcaption {
-  display: block;
-  margin-left: auto;
-  margin-right: auto;
-  font-style: italic;
-  text-align: justify;
-}
-
-#cloudberry-view {
-  margin-top: 14px;
-}
-
-.ui.codetab{
-  padding: 0;
-}
-
-#file-buttons {
-  padding-right: 5px;
-}
-
-.ui.segment.results.hide {
-  z-index: 1000;
-}
-
-.gin.doi {
-  float: left;
-  background-color: #5b5b5b;
-  color: white;
-  border-top-left-radius: .28571429rem;
-  border-bottom-left-radius: .28571429rem;
-  padding: .833em 1em;
-}
-
-.gin.doinr {
-    background-color: #2185D0;
-    float: right;
-    color: white;
-    border-top-right-radius: .28571429rem;
-    border-bottom-right-radius: .28571429rem;
-    padding: .833em 1em;
-}
-
-.ui.image.label.nobg {
- background: none;
-}
-
-.ui.image.label.nobg>a {
- opacity:1;
-}
-
-textarea#description {
-    height: 5em;
-    min-height: 5em;
-}
-
-.ui.loading.ginsearch .input > i.icon:after {
-  position: absolute;
-  content: '';
-  top: 50%;
-  left: 50%;
-
-  margin:-.64285714em 0 0 -.64285714em;
-  width:1.28571429em;
-  height:1.28571429em;
-
-  -webkit-animation:button-spin .6s linear;
-  animation:button-spin .6s linear;
-  -webkit-animation-iteration-count:infinite;
-  animation-iteration-count:infinite;
-  border-radius:500rem;
-  border-color:#767676 transparent transparent;
-  border-style:solid;
-  border-width:.2em;
-  box-shadow:0 0 0 1px transparent
-}
-
-/*--------------
-    Results
----------------*/
-
-.ui.ginsearch > .results {
-  display: none;
-  position: absolute;
-  top: 100%;
-  left: 0%;
-  -webkit-transform-origin: center top;
-  transform-origin: center top;
-  white-space: normal;
-  background: #FFFFFF;
-  margin-top: 0.5em;
-  width: 18em;
-  border-radius: 0.28571429rem;
-  -webkit-box-shadow: 0px 2px 4px 0px rgba(34, 36, 38, 0.12), 0px 2px 10px 0px rgba(34, 36, 38, 0.15);
-  box-shadow: 0px 2px 4px 0px rgba(34, 36, 38, 0.12), 0px 2px 10px 0px rgba(34, 36, 38, 0.15);
-  border: 1px solid #D4D4D5;
-  z-index: 998;
-}
-
-.ui.ginsearch > .results > :first-child {
-  border-radius: 0.28571429rem 0.28571429rem 0em 0em;
-}
-
-.ui.ginsearch > .results > :last-child {
-  border-radius: 0em 0em 0.28571429rem 0.28571429rem;
-}
-
-/*--------------
-    Result
----------------*/
-
-.ui.ginsearch > .results .result {
-  cursor: pointer;
-  display: block;
-  overflow: hidden;
-  font-size: 1em;
-  padding: 0.85714286em 1.14285714em;
-  color: rgba(0, 0, 0, 0.87);
-  line-height: 1.33;
-  border-bottom: 1px solid rgba(34, 36, 38, 0.1);
-}
-
-.ui.ginsearch > .results .result:last-child {
-  border-bottom: none !important;
-}
-
-/* Image */
-
-.ui.ginsearch > .results .result .image {
-  float: right;
-  overflow: hidden;
-  background: none;
-  width: 5em;
-  height: 3em;
-  border-radius: 0.25em;
-}
-
-.ui.ginsearch > .results .result .image img {
-  display: block;
-  width: auto;
-  height: 100%;
-}
-
-/*--------------
-    Message
----------------*/
-
-.ui.ginsearch > .results > .message {
-  padding: 1em 1em;
-}
-
-.ui.ginsearch > .results > .message .header {
-  font-family: 'Lato', 'Helvetica Neue', Arial, Helvetica, sans-serif;
-  font-size: 1rem;
-  font-weight: bold;
-  color: rgba(0, 0, 0, 0.87);
-}
-
-.ui.ginsearch > .results > .message .description {
-  margin-top: 0.25rem;
-  font-size: 1em;
-  color: rgba(0, 0, 0, 0.87);
-}
-
-/* View All Results */
-
-.ui.ginsearch > .results > .action {
-  display: block;
-  border-top: none;
-  background: #F3F4F5;
-  padding: 0.92857143em 1em;
-  color: rgba(0, 0, 0, 0.87);
-  font-weight: bold;
-  text-align: center;
-}
-
-#file-buttons > a:first-child {
-  border-top-left-radius: .28571429rem;
-  border-bottom-left-radius: .28571429rem;
-  border-top-right-radius: 0;
-  border-bottom-right-radius: 0;
-}
-
-.textnode.focusable.whitespace {
-    display: none !important;
-}
-
-.footericon {
-  height: 35px;
-  vertical-align: middle;
-}
-
-.footertext{
-    font-size: 1rem;
-    vertical-align: middle;
-}

+ 2 - 2
public/less/_home.less

@@ -12,7 +12,7 @@
 			font-size: 2em;
 			font-size: 2em;
 		}
 		}
 		.octicon {
 		.octicon {
-			color: #2854a4;
+			color: #d9453d;
 			font-size: 40px;
 			font-size: 40px;
 			width: 50px;
 			width: 50px;
 		}
 		}
@@ -27,7 +27,7 @@
 		padding-top: 30px;
 		padding-top: 30px;
 	}
 	}
 	a {
 	a {
-		color: #2854a4;
+		color: #d9453d;
 	}
 	}
 }
 }
 
 

+ 9 - 8
public/less/_repository.less

@@ -128,6 +128,7 @@
 	#clone-panel {
 	#clone-panel {
 		margin-top: -8px;
 		margin-top: -8px;
 		margin-left: 5px;
 		margin-left: 5px;
+		width: auto;
 
 
 		input {
 		input {
 			border-radius: 0;
 			border-radius: 0;
@@ -193,7 +194,7 @@
 		}
 		}
 		#file-buttons {
 		#file-buttons {
 			font-weight: normal;
 			font-weight: normal;
-
+			
 			.ui.button {
 			.ui.button {
 				padding: 8px 10px;
 				padding: 8px 10px;
 				font-weight: normal;
 				font-weight: normal;
@@ -323,12 +324,12 @@
 				}
 				}
 
 
 				.nb-cell {
 				.nb-cell {
-					position: relative;
+					position: relative;    
 
 
 					&.nb-heading-cell {
 					&.nb-heading-cell {
 						margin-top: 0.5em;
 						margin-top: 0.5em;
 					}
 					}
-
+					
 					img {
 					img {
 						max-width: 100%;
 						max-width: 100%;
 					}
 					}
@@ -342,9 +343,9 @@
 					margin: .5em 0;
 					margin: .5em 0;
 				}
 				}
 
 
-				.nb-input:before,
+				.nb-input:before, 
 				.nb-output:before {
 				.nb-output:before {
-					position: absolute;
+					position: absolute;    
 					font-family: monospace;
 					font-family: monospace;
 					color: #999;
 					color: #999;
 					left: -7.5em;
 					left: -7.5em;
@@ -372,7 +373,7 @@
 					&:before {
 					&:before {
 						content: "Out [" attr(data-prompt-number) "]:";
 						content: "Out [" attr(data-prompt-number) "]:";
 					}
 					}
-
+					
 					pre {
 					pre {
 						padding: 5px 10px;
 						padding: 5px 10px;
 						font-size: 14px;
 						font-size: 14px;
@@ -390,7 +391,7 @@
 					th,
 					th,
 					td {
 					td {
 						border: 1px solid #000;
 						border: 1px solid #000;
-						padding: 0.25em;
+						padding: 0.25em;    
 						text-align: left;
 						text-align: left;
 						vertical-align: middle;
 						vertical-align: middle;
 						border-collapse: collapse;
 						border-collapse: collapse;
@@ -405,7 +406,7 @@
 
 
 				// Fix pandas dataframe formatting
 				// Fix pandas dataframe formatting
 				div[style="max-height:1000px;max-width:1500px;overflow:auto;"] {
 				div[style="max-height:1000px;max-width:1500px;overflow:auto;"] {
-					max-height: none !important;
+					max-height: none !important;    
 				}
 				}
 			}
 			}
 
 

+ 0 - 1
public/less/gogs.less

@@ -11,4 +11,3 @@
 @import "_dashboard";
 @import "_dashboard";
 @import "_admin";
 @import "_admin";
 @import "_explore";
 @import "_explore";
-@import "_gin";