Browse Source

IPythonNotebook: fix a bit more CSS

pull/3579/merge
Unknwon 8 years ago
parent
commit
5d6ea4a81b
No known key found for this signature in database
GPG Key ID: FB9F411CDD69BEC1
  1. 6
      public/css/gogs.css
  2. 9
      public/less/_repository.less

6
public/css/gogs.css

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

9
public/less/_repository.less

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

Loading…
Cancel
Save