Gitea-Theme/test/css/repo-home.css

289 lines
6.7 KiB
CSS
Raw Normal View History

2024-11-08 11:21:42 +00:00
* {
all: unset;
2024-11-08 18:32:45 +00:00
margin: 0;
padding: 0;
border: none;
2024-11-08 18:32:45 +00:00
box-sizing: border-box;
2024-11-08 11:21:42 +00:00
}
2024-11-11 10:24:12 +00:00
head, title {
2024-11-08 11:21:42 +00:00
display: none;
}
header {
background-color: #1a1a1a;
2024-11-08 18:32:45 +00:00
padding: 1px 1em;
2024-11-08 11:21:42 +00:00
display: flex;
justify-content: space-between;
align-items: center;
2024-11-11 10:24:12 +00:00
width: 100%;
2024-11-08 11:21:42 +00:00
border-bottom: 1px solid #444;
2024-11-14 09:43:13 +00:00
height: 5vh;
2024-11-08 11:21:42 +00:00
}
header .header-section {
2024-11-08 11:21:42 +00:00
display: flex;
align-items: center;
gap: 3px;
2024-11-08 18:32:45 +00:00
font-family: "Noto Sans", "Liberation Sans";
2024-11-08 11:21:42 +00:00
}
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 {
2024-11-08 11:21:42 +00:00
display: flex;
align-items: center;
margin-right: 1em;
padding: auto;
2024-11-08 11:21:42 +00:00
}
header .header-section.header-left a.logo img {
height: 27px;
2024-11-08 11:21:42 +00:00
width: auto;
}
header .header-section.header-left a:hover {
2024-11-08 11:21:42 +00:00
color: #bfbfbf;
2024-11-08 18:32:45 +00:00
background-color: #444;
2024-11-08 11:21:42 +00:00
}
header .header-section.header-right a {
2024-11-08 11:21:42 +00:00
color: #f0f0f0;
display: flex;
align-items: center;
justify-content: center;
2024-11-08 11:21:42 +00:00
text-decoration: none;
font-size: 1.2rem;
width: 32px;
height: 32px;
2024-11-08 18:32:45 +00:00
}
header .header-section.header-right a.profile-icon {
2024-11-08 18:32:45 +00:00
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 {
2024-11-08 11:21:42 +00:00
background-color: #333;
border-radius: 50%;
}
2024-11-11 10:24:12 +00:00
.sidebar-right {
width: 250px;
background-color: #1a1a1a;
color: #f0f0f0;
2024-11-11 16:11:30 +00:00
padding: 0;
2024-11-11 10:24:12 +00:00
display: flex;
flex-direction: column;
height: 100%;
max-height: 100%;
overflow-y: auto;
2024-11-11 10:24:12 +00:00
}
.sidebar-right .repo-info {
display: flex;
align-items: center;
gap: 10px;
2024-11-11 16:11:30 +00:00
padding: 8px 12px;
2024-11-11 10:24:12 +00:00
border-bottom: 2px solid cadetblue;
}
.sidebar-right .repo-info .repo-logo {
2024-11-11 16:11:30 +00:00
width: 39px;
height: 39px;
2024-11-11 10:24:12 +00:00
border-radius: 50%;
display: flex;
2024-11-11 16:11:30 +00:00
padding: 2px;
background-color: black;
2024-11-11 10:24:12 +00:00
}
.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;
}
2024-11-13 08:05:14 +00:00
.sidebar-right .repo-info:hover .repo-logo img, .sidebar-right .repo-info:active .repo-logo img {
border: 1px solid #9b9b9b;
2024-11-11 10:24:12 +00:00
}
.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;
2024-11-11 16:11:30 +00:00
font-size: 15px;
2024-11-14 10:26:00 +00:00
padding: 0.7em 12px;
2024-11-11 16:11:30 +00:00
border-left: 2px solid rgba(0, 0, 0, 0);
2024-11-11 10:24:12 +00:00
}
2024-11-13 08:05:14 +00:00
.sidebar-right .repo-nav .nav-link:hover, .sidebar-right .repo-nav .nav-link:active {
2024-11-11 10:24:12 +00:00
background-color: #333;
2024-11-11 16:11:30 +00:00
border-left: 2px solid wheat;
2024-11-11 10:24:12 +00:00
}
.sidebar-right .repo-nav .nav-link i {
font-size: 1em;
width: 1em;
height: 1em;
text-align: center;
}
.sidebar-right .repo-stats {
display: flex;
2024-11-14 10:26:00 +00:00
gap: 0.2em;
2024-11-11 10:24:12 +00:00
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;
}
2024-11-13 08:05:14 +00:00
.sidebar-right .repo-stats .stat-item:hover, .sidebar-right .repo-stats .stat-item:active {
2024-11-11 10:24:12 +00:00
background-color: #444;
color: #1b97ff;
}
2024-11-13 11:20:37 +00:00
.sidebar-right .repo-languages {
2024-11-14 10:26:00 +00:00
padding: 0 12px;
2024-11-13 11:20:37 +00:00
}
.sidebar-right .repo-languages .repo-languages-title {
width: 100%;
font-size: 16px;
2024-11-14 10:26:00 +00:00
height: 1.6em;
2024-11-13 11:20:37 +00:00
display: block;
}
.sidebar-right .repo-languages .repo-lang-list {
display: block;
width: 100%;
2024-11-14 09:43:13 +00:00
overflow-y: scroll;
2024-11-15 11:18:11 +00:00
height: 107px;
max-height: 109px;
2024-11-14 10:26:00 +00:00
padding-top: 3px;
border-radius: 3px;
2024-11-13 11:20:37 +00:00
}
.sidebar-right .repo-languages .repo-lang-list .repo-lang-list-item {
font-size: 15px;
2024-11-14 09:43:13 +00:00
height: 20px;
2024-11-13 11:20:37 +00:00
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;
2024-11-14 10:26:00 +00:00
margin-right: 1ch;
2024-11-13 11:20:37 +00:00
}
2024-11-14 09:43:13 +00:00
.sidebar-right .repo-languages .repo-lang-list .repo-lang-list-item.lang-1 {
2024-11-15 11:18:11 +00:00
background: linear-gradient(to left, rgb(215, 32, 16) 0%, rgb(215, 32, 16) 40%, rgba(0, 0, 0, 0) 0%);
2024-11-13 18:19:02 +00:00
}
2024-11-14 09:43:13 +00:00
.sidebar-right .repo-languages .repo-lang-list .repo-lang-list-item.lang-2 {
2024-11-15 11:18:11 +00:00
background: linear-gradient(to left, rgb(221, 1, 14) 0%, rgb(221, 1, 14) 10%, rgba(0, 0, 0, 0) 0%);
2024-11-13 18:19:02 +00:00
}
2024-11-14 09:43:13 +00:00
.sidebar-right .repo-languages .repo-lang-list .repo-lang-list-item.lang-3 {
2024-11-15 11:18:11 +00:00
background: linear-gradient(to left, rgb(123, 41, 23) 0%, rgb(123, 41, 23) 15%, rgba(0, 0, 0, 0) 0%);
2024-11-13 18:19:02 +00:00
}
2024-11-14 09:43:13 +00:00
.sidebar-right .repo-languages .repo-lang-list .repo-lang-list-item.lang-4 {
2024-11-15 11:18:11 +00:00
background: linear-gradient(to left, rgb(167, 30, 28) 0%, rgb(167, 30, 28) 20%, rgba(0, 0, 0, 0) 0%);
2024-11-13 18:19:02 +00:00
}
2024-11-14 09:43:13 +00:00
.sidebar-right .repo-languages .repo-lang-list .repo-lang-list-item.lang-5 {
2024-11-15 11:18:11 +00:00
background: linear-gradient(to left, rgb(98, 67, 75) 0%, rgb(98, 67, 75) 90%, rgba(0, 0, 0, 0) 0%);
2024-11-13 11:20:37 +00:00
}
2024-11-11 10:24:12 +00:00
.sidebar-right .settings-link {
display: flex;
align-items: center;
gap: 10px;
color: #f0f0f0;
text-decoration: none;
2024-11-11 16:11:30 +00:00
font-size: 15px;
2024-11-14 10:26:00 +00:00
padding: 0.7em 12px;
2024-11-11 16:11:30 +00:00
border-left: 2px solid rgba(0, 0, 0, 0);
2024-11-11 10:24:12 +00:00
margin-top: auto;
}
2024-11-13 08:05:14 +00:00
.sidebar-right .settings-link:hover, .sidebar-right .settings-link:active {
2024-11-11 10:24:12 +00:00
background-color: #333;
2024-11-11 16:11:30 +00:00
border-left: 2px solid wheat;
2024-11-11 10:24:12 +00:00
}
.sidebar-right .settings-link i {
font-size: 1em;
width: 1em;
height: 1em;
text-align: center;
}
2024-11-08 11:21:42 +00:00
body {
background-color: #232323;
2024-11-11 10:24:12 +00:00
display: flex;
flex-direction: column;
height: 100vh;
}
body .body-content {
height: 95vh;
2024-11-11 10:24:12 +00:00
}
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;
2024-11-08 11:21:42 +00:00
}