mirror of
https://codeberg.org/Freeplay/Gitea-Modern
synced 2023-10-25 19:10:14 +00:00
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,11 +1,13 @@
|
||||||
|
// 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;
|
||||||
|
|
||||||
|
@ -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,7 +1139,7 @@ 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;
|
||||||
|
@ -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 {
|
||||||
|
@ -1209,8 +1218,8 @@ html {
|
||||||
&.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;
|
||||||
|
@ -1376,7 +1416,8 @@ 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));
|
||||||
|
@ -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;
|
||||||
|
@ -1793,5 +1857,3 @@ footer {
|
||||||
padding: 0 40px;
|
padding: 0 40px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue