2024-11-13 18:19:02 +00:00
|
|
|
@use 'sass:math';
|
|
|
|
|
2024-11-11 10:24:12 +00:00
|
|
|
// Color Variables
|
|
|
|
$sidebar-bg-color: #1a1a1a;
|
|
|
|
$sidebar-text-color: #f0f0f0;
|
|
|
|
$sidebar-link-hover-bg-color: #333;
|
|
|
|
$sidebar-border-color: #444;
|
|
|
|
$sidebar-author-color: #bfbfbf;
|
|
|
|
$stat-bg-color: #333;
|
|
|
|
$stat-text-color: #f0f0f0;
|
|
|
|
$stat-count-color: #f0f0f0;
|
|
|
|
$settings-link-hover-bg-color: #333;
|
|
|
|
|
2024-11-13 18:19:02 +00:00
|
|
|
@function random_col() {
|
|
|
|
$r: (random($limit: 128) + random($limit: 128));
|
|
|
|
$g: random($limit: (255 - $r));
|
|
|
|
$b: random($limit: (255 - math.max($r, $g)));
|
|
|
|
@return rgb($r, $g, $b);
|
|
|
|
}
|
|
|
|
|
|
|
|
@function lang_bg($col, $perc) {
|
|
|
|
@return linear-gradient(
|
|
|
|
to left,
|
|
|
|
$col 0%,
|
2024-11-14 09:43:13 +00:00
|
|
|
$col ($perc * 1%),
|
2024-11-13 18:19:02 +00:00
|
|
|
rgba(0,0,0,0) 0%
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
2024-11-11 10:24:12 +00:00
|
|
|
@mixin sidbar-left-nav-links {
|
2024-11-13 11:20:37 +00:00
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
gap: 10px;
|
|
|
|
color: $sidebar-text-color;
|
|
|
|
text-decoration: none;
|
|
|
|
font-size: 15px;
|
2024-11-14 10:26:00 +00:00
|
|
|
padding: 0.70em 12px;
|
2024-11-13 11:20:37 +00:00
|
|
|
border-left: 2px solid rgba(0,0,0,0);
|
|
|
|
|
|
|
|
&:hover, &:active {
|
|
|
|
background-color: $sidebar-link-hover-bg-color;
|
|
|
|
border-left: 2px solid wheat;
|
|
|
|
}
|
|
|
|
|
|
|
|
i {
|
|
|
|
font-size: 1em;
|
|
|
|
width: 1em;
|
|
|
|
height: 1em;
|
|
|
|
text-align: center;
|
|
|
|
}
|
2024-11-11 10:24:12 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.sidebar-right {
|
2024-11-13 11:20:37 +00:00
|
|
|
width: 250px;
|
|
|
|
background-color: $sidebar-bg-color;
|
|
|
|
color: $sidebar-text-color;
|
|
|
|
padding: 0;
|
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
2024-11-14 09:43:13 +00:00
|
|
|
height: 95vh;
|
2024-11-13 11:20:37 +00:00
|
|
|
|
|
|
|
.repo-info {
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
gap: 10px;
|
|
|
|
padding: 8px 12px;
|
|
|
|
border-bottom: 2px solid cadetblue;
|
|
|
|
|
|
|
|
.repo-logo {
|
|
|
|
//background-color: #f0f0f0;
|
|
|
|
width: 39px;
|
|
|
|
height: 39px;
|
|
|
|
border-radius: 50%;
|
|
|
|
display: flex;
|
|
|
|
padding: 2px;
|
|
|
|
background-color: black;
|
|
|
|
|
|
|
|
img {
|
|
|
|
width: 35px;
|
|
|
|
height: 35px;
|
|
|
|
border-radius: 50%;
|
|
|
|
//color: green;
|
|
|
|
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');
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.repo-details {
|
|
|
|
.repo-author {
|
|
|
|
font-size: 0.9rem;
|
|
|
|
color: $sidebar-author-color;
|
|
|
|
display: block;
|
|
|
|
}
|
|
|
|
|
|
|
|
.repo-name {
|
|
|
|
font-size: 1.1rem;
|
|
|
|
font-weight: bold;
|
|
|
|
display: block;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&:hover, &:active {
|
|
|
|
.repo-logo {
|
2024-11-13 08:05:14 +00:00
|
|
|
img {
|
2024-11-13 11:20:37 +00:00
|
|
|
border: 1px solid #9b9b9b;
|
|
|
|
//background-color: #9b9b9b;
|
2024-11-13 08:05:14 +00:00
|
|
|
}
|
2024-11-13 11:20:37 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.repo-nav {
|
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
//gap: 0.3rem;
|
|
|
|
|
|
|
|
.nav-link {
|
|
|
|
@include sidbar-left-nav-links;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.repo-stats {
|
|
|
|
display: flex;
|
2024-11-14 10:26:00 +00:00
|
|
|
gap: 0.2em;
|
2024-11-13 11:20:37 +00:00
|
|
|
padding: 7px 12px;
|
|
|
|
|
|
|
|
.stat-item {
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
gap: 3px;
|
|
|
|
background-color: $stat-bg-color;
|
|
|
|
padding: 0.3rem 0.5rem;
|
|
|
|
border-radius: 1rem;
|
|
|
|
color: $stat-text-color;
|
|
|
|
font-size: 0.8rem;
|
|
|
|
height: 1.4rem;
|
|
|
|
|
|
|
|
.stat-icon {
|
|
|
|
font-size: 0.9em;
|
|
|
|
}
|
|
|
|
|
|
|
|
.stat-count {
|
|
|
|
color: $stat-count-color;
|
|
|
|
min-width: 4ch;
|
|
|
|
text-align: right;
|
|
|
|
}
|
|
|
|
|
|
|
|
&:hover, &:active {
|
|
|
|
background-color: #444;
|
|
|
|
color:#1b97ff;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.repo-languages {
|
|
|
|
//background-color: black;
|
2024-11-14 10:26:00 +00:00
|
|
|
padding: 0 12px;
|
2024-11-13 11:20:37 +00:00
|
|
|
|
|
|
|
.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;
|
2024-11-13 18:19:02 +00:00
|
|
|
//position: absolute;
|
2024-11-14 10:26:00 +00:00
|
|
|
//margin-bottom: 2px;
|
|
|
|
//border-bottom: 1px solid #333;
|
2024-11-11 16:11:30 +00:00
|
|
|
}
|
|
|
|
|
2024-11-13 11:20:37 +00:00
|
|
|
.repo-lang-list {
|
|
|
|
display: block;
|
|
|
|
width: 100%;
|
2024-11-14 09:43:13 +00:00
|
|
|
overflow-y: scroll;
|
2024-11-14 10:26:00 +00:00
|
|
|
max-height: 108px;
|
|
|
|
//max-height: 103px;
|
|
|
|
background-color: #262626;
|
|
|
|
padding-top: 3px;
|
|
|
|
border-radius: 3px;
|
2024-11-11 16:11:30 +00:00
|
|
|
|
2024-11-13 11:20:37 +00:00
|
|
|
.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%;
|
|
|
|
|
|
|
|
* {
|
|
|
|
margin: auto;
|
|
|
|
}
|
|
|
|
|
|
|
|
.repo-lang-icon {
|
|
|
|
width: 3ch;
|
|
|
|
text-align: center;
|
|
|
|
margin: auto 0;
|
|
|
|
}
|
|
|
|
.repo-lang-name {
|
|
|
|
min-width: 10ch;
|
|
|
|
text-align: left;
|
|
|
|
margin-left: 4px;
|
|
|
|
}
|
|
|
|
.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
|
|
|
$langs: (1: 40, 2: 10, 3: 15, 4: 20, 5: 90);
|
|
|
|
|
|
|
|
@each $lang, $perc in $langs {
|
|
|
|
&.lang-#{$lang} {
|
|
|
|
background: lang_bg(random_col(), $perc)
|
|
|
|
}
|
|
|
|
}
|
2024-11-13 11:20:37 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2024-11-11 16:11:30 +00:00
|
|
|
|
2024-11-13 11:20:37 +00:00
|
|
|
.settings-link {
|
|
|
|
@include sidbar-left-nav-links;
|
2024-11-11 16:11:30 +00:00
|
|
|
margin-top: auto;
|
2024-11-13 11:20:37 +00:00
|
|
|
}
|
2024-11-11 10:24:12 +00:00
|
|
|
}
|