Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Add wrap around to table cells on Debug page #214

Merged
merged 2 commits into from
Nov 14, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
168 changes: 90 additions & 78 deletions node/components/network/src/debug_page/style.css
Original file line number Diff line number Diff line change
@@ -1,91 +1,103 @@
h1 {
margin: 0.8em 0 0.5em 0;
color: #333;
font-weight: normal;
font-family: 'Orienta', sans-serif;
font-size: 36px;
line-height: 40px;
margin: 0.8em 0 0.5em 0;
color: #333;
font-weight: normal;
font-family: 'Orienta', sans-serif;
font-size: 36px;
line-height: 40px;
}

h2 {
margin: 0.8em 0 0.5em 0;
color: #333;
font-weight: normal;
font-family: 'Orienta', sans-serif;
font-size: 30px;
line-height: 40px;
border-bottom: 1px solid #fff;
box-shadow: 0 1px 0 rgba(0,0,0,0.1);
padding-bottom: 10px;
margin: 0.8em 0 0.5em 0;
color: #333;
font-weight: normal;
font-family: 'Orienta', sans-serif;
font-size: 30px;
line-height: 40px;
border-bottom: 1px solid #fff;
box-shadow: 0 1px 0 rgba(0, 0, 0, 0.1);
padding-bottom: 10px;
}

h3 {
margin: 0.8em 0 0.5em 0;
color: #333;
font-weight: normal;
font-family: 'Orienta', sans-serif;
font-size: 24px;
line-height: 40px;
margin: 0.8em 0 0.5em 0;
color: #333;
font-weight: normal;
font-family: 'Orienta', sans-serif;
font-size: 24px;
line-height: 40px;
}

h4 {
margin: 0.8em 0 0.5em 0;
color: #333;
font-weight: normal;
font-family: 'Orienta', sans-serif;
font-size: 18px;
line-height: 20px;
margin: 0.8em 0 0.5em 0;
color: #333;
font-weight: normal;
font-family: 'Orienta', sans-serif;
font-size: 18px;
line-height: 20px;
}

table {
margin: 0;
}

/* Default Table Style */
table {
color: #333;
background: white;
border: 1px solid grey;
font-size: 12pt;
border-collapse: collapse;
}
table thead th,
table tfoot th {
color: #777;
background: rgba(0,0,0,.1);
}
table caption {
padding:.5em;
}
table th,
table td {
padding: .5em;
border: 1px solid lightgrey;
}
/* Zebra Table Style */
[data-table-theme*=zebra] tbody tr:nth-of-type(odd) {
background: rgba(0,0,0,.05);
}
[data-table-theme*=zebra][data-table-theme*=dark] tbody tr:nth-of-type(odd) {
background: rgba(255,255,255,.05);
}
/* Dark Style */
[data-table-theme*=dark] {
color: #ddd;
background: #333;
font-size: 12pt;
border-collapse: collapse;
}
[data-table-theme*=dark] thead th,
[data-table-theme*=dark] tfoot th {
color: #aaa;
background: rgba(0255,255,255,.15);
}
[data-table-theme*=dark] caption {
padding:.5em;
}
[data-table-theme*=dark] th,
[data-table-theme*=dark] td {
padding: .5em;
border: 1px solid grey;
}
margin: 0;
}

/* Default Table Style */
table {
color: #333;
background: white;
border: 1px solid grey;
font-size: 12pt;
border-collapse: collapse;
}

table thead th,
table tfoot th {
color: #777;
background: rgba(0, 0, 0, .1);
}

table caption {
padding: .5em;
}

table th,
table td {
padding: .5em;
border: 1px solid lightgrey;
max-width: 600px;
word-wrap: break-word;
brunoffranca marked this conversation as resolved.
Show resolved Hide resolved
overflow-wrap: break-word;
}

/* Zebra Table Style */
[data-table-theme*=zebra] tbody tr:nth-of-type(odd) {
background: rgba(0, 0, 0, .05);
}

[data-table-theme*=zebra][data-table-theme*=dark] tbody tr:nth-of-type(odd) {
background: rgba(255, 255, 255, .05);
}

/* Dark Style */
[data-table-theme*=dark] {
color: #ddd;
background: #333;
font-size: 12pt;
border-collapse: collapse;
}

[data-table-theme*=dark] thead th,
[data-table-theme*=dark] tfoot th {
color: #aaa;
background: rgba(0255, 255, 255, .15);
}

[data-table-theme*=dark] caption {
padding: .5em;
}

[data-table-theme*=dark] th,
[data-table-theme*=dark] td {
padding: .5em;
border: 1px solid grey;
}
Loading