Gitea-Theme/test/css/repo-home.css
2024-11-14 15:56:00 +05:30

284 lines
6.6 KiB
CSS

* {
all: unset;
margin: 0;
padding: 0;
border: none;
box-sizing: border-box;
}
head, title {
display: none;
}
header {
background-color: #1a1a1a;
padding: 1px 1em;
display: flex;
justify-content: space-between;
align-items: center;
width: 100%;
border-bottom: 1px solid #444;
height: 5vh;
}
header .header-section {
display: flex;
align-items: center;
gap: 3px;
font-family: "Noto Sans", "Liberation Sans";
}
header .header-section.header-left a {
color: #f0f0f0;
text-decoration: none;
font-weight: normal;
font-size: 0.95rem;
padding: 0.3em;
margin: 1px;
border-radius: 3px;
line-height: 2em;
}
header .header-section.header-left a.logo {
display: flex;
align-items: center;
margin-right: 1em;
padding: auto;
}
header .header-section.header-left a.logo img {
height: 27px;
width: auto;
}
header .header-section.header-left a:hover {
color: #bfbfbf;
background-color: #444;
}
header .header-section.header-right a {
color: #f0f0f0;
display: flex;
align-items: center;
justify-content: center;
text-decoration: none;
font-size: 1.2rem;
width: 32px;
height: 32px;
}
header .header-section.header-right a.profile-icon {
border-radius: 50%;
overflow: hidden;
display: flex;
align-items: center;
justify-content: center;
}
header .header-section.header-right a.profile-icon img {
width: 26px;
height: 26px;
border-radius: 50%;
}
header .header-section.header-right a.profile-icon:hover {
border: 1px solid #707070;
}
header .header-section.header-right a:hover {
background-color: #333;
border-radius: 50%;
}
.sidebar-right {
width: 250px;
background-color: #1a1a1a;
color: #f0f0f0;
padding: 0;
display: flex;
flex-direction: column;
height: 95vh;
}
.sidebar-right .repo-info {
display: flex;
align-items: center;
gap: 10px;
padding: 8px 12px;
border-bottom: 2px solid cadetblue;
}
.sidebar-right .repo-info .repo-logo {
width: 39px;
height: 39px;
border-radius: 50%;
display: flex;
padding: 2px;
background-color: black;
}
.sidebar-right .repo-info .repo-logo img {
width: 35px;
height: 35px;
border-radius: 50%;
line-height: 35px;
text-align: center;
font-size: 23px;
font-family: "Font Awesome 6 Free";
font-style: normal;
font-weight: 400;
font-display: block;
src: url("../fonts/fa-regular-400.woff2") format("woff2"), url("../fonts/fa-regular-400.ttf") format("truetype");
}
.sidebar-right .repo-info .repo-details .repo-author {
font-size: 0.9rem;
color: #bfbfbf;
display: block;
}
.sidebar-right .repo-info .repo-details .repo-name {
font-size: 1.1rem;
font-weight: bold;
display: block;
}
.sidebar-right .repo-info:hover .repo-logo img, .sidebar-right .repo-info:active .repo-logo img {
border: 1px solid #9b9b9b;
}
.sidebar-right .repo-nav {
display: flex;
flex-direction: column;
}
.sidebar-right .repo-nav .nav-link {
display: flex;
align-items: center;
gap: 10px;
color: #f0f0f0;
text-decoration: none;
font-size: 15px;
padding: 0.7em 12px;
border-left: 2px solid rgba(0, 0, 0, 0);
}
.sidebar-right .repo-nav .nav-link:hover, .sidebar-right .repo-nav .nav-link:active {
background-color: #333;
border-left: 2px solid wheat;
}
.sidebar-right .repo-nav .nav-link i {
font-size: 1em;
width: 1em;
height: 1em;
text-align: center;
}
.sidebar-right .repo-stats {
display: flex;
gap: 0.2em;
padding: 7px 12px;
}
.sidebar-right .repo-stats .stat-item {
display: flex;
align-items: center;
gap: 3px;
background-color: #333;
padding: 0.3rem 0.5rem;
border-radius: 1rem;
color: #f0f0f0;
font-size: 0.8rem;
height: 1.4rem;
}
.sidebar-right .repo-stats .stat-item .stat-icon {
font-size: 0.9em;
}
.sidebar-right .repo-stats .stat-item .stat-count {
color: #f0f0f0;
min-width: 4ch;
text-align: right;
}
.sidebar-right .repo-stats .stat-item:hover, .sidebar-right .repo-stats .stat-item:active {
background-color: #444;
color: #1b97ff;
}
.sidebar-right .repo-languages {
padding: 0 12px;
}
.sidebar-right .repo-languages .repo-languages-title {
width: 100%;
font-size: 16px;
height: 1.6em;
display: block;
}
.sidebar-right .repo-languages .repo-lang-list {
display: block;
width: 100%;
overflow-y: scroll;
max-height: 108px;
background-color: #262626;
padding-top: 3px;
border-radius: 3px;
}
.sidebar-right .repo-languages .repo-lang-list .repo-lang-list-item {
font-size: 15px;
height: 20px;
display: flex;
width: 100%;
}
.sidebar-right .repo-languages .repo-lang-list .repo-lang-list-item * {
margin: auto;
}
.sidebar-right .repo-languages .repo-lang-list .repo-lang-list-item .repo-lang-icon {
width: 3ch;
text-align: center;
margin: auto 0;
}
.sidebar-right .repo-languages .repo-lang-list .repo-lang-list-item .repo-lang-name {
min-width: 10ch;
text-align: left;
margin-left: 4px;
}
.sidebar-right .repo-languages .repo-lang-list .repo-lang-list-item .repo-lang-perc {
min-width: 4ch;
text-align: right;
margin-right: 1ch;
}
.sidebar-right .repo-languages .repo-lang-list .repo-lang-list-item.lang-1 {
background: linear-gradient(to left, rgb(155, 6, 54) 0%, rgb(155, 6, 54) 40%, rgba(0, 0, 0, 0) 0%);
}
.sidebar-right .repo-languages .repo-lang-list .repo-lang-list-item.lang-2 {
background: linear-gradient(to left, rgb(61, 26, 8) 0%, rgb(61, 26, 8) 10%, rgba(0, 0, 0, 0) 0%);
}
.sidebar-right .repo-languages .repo-lang-list .repo-lang-list-item.lang-3 {
background: linear-gradient(to left, rgb(145, 99, 35) 0%, rgb(145, 99, 35) 15%, rgba(0, 0, 0, 0) 0%);
}
.sidebar-right .repo-languages .repo-lang-list .repo-lang-list-item.lang-4 {
background: linear-gradient(to left, rgb(156, 88, 84) 0%, rgb(156, 88, 84) 20%, rgba(0, 0, 0, 0) 0%);
}
.sidebar-right .repo-languages .repo-lang-list .repo-lang-list-item.lang-5 {
background: linear-gradient(to left, rgb(183, 64, 20) 0%, rgb(183, 64, 20) 90%, rgba(0, 0, 0, 0) 0%);
}
.sidebar-right .settings-link {
display: flex;
align-items: center;
gap: 10px;
color: #f0f0f0;
text-decoration: none;
font-size: 15px;
padding: 0.7em 12px;
border-left: 2px solid rgba(0, 0, 0, 0);
margin-top: auto;
}
.sidebar-right .settings-link:hover, .sidebar-right .settings-link:active {
background-color: #333;
border-left: 2px solid wheat;
}
.sidebar-right .settings-link i {
font-size: 1em;
width: 1em;
height: 1em;
text-align: center;
}
body {
background-color: #232323;
display: flex;
flex-direction: column;
min-height: 100vh;
}
body .body-content main.main-content {
flex: 1;
background-color: #535153;
}
body .body-content .sidebar-left {
width: 250px;
background-color: #747272;
/* Left sidebar styles */
}
body > *:not(header) {
display: flex;
flex-direction: row;
flex: 1;
}