Skip to content

Commit 1250e5b

Browse files
Phu2acka47
authored andcommitted
Add some minimal default css styling for tables
borrowed from Bootstrap
1 parent d1bf48d commit 1250e5b

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

src/components/layout.jsx

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,28 @@ const Layout = ({ children }) => {
151151
}
152152
}
153153
154+
table {
155+
border-collapse: collapse;
156+
margin-bottom: 1rem;
157+
color: #212529;
158+
width: 100%;
159+
}
160+
161+
table :is(td, th) {
162+
padding: 0.75rem;
163+
vertical-align: top;
164+
border-top: 1px solid #dee2e6ff;
165+
}
166+
167+
table :is(thead) :is(th) {
168+
vertical-align: bottom;
169+
border-bottom: 2px solid #dee2e6ff;
170+
background-color: #f8f9faff;
171+
}
172+
table :is(tbody) {
173+
border-top: 2px solid #dee2e6ff;
174+
}
175+
154176
.inputStyle {
155177
background-color: ${config.colors.skoHubWhite};
156178
cursor: pointer;

0 commit comments

Comments
 (0)