Explorar el Código

IPythonNotebook: fix a bit more CSS

Unknwon hace 8 años
padre
commit
5d6ea4a81b
Se han modificado 2 ficheros con 12 adiciones y 3 borrados
  1. 5 1
      public/css/gogs.css
  2. 7 2
      public/less/_repository.less

+ 5 - 1
public/css/gogs.css

@@ -1328,6 +1328,9 @@ footer .ui.language .menu {
 .repository.file.list #file-content #ipython-notebook .nb-cell {
   position: relative;
 }
+.repository.file.list #file-content #ipython-notebook .nb-cell.nb-heading-cell {
+  margin-top: 0.5em;
+}
 .repository.file.list #file-content #ipython-notebook .nb-raw-cell {
   white-space: pre-wrap;
   background-color: #f5f2f0;
@@ -1353,6 +1356,7 @@ footer .ui.language .menu {
   padding: 5px 10px;
 }
 .repository.file.list #file-content #ipython-notebook .nb-input pre code {
+  min-height: 18px;
   line-height: 18px;
   font-size: 14px;
 }
@@ -1382,7 +1386,7 @@ footer .ui.language .menu {
   border-collapse: collapse;
 }
 .repository.file.list #file-content #ipython-notebook .nb-markdown-cell {
-  background-color: #eee;
+  margin-top: 10px;
   margin-right: 10px;
   padding: 10px;
 }

+ 7 - 2
public/less/_repository.less

@@ -256,7 +256,7 @@
 				padding-top: 1px;
 
 				.nb-notebook {
-					line-height: 1.5;    
+					line-height: 1.5;
 				}
 
 				.nb-stdout, .nb-stderr {
@@ -275,6 +275,10 @@
 
 				.nb-cell {
 					position: relative;    
+
+					&.nb-heading-cell {
+						margin-top: 0.5em;
+					}
 				}
 
 				.nb-raw-cell {
@@ -305,6 +309,7 @@
 						padding: 5px 10px;
 
 						code {
+							min-height: 18px;
 							line-height: 18px;
 							font-size: 14px;
 						}
@@ -340,7 +345,7 @@
 				}
 
 				.nb-markdown-cell {
-					background-color: #eee;
+					margin-top: 10px;
 					margin-right: 10px;
 					padding: 10px;
 				}