Skip to content

Commit 80ea053

Browse files
committed
fix: update calculator styles
1 parent 0af01c1 commit 80ea053

File tree

3 files changed

+18
-3
lines changed

3 files changed

+18
-3
lines changed

src/courseware/course/content-tools/calculator/Calculator.jsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ class Calculator extends Component {
157157
/>
158158
</li>
159159
</ul>
160-
<table className="table small">
160+
<table className="pgn__data-table small">
161161
<thead>
162162
<tr>
163163
<th scope="col">

src/courseware/course/content-tools/calculator/calculator.scss

+15
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,19 @@
44
background-color: #f1f1f1;
55
box-shadow: 0 -1px 0 0 #ddd;
66
}
7+
8+
table {
9+
tr {
10+
border-bottom: var(--pgn-size-border-width) solid var(--pgn-color-border);
11+
}
12+
13+
thead tr {
14+
border-bottom: calc(2 * var(--pgn-size-border-width)) solid var(--pgn-color-border);
15+
border-top: var(--pgn-size-border-width) solid var(--pgn-color-border);
16+
}
17+
18+
tbody tr {
19+
vertical-align: top;
20+
}
21+
}
722
}

src/courseware/course/content-tools/contentTools.scss

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88
display: inline-block;
99
position: relative;
1010
z-index: 2;
11-
background-color: #f1f1f1;
12-
border: solid 1px #ddd;
11+
background-color: #f1f1f1 !important;
12+
border: solid 1px #ddd !important;
1313
border-bottom: none;
1414
border-top-left-radius: .3rem;
1515
border-top-right-radius: .3rem;

0 commit comments

Comments
 (0)