diff options
author | silverwind <me@silverwind.io> | 2020-12-01 05:00:14 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-11-30 23:00:14 -0500 |
commit | b1cf7f4df11dfac879d65125880d18a03fef22c0 (patch) | |
tree | 79a9f65c922b4e247744d7fc8a96509f4a72caa1 /web_src | |
parent | 14e8ef9ecb7c79ba8adff6fee44fc9bfb669814c (diff) | |
download | gitea-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 'web_src')
-rw-r--r-- | web_src/less/_admin.less | 4 | ||||
-rw-r--r-- | web_src/less/_base.less | 15 | ||||
-rw-r--r-- | web_src/less/_dashboard.less | 1 | ||||
-rw-r--r-- | web_src/less/_explore.less | 1 | ||||
-rw-r--r-- | web_src/less/_repository.less | 1 |
5 files changed, 14 insertions, 8 deletions
diff --git a/web_src/less/_admin.less b/web_src/less/_admin.less index 09e3ef7b76..a3f223e0f5 100644 --- a/web_src/less/_admin.less +++ b/web_src/less/_admin.less @@ -1,8 +1,4 @@ .admin { - &.notice { - padding-top: 15px; - } - .table.segment { padding: 0; font-size: 13px; diff --git a/web_src/less/_base.less b/web_src/less/_base.less index d2dd9dcb3f..cb91fa118b 100644 --- a/web_src/less/_base.less +++ b/web_src/less/_base.less @@ -238,6 +238,16 @@ a.muted:hover, color: var(--color-text-light-2); } +.page-content { + margin-top: 15px; +} + +.page-content .header-wrapper, +.page-content .new-menu { + margin-top: -15px !important; + padding-top: 15px !important; +} + .ui.input.focus > input, .ui.input > input:focus { border-color: var(--color-primary); @@ -515,6 +525,10 @@ a.muted:hover, height: auto; } +.ui.loading.segment::before { + background: none; +} + .ui.loading.loading.input > i.icon svg { visibility: hidden; } @@ -1101,7 +1115,6 @@ footer { } .ui.menu.new-menu { - padding-top: 15px; margin-bottom: 15px; background: var(--color-navbar); border-bottom: 1px solid var(--color-secondary) !important; diff --git a/web_src/less/_dashboard.less b/web_src/less/_dashboard.less index 923026fcdd..d340f28553 100644 --- a/web_src/less/_dashboard.less +++ b/web_src/less/_dashboard.less @@ -71,7 +71,6 @@ width: 100vw; padding-left: .5rem; padding-right: .5rem; - padding-top: 15px; .org-visibility .label { margin-left: 5px; } diff --git a/web_src/less/_explore.less b/web_src/less/_explore.less index 90853d2464..5962d411e3 100644 --- a/web_src/less/_explore.less +++ b/web_src/less/_explore.less @@ -1,7 +1,6 @@ .explore { .navbar { justify-content: center; - padding-top: 15px !important; margin-bottom: 15px !important; background-color: var(--color-navbar) !important; border-width: 1px !important; diff --git a/web_src/less/_repository.less b/web_src/less/_repository.less index 55cc4f78b7..a830e14c18 100644 --- a/web_src/less/_repository.less +++ b/web_src/less/_repository.less @@ -143,7 +143,6 @@ .header-wrapper { background-color: var(--color-navbar); - padding-top: 15px; .ui.tabs.divider { border-bottom: 0; |