summaryrefslogtreecommitdiffstats
path: root/templates/repo/wiki
diff options
context:
space:
mode:
authorsilverwind <me@silverwind.io>2020-12-01 05:00:14 +0100
committerGitHub <noreply@github.com>2020-11-30 23:00:14 -0500
commitb1cf7f4df11dfac879d65125880d18a03fef22c0 (patch)
tree79a9f65c922b4e247744d7fc8a96509f4a72caa1 /templates/repo/wiki
parent14e8ef9ecb7c79ba8adff6fee44fc9bfb669814c (diff)
downloadgitea-b1cf7f4df11dfac879d65125880d18a03fef22c0.tar.gz
gitea-b1cf7f4df11dfac879d65125880d18a03fef22c0.zip
Add class to page content to unify top margin (#13766)
* Add class to page content to unify top margin Previously pages would individually set this margin but some didn't so content would stick to the header without any space. Resolve this by adding a new class that is added on all pages. The only place where we remove this margin again is on the pages with menu or wrapper in the header. * fix admin notices * fix team pages * fix loading segment on gitgraph for arc-green * fix last missing case Co-authored-by: techknowlogick <techknowlogick@gitea.io>
Diffstat (limited to 'templates/repo/wiki')
-rw-r--r--templates/repo/wiki/new.tmpl2
-rw-r--r--templates/repo/wiki/pages.tmpl2
-rw-r--r--templates/repo/wiki/revision.tmpl2
-rw-r--r--templates/repo/wiki/start.tmpl2
-rw-r--r--templates/repo/wiki/view.tmpl2
5 files changed, 5 insertions, 5 deletions
diff --git a/templates/repo/wiki/new.tmpl b/templates/repo/wiki/new.tmpl
index 002a36de96..06450a6ec4 100644
--- a/templates/repo/wiki/new.tmpl
+++ b/templates/repo/wiki/new.tmpl
@@ -1,5 +1,5 @@
{{template "base/head" .}}
-<div class="repository wiki new">
+<div class="page-content repository wiki new">
{{template "repo/header" .}}
<div class="ui container">
{{template "base/alert" .}}
diff --git a/templates/repo/wiki/pages.tmpl b/templates/repo/wiki/pages.tmpl
index c3fb412c57..3afa7772de 100644
--- a/templates/repo/wiki/pages.tmpl
+++ b/templates/repo/wiki/pages.tmpl
@@ -1,5 +1,5 @@
{{template "base/head" .}}
-<div class="repository wiki pages">
+<div class="page-content repository wiki pages">
{{template "repo/header" .}}
<div class="ui container">
<h2 class="ui header df ac sb">
diff --git a/templates/repo/wiki/revision.tmpl b/templates/repo/wiki/revision.tmpl
index 5f1fa08a53..cd1adfb547 100644
--- a/templates/repo/wiki/revision.tmpl
+++ b/templates/repo/wiki/revision.tmpl
@@ -1,5 +1,5 @@
{{template "base/head" .}}
-<div class="repository wiki revisions">
+<div class="page-content repository wiki revisions">
{{template "repo/header" .}}
{{ $title := .title}}
<div class="ui container">
diff --git a/templates/repo/wiki/start.tmpl b/templates/repo/wiki/start.tmpl
index d8de0fcb77..e9b7ecb6c9 100644
--- a/templates/repo/wiki/start.tmpl
+++ b/templates/repo/wiki/start.tmpl
@@ -1,5 +1,5 @@
{{template "base/head" .}}
-<div class="repository wiki start">
+<div class="page-content repository wiki start">
{{template "repo/header" .}}
<div class="ui container">
<div class="ui center segment">
diff --git a/templates/repo/wiki/view.tmpl b/templates/repo/wiki/view.tmpl
index 05a85a5168..255fe52503 100644
--- a/templates/repo/wiki/view.tmpl
+++ b/templates/repo/wiki/view.tmpl
@@ -1,5 +1,5 @@
{{template "base/head" .}}
-<div class="repository wiki view">
+<div class="page-content repository wiki view">
{{template "repo/header" .}}
{{ $title := .title}}
<div class="ui container">