Skip to content

Commit 9229a33

Browse files
committed
better how it works view
1 parent 0299f98 commit 9229a33

1 file changed

Lines changed: 57 additions & 1 deletion

File tree

src/styles.css

Lines changed: 57 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -354,6 +354,7 @@ a:hover {
354354
}
355355

356356
.rules-box {
357+
min-width: 0;
357358
margin: 14px 0;
358359
border: 1px solid #2c3644;
359360
border-radius: 8px;
@@ -378,6 +379,7 @@ a:hover {
378379

379380
.rules-content {
380381
padding: 0 12px 12px;
382+
overflow-wrap: anywhere;
381383
}
382384

383385
.rules-content ul {
@@ -390,7 +392,25 @@ a:hover {
390392
}
391393

392394
.rules-table-wrap {
395+
position: relative;
396+
max-width: 100%;
393397
overflow-x: auto;
398+
border: 1px solid #2c3644;
399+
border-radius: 8px;
400+
-webkit-overflow-scrolling: touch;
401+
}
402+
403+
.rules-table-wrap::after {
404+
position: sticky;
405+
right: 0;
406+
display: block;
407+
width: 34px;
408+
height: 0;
409+
margin-top: -1px;
410+
margin-left: auto;
411+
content: "";
412+
box-shadow: -18px 0 20px rgba(20, 26, 35, 0.88);
413+
pointer-events: none;
394414
}
395415

396416
.rules-table {
@@ -403,11 +423,22 @@ a:hover {
403423
.rules-table th,
404424
.rules-table td {
405425
padding: 7px 8px;
406-
border: 1px solid #2c3644;
426+
border: 0;
427+
border-right: 1px solid #2c3644;
428+
border-bottom: 1px solid #2c3644;
407429
text-align: left;
408430
white-space: nowrap;
409431
}
410432

433+
.rules-table th:last-child,
434+
.rules-table td:last-child {
435+
border-right: 0;
436+
}
437+
438+
.rules-table tbody tr:last-child td {
439+
border-bottom: 0;
440+
}
441+
411442
.rules-table th {
412443
background: #222b37;
413444
}
@@ -884,6 +915,31 @@ a:hover {
884915
grid-template-columns: 1fr;
885916
}
886917

918+
.rules-box summary {
919+
align-items: flex-start;
920+
line-height: 1.25;
921+
}
922+
923+
.rules-content {
924+
padding: 0 10px 10px;
925+
}
926+
927+
.rules-table-wrap {
928+
margin-right: -2px;
929+
margin-left: -2px;
930+
overflow-x: auto;
931+
}
932+
933+
.rules-table {
934+
min-width: 560px;
935+
font-size: 0.86rem;
936+
}
937+
938+
.rules-table th,
939+
.rules-table td {
940+
padding: 6px 7px;
941+
}
942+
887943
.result-grid {
888944
grid-template-columns: 1fr;
889945
}

0 commit comments

Comments
 (0)