Skip to content

Commit 6db90ce

Browse files
committed
scoped fjordd calculator table css styles
1 parent 284fa1a commit 6db90ce

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

styles/calculator.css

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -101,31 +101,31 @@ select.calculator-select :focus {
101101
color: var(--op-neutral-700)
102102
}
103103

104-
table {
104+
.calculator-results-wrap table {
105105
width: 100%;
106106
border-collapse: collapse;
107107
margin-bottom: 40px;
108108
}
109109

110-
th,
111-
td {
110+
.calculator-results-wrap th,
111+
.calculator-results-wrap td {
112112
border: 1px solid var(--op-red-200);
113113
padding: 8px;
114114
text-align: left;
115115
}
116116

117-
thead .sub-header {
117+
.calculator-results-wrap thead .sub-header {
118118
background-color: var(--op-red-600) !important;
119119
color: var(--op-neutral-0);
120120
}
121121

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

127-
tbody tr td:first-of-type,
128-
thead tr:nth-of-type(2) th:first-of-type {
127+
.calculator-results-wrap tbody tr td:first-of-type,
128+
.calculator-results-wrap thead tr:nth-of-type(2) th:first-of-type {
129129
text-align: right;
130130
}
131131

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

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

0 commit comments

Comments
 (0)