diff --git a/public/css/gogs.css b/public/css/gogs.css index e8dca6e6c..b8a2bdce5 100644 --- a/public/css/gogs.css +++ b/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; } diff --git a/public/less/_repository.less b/public/less/_repository.less index 521324252..066c58fde 100644 --- a/public/less/_repository.less +++ b/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; }