Skip to content

Commit f8f94fe

Browse files
authored
Merge pull request #25 from criticalmaps/fix/chromeRendering
Fix sponsor box not visible in Chrome.
2 parents 6943691 + 94e72d8 commit f8f94fe

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

_sass/_layout.scss

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -435,8 +435,11 @@ body {
435435
.sponsor-wrapper {
436436
display: grid;
437437
grid-template-columns: repeat(12, minmax(0, 1fr));
438-
grid-auto-flow: dense;
438+
grid-auto-rows: max-content;
439439
gap: 2rem;
440+
width: 100%;
441+
box-sizing: border-box;
442+
min-height: 1px;
440443

441444
@media only screen and (min-width: $screen-large) {
442445
width: calc(100% + 4.8rem);
@@ -454,7 +457,8 @@ body {
454457
padding: 3rem;
455458
border-radius: 2rem;
456459
box-sizing: border-box;
457-
overflow: hidden;
460+
min-height: 0;
461+
min-width: 0;
458462

459463
@media only screen and (max-width: $screen-small) {
460464
grid-column: span 12;
@@ -465,12 +469,12 @@ body {
465469
z-index: 20;
466470
flex-grow: 0;
467471
margin-right: auto;
468-
padding: 0.4em 1.1em 0.4em 1.2em;
472+
padding: 0.4em 1.2em 0.4em 0.6em;
469473
border-radius: 4rem;
470474
font-size: 0.8em;
471475
line-height: 1em;
472476
font-weight: 600;
473-
letter-spacing: 8%;
477+
letter-spacing: .05em;
474478
text-transform: uppercase;
475479

476480
svg {
@@ -531,6 +535,7 @@ body {
531535
object-fit: cover;
532536
mix-blend-mode: plus-lighter;
533537
opacity: 0.5;
538+
border-radius: 2rem;
534539

535540
@media (prefers-color-scheme: dark) {
536541
mix-blend-mode: plus-darker;

0 commit comments

Comments
 (0)