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

Scoped Fjord calculator table css styles #973

Merged
merged 1 commit into from
Oct 9, 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
18 changes: 9 additions & 9 deletions styles/calculator.css
Original file line number Diff line number Diff line change
Expand Up @@ -101,31 +101,31 @@ select.calculator-select :focus {
color: var(--op-neutral-700)
}

table {
.calculator-results-wrap table {
width: 100%;
border-collapse: collapse;
margin-bottom: 40px;
}

th,
td {
.calculator-results-wrap th,
.calculator-results-wrap td {
border: 1px solid var(--op-red-200);
padding: 8px;
text-align: left;
}

thead .sub-header {
.calculator-results-wrap thead .sub-header {
background-color: var(--op-red-600) !important;
color: var(--op-neutral-0);
}
krofax marked this conversation as resolved.
Show resolved Hide resolved

tbody tr td,
thead tr:nth-of-type(2) th {
.calculator-results-wrap tbody tr td,
.calculator-results-wrap thead tr:nth-of-type(2) th {
text-align: center;
}

tbody tr td:first-of-type,
thead tr:nth-of-type(2) th:first-of-type {
.calculator-results-wrap tbody tr td:first-of-type,
.calculator-results-wrap thead tr:nth-of-type(2) th:first-of-type {
krofax marked this conversation as resolved.
Show resolved Hide resolved
text-align: right;
}

Expand All @@ -135,7 +135,7 @@ div.calculator-results-wrap .results-container .results-table-wrap tbody {
font-weight: 700;
}

thead th[colspan="2"] {
.calculator-results-wrap thead th[colspan="2"] {
text-align: right;
}

Expand Down
Loading