Skip to content

Commit

Permalink
refactor(css): variablize
Browse files Browse the repository at this point in the history
  • Loading branch information
machikoyasuda committed Aug 1, 2023
1 parent 4256645 commit 9d81cb6
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions benefits/static/css/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -664,12 +664,14 @@ a.card:focus-visible {
:root {
--modal-title-font-size: var(--font-size-24px);
--modal-border-radius: 8px;
--modal-body-top: -36px;
}

@media (min-width: 992px) {
:root {
--modal-title-font-size: var(--font-size-35px);
--modal-border-radius: 4px;
--modal-body-top: 0;
}
}

Expand Down Expand Up @@ -712,16 +714,10 @@ a.card:focus-visible {
}

.modal-body {
top: -36px;
top: var(--modal-body-top);
z-index: 1056;
}

@media (min-width: 992px) {
.modal-body {
top: 0;
}
}

/* Modal Trigger */
/* All links/image buttons that open modals have a question mark icon after them */
/* Buttons that open modals (like the Agency Selector) do not have the icon */
Expand Down

0 comments on commit 9d81cb6

Please sign in to comment.