- Removed sticky positioning on Releases page due to z-index issues
- Fixed tooltips z-index
- Fixed button heights in some areas
- Fixed explore page on mobile (I'll try to fix more mobile issues later.)
- Tweaked Header Padding
This commit is contained in:
Free 2021-10-30 17:56:42 +02:00
parent ebf594caf0
commit 8a2bab6df5

View file

@ -1,15 +1,17 @@
// main: theme-gitea-modern.user.styl, out: theme-gitea-modern.css, compress: true // main: theme-gitea-modern.user.styl, out: theme-gitea-modern.css, compress: true
// Ignore above, just compiler stuff // Ignore above, just compiler stuff
/* Update 1.0.10 /* Update 1.0.11
- Tweaked the look of the dashboard and other menu's / tabs - Removed sticky positioning on Releases page due to z-index issues
- Other fixes - Fixed tooltips z-index
- Fixed button heights in some areas
- Fixed explore page on mobile (I'll try to fix more mobile issues later.)
- Tweaked Header Padding
*/ */
:root { :root {
--base-border-radius: 6px; --base-border-radius: 6px;
} }
html.theme-gitea, html.theme-arc-green { html.theme-gitea, html.theme-arc-green {
--fonts-override: var(--fonts-regular); --fonts-override: var(--fonts-regular);
@ -75,7 +77,7 @@ a[rel*="nofollow"]:not(.ui), .link:not(.ui) {
.ui.compact.button { .ui.compact.button {
padding-top: .3em; padding-top: .3em;
padding-bottom: .3em; padding-bottom: .3em;
min-height: .8em; min-height: 2.4em;
display: inline-flex; display: inline-flex;
align-items: center; align-items: center;
svg { svg {
@ -87,7 +89,6 @@ a[rel*="nofollow"]:not(.ui), .link:not(.ui) {
} }
/*** Inputs ***/ /*** Inputs ***/
.input.action.fluid { .input.action.fluid {
@ -150,6 +151,54 @@ a[rel*="nofollow"]:not(.ui), .link:not(.ui) {
} }
} }
/*** Popups ***/
/* Tooltips */
.popup.tiny.inverted {
background: var(--color-body);
color: var(--color-text);
box-shadow: var(--lm-large-shadow);
border: 1px solid var(--color-secondary);
pointer-events: none;
z-index: 9999999;
&::before {
background: var(--color-body) !important;
z-index: -99999 !important;
border-color: var(--color-secondary) !important;
}
}
.ui.left.popup::before {
border: 0;
border-top: 1px solid;
border-right: 1px solid;
}
.ui.right.popup::before {
border: 0;
border-left: 1px solid;
border-bottom: 1px solid;
}
.ui.top.popup::before {
border: 0;
border-right: 1px solid;
border-bottom: 1px solid;
}
.ui.bottom.popup::before {
border: 0;
border-top: 1px solid;
border-left: 1px solid;
}
.settings > .ui.container {
max-width: 1150px !important;
}
/** Other Elements **/
// Filter buttons & New Issue buttons on mobile // Filter buttons & New Issue buttons on mobile
.ui.two.column.stackable.grid > .column { .ui.two.column.stackable.grid > .column {
width: auto !important; width: auto !important;
@ -200,54 +249,7 @@ a[rel*="nofollow"]:not(.ui), .link:not(.ui) {
} }
// Make heatmap not smoll on smoll screens
/*** Popups ***/
/* Tooltips */
.popup.tiny.inverted {
background: var(--color-body);
color: var(--color-text);
box-shadow: var(--lm-large-shadow);
border: 1px solid var(--color-secondary);
pointer-events: none;
z-index: 1000;
&::before {
background: var(--color-body) !important;
z-index: -99999 !important;
border-color: var(--color-secondary) !important;
}
}
.ui.left.popup::before {
border: 0;
border-top: 1px solid;
border-right: 1px solid;
}
.ui.right.popup::before {
border: 0;
border-left: 1px solid;
border-bottom: 1px solid;
}
.ui.top.popup::before {
border: 0;
border-right: 1px solid;
border-bottom: 1px solid;
}
.ui.bottom.popup::before {
border: 0;
border-top: 1px solid;
border-left: 1px solid;
}
.settings > .ui.container {
max-width: 1150px !important;
}
/** Other Elements **/
#user-heatmap { #user-heatmap {
overflow: auto hidden; overflow: auto hidden;
justify-content: flex-start; justify-content: flex-start;
@ -456,16 +458,14 @@ html {
/*** Header ***/ /*** Header ***/
.following.bar { .following.bar {
--min-height: 60px; --min-height: 60px;
background: none !important; background: none !important;
border-bottom: 1px solid var(--color-secondary) !important; border-bottom: 1px solid var(--color-secondary) !important;
background-color: var(--color-navbar) !important; background-color: var(--color-navbar) !important;
position: relative; position: relative;
min-height: var(--min-height); min-height: var(--min-height);
align-items: center; align-items: center;
z-index: 99999;
#navbar { #navbar {
padding: 0 calc(2px + 1%) !important; padding: 0 calc(4px + 1%) !important;
background: none !important; background: none !important;
max-width: 100rem; max-width: 100rem;
transition: padding 1s; transition: padding 1s;
@ -478,7 +478,7 @@ html {
font-size: 1rem !important; font-size: 1rem !important;
font-weight: 600; font-weight: 600;
padding: 0 calc(0px + 1.1%); padding: 0 calc(0px + 1%);
height: calc(var(--min-height) + 1px) !important; height: calc(var(--min-height) + 1px) !important;
margin: 0 !important; margin: 0 !important;
border-radius: 0; border-radius: 0;
@ -1293,9 +1293,6 @@ html {
#release-list { #release-list {
padding-left: 0; padding-left: 0;
.four.wide.column { .four.wide.column {
position: sticky !important;
top: 0px;
height: min-content;
width: 150px !important; width: 150px !important;
} }
} }
@ -1625,8 +1622,8 @@ html {
grid-gap: 16px; grid-gap: 16px;
.item { .item {
width: 400px;
width: 100%; width: 100%;
max-width: calc(100vw - 40px);
min-height: unset !important; min-height: unset !important;
padding: 14px 16px !important; padding: 14px 16px !important;
border: 1px solid var(--color-secondary); border: 1px solid var(--color-secondary);