Files
dedinit.ru/themes/rDedInit/assets/css/common/archive.css
T
estorozhenko 7d2f4eaad1
deploy-dedinit / Build & SFTP Deploy (push) Successful in 6m8s
fix: heatmap архива — убран заголовок «Архив год × месяц», карта по центру
- archives.html: удалён archive-nav-head (title+hint)
- archive.css: .archive-nav justify-content:center; .archive-heatmap max-width:max-content
- zmedia.css: мобильная версия без archive-nav-head, компактные отступы
2026-10-04 16:04:58 +00:00

159 lines
2.8 KiB
CSS

.archive-posts {
width: 100%;
font-size: 16px;
}
.archive-year {
margin-top: 40px;
}
.archive-year:not(:last-of-type) {
border-bottom: 2px solid var(--border);
}
.archive-month {
display: flex;
align-items: flex-start;
padding: 10px 0;
}
.archive-month-header {
margin: 25px 0;
width: 200px;
}
.archive-month:not(:last-of-type) {
border-bottom: 1px solid var(--border);
}
.archive-entry {
position: relative;
padding: 5px;
margin: 10px 0;
}
.archive-entry-title {
margin: 5px 0;
font-weight: 400;
}
.archive-count,
.archive-meta {
color: var(--secondary);
font-size: 14px;
}
/* ==== Sticky heatmap-навигация: год × месяц (над списком) ==== */
.archive-layout {
display: block;
}
.archive-posts {
width: 100%;
}
/* панель сверху, липкая, по центру страницы */
.archive-nav {
position: sticky;
top: var(--header-height);
z-index: 40;
background: var(--theme);
border: 1px solid var(--border);
border-radius: var(--radius);
padding: 12px 16px;
margin-bottom: 24px;
display: flex;
justify-content: center;
}
/* heatmap: строки-годы, столбцы-месяцы */
.archive-heatmap {
display: flex;
flex-direction: column;
gap: 6px;
max-width: max-content;
}
.heatmap-row {
display: flex;
align-items: center;
gap: 10px;
}
.heatmap-year {
font-size: 13px;
font-weight: 600;
color: var(--secondary);
text-decoration: none;
width: 44px;
flex: 0 0 auto;
text-align: right;
}
.heatmap-cells {
display: grid;
grid-template-columns: repeat(12, auto);
gap: 4px;
grid-auto-flow: column;
grid-template-rows: auto;
}
/* клетки: квадратики, интенсивность как GitHub */
.heatmap-cell {
width: 14px;
height: 14px;
border-radius: 3px;
background: var(--tertiary);
}
.heatmap-cell.level-0 {
background: var(--border);
opacity: 0.45;
}
.heatmap-cell.level-1 {
background: var(--heat-1, #9be9a8);
}
.heatmap-cell.level-2 {
background: var(--heat-2, #40c463);
}
.heatmap-cell.level-3 {
background: var(--heat-3, #30a14e);
}
.heatmap-cell.level-4 {
background: var(--heat-4, #216e39);
}
/* hover: рамка + увеличение */
.heatmap-cell:hover {
outline: 2px solid var(--primary);
outline-offset: 1px;
}
.heatmap-cell a {
display: block;
width: 100%;
height: 100%;
}
/* тёмная тема: свои оттенки */
.dark .heatmap-cell.level-1 {
background: var(--heat-1, #0e4429);
}
.dark .heatmap-cell.level-2 {
background: var(--heat-2, #006d32);
}
.dark .heatmap-cell.level-3 {
background: var(--heat-3, #26a641);
}
.dark .heatmap-cell.level-4 {
background: var(--heat-4, #39d353);
}