//mobile .dimmable { position: relative; } .dimmer { display: none; background-color: #1f2933; opacity: 0.92; position: absolute; top: 0; bottom: 0; left: 0; right: 0; z-index: 1; padding: $v-gap * 4; &.dimmer-primary { background-color: $primary; opacity: 0.95; } justify-content: center; flex-wrap: wrap; align-items: flex-start; h1, h2, h3, h4, h5, h6, p { color: $white; margin-bottom: 0; } h4 { text-align: center; font-size: 2.222rem; } p { text-align: justify; font-family: $font-family-serif; font-size: 1rem; } .dimmer-inner { width: 100%; max-width: 480px; } .dimmer-icon { text-align: center; margin-bottom: $v-gap * 3; .icon { fill: $white; } } .dimmer-buttons { background-color: transparent !important; margin-top: $v-gap * 4; display: flex; justify-content: space-between; flex-wrap: wrap; button { width: 100%; &:last-child { margin-top: $v-gap * 2; } } &.single-button { button { margin-top: 0; } } } } //small - tablet @media (min-width: #{map-get($grid-breakpoints, sm)}) { .dimmer { } } //Tablet vertical @media (min-width: #{map-get($grid-breakpoints, md)}) { .dimmer { padding: $v-gap * 3; .dimmer-icon { margin-bottom: $v-gap * 6; } .dimmer-buttons { flex-wrap: nowrap; button { width: 50%; margin-top: 0 !important; &:last-child { margin-left: $v-gap * 3; } } &.single-button { //text-align: center; button { width: auto; min-width: 50%; margin: 0 auto; } } } } } //Tablet horizontal / small desktop @media (min-width: #{map-get($grid-breakpoints, lg)}) { .dimmer { align-items: center; } }