Skip to content

Commit dface6f

Browse files
committed
#149: Refactor CSS styles for ledger and health components.
1 parent f8365a0 commit dface6f

File tree

6 files changed

+14
-18
lines changed

6 files changed

+14
-18
lines changed

sass/diff.scss

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
//
21
// SPDX-FileCopyrightText: Copyright (c) 2018-2025 Zerocracy, Inc.
32
// SPDX-License-Identifier: MIT
43

54
#ledger {
65
font-size: 85%;
6+
width: 100%;
77

88
tr {
99
td,
@@ -17,7 +17,3 @@
1717
}
1818
}
1919
}
20-
21-
#ledger {
22-
width: 100%;
23-
}

sass/health.scss

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,18 @@
1-
//
21
// SPDX-FileCopyrightText: Copyright (c) 2018-2025 Zerocracy, Inc.
32
// SPDX-License-Identifier: MIT
43

4+
@use "sass:color";
5+
56
#health {
67
font-size: 75%;
78
width: 100%;
89

9-
@media all and (max-width: 1024px) {
10+
@media all and (width <= 1024px) {
1011
display: none;
1112
}
1213

1314
thead {
14-
@media all and (max-width: 1024px) {
15+
@media all and (width <= 1024px) {
1516
display: none;
1617
}
1718
}
@@ -31,24 +32,26 @@
3132
padding: 0.1em .4em;
3233

3334
&.failure {
34-
background-color: lighten(#BB342F, 40);
35+
background-color: color.adjust(#bb342f, $lightness: 40%);
3536
}
3637

3738
&.data {
3839
text-align: right;
3940
}
4041

41-
@media all and (max-width: 1024px) {
42+
@media all and (width <= 1024px) {
4243
display: inline-block;
4344
border: 0;
4445
}
4546
}
46-
@media all and (max-width: 1024px) {
47+
48+
@media all and (width <= 1024px) {
4749
display: inline-block;
4850
margin: .6em 0;
4951
}
5052
}
51-
@media all and (max-width: 1024px) {
53+
54+
@media all and (width <= 1024px) {
5255
display: inline-block;
5356
}
5457
}

sass/index.scss

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
//
21
// SPDX-FileCopyrightText: Copyright (c) 2018-2025 Zerocracy, Inc.
32
// SPDX-License-Identifier: MIT
43

sass/ledger.scss

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
//
21
// SPDX-FileCopyrightText: Copyright (c) 2018-2025 Zerocracy, Inc.
32
// SPDX-License-Identifier: MIT
43

sass/main.scss

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
//
21
// SPDX-FileCopyrightText: Copyright (c) 2018-2025 Zerocracy, Inc.
32
// SPDX-License-Identifier: MIT
43

sass/map.scss

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
//
21
// SPDX-FileCopyrightText: Copyright (c) 2018-2025 Zerocracy, Inc.
32
// SPDX-License-Identifier: MIT
43

@@ -73,7 +72,7 @@ body {
7372
tr {
7473
width: 250px;
7574

76-
&:nth(3) {
75+
&:nth-child(3) {
7776
margin-top: 30px;
7877
}
7978

@@ -92,7 +91,7 @@ body {
9291
}
9392
}
9493

95-
@media only screen and (min-device-width: 320px) and (max-device-width: 480px) and (-webkit-min-device-pixel-ratio: 2) {
94+
@media only screen and (320px <= width <= 480px) and (resolution >= 2dppx) {
9695
#map {
9796
display: none;
9897
}
@@ -143,6 +142,7 @@ body {
143142
.blink {
144143
animation: blink-animation 1s steps(5, start) infinite;
145144
}
145+
146146
@keyframes blink-animation {
147147
to {
148148
visibility: hidden;

0 commit comments

Comments
 (0)