diff options
Diffstat (limited to 'web_src')
-rw-r--r-- | web_src/css/base.css | 59 | ||||
-rw-r--r-- | web_src/css/editor/combomarkdowneditor.css (renamed from web_src/css/editor-markdown.css) | 0 | ||||
-rw-r--r-- | web_src/css/helpers.css | 8 | ||||
-rw-r--r-- | web_src/css/home.css | 21 | ||||
-rw-r--r-- | web_src/css/index.css | 5 | ||||
-rw-r--r-- | web_src/css/repository.css | 2 | ||||
-rw-r--r-- | web_src/css/repository/issue-label.css | 44 | ||||
-rw-r--r-- | web_src/css/repository/release-tag.css (renamed from web_src/css/repository-release-tag.css) | 0 |
8 files changed, 77 insertions, 62 deletions
diff --git a/web_src/css/base.css b/web_src/css/base.css index 95f83ef00a..a5a3377376 100644 --- a/web_src/css/base.css +++ b/web_src/css/base.css @@ -1472,10 +1472,12 @@ img.ui.avatar, color: var(--color-gold) !important; } +/* FIXME: this is a serious pollution, do not use this for "float: left" anymore */ .ui.left:not(.action) { float: left; } +/* FIXME: this is a serious pollution, do not use this for "float: right" anymore */ .ui.right:not(.action) { float: right; } @@ -2660,38 +2662,6 @@ table th[data-sortt-desc] .svg { background: var(--color-secondary-dark-1) !important; } -.labelspage { - list-style: none; - padding-top: 0; -} - -.labelspage .item { - border-bottom: 1px solid var(--color-secondary); - border-top: none; -} - -.labelspage .item a { - font-size: 12px; - padding-right: 10px; - color: var(--color-text-light); -} - -.labelspage .item a:hover { - color: var(--color-primary-light-2); -} - -.labelspage .item a.open-issues { - margin-right: 30px; -} - -.labelspage .item:last-child { - border-bottom: none; - padding-bottom: 0; -} - -.labelspage .orglabel { - opacity: 0.7; -} /* https://github.com/go-gitea/gitea/pull/11486 */ .ui.sub.header { @@ -2796,21 +2766,16 @@ table th[data-sortt-desc] .svg { height: 15px; } -@media (max-width: 767px) { - .ui.stackable.menu:not(.no-vertical-tabs) { - overflow-y: hidden; - overflow-x: auto; - flex-direction: row; - flex-wrap: nowrap !important; - } - .ui.stackable.menu:not(.no-vertical-tabs) .item { - width: initial !important; - } - .ui.stackable.menu:not(.no-vertical-tabs) > .dropdown.item { - position: initial; - } - .ui.stackable.menu:not(.no-vertical-tabs) .menu { - flex-direction: row; +.g-menu-stackable-scrollable { + overflow-y: hidden; + overflow-x: auto; +} + +@media (max-width: 767.98px) { + /* also respect Fomantic's "stackable" definition, use the same breakpoint to reset our styles */ + .g-menu-stackable-scrollable { + overflow-x: unset; + overflow-y: unset; } } diff --git a/web_src/css/editor-markdown.css b/web_src/css/editor/combomarkdowneditor.css index eb5c5d13b8..eb5c5d13b8 100644 --- a/web_src/css/editor-markdown.css +++ b/web_src/css/editor/combomarkdowneditor.css diff --git a/web_src/css/helpers.css b/web_src/css/helpers.css index 0b4b47f560..ceb20db043 100644 --- a/web_src/css/helpers.css +++ b/web_src/css/helpers.css @@ -68,16 +68,22 @@ Gitea's private styles use `g-` prefix. .gt-cursor-default { cursor: default !important; } .gt-invisible { visibility: hidden !important; } .gt-items-start { align-items: flex-start !important; } -.gt-overflow-x-scroll { overflow-x: scroll !important; } .gt-pointer-events-none { pointer-events: none !important; } .gt-relative { position: relative !important; } .gt-whitespace-nowrap { white-space: nowrap !important; } .gt-whitespace-pre { white-space: pre !important; } .gt-whitespace-pre-wrap { white-space: pre-wrap !important; } +.gt-overflow-x-auto { overflow-x: auto !important; } +.gt-overflow-x-scroll { overflow-x: scroll !important; } +.gt-overflow-y-hidden { overflow-y: hidden !important; } + .gt-w-screen { width: 100vw !important; } .gt-h-screen { height: 100vh !important; } +.gt-float-left { float: left !important; } +.gt-float-right { float: right !important; } + .gt-rounded { border-radius: var(--border-radius) !important; } .gt-rounded-top { border-radius: var(--border-radius) var(--border-radius) 0 0 !important; } .gt-rounded-bottom { border-radius: 0 0 var(--border-radius) var(--border-radius) !important; } diff --git a/web_src/css/home.css b/web_src/css/home.css index 25643cda27..0094acc75f 100644 --- a/web_src/css/home.css +++ b/web_src/css/home.css @@ -43,39 +43,38 @@ color: var(--color-green); } -footer { +.page-footer { + display: flex; background-color: var(--color-footer); border-top: 1px solid var(--color-secondary); line-height: 39px; - flex-basis: 40px; - color: var(--color-text-light); padding: 0 20px; } -footer .right.links { +.page-footer .left-links { + flex: 1; +} + +.page-footer .right-links { min-width: 180px; /* make sure the menu dropdown doesn't overflow horizontally when language name is short */ } -footer .right.links > a { +.page-footer .right-links > a { border-left: 1px solid var(--color-secondary-dark-1); padding-left: 8px; margin-left: 5px; } -footer .ui.dropdown.language .menu { +.page-footer .ui.dropdown.language .menu { height: 500px; max-height: calc(100vh - 60px); overflow-y: auto; margin-bottom: 10px; } - @media (max-width: 880px) { - footer .ui.left, - footer .ui.right { - width: 100%; + .page-footer { display: block; text-align: center; - float: none; } } diff --git a/web_src/css/index.css b/web_src/css/index.css index e59f3eb02a..9d00566674 100644 --- a/web_src/css/index.css +++ b/web_src/css/index.css @@ -30,9 +30,10 @@ @import "./install.css"; @import "./form.css"; @import "./repository.css"; -@import "./repository-release-tag.css"; +@import "./repository/release-tag.css"; +@import "./repository/issue-label.css"; @import "./editor.css"; -@import "./editor-markdown.css"; +@import "./editor/combomarkdowneditor.css"; @import "./organization.css"; @import "./user.css"; @import "./dashboard.css"; diff --git a/web_src/css/repository.css b/web_src/css/repository.css index af2dd2be24..5ef7bd6c50 100644 --- a/web_src/css/repository.css +++ b/web_src/css/repository.css @@ -160,7 +160,7 @@ } .repository .ui.tabs.divider { - margin-top: 0; + margin-top: -1px; margin-bottom: 20px; } diff --git a/web_src/css/repository/issue-label.css b/web_src/css/repository/issue-label.css new file mode 100644 index 0000000000..a2eb0344a5 --- /dev/null +++ b/web_src/css/repository/issue-label.css @@ -0,0 +1,44 @@ +.issue-label-list { + list-style: none; + padding: 0; + margin: 0; +} + +.issue-label-list .item { + border-bottom: 1px solid var(--color-secondary); + display: flex; + padding: 1em 0; + margin: 0; +} + +.issue-label-list .item:first-child { + padding-top: 0; +} + +.issue-label-list .item:last-child { + border-bottom: none; + padding-bottom: 0; +} + +.issue-label-list .item .label-title { + width: 33%; +} + +.issue-label-list .item .label-issues { + width: 33%; +} + +.issue-label-list .item .label-operation { + width: 33%; + text-align: right; +} + +.issue-label-list .item a { + font-size: 12px; + padding-right: 10px; + color: var(--color-text-light); +} + +.issue-label-list .item.org-label { + opacity: 0.7; +} diff --git a/web_src/css/repository-release-tag.css b/web_src/css/repository/release-tag.css index 6922ce5179..6922ce5179 100644 --- a/web_src/css/repository-release-tag.css +++ b/web_src/css/repository/release-tag.css |