Skip to content

Commit 6b388d5

Browse files
committed
style: style medal popup close button same as geo
1 parent a6ce815 commit 6b388d5

2 files changed

Lines changed: 16 additions & 8 deletions

File tree

website/js/delegations.js

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -953,15 +953,8 @@
953953
`);
954954

955955
header.append("button")
956+
.attr("class", "medal-popup-close")
956957
.text("Close")
957-
.style("background", "#aeeaf2")
958-
.style("border", "2px solid white")
959-
.style("border-radius", "10px")
960-
.style("padding", "9px 18px")
961-
.style("font-family", "'Elms Sans', sans-serif")
962-
.style("font-size", "15px")
963-
.style("font-weight", "800")
964-
.style("cursor", "pointer")
965958
.on("click", () => overlay.remove());
966959

967960
const chart = overlay.append("div")

website/styles.css

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -769,6 +769,21 @@ p {
769769
box-shadow: 0 8px 25px rgba(0, 0, 0, 0.35);
770770
}
771771

772+
.medal-popup-close {
773+
background: #ffd166;
774+
color: #111;
775+
border: 2px solid white;
776+
border-radius: 10px;
777+
padding: 8px 14px;
778+
font-size: 15px;
779+
font-weight: 800;
780+
cursor: pointer;
781+
}
782+
783+
.medal-popup-close:hover {
784+
filter: brightness(1.06);
785+
}
786+
772787
/* =============================================
773788
Body types section
774789
=========================================== */

0 commit comments

Comments
 (0)