.demo { overflow: hidden; border-radius: 0.75rem; &__preview { border-top-left-radius: inherit; border-top-right-radius: inherit; border-bottom-width: 0; color: $colorBlack; background-color: $colorWhite; max-height: unquote("max(300px, 70vh)"); overflow: auto; scroll-behavior: smooth; border: 3px solid $colorBlack; } &__source { background-color: $colorBlack; } &__tabs { padding: 0.5rem 1.25rem 0 1.25rem; background-color: rgba($colorBlack, 0.9); white-space: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; } &__tab { display: inline-flex; position: relative; background-color: transparent; color: rgba($colorWhite, 0.7); padding: 0.1rem 0.5rem; border-radius: 5px; font-weight: 500; border: none; margin-right: 0.5rem; &:first-child { margin-left: -0.5rem; } &.is-active, &:hover { color: $colorWhite; background-color: rgba($colorWhite, 0.1); } } &__code { pre { margin: 0; border-radius: 0; } } &__meta { display: flex; justify-content: space-between; width: 100%; padding: 0.5rem 1.25rem; font-size: 0.85rem; border-top: 1px solid rgba($colorWhite, 0.1); border-bottom-left-radius: inherit; border-bottom-right-radius: inherit; background-color: $colorBlack; white-space: nowrap; color: rgba($colorWhite, 0.5); } &__name { display: none; @media (min-width: 600px) { display: block; overflow: hidden; text-overflow: ellipsis; padding-right: 0.5rem; } } &__link { margin-left: auto; &:hover { color: $colorWhite; } } &__error { padding: 1rem 1.5rem; color: $colorRed; background-color: rgba($colorRed, 0.1); } &__skeleton { border-top-left-radius: inherit; border-top-right-radius: inherit; background-color: $colorWhite; min-height: 20rem; opacity: 0.1; } }