about/static/css/plugin-code.css
2025-09-09 18:27:05 +03:00

374 lines
6.7 KiB
CSS

.code-section .plugin-header{box-shadow:none;border:none}
.code-section .stats-overview{
display:grid;
grid-template-columns:repeat(4,minmax(0,1fr));
gap:12px;
margin-bottom:16px;
}
.code-section .stat-card{
padding:16px 14px;
border-radius:var(--radius);
background:rgba(255,255,255,.014);
box-shadow:inset 0 0 0 1px var(--edge-0);
text-align:center;
transition:all .15s ease;
cursor:pointer;
position:relative;
}
.code-section .stat-card:hover{
background:rgba(255,255,255,.024);
transform:translateY(-1px);
}
.code-section .stat-number{
font-size:20px;
font-weight:800;
color:var(--accent);
line-height:1;
margin-bottom:4px;
}
.code-section .stat-label{
font-size:12px;
color:var(--muted);
font-family:var(--mono);
font-weight:600;
}
.code-section .time-summary{
display:grid;
grid-template-columns:repeat(2,1fr);
gap:12px;
margin:0 0 16px;
}
.code-section .time-card{
padding:14px 12px;
border-radius:var(--radius);
background:rgba(255,255,255,.014);
box-shadow:inset 0 0 0 1px var(--edge-0);
text-align:center;
transition:all .15s ease;
cursor:pointer;
}
.code-section .time-card:hover{
background:rgba(255,255,255,.024);
transform:translateY(-1px);
}
.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;
}
.section-toggle{
display:flex;
align-items:center;
gap:8px;
width:100%;
padding:12px 14px;
border-radius:12px;
background:rgba(255,255,255,.014);
color:var(--ink);
font-size:14px;
font-weight:700;
cursor:pointer;
transition:all .15s ease;
box-shadow:inset 0 0 0 1px var(--edge-0);
border:none;
text-align:left;
}
.section-toggle:hover{
background:rgba(255,255,255,.024);
transform:translateY(-1px);
}
.toggle-icon{
font-size:12px;
flex-shrink:0;
transition:transform .15s ease;
}
.section-toggle[aria-expanded="true"] .toggle-icon{
transform:rotate(90deg);
}
.section-count{
margin-left:auto;
font-size:11px;
color:var(--muted);
font-family:var(--mono);
background:rgba(255,255,255,.04);
padding:2px 6px;
border-radius:4px;
}
.collapsible-content{
overflow:hidden;
transition:max-height .3s ease, opacity .3s ease, visibility .3s ease;
background:rgba(255,255,255,.008);
border-radius:var(--radius);
margin:12px 0;
max-height:none;
opacity:1;
visibility:visible;
padding:14px;
box-shadow:inset 0 0 0 1px var(--edge-0);
}
.collapsible-content.collapsed{
max-height:0 !important;
padding:0 !important;
opacity:0;
visibility:hidden;
box-shadow:none;
margin:0 !important;
}
.language-chart,
.wakatime-list,
.repo-list{
display:flex;
flex-direction:column;
gap:10px;
}
.language-item,
.waka-item,
.repo-item{
display:flex;
align-items:center;
gap:12px;
padding:10px 12px;
border-radius:10px;
background:rgba(255,255,255,.012);
box-shadow:inset 0 0 0 1px var(--edge-0);
transition:all .15s ease;
}
.language-item:hover,
.waka-item:hover,
.repo-item:hover{
background:rgba(255,255,255,.024);
transform:translateX(2px);
}
.lang-info,
.waka-lang{
min-width:120px;
font-size:13px;
font-weight:700;
color:var(--ink);
}
.lang-percent{
color:var(--muted);
font-size:12px;
font-family:var(--mono);
margin-left:auto;
font-weight:600;
}
.lang-bar,
.waka-bar{
flex:1;
height:6px;
background:var(--bg-3);
border-radius:999px;
overflow:hidden;
position:relative;
}
.lang-fill,
.waka-fill{
height:100%;
background:linear-gradient(90deg, var(--accent), var(--accent-2));
transition:width .3s ease;
border-radius:999px;
}
.editor-list{
display:flex;
gap:8px;
flex-wrap:wrap;
margin-top:12px;
}
.editor-chip{
padding:6px 10px;
border-radius:12px;
background:rgba(255,255,255,.014);
box-shadow:inset 0 0 0 1px var(--edge-0);
font-size:11px;
font-family:var(--mono);
color:var(--ink-2);
font-weight:600;
transition:all .15s ease;
cursor:pointer;
}
.editor-chip:hover{
background:var(--accent);
color:white;
}
.repo-item{
justify-content:space-between;
cursor:pointer;
}
.repo-name{
word-break:break-word;
font-weight:700;
color:var(--ink);
}
.repo-tags{
display:flex;
gap:6px;
align-items:center;
flex-shrink:0;
}
.repo-lang,
.repo-stars{
font-size:10px;
padding:2px 6px;
border-radius:4px;
font-weight:600;
font-family:var(--mono);
}
.repo-lang{
background:rgba(255,255,255,.04);
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;
box-shadow:0 2px 8px rgba(0,0,0,.15);
}
.view-github-btn:hover,
.view-wakatime-btn:hover{
background:color-mix(in oklch, var(--accent) 90%, black);
transform:translateY(-1px);
box-shadow:0 4px 12px rgba(0,0,0,.25);
}
.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:rgba(255,255,255,.008);
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){
.stats-overview{
grid-template-columns:1fr;
gap:8px;
}
.section-toggle{
padding:10px 12px;
font-size:13px;
}
.collapsible-content{
padding:12px;
}
.repo-item{
flex-direction:column;
gap:8px;
align-items:flex-start;
}
.repo-tags{
align-self:flex-end;
}
}