history: fix column alignment - scope .row flex rule to new page, colgroup widths, nowrap+ellipsis cells
This commit is contained in:
+2
-8
@@ -94,7 +94,7 @@ body {
|
|||||||
.toggle { display: flex; align-items: center; gap: 8px; font-size: 13px; cursor: pointer; padding: 5px 8px; border-radius: 7px; }
|
.toggle { display: flex; align-items: center; gap: 8px; font-size: 13px; cursor: pointer; padding: 5px 8px; border-radius: 7px; }
|
||||||
.toggle:hover { background: var(--surface-2); }
|
.toggle:hover { background: var(--surface-2); }
|
||||||
.toggle input { accent-color: var(--accent); }
|
.toggle input { accent-color: var(--accent); }
|
||||||
.row { display: flex; justify-content: space-between; align-items: center; font-size: 13px; padding: 4px 0; }
|
.deck .row { display: flex; justify-content: space-between; align-items: center; font-size: 13px; padding: 4px 0; }
|
||||||
.row input[type="text"] {
|
.row input[type="text"] {
|
||||||
border: 1px solid var(--border); border-radius: 7px; padding: 5px 8px; background: var(--bg);
|
border: 1px solid var(--border); border-radius: 7px; padding: 5px 8px; background: var(--bg);
|
||||||
color: var(--fg); font: inherit; font-size: 12.5px; width: 130px;
|
color: var(--fg); font: inherit; font-size: 12.5px; width: 130px;
|
||||||
@@ -137,17 +137,11 @@ body {
|
|||||||
}
|
}
|
||||||
.search input { border: none; outline: none; background: transparent; color: var(--fg); font: inherit; font-size: 13px; width: 100%; }
|
.search input { border: none; outline: none; background: transparent; color: var(--fg); font: inherit; font-size: 13px; width: 100%; }
|
||||||
table { width: 100%; border-collapse: collapse; font-size: 13px; table-layout: fixed; }
|
table { width: 100%; border-collapse: collapse; font-size: 13px; table-layout: fixed; }
|
||||||
th:nth-child(1), td:nth-child(1) { width: 130px; }
|
|
||||||
th:nth-child(2), td:nth-child(2) { width: auto; }
|
|
||||||
th:nth-child(3), td:nth-child(3) { width: 80px; }
|
|
||||||
th:nth-child(4), td:nth-child(4) { width: 80px; }
|
|
||||||
th:nth-child(5), td:nth-child(5) { width: 64px; }
|
|
||||||
th:nth-child(6), td:nth-child(6) { width: 90px; }
|
|
||||||
th {
|
th {
|
||||||
text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .08em;
|
text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .08em;
|
||||||
color: var(--muted-fg); padding: 10px 16px; border-bottom: 1px solid var(--border); font-weight: 600;
|
color: var(--muted-fg); padding: 10px 16px; border-bottom: 1px solid var(--border); font-weight: 600;
|
||||||
}
|
}
|
||||||
td { padding: 10px 16px; border-bottom: 1px solid var(--border); }
|
td { padding: 10px 16px; border-bottom: 1px solid var(--border); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
||||||
tr:last-child td { border-bottom: none; }
|
tr:last-child td { border-bottom: none; }
|
||||||
tr.row { cursor: pointer; }
|
tr.row { cursor: pointer; }
|
||||||
tr.row:hover td { background: var(--surface-2); }
|
tr.row:hover td { background: var(--surface-2); }
|
||||||
|
|||||||
@@ -9,6 +9,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="float">
|
<div class="float">
|
||||||
<table>
|
<table>
|
||||||
|
<colgroup><col style="width:130px"><col><col style="width:90px"><col style="width:80px"><col style="width:64px"><col style="width:96px"></colgroup>
|
||||||
<thead><tr><th>Paste</th><th>Description</th><th>Language</th><th>Size</th><th>Views</th><th>Created</th></tr></thead>
|
<thead><tr><th>Paste</th><th>Description</th><th>Language</th><th>Size</th><th>Views</th><th>Created</th></tr></thead>
|
||||||
<tbody id="rows"></tbody>
|
<tbody id="rows"></tbody>
|
||||||
</table>
|
</table>
|
||||||
|
|||||||
Reference in New Issue
Block a user