mirror of
https://github.com/Alexander-D-Karpov/about.git
synced 2026-03-16 22:06:08 +03:00
469 lines
8.3 KiB
CSS
469 lines
8.3 KiB
CSS
.code-section .plugin-header{box-shadow:none;border:none}
|
|
|
|
.code-lang-summary {
|
|
margin-bottom: 20px;
|
|
padding: 16px;
|
|
background: transparent;
|
|
border-radius: var(--radius);
|
|
border: 1px solid var(--edge-1);
|
|
}
|
|
|
|
.code-lang-summary .lang-summary-label {
|
|
font-size: 11px;
|
|
font-weight: 700;
|
|
text-transform: uppercase;
|
|
letter-spacing: .5px;
|
|
color: var(--muted);
|
|
margin-bottom: 12px;
|
|
}
|
|
|
|
.code-lang-summary .lang-summary-bar {
|
|
display: flex;
|
|
height: 10px;
|
|
border-radius: 5px;
|
|
overflow: hidden;
|
|
background: rgba(0, 0, 0, .3);
|
|
gap: 1px;
|
|
}
|
|
|
|
.code-lang-summary .lang-segment {
|
|
height: 100%;
|
|
min-width: 4px;
|
|
transition: transform .15s ease;
|
|
}
|
|
|
|
.code-lang-summary .lang-segment:hover {
|
|
transform: scaleY(1.3);
|
|
}
|
|
|
|
.code-lang-summary .lang-summary-legend {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 8px 16px;
|
|
margin-top: 12px;
|
|
}
|
|
|
|
.code-lang-summary .lang-legend-item {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
font-size: 11px;
|
|
font-weight: 600;
|
|
color: var(--ink-2);
|
|
}
|
|
|
|
.code-lang-summary .lang-dot {
|
|
width: 10px;
|
|
height: 10px;
|
|
border-radius: 3px;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.code-lang-summary .lang-pct {
|
|
color: var(--muted);
|
|
font-family: var(--mono);
|
|
font-size: 10px;
|
|
}
|
|
|
|
.code-section .stats-overview{
|
|
display:grid;
|
|
grid-template-columns:repeat(4,minmax(0,1fr));
|
|
gap: 10px;
|
|
margin-bottom:16px;
|
|
}
|
|
|
|
.code-section .stat-card{
|
|
padding: 14px 12px;
|
|
border-radius:var(--radius);
|
|
background: transparent;
|
|
border: 1px solid var(--edge-0);
|
|
text-align:center;
|
|
transition: border-color .15s ease;
|
|
cursor: default;
|
|
}
|
|
|
|
.code-section .stat-card:hover{
|
|
border-color: var(--edge-1);
|
|
}
|
|
|
|
.code-section .stat-number{
|
|
font-size: 22px;
|
|
font-weight:800;
|
|
color:var(--accent);
|
|
line-height:1;
|
|
margin-bottom:4px;
|
|
}
|
|
|
|
.code-section .stat-label{
|
|
font-size: 11px;
|
|
color:var(--muted);
|
|
font-family:var(--mono);
|
|
font-weight:600;
|
|
text-transform: uppercase;
|
|
letter-spacing: .5px;
|
|
}
|
|
|
|
.code-section .time-summary{
|
|
display:grid;
|
|
grid-template-columns:repeat(2,1fr);
|
|
gap: 10px;
|
|
margin:0 0 16px;
|
|
}
|
|
|
|
.code-section .time-card{
|
|
padding:14px 12px;
|
|
border-radius:var(--radius);
|
|
background: transparent;
|
|
border: 1px solid var(--edge-0);
|
|
text-align:center;
|
|
transition: border-color .15s ease;
|
|
}
|
|
|
|
.code-section .time-card:hover{
|
|
border-color: var(--edge-1);
|
|
}
|
|
|
|
.code-section .time-value{
|
|
font-size:18px;
|
|
font-weight:800;
|
|
color:var(--accent);
|
|
display:block;
|
|
margin-bottom:4px;
|
|
}
|
|
|
|
.code-section .time-label{
|
|
font-size:11px;
|
|
color:var(--muted);
|
|
font-family:var(--mono);
|
|
font-weight:600;
|
|
text-transform: uppercase;
|
|
}
|
|
|
|
.section-toggle{
|
|
display:flex;
|
|
align-items:center;
|
|
gap:8px;
|
|
width:100%;
|
|
padding: 10px 12px;
|
|
border-radius: 8px;
|
|
background: transparent;
|
|
color:var(--ink);
|
|
font-size: 13px;
|
|
font-weight:700;
|
|
cursor:pointer;
|
|
transition: border-color .15s ease;
|
|
border: 1px solid var(--edge-0);
|
|
text-align:left;
|
|
}
|
|
|
|
.section-toggle:hover{
|
|
border-color: var(--edge-1);
|
|
}
|
|
|
|
.toggle-icon{
|
|
font-size: 10px;
|
|
flex-shrink:0;
|
|
transition:transform .15s ease;
|
|
color: var(--accent);
|
|
}
|
|
|
|
.section-toggle[aria-expanded="true"] .toggle-icon{
|
|
transform:rotate(90deg);
|
|
}
|
|
|
|
.section-count{
|
|
margin-left:auto;
|
|
font-size: 10px;
|
|
color:var(--muted);
|
|
font-family:var(--mono);
|
|
background: rgba(255, 255, 255, .03);
|
|
padding:2px 6px;
|
|
border-radius:4px;
|
|
}
|
|
|
|
.collapsible-content{
|
|
overflow:hidden;
|
|
transition:max-height .3s ease, opacity .3s ease, visibility .3s ease;
|
|
background: transparent;
|
|
border-radius:var(--radius);
|
|
margin: 10px 0;
|
|
max-height:none;
|
|
opacity:1;
|
|
visibility:visible;
|
|
padding: 12px;
|
|
border: 1px solid var(--edge-0);
|
|
}
|
|
|
|
.collapsible-content.collapsed{
|
|
max-height:0 !important;
|
|
padding:0 !important;
|
|
opacity:0;
|
|
visibility:hidden;
|
|
border: none;
|
|
margin:0 !important;
|
|
}
|
|
|
|
.language-chart,
|
|
.wakatime-list,
|
|
.repo-list{
|
|
display:flex;
|
|
flex-direction:column;
|
|
gap: 8px;
|
|
}
|
|
|
|
.language-item,
|
|
.waka-item {
|
|
display:flex;
|
|
align-items:center;
|
|
gap: 10px;
|
|
padding: 8px 10px;
|
|
border-radius: 6px;
|
|
background: transparent;
|
|
border: 1px solid var(--edge-0);
|
|
transition: border-color .15s ease;
|
|
}
|
|
|
|
.language-item:hover,
|
|
.waka-item:hover {
|
|
border-color: var(--edge-1);
|
|
}
|
|
|
|
.lang-info,
|
|
.waka-lang{
|
|
min-width: 100px;
|
|
font-size: 12px;
|
|
font-weight:700;
|
|
color:var(--ink);
|
|
}
|
|
|
|
.lang-percent{
|
|
color:var(--muted);
|
|
font-size: 11px;
|
|
font-family:var(--mono);
|
|
margin-left:auto;
|
|
font-weight:600;
|
|
}
|
|
|
|
.lang-bar,
|
|
.waka-bar{
|
|
flex:1;
|
|
height: 5px;
|
|
background: rgba(0, 0, 0, .3);
|
|
border-radius:999px;
|
|
overflow:hidden;
|
|
position:relative;
|
|
}
|
|
|
|
.lang-fill,
|
|
.waka-fill{
|
|
height:100%;
|
|
border-radius: 999px;
|
|
}
|
|
|
|
.editor-list{
|
|
display:flex;
|
|
gap: 6px;
|
|
flex-wrap:wrap;
|
|
margin-top: 10px;
|
|
}
|
|
|
|
.editor-chip{
|
|
padding: 5px 10px;
|
|
border-radius: 6px;
|
|
background: transparent;
|
|
border: 1px solid var(--edge-0);
|
|
font-size:11px;
|
|
font-family:var(--mono);
|
|
color:var(--ink-2);
|
|
font-weight:600;
|
|
transition:all .15s ease;
|
|
}
|
|
|
|
.editor-chip:hover{
|
|
background:var(--accent);
|
|
color:white;
|
|
border-color: var(--accent);
|
|
}
|
|
|
|
.repo-item{
|
|
display: flex;
|
|
gap: 10px;
|
|
padding: 10px;
|
|
border-radius: 6px;
|
|
background: transparent;
|
|
border: 1px solid var(--edge-0);
|
|
transition: border-color .15s ease;
|
|
cursor:pointer;
|
|
align-items: center;
|
|
}
|
|
|
|
.repo-item:hover {
|
|
border-color: var(--edge-1);
|
|
}
|
|
|
|
.repo-content {
|
|
flex: 1;
|
|
min-width: 0;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 4px;
|
|
}
|
|
|
|
.repo-name{
|
|
font-size: 13px;
|
|
font-weight:700;
|
|
color:var(--ink);
|
|
word-break: break-word;
|
|
line-height: 1.2;
|
|
}
|
|
|
|
.repo-lang-bar {
|
|
display: flex;
|
|
width: 100%;
|
|
height: 3px;
|
|
border-radius: 2px;
|
|
overflow: hidden;
|
|
background: rgba(0, 0, 0, .2);
|
|
gap: 0;
|
|
}
|
|
|
|
.repo-lang-bar > div {
|
|
height: 100%;
|
|
transition: transform .2s ease;
|
|
}
|
|
|
|
.repo-item:hover .repo-lang-bar > div {
|
|
transform: scaleY(1.5);
|
|
}
|
|
|
|
.repo-tags{
|
|
display:flex;
|
|
gap: 4px;
|
|
align-items:center;
|
|
flex-shrink:0;
|
|
}
|
|
|
|
.repo-lang,
|
|
.repo-stars{
|
|
font-size: 9px;
|
|
padding: 2px 6px;
|
|
border-radius:4px;
|
|
font-weight:600;
|
|
font-family:var(--mono);
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.repo-lang{
|
|
background: rgba(255, 255, 255, .03);
|
|
color:var(--ink-2);
|
|
}
|
|
|
|
.repo-stars{
|
|
background:var(--accent);
|
|
color:white;
|
|
}
|
|
|
|
.github-profile-link,
|
|
.wakatime-profile-link{
|
|
margin-top:16px;
|
|
text-align:center;
|
|
}
|
|
|
|
.view-github-btn,
|
|
.view-wakatime-btn{
|
|
display:inline-flex;
|
|
align-items:center;
|
|
gap:8px;
|
|
padding:10px 16px;
|
|
background:var(--accent);
|
|
color:white;
|
|
border-radius:8px;
|
|
text-decoration:none;
|
|
font-size:13px;
|
|
font-weight:600;
|
|
transition:all .15s ease;
|
|
}
|
|
|
|
.view-github-btn:hover,
|
|
.view-wakatime-btn:hover{
|
|
background:color-mix(in oklch, var(--accent) 90%, black);
|
|
}
|
|
|
|
.view-wakatime-btn{
|
|
background:var(--accent-2);
|
|
}
|
|
|
|
.view-wakatime-btn:hover{
|
|
background:color-mix(in oklch, var(--accent-2) 90%, black);
|
|
}
|
|
|
|
.no-data{
|
|
text-align:center;
|
|
padding:40px 20px;
|
|
background: transparent;
|
|
border-radius:var(--radius);
|
|
border:2px dashed var(--edge-1);
|
|
color:var(--muted);
|
|
margin:16px 0;
|
|
}
|
|
|
|
.no-data p{
|
|
margin:0;
|
|
font-style:italic;
|
|
}
|
|
|
|
@media (max-width:1100px){
|
|
.code-section .stats-overview{
|
|
grid-template-columns:repeat(2,1fr);
|
|
}
|
|
}
|
|
|
|
@media (max-width:780px){
|
|
.code-section .time-summary{
|
|
grid-template-columns:1fr;
|
|
}
|
|
|
|
.code-section .lang-info,
|
|
.code-section .waka-lang{
|
|
min-width:90px;
|
|
}
|
|
|
|
.stats-overview{
|
|
grid-template-columns:repeat(2, 1fr);
|
|
gap:10px;
|
|
}
|
|
|
|
.stat-card{
|
|
padding:12px 10px;
|
|
}
|
|
|
|
.stat-number{
|
|
font-size:18px;
|
|
}
|
|
}
|
|
|
|
@media (max-width:520px){
|
|
.code-section .stats-overview {
|
|
grid-template-columns:1fr 1fr;
|
|
gap:8px;
|
|
}
|
|
|
|
.section-toggle{
|
|
padding: 8px 10px;
|
|
font-size: 12px;
|
|
}
|
|
|
|
.collapsible-content{
|
|
padding:12px;
|
|
}
|
|
|
|
.repo-item{
|
|
flex-direction:column;
|
|
gap:8px;
|
|
align-items:flex-start;
|
|
}
|
|
|
|
.repo-tags{
|
|
align-self:flex-end;
|
|
}
|
|
} |