|
20 | 20 | width: min(1180px, 100% - 48px); |
21 | 21 | margin: 0 auto; |
22 | 22 | display: grid; |
23 | | - grid-template-columns: 220px minmax(0, 1fr) 260px; |
| 23 | + grid-template-columns: 220px minmax(0, 1fr) 320px; |
24 | 24 | grid-template-areas: "left main right"; |
25 | 25 | gap: 28px; |
26 | 26 | align-items: flex-start; |
|
32 | 32 | top: 96px; |
33 | 33 | display: flex; |
34 | 34 | flex-direction: column; |
| 35 | + gap: 16px; |
35 | 36 | letter-spacing: 0.1em; |
36 | 37 | color: var(--community-muted); |
37 | 38 | } |
38 | 39 |
|
| 40 | +.sidebar-left h3 { |
| 41 | + margin: 0; |
| 42 | + text-align: center; |
| 43 | + font-size: 16px; |
| 44 | + font-weight: 700; |
| 45 | + color: var(--community-text); |
| 46 | +} |
| 47 | + |
39 | 48 | .sidebar-left ul { |
40 | 49 | margin: 0; |
41 | 50 | padding: 18px; |
|
63 | 72 | font-weight: 600; |
64 | 73 | } |
65 | 74 |
|
| 75 | +.sidebar-left li.is-disabled { |
| 76 | + color: rgba(85, 90, 108, 0.32); |
| 77 | + cursor: default; |
| 78 | + pointer-events: none; |
| 79 | + font-weight: 500; |
| 80 | +} |
| 81 | + |
| 82 | +.sidebar-left li.is-disabled:hover { |
| 83 | + color: rgba(85, 90, 108, 0.32); |
| 84 | +} |
| 85 | + |
66 | 86 | .top-writers, |
67 | 87 | .popular-tags, |
68 | 88 | .popular-posts { |
|
99 | 119 | } |
100 | 120 |
|
101 | 121 | .top-writers li { |
| 122 | + list-style: none; |
| 123 | +} |
| 124 | + |
| 125 | +.top-writer-item { |
| 126 | + width: 100%; |
102 | 127 | display: flex; |
103 | 128 | justify-content: space-between; |
104 | 129 | align-items: center; |
105 | | - font-size: 13px; |
| 130 | + gap: 10px; |
| 131 | + padding: 10px 14px; |
| 132 | + border-radius: 12px; |
| 133 | + border: 1px solid transparent; |
| 134 | + background: rgba(124, 92, 255, 0.08); |
106 | 135 | color: var(--community-muted); |
| 136 | + font-size: 13px; |
| 137 | + font-weight: 600; |
| 138 | + cursor: pointer; |
| 139 | + transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease; |
| 140 | +} |
| 141 | + |
| 142 | +.top-writer-item:hover { |
| 143 | + background: rgba(124, 92, 255, 0.18); |
| 144 | + border-color: rgba(124, 92, 255, 0.32); |
| 145 | + color: var(--community-text); |
| 146 | + transform: translateY(-1px); |
| 147 | +} |
| 148 | + |
| 149 | +.top-writer-item.is-active { |
| 150 | + background: var(--community-accent); |
| 151 | + border-color: var(--community-accent); |
| 152 | + color: #ffffff; |
| 153 | + transform: translateY(-1px); |
107 | 154 | } |
108 | 155 |
|
109 | | -.top-writers li span:first-child { |
| 156 | +.top-writer-item .writer-name { |
110 | 157 | display: flex; |
111 | 158 | align-items: center; |
112 | 159 | gap: 6px; |
113 | 160 | } |
114 | 161 |
|
| 162 | +.top-writer-item .writer-count { |
| 163 | + color: inherit; |
| 164 | +} |
| 165 | + |
115 | 166 | .community-main { |
116 | 167 | grid-area: main; |
117 | 168 | display: flex; |
|
143 | 194 | border-color: var(--community-accent); |
144 | 195 | } |
145 | 196 |
|
| 197 | +.tabs button.tab-disabled { |
| 198 | + color: rgba(85, 90, 108, 0.3); |
| 199 | + border-color: transparent; |
| 200 | + cursor: not-allowed; |
| 201 | + opacity: 0.6; |
| 202 | +} |
| 203 | + |
| 204 | +.tabs button.tab-disabled:hover { |
| 205 | + color: rgba(85, 90, 108, 0.3); |
| 206 | + border-color: transparent; |
| 207 | +} |
| 208 | + |
146 | 209 | .search-bar { |
147 | 210 | display: flex; |
148 | 211 | flex-direction: column; |
|
487 | 550 | position: sticky; |
488 | 551 | top: 96px; |
489 | 552 | display: flex; |
| 553 | + flex-direction: column; |
490 | 554 | border-radius: 12px; |
491 | 555 | gap: 20px; |
492 | 556 | align-self: start; |
493 | 557 | } |
494 | 558 |
|
495 | | -.tag-list { |
| 559 | +.popular-tags .tag-list { |
| 560 | + list-style: none; |
| 561 | + margin: 0; |
| 562 | + padding: 0; |
496 | 563 | display: flex; |
497 | | - flex-wrap: wrap; |
498 | | - gap: 8px; |
| 564 | + flex-direction: column; |
| 565 | + gap: 10px; |
499 | 566 | } |
500 | 567 |
|
501 | | -.tag-list span { |
502 | | - padding: 6px 10px; |
503 | | - flex-wrap: wrap; |
504 | | - justify-content: center; |
505 | | - color: var(--community-accent); |
| 568 | +.popular-tags .tag-list li { |
| 569 | + list-style: none; |
| 570 | +} |
| 571 | + |
| 572 | +.popular-tags .tag-item-button { |
| 573 | + width: 100%; |
| 574 | + display: flex; |
| 575 | + justify-content: space-between; |
| 576 | + align-items: center; |
| 577 | + gap: 12px; |
| 578 | + padding: 10px 14px; |
| 579 | + border-radius: 12px; |
| 580 | + border: 1px solid transparent; |
| 581 | + background: rgba(124, 92, 255, 0.08); |
| 582 | + color: var(--community-muted); |
506 | 583 | font-size: 13px; |
507 | 584 | font-weight: 600; |
508 | 585 | cursor: pointer; |
509 | | - transition: background-color 0.18s ease; |
| 586 | + transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease; |
510 | 587 | } |
511 | 588 |
|
512 | | -.tag-list span:hover { |
513 | | - background: rgba(124, 92, 255, 0.28); |
| 589 | +.popular-tags .tag-item-button:hover:not(:disabled) { |
| 590 | + background: rgba(124, 92, 255, 0.18); |
| 591 | + border-color: rgba(124, 92, 255, 0.32); |
| 592 | + color: var(--community-text); |
| 593 | + transform: translateY(-1px); |
| 594 | +} |
| 595 | + |
| 596 | +.popular-tags .tag-item-button .tag-name { |
| 597 | + color: var(--community-text); |
| 598 | +} |
| 599 | + |
| 600 | +.popular-tags .tag-item-button .tag-count { |
| 601 | + color: var(--community-accent); |
| 602 | +} |
| 603 | + |
| 604 | +.popular-tags .tag-item-button.is-active { |
| 605 | + background: var(--community-accent); |
| 606 | + border-color: var(--community-accent); |
| 607 | + color: #ffffff; |
| 608 | + transform: translateY(-1px); |
| 609 | +} |
| 610 | + |
| 611 | +.popular-tags .tag-item-button.is-active .tag-name, |
| 612 | +.popular-tags .tag-item-button.is-active .tag-count { |
| 613 | + color: #ffffff; |
| 614 | +} |
| 615 | + |
| 616 | +.popular-tags .tag-item-button:disabled { |
| 617 | + cursor: not-allowed; |
| 618 | + opacity: 0.6; |
| 619 | + transform: none; |
| 620 | +} |
| 621 | + |
| 622 | +.popular-tags-empty { |
| 623 | + margin: 0; |
| 624 | + font-size: 13px; |
| 625 | + color: var(--community-muted); |
514 | 626 | } |
515 | 627 |
|
516 | 628 | .popular-posts ul { |
|
0 commit comments