|
| 1 | +/* Blog Index Styles */ |
| 2 | +.blog-index { |
| 3 | + max-width: 1200px; |
| 4 | + margin: 0 auto; |
| 5 | + padding: 2rem 1rem; |
| 6 | +} |
| 7 | + |
| 8 | +.blog-index-header { |
| 9 | + text-align: center; |
| 10 | + margin-bottom: 4rem; |
| 11 | +} |
| 12 | + |
| 13 | +.blog-index-title { |
| 14 | + font-size: 3rem; |
| 15 | + font-weight: 700; |
| 16 | + margin: 0 0 1rem 0; |
| 17 | + color: var(--rp-c-text-1); |
| 18 | + letter-spacing: -0.02em; |
| 19 | +} |
| 20 | + |
| 21 | +.blog-index-description { |
| 22 | + font-size: 1.125rem; |
| 23 | + color: var(--rp-c-text-2); |
| 24 | + margin: 0; |
| 25 | + max-width: 600px; |
| 26 | + margin-left: auto; |
| 27 | + margin-right: auto; |
| 28 | + line-height: 1.6; |
| 29 | +} |
| 30 | + |
| 31 | +.blog-index-grid { |
| 32 | + display: grid; |
| 33 | + grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); |
| 34 | + gap: 2rem; |
| 35 | + margin-bottom: 3rem; |
| 36 | +} |
| 37 | + |
| 38 | +.blog-index-empty { |
| 39 | + text-align: center; |
| 40 | + padding: 4rem 2rem; |
| 41 | + color: var(--rp-c-text-2); |
| 42 | + font-size: 1.125rem; |
| 43 | +} |
| 44 | + |
| 45 | +/* Blog Card Styles */ |
| 46 | +.blog-card { |
| 47 | + display: block; |
| 48 | + text-decoration: none; |
| 49 | + color: inherit; |
| 50 | + transition: transform 0.2s ease, box-shadow 0.2s ease; |
| 51 | +} |
| 52 | + |
| 53 | +.blog-card:hover { |
| 54 | + transform: translateY(-4px); |
| 55 | + text-decoration: none; |
| 56 | +} |
| 57 | + |
| 58 | +.blog-card-content { |
| 59 | + border: 1px solid var(--rp-c-divider); |
| 60 | + border-radius: 12px; |
| 61 | + padding: 2rem; |
| 62 | + height: 100%; |
| 63 | + display: flex; |
| 64 | + flex-direction: column; |
| 65 | + background: var(--rp-c-bg); |
| 66 | + transition: border-color 0.2s ease, box-shadow 0.2s ease; |
| 67 | +} |
| 68 | + |
| 69 | +.blog-card:hover .blog-card-content { |
| 70 | + border-color: var(--rp-c-text-3); |
| 71 | + box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1); |
| 72 | +} |
| 73 | + |
| 74 | +.blog-card-meta { |
| 75 | + display: flex; |
| 76 | + align-items: center; |
| 77 | + gap: 0.75rem; |
| 78 | + margin-bottom: 1rem; |
| 79 | + font-size: 0.875rem; |
| 80 | + color: var(--rp-c-text-2); |
| 81 | +} |
| 82 | + |
| 83 | +.blog-card-date { |
| 84 | + font-weight: 500; |
| 85 | +} |
| 86 | + |
| 87 | +.blog-card-author { |
| 88 | + opacity: 0.8; |
| 89 | +} |
| 90 | + |
| 91 | +.blog-card-title { |
| 92 | + font-size: 1.5rem; |
| 93 | + font-weight: 600; |
| 94 | + margin: 0 0 1rem 0; |
| 95 | + color: var(--rp-c-text-1); |
| 96 | + line-height: 1.3; |
| 97 | +} |
| 98 | + |
| 99 | +.blog-card-excerpt { |
| 100 | + color: var(--rp-c-text-2); |
| 101 | + line-height: 1.6; |
| 102 | + margin: 0 0 1.5rem 0; |
| 103 | + flex-grow: 1; |
| 104 | + font-size: 0.95rem; |
| 105 | +} |
| 106 | + |
| 107 | +.blog-card-tags { |
| 108 | + display: flex; |
| 109 | + flex-wrap: wrap; |
| 110 | + gap: 0.5rem; |
| 111 | + margin-bottom: 1.5rem; |
| 112 | +} |
| 113 | + |
| 114 | +.blog-card-tag { |
| 115 | + background: var(--rp-c-bg-soft); |
| 116 | + color: var(--rp-c-text-2); |
| 117 | + padding: 0.25rem 0.75rem; |
| 118 | + border-radius: 9999px; |
| 119 | + font-size: 0.75rem; |
| 120 | + font-weight: 500; |
| 121 | + border: 1px solid var(--rp-c-divider); |
| 122 | +} |
| 123 | + |
| 124 | +.blog-card-arrow { |
| 125 | + color: var(--rp-c-text-2); |
| 126 | + font-size: 0.875rem; |
| 127 | + font-weight: 500; |
| 128 | + transition: color 0.2s ease, transform 0.2s ease; |
| 129 | + align-self: flex-start; |
| 130 | +} |
| 131 | + |
| 132 | +.blog-card:hover .blog-card-arrow { |
| 133 | + color: var(--rp-c-text-1); |
| 134 | + transform: translateX(4px); |
| 135 | +} |
| 136 | + |
| 137 | +/* Responsive Design */ |
| 138 | +@media (max-width: 768px) { |
| 139 | + .blog-index { |
| 140 | + padding: 1.5rem 1rem; |
| 141 | + } |
| 142 | + |
| 143 | + .blog-index-title { |
| 144 | + font-size: 2.5rem; |
| 145 | + } |
| 146 | + |
| 147 | + .blog-index-header { |
| 148 | + margin-bottom: 3rem; |
| 149 | + } |
| 150 | + |
| 151 | + .blog-index-grid { |
| 152 | + grid-template-columns: 1fr; |
| 153 | + gap: 1.5rem; |
| 154 | + } |
| 155 | + |
| 156 | + .blog-card-content { |
| 157 | + padding: 1.5rem; |
| 158 | + } |
| 159 | +} |
| 160 | + |
| 161 | +@media (max-width: 480px) { |
| 162 | + .blog-index-title { |
| 163 | + font-size: 2rem; |
| 164 | + } |
| 165 | + |
| 166 | + .blog-card-content { |
| 167 | + padding: 1.25rem; |
| 168 | + } |
| 169 | + |
| 170 | + .blog-card-title { |
| 171 | + font-size: 1.25rem; |
| 172 | + } |
| 173 | +} |
0 commit comments