Skip to content

Commit e1a82bc

Browse files
committed
add github page8
1 parent 70b242c commit e1a82bc

File tree

1 file changed

+71
-1
lines changed

1 file changed

+71
-1
lines changed

assets/css/style.scss

Lines changed: 71 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,12 +148,13 @@ h6,
148148
padding: 1rem 0.8rem;
149149
background: var(--card);
150150
backdrop-filter: blur(2px);
151-
overflow-x: auto;
151+
overflow-x: visible;
152152
}
153153

154154
.readme-panel table {
155155
width: 100%;
156156
display: table;
157+
table-layout: auto;
157158
border-collapse: collapse;
158159
border-spacing: 0;
159160
margin: 0.9rem 0 1.4rem;
@@ -166,17 +167,86 @@ h6,
166167
vertical-align: top;
167168
border: 1px solid #e4ddd1;
168169
padding: 0.45rem 0.55rem;
170+
line-height: 1.35;
171+
font-size: 0.9rem;
172+
overflow-wrap: anywhere;
173+
word-break: break-word;
169174
}
170175

171176
.readme-panel th {
172177
font-family: "Space Grotesk", "Avenir Next", "Segoe UI", sans-serif;
173178
background: #faf6ed;
174179
}
175180

181+
.readme-panel th:nth-child(1),
182+
.readme-panel td:nth-child(1) {
183+
width: 1%;
184+
text-align: center;
185+
white-space: nowrap;
186+
}
187+
188+
.readme-panel th:nth-child(2),
189+
.readme-panel td:nth-child(2) {
190+
width: 45%;
191+
}
192+
176193
.readme-panel a {
177194
color: #0b5a72;
178195
}
179196

197+
@media (max-width: 1200px) {
198+
.readme-panel table,
199+
.readme-panel thead,
200+
.readme-panel tbody,
201+
.readme-panel tr,
202+
.readme-panel th,
203+
.readme-panel td {
204+
display: block;
205+
width: 100%;
206+
}
207+
208+
.readme-panel thead {
209+
position: absolute;
210+
left: -10000px;
211+
top: auto;
212+
}
213+
214+
.readme-panel tr {
215+
border: 1px solid #e4ddd1;
216+
border-radius: 10px;
217+
margin-bottom: 0.7rem;
218+
overflow: hidden;
219+
background: #fff;
220+
}
221+
222+
.readme-panel td {
223+
border: none;
224+
border-bottom: 1px solid #f0e9dc;
225+
padding: 0.48rem 0.6rem;
226+
display: grid;
227+
grid-template-columns: 120px 1fr;
228+
gap: 0.45rem;
229+
}
230+
231+
.readme-panel td:last-child {
232+
border-bottom: none;
233+
}
234+
235+
.readme-panel td::before {
236+
font-family: "Space Grotesk", "Avenir Next", "Segoe UI", sans-serif;
237+
font-weight: 700;
238+
color: #5a4a36;
239+
}
240+
241+
.readme-panel td:nth-child(1)::before { content: "Serial No."; }
242+
.readme-panel td:nth-child(2)::before { content: "Problem"; }
243+
.readme-panel td:nth-child(3)::before { content: "Problem Link"; }
244+
.readme-panel td:nth-child(4)::before { content: "Solution"; }
245+
.readme-panel td:nth-child(5)::before { content: "Difficulty"; }
246+
.readme-panel td:nth-child(6)::before { content: "Topic/Pattern"; }
247+
.readme-panel td:nth-child(7)::before { content: "Notes"; }
248+
}
249+
180250
@media (min-width: 900px) {
181251
.site-shell {
182252
padding: 1.4rem 1.4rem 2.2rem;

0 commit comments

Comments
 (0)