Skip to content

Commit da661e2

Browse files
committed
feat(tables): a little more compact
1 parent f287180 commit da661e2

File tree

2 files changed

+51
-2
lines changed

2 files changed

+51
-2
lines changed

static/styles/styles.css

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3553,4 +3553,22 @@ tt, code, kbd, samp {
35533553
margin-left: 9rem; }
35543554

35553555
.table {
3556-
margin-top: 1rem; }
3556+
margin-top: 1rem;
3557+
width: auto;
3558+
min-width: 400px;
3559+
max-width: 100%; }
3560+
.table th, .table h4 {
3561+
font-weight: 500; }
3562+
.table th,
3563+
.table td {
3564+
padding: 0.5rem 0.75rem; }
3565+
.table p:last-child {
3566+
margin-bottom: 0; }
3567+
3568+
.table-bordered thead th {
3569+
border-bottom-width: 1px; }
3570+
3571+
.table-bordered th,
3572+
.table-bordered td {
3573+
border: none;
3574+
border-top: 1px solid #ececec; }

static/styles/styles.scss

Lines changed: 32 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,37 @@ tt, code, kbd, samp {
5252
}
5353
}
5454

55+
// Override Bootstrap
5556
.table {
56-
margin-top: 1rem;
57+
margin-top: 1rem;
58+
width: auto;
59+
min-width: 400px;
60+
max-width: 100%;
61+
62+
th, h4 {
63+
font-weight: 500;
64+
}
65+
66+
th,
67+
td {
68+
padding: 0.5rem 0.75rem;
69+
}
70+
71+
p:last-child {
72+
margin-bottom: 0;
73+
}
74+
}
75+
76+
.table-bordered {
77+
thead {
78+
th {
79+
border-bottom-width: 1px;
80+
}
81+
}
82+
83+
th,
84+
td {
85+
border: none; // override bootstrap
86+
border-top: 1px solid #ececec;
87+
}
5788
}

0 commit comments

Comments
 (0)