forked from mirrors/Gitea-Modern
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
This commit is contained in:
parent
6e4f053150
commit
f61c3cdf0b
1 changed files with 97 additions and 35 deletions
|
@ -1,14 +1,16 @@
|
||||||
|
// main: theme-gitea-modern.user.styl, out: theme-gitea-modern.css
|
||||||
|
|
||||||
|
|
||||||
/* Update 1.0.3
|
/* Update 1.0.4
|
||||||
- Fixed table stretching due to the grid
|
- Combined feed list to make it more compact, while still looking nice.
|
||||||
- Better keyboard accessability
|
- Styled User / Organization lists
|
||||||
- Fixed Codeberg dropdown
|
- Added minor blur to tabs in User page
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
: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);
|
||||||
|
@ -698,7 +700,7 @@ html {
|
||||||
#repo-topics {
|
#repo-topics {
|
||||||
margin: 0 -4px;
|
margin: 0 -4px;
|
||||||
margin-bottom: 0 !important;
|
margin-bottom: 0 !important;
|
||||||
margin-top: -.5rem !important;
|
margin-top: -.5rem !important;
|
||||||
align-items: flex-start !important;
|
align-items: flex-start !important;
|
||||||
& > *:last-child {
|
& > *:last-child {
|
||||||
margin: 2px !important;
|
margin: 2px !important;
|
||||||
|
@ -847,7 +849,7 @@ html {
|
||||||
display: inline-flex !important;
|
display: inline-flex !important;
|
||||||
transform: translateY(1px);
|
transform: translateY(1px);
|
||||||
}
|
}
|
||||||
|
|
||||||
.message-wrapper {
|
.message-wrapper {
|
||||||
overflow: visible;
|
overflow: visible;
|
||||||
display: inline-flex;
|
display: inline-flex;
|
||||||
|
@ -1006,10 +1008,17 @@ html {
|
||||||
border: 0 !important;
|
border: 0 !important;
|
||||||
}
|
}
|
||||||
.language-stats {
|
.language-stats {
|
||||||
border-radius: 100px !important;
|
border-radius: var(--base-border-radius) !important;
|
||||||
overflow: hidden !important;
|
overflow: hidden !important;
|
||||||
pointer-events: none;
|
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) {
|
.horizontal.list:not(.two) {
|
||||||
padding-top: 1rem;
|
padding-top: 1rem;
|
||||||
|
@ -1130,11 +1139,11 @@ html {
|
||||||
}
|
}
|
||||||
|
|
||||||
/*** USER PROFILES & EXPLORE PAGES ***/
|
/*** USER PROFILES & EXPLORE PAGES ***/
|
||||||
.explore, .user:not(.list), .profile {
|
.explore, .page-content.user, .profile {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-wrap: wrap;
|
flex-wrap: wrap;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
|
|
||||||
/* Responsive explore page */
|
/* Responsive explore page */
|
||||||
&.explore > .ui.container {
|
&.explore > .ui.container {
|
||||||
max-width: calc(100vw - 40px);
|
max-width: calc(100vw - 40px);
|
||||||
|
@ -1176,7 +1185,7 @@ html {
|
||||||
width: 320px !important;
|
width: 320px !important;
|
||||||
flex: 1 0 320px !important;
|
flex: 1 0 320px !important;
|
||||||
position: sticky;
|
position: sticky;
|
||||||
bottom: 0;
|
bottom: 10px;
|
||||||
align-self: flex-end;
|
align-self: flex-end;
|
||||||
min-height: 100vh;
|
min-height: 100vh;
|
||||||
.card {
|
.card {
|
||||||
|
@ -1205,12 +1214,12 @@ html {
|
||||||
font-weight: 600;
|
font-weight: 600;
|
||||||
padding-left: .7rem;
|
padding-left: .7rem;
|
||||||
margin: 1.5rem 0;
|
margin: 1.5rem 0;
|
||||||
|
|
||||||
&.header {
|
&.header {
|
||||||
font-weight: 500;
|
font-weight: 500;
|
||||||
letter-spacing: .1em;
|
letter-spacing: .1em;
|
||||||
height: 44px;
|
height: 39px;
|
||||||
line-height: 50px;
|
line-height: 40px;
|
||||||
margin-bottom: -1.2em;
|
margin-bottom: -1.2em;
|
||||||
margin-top: 0;
|
margin-top: 0;
|
||||||
background: var(--color-body);
|
background: var(--color-body);
|
||||||
|
@ -1271,21 +1280,32 @@ html {
|
||||||
margin-bottom: 1.5rem;
|
margin-bottom: 1.5rem;
|
||||||
position: sticky;
|
position: sticky;
|
||||||
top: 0px !important;
|
top: 0px !important;
|
||||||
margin-top: -45px;
|
margin-top: -40px;
|
||||||
height: 45px;
|
height: 40px;
|
||||||
z-index: 9999;
|
z-index: 9999;
|
||||||
background-color: var(--color-body);
|
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 {
|
&::before {
|
||||||
content: "";
|
content: "";
|
||||||
position: sticky;
|
position: sticky;
|
||||||
margin: 0 !important;
|
margin: 0 !important;
|
||||||
margin-left: -100vw !important;
|
margin-left: -100vw !important;
|
||||||
margin-top: 45px !important;
|
margin-top: 40px !important;
|
||||||
width: 200vw;
|
width: 200vw;
|
||||||
display: block;
|
display: block;
|
||||||
border-bottom: 1px solid var(--color-secondary);
|
border-bottom: 1px solid var(--color-secondary);
|
||||||
top: 44px;
|
top: 39px;
|
||||||
z-index: -1;
|
z-index: -1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1309,13 +1329,32 @@ html {
|
||||||
/* DASHBOARD / USER FEEDS */
|
/* DASHBOARD / USER FEEDS */
|
||||||
.ui.container > .news, .feeds > .news {
|
.ui.container > .news, .feeds > .news {
|
||||||
border: 1px solid var(--color-secondary) !important;
|
border: 1px solid var(--color-secondary) !important;
|
||||||
|
border-bottom: none !important;
|
||||||
background: var(--color-box-body);
|
background: var(--color-box-body);
|
||||||
margin-bottom: 1rem;
|
// margin-bottom: 1rem;
|
||||||
border-radius: var(--base-border-radius);
|
border-radius: var(--base-border-radius) var(--base-border-radius) 0 0;
|
||||||
padding: 10px 12px !important;
|
padding: 10px 12px !important;
|
||||||
position: relative;
|
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 {
|
.ui.left {
|
||||||
|
width: 40px;
|
||||||
img {
|
img {
|
||||||
margin: 0 !important;
|
margin: 0 !important;
|
||||||
margin-top: 2px !important;
|
margin-top: 2px !important;
|
||||||
|
@ -1326,6 +1365,7 @@ html {
|
||||||
.ui.grid {
|
.ui.grid {
|
||||||
margin: 0 !important;
|
margin: 0 !important;
|
||||||
padding: 0 !important;
|
padding: 0 !important;
|
||||||
|
padding-top: 1px !important;
|
||||||
& > .column {
|
& > .column {
|
||||||
padding: 0 !important;
|
padding: 0 !important;
|
||||||
width: 100% !important;
|
width: 100% !important;
|
||||||
|
@ -1367,7 +1407,7 @@ html {
|
||||||
margin-bottom: 0;
|
margin-bottom: 0;
|
||||||
}
|
}
|
||||||
ul {
|
ul {
|
||||||
border-left: 4px solid var(--color-secondary);
|
border-left: 4px solid var(--color-secondary);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.divider {
|
.divider {
|
||||||
|
@ -1376,12 +1416,13 @@ html {
|
||||||
}
|
}
|
||||||
|
|
||||||
/* REPOSITORY LIST */
|
/* REPOSITORY LIST */
|
||||||
.ui.repository.list {
|
.ui.repository.list,
|
||||||
|
.ui.user.list {
|
||||||
margin-top: 16px !important;
|
margin-top: 16px !important;
|
||||||
display: grid;
|
display: grid;
|
||||||
grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
|
grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
|
||||||
grid-gap: 16px;
|
grid-gap: 16px;
|
||||||
|
|
||||||
.item {
|
.item {
|
||||||
width: 400px;
|
width: 400px;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
|
@ -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;
|
flex-wrap: wrap;
|
||||||
margin: auto;
|
margin: auto;
|
||||||
max-width: 100%;
|
max-width: 100%;
|
||||||
padding: 30px 10px;
|
|
||||||
padding: 30px 0;
|
padding: 30px 0;
|
||||||
width: 1300px;
|
width: 1300px;
|
||||||
margin-bottom: -45px;
|
margin-bottom: -45px;
|
||||||
|
@ -1539,7 +1603,7 @@ html {
|
||||||
& > .item, & > .right > .item {
|
& > .item, & > .right > .item {
|
||||||
|
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
margin: 0 20px !important;
|
margin: 0px !important;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
flex-grow: 1;
|
flex-grow: 1;
|
||||||
display: flex !important;
|
display: flex !important;
|
||||||
|
@ -1554,7 +1618,7 @@ html {
|
||||||
& > .dropdown, .button {
|
& > .dropdown, .button {
|
||||||
text-indent: 0px !important;
|
text-indent: 0px !important;
|
||||||
}
|
}
|
||||||
span {
|
span {
|
||||||
text-align: center;
|
text-align: center;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -1595,7 +1659,7 @@ html {
|
||||||
margin: 0 auto !important;
|
margin: 0 auto !important;
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-wrap: wrap-reverse;
|
flex-wrap: wrap-reverse;
|
||||||
flex: 9999 1 650px;
|
flex: 9999 1 650px;
|
||||||
|
|
||||||
--container-padding-x: calc(2.5% + 0px);
|
--container-padding-x: calc(2.5% + 0px);
|
||||||
|
|
||||||
|
@ -1660,7 +1724,7 @@ html {
|
||||||
#app {
|
#app {
|
||||||
height: min-content;
|
height: min-content;
|
||||||
position: sticky;
|
position: sticky;
|
||||||
|
|
||||||
bottom: 0;
|
bottom: 0;
|
||||||
align-self: flex-end;
|
align-self: flex-end;
|
||||||
margin: 0 auto !important;
|
margin: 0 auto !important;
|
||||||
|
@ -1691,7 +1755,7 @@ html {
|
||||||
}
|
}
|
||||||
codeberg-announcement-widget {
|
codeberg-announcement-widget {
|
||||||
background: none !important;
|
background: none !important;
|
||||||
|
|
||||||
& > div {
|
& > div {
|
||||||
margin-top: 0 !important;
|
margin-top: 0 !important;
|
||||||
margin-right: 0 !important;
|
margin-right: 0 !important;
|
||||||
|
@ -1793,5 +1857,3 @@ footer {
|
||||||
padding: 0 40px;
|
padding: 0 40px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue