-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcustom.css
More file actions
252 lines (211 loc) · 5.17 KB
/
custom.css
File metadata and controls
252 lines (211 loc) · 5.17 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
/* /assets/css/extended/custom.css */
/* 포스트 헤더의 작성자 정보 박스 */
.post-author {
margin-top: 20px;
border-top: 1px solid var(--border);
border-bottom: 1px solid var(--border);
padding: 15px 0;
}
.author-box {
display: flex;
align-items: center;
gap: 15px; /* 아바타와 상세정보 사이 간격 */
}
.author-avatar img {
width: 60px;
height: 60px;
border-radius: 50%; /* 원형 프로필 사진 */
object-fit: cover;
}
.author-details {
display: flex;
flex-direction: column;
}
.author-name {
font-size: 1.1rem;
font-weight: bold;
}
.author-name a {
text-decoration: none;
color: var(--primary); /* 테마 기본 링크 색상 사용 */
border-bottom: none !;
}
.author-name a:hover {
text-decoration: none ;
border-bottom: none !;
}
.author-bio {
font-size: 0.9rem;
color: var(--secondary); /* 테마 보조 텍스트 색상 사용 */
margin: 5px 0 0 0;
}
.author-social-icons {
display: flex;
align-items: center;
gap: 10px; /* 아이콘 사이의 간격 */
margin-top: 4px; /* 이름과의 상단 간격 */
}
.author-social-icons a {
text-decoration: none ;
color: var(--secondary); /* 아이콘 기본 색상 */
display: inline-block;
border-bottom: none ;
}
.author-social-icons a:hover {
color: var(--primary); /* 마우스 올렸을 때 색상 */
text-decoration: none ;
border-bottom: none ;
}
/* 아이콘 SVG 크기 조절 */
.author-social-icons svg {
width: 20px;
height: 20px;
}
/* Posts 2 columns grid layout */
body .posts-grid-container {
display: grid;
grid-template-columns: repeat(2, 1fr);
gap: 2rem;
margin-top: 2rem;
}
body .posts-grid-container .post-entry {
margin-bottom: 0;
}
@media (max-width: 768px) {
body .posts-grid-container {
grid-template-columns: 1fr;
gap: 1.5rem;
}
}
.post-card {
transition: opacity 0.3s ease-in-out;
}
/* Post card styling for grid layout */
.posts-grid-container .post-entry {
display: flex;
flex-direction: column;
height: 100%;
border: 1px solid var(--border);
border-radius: 1.25rem;
padding: 1.5rem;
transition: border-color 0.2s ease-in-out, box-shadow 0.2s ease-in-out, transform 0.2s ease-in-out;
background-color: var(--theme);
}
.posts-grid-container .post-entry:hover {
border-color: var(--primary);
box-shadow: 0 4px 12px var(--shadow-color);
transform: translateY(-2px);
}
.posts-grid-container .post-entry .entry-header {
margin-bottom: 1rem;
}
.posts-grid-container .post-entry .entry-header h2 {
font-size: 1.25rem;
margin-bottom: 0.5rem;
}
.posts-grid-container .post-entry .entry-content {
flex-grow: 1;
margin-bottom: 1rem;
}
.posts-grid-container .post-entry .entry-content p {
font-size: 0.95rem;
line-height: 1.6;
color: var(--secondary);
}
.posts-grid-container .post-entry .entry-footer {
margin-top: auto;
padding-top: 1rem;
border-top: 1px solid var(--border);
font-size: 0.85rem;
}
/* Cover image styling in grid */
.posts-grid-container .post-entry .entry-cover {
margin-bottom: 1rem;
border-radius: 1rem;
overflow: hidden;
}
.posts-grid-container .post-entry .entry-cover img {
width: 100%;
height: auto;
object-fit: cover;
transition: transform 0.3s ease-in-out;
}
.posts-grid-container .post-entry:hover .entry-cover img {
transform: scale(1.05);
}
/* Post 본문 이미지 중앙 정렬 */
.post-content img {
display: block;
margin-left: auto;
margin-right: auto;
}
/* Series list styling */
.post-series {
margin-top: 2rem;
margin-bottom: 2rem;
padding: 1.5rem;
background-color: var(--code-bg);
border-radius: 0.5rem;
border: 1px solid var(--border);
}
.series-title {
font-size: 1.1rem;
font-weight: 600;
margin-bottom: 1rem;
color: var(--primary);
}
.series-list {
list-style: none;
padding: 0;
margin: 0;
}
.series-item {
padding: 0.5rem 0;
border-bottom: 1px solid var(--border);
}
.series-item:last-child {
border-bottom: none;
}
.series-item.current {
font-weight: 600;
}
.series-item.current a {
color: var(--primary);
pointer-events: none;
cursor: default;
}
.series-item a {
text-decoration: none;
color: var(--content);
transition: color 0.2s ease;
}
.series-item a:hover {
color: var(--primary);
text-decoration: underline;
}
/* Table styling with borders */
.post-content table {
width: 100% !important;
border-collapse: collapse !important;
margin: 1.5rem 0 !important;
}
.post-content table thead th,
.post-content table tbody th {
border: 1px solid var(--border) !important;
padding: 16px 24px !important;
text-align: center !important;
vertical-align: middle !important;
}
.post-content table tbody td {
border: 1px solid var(--border) !important;
padding: 16px 24px !important;
text-align: left !important;
vertical-align: middle !important;
}
.post-content table thead th {
background-color: var(--code-bg) !important;
font-weight: 600 !important;
}
.post-content table tbody tr:hover {
background-color: var(--code-bg) !important;
}