Skip to content

Commit

Permalink
specify sd card spacing for no custom var support
Browse files Browse the repository at this point in the history
  • Loading branch information
dugalh committed May 14, 2023
1 parent 52d7939 commit 90459e3
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions site/_styles/main-content.css
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,16 @@
/* outline: 1px solid red; */
}

/* spacing for browsers without custom var support */
.sd-row>* {
padding-right: 0.25rem;
padding-right: calc(var(--sd-gutter-x) * 0.5);
padding-left: 0.25rem;
padding-left: calc(var(--sd-gutter-x) * 0.5);
margin-top: 0.5rem;
margin-top: var(--sd-gutter-y);
}

/* for no flex wrap support, turn card borders off as adjacent cards will not have the same height.
must come after related colour style(s) which turn borders on. */
.bd-content .sd-card {
Expand Down

0 comments on commit 90459e3

Please sign in to comment.