forked from forgejo/forgejo
Start cleaning the messy ".ui.left / .ui.right", improve label list page, fix stackable menu (#24393)
Since 2015/2016, there is a global pollution: ".ui.left" / ".ui.right". Fomantic UI doesn't work this way, it just conflicts with many Fomantic definitions. This PR starts the cleaning work of such techinical debts. And, the "label list" page has been quite messy for long time, for example, why "li" appears in "div" ...... And fix #24296 <details>      </details>
This commit is contained in:
parent
72e956b79a
commit
5a5ab8ef5a
19 changed files with 168 additions and 162 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue