- Combined feed list to make it more compact, while still looking nice.
- Styled User / Organization lists
- Added minor blur to tabs in User page
This commit is contained in:
Free 2021-08-18 19:42:45 +02:00
parent 6e4f053150
commit f61c3cdf0b

View file

@ -1,11 +1,13 @@
// main: theme-gitea-modern.user.styl, out: theme-gitea-modern.css
/* Update 1.0.3
- Fixed table stretching due to the grid
- Better keyboard accessability
- Fixed Codeberg dropdown
/* Update 1.0.4
- Combined feed list to make it more compact, while still looking nice.
- Styled User / Organization lists
- Added minor blur to tabs in User page
*/
:root {
--base-border-radius: 6px;
@ -1006,10 +1008,17 @@ html {
border: 0 !important;
}
.language-stats {
border-radius: 100px !important;
border-radius: var(--base-border-radius) !important;
overflow: hidden !important;
pointer-events: none;
top: 0;
// top: unset;
// position: absolute;
// bottom: 0;
// height: 10px;
// width: 80vh;
// transform: rotate(90deg) translate(-60%, -55px);
// max-width: 500px;
// width: 100px;
}
.horizontal.list:not(.two) {
padding-top: 1rem;
@ -1130,7 +1139,7 @@ html {
}
/*** USER PROFILES & EXPLORE PAGES ***/
.explore, .user:not(.list), .profile {
.explore, .page-content.user, .profile {
display: flex;
flex-wrap: wrap;
justify-content: center;
@ -1176,7 +1185,7 @@ html {
width: 320px !important;
flex: 1 0 320px !important;
position: sticky;
bottom: 0;
bottom: 10px;
align-self: flex-end;
min-height: 100vh;
.card {
@ -1209,8 +1218,8 @@ html {
&.header {
font-weight: 500;
letter-spacing: .1em;
height: 44px;
line-height: 50px;
height: 39px;
line-height: 40px;
margin-bottom: -1.2em;
margin-top: 0;
background: var(--color-body);
@ -1271,21 +1280,32 @@ html {
margin-bottom: 1.5rem;
position: sticky;
top: 0px !important;
margin-top: -45px;
height: 45px;
margin-top: -40px;
height: 40px;
z-index: 9999;
background-color: var(--color-body);
@supports (backdrop-filter: blur(10px)) {
backdrop-filter: blur(10px);
background-color: transparent;
&::before {
content: "";
position: absolute;
inset: 0;
background-color: var(--color-body);
opacity: .8;
}
}
}
&::before {
content: "";
position: sticky;
margin: 0 !important;
margin-left: -100vw !important;
margin-top: 45px !important;
margin-top: 40px !important;
width: 200vw;
display: block;
border-bottom: 1px solid var(--color-secondary);
top: 44px;
top: 39px;
z-index: -1;
}
}
@ -1309,13 +1329,32 @@ html {
/* DASHBOARD / USER FEEDS */
.ui.container > .news, .feeds > .news {
border: 1px solid var(--color-secondary) !important;
border-bottom: none !important;
background: var(--color-box-body);
margin-bottom: 1rem;
border-radius: var(--base-border-radius);
// margin-bottom: 1rem;
border-radius: var(--base-border-radius) var(--base-border-radius) 0 0;
padding: 10px 12px !important;
position: relative;
& + .news {
border-radius: 0 !important;
}
&:last-child {
border-radius: 0 0 var(--base-border-radius) var(--base-border-radius) !important;
border-bottom: 1px solid var(--color-secondary) !important;
}
&::before {
content: "";
position: absolute;
inset: 0;
background: var(--color-primary);
opacity: 0;
// z-index: -1;
}
&:hover::before, &:focus-within::before {
opacity: .05;
}
.ui.left {
width: 40px;
img {
margin: 0 !important;
margin-top: 2px !important;
@ -1326,6 +1365,7 @@ html {
.ui.grid {
margin: 0 !important;
padding: 0 !important;
padding-top: 1px !important;
& > .column {
padding: 0 !important;
width: 100% !important;
@ -1376,7 +1416,8 @@ html {
}
/* REPOSITORY LIST */
.ui.repository.list {
.ui.repository.list,
.ui.user.list {
margin-top: 16px !important;
display: grid;
grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
@ -1491,6 +1532,30 @@ html {
}
}
}
// User & Organization cards
.content {
padding-left: 12px;
margin-bottom: -.4em;
.header {
a {
font-weight: 600;
text-transform: capitalize;
}
}
.description {
display: flex;
flex-direction: column;
padding-left: 22px;
line-height: 1.8em;
margin-top: .5em;
svg {
margin-bottom: -1.45em !important;
margin-left: -22px !important;
}
}
}
}
}
@ -1501,7 +1566,6 @@ html {
flex-wrap: wrap;
margin: auto;
max-width: 100%;
padding: 30px 10px;
padding: 30px 0;
width: 1300px;
margin-bottom: -45px;
@ -1539,7 +1603,7 @@ html {
& > .item, & > .right > .item {
flex-direction: column;
margin: 0 20px !important;
margin: 0px !important;
text-align: center;
flex-grow: 1;
display: flex !important;
@ -1793,5 +1857,3 @@ footer {
padding: 0 40px;
}
}