UNPKG

@enact/sandstone

Version:

Large-screen/TV support library for Enact, containing a variety of UI components.

248 lines (247 loc) 9.12 kB
.flexiblePopupPanels.popup { padding: 2.25rem 0; margin: 0; max-height: 100vh; min-width: 23.75rem; box-sizing: border-box; } .flexiblePopupPanels.popup.narrow { /* Needed to prevent global class being added in the DOM */ } .flexiblePopupPanels .viewport { position: relative; } .flexiblePopupPanels .viewport .panel { padding: 0 3rem 1.40625rem; height: calc(100vh - 4.5rem ); } .flexiblePopupPanels .navCellBefore { direction: rtl; } :global(.enact-locale-right-to-left) .flexiblePopupPanels .navCellBefore { direction: ltr; } .flexiblePopupPanels .navCellAfter { /* identifies the "after" cell */ } .flexiblePopupPanels .body .navButton { position: absolute; transform: translate(0, -50%); margin: 0.25rem; } .flexiblePopupPanels .body .navButton:global(.largeText) { font-family: "Sandstone"; font-size: 1.25rem; font-style: normal; font-weight: 600; font-kerning: normal; height: 2.25rem; line-height: 2rem; min-width: 2.25rem; } :global(.enact-locale-non-latin) .flexiblePopupPanels .body .navButton:global(.largeText) { font-family: "Sandstone"; } :global(.enact-locale-non-latin) .flexiblePopupPanels .body .navButton:global(.largeText) { font-family: "Sandstone"; font-size: 1.125rem; font-style: normal; font-weight: 700; } .flexiblePopupPanels > .body { position: relative; pointer-events: none; padding: 0; } :global(.enact-locale-right-to-left) .flexiblePopupPanels > .body { padding: 0; } .flexiblePopupPanels.fullHeight .bodyLayout { height: 100%; } .flexiblePopupPanels:global(.neutral) { background-color: transparent; } .flexiblePopupPanels:global(.neutral) .header, .flexiblePopupPanels:global(.neutral) .content { border-radius: 0.5rem; box-shadow: 0 0.75rem 0.75rem rgb(var(--sand-shadow-color-rgb, 0, 0, 0), 30%); outline-color: var(--sand-overlay-outline-color, transparent); outline-style: var(--sand-overlay-outline-style, none); outline-width: 0.0625rem; outline-offset: -0.0625rem; } .flexiblePopupPanels:global(.neutral).scrimTranslucent .header, .flexiblePopupPanels:global(.neutral).scrimTranslucent .content { background-color: rgb(var(--sand-overlay-bg-color-rgb, 87, 94, 102), 90%); } .flexiblePopupPanels:global(.neutral).scrimNone .header, .flexiblePopupPanels:global(.neutral).scrimTransparent .header, .flexiblePopupPanels:global(.neutral).scrimNone .content, .flexiblePopupPanels:global(.neutral).scrimTransparent .content { background-color: rgb(var(--sand-overlay-bg-color-rgb, 87, 94, 102), 95%); } :global(.enact-a11y-high-contrast) .flexiblePopupPanels:global(.neutral):global(.highContrast) { background-color: transparent; } :global(.enact-a11y-high-contrast) .flexiblePopupPanels:global(.neutral):global(.highContrast) .header, :global(.enact-a11y-high-contrast) .flexiblePopupPanels:global(.neutral):global(.highContrast) .content { border-radius: 0.5rem; box-shadow: 0 0.75rem 0.75rem rgb(var(--sand-shadow-color-rgb, 0, 0, 0), 30%); outline-color: var(--sand-overlay-outline-color, #7c848b); outline-style: var(--sand-overlay-outline-style, solid); outline-width: 0.0625rem; outline-offset: -0.0625rem; } :global(.enact-a11y-high-contrast) .flexiblePopupPanels:global(.neutral):global(.highContrast).scrimTranslucent .header, :global(.enact-a11y-high-contrast) .flexiblePopupPanels:global(.neutral):global(.highContrast).scrimTranslucent .content { background-color: rgb(var(--sand-overlay-bg-color-rgb, 0, 0, 0)); } :global(.enact-a11y-high-contrast) .flexiblePopupPanels:global(.neutral):global(.highContrast).scrimNone .header, :global(.enact-a11y-high-contrast) .flexiblePopupPanels:global(.neutral):global(.highContrast).scrimTransparent .header, :global(.enact-a11y-high-contrast) .flexiblePopupPanels:global(.neutral):global(.highContrast).scrimNone .content, :global(.enact-a11y-high-contrast) .flexiblePopupPanels:global(.neutral):global(.highContrast).scrimTransparent .content { background-color: rgb(var(--sand-overlay-bg-color-rgb, 0, 0, 0)); } .flexiblePopupPanels:global(.light) { background-color: transparent; } .flexiblePopupPanels:global(.light) .header, .flexiblePopupPanels:global(.light) .content { border-radius: 0.5rem; box-shadow: 0 0.75rem 0.75rem rgb(var(--sand-shadow-color-rgb, 0, 0, 0), 30%); outline-color: var(--sand-overlay-outline-color, transparent); outline-style: var(--sand-overlay-outline-style, none); outline-width: 0.0625rem; outline-offset: -0.0625rem; } .flexiblePopupPanels:global(.light).scrimTranslucent .header, .flexiblePopupPanels:global(.light).scrimTranslucent .content { background-color: rgb(var(--sand-alert-overlay-bg-color-rgb, 187, 187, 187), 90%); } .flexiblePopupPanels:global(.light).scrimNone .header, .flexiblePopupPanels:global(.light).scrimTransparent .header, .flexiblePopupPanels:global(.light).scrimNone .content, .flexiblePopupPanels:global(.light).scrimTransparent .content { background-color: rgb(var(--sand-alert-overlay-bg-color-rgb, 187, 187, 187), 95%); } .flexiblePopupPanels:global(.game) { background-color: transparent; } .flexiblePopupPanels:global(.game) .header, .flexiblePopupPanels:global(.game) .content { border-radius: 0.5rem; box-shadow: 0 0.75rem 0.75rem rgb(var(--sand-shadow-color-rgb, 0, 0, 0), 30%); outline-color: var(--sand-overlay-outline-color, transparent); outline-style: var(--sand-overlay-outline-style, none); outline-width: 0.0625rem; outline-offset: -0.0625rem; } .flexiblePopupPanels:global(.game).scrimTranslucent .header, .flexiblePopupPanels:global(.game).scrimTranslucent .content { background-color: rgb(var(--sand-overlay-bg-color-rgb, 87, 94, 102), 90%); } .flexiblePopupPanels:global(.game).scrimNone .header, .flexiblePopupPanels:global(.game).scrimTransparent .header, .flexiblePopupPanels:global(.game).scrimNone .content, .flexiblePopupPanels:global(.game).scrimTransparent .content { background-color: rgb(var(--sand-overlay-bg-color-rgb, 87, 94, 102), 95%); } :global(.green) .flexiblePopupPanels:global(.game) { background-color: transparent; } :global(.green) .flexiblePopupPanels:global(.game) .header, :global(.green) .flexiblePopupPanels:global(.game) .content { border-radius: 0.5rem; box-shadow: 0 0.75rem 0.75rem rgb(var(--sand-shadow-color-rgb, 0, 0, 0), 30%); outline-color: var(--sand-overlay-outline-color, transparent); outline-style: var(--sand-overlay-outline-style, none); outline-width: 0.0625rem; outline-offset: -0.0625rem; } :global(.green) .flexiblePopupPanels:global(.game).scrimTranslucent .header, :global(.green) .flexiblePopupPanels:global(.game).scrimTranslucent .content { background-color: rgb(var(--sand-overlay-bg-color-rgb, 87, 94, 102), 90%); } :global(.green) .flexiblePopupPanels:global(.game).scrimNone .header, :global(.green) .flexiblePopupPanels:global(.game).scrimTransparent .header, :global(.green) .flexiblePopupPanels:global(.game).scrimNone .content, :global(.green) .flexiblePopupPanels:global(.game).scrimTransparent .content { background-color: rgb(var(--sand-overlay-bg-color-rgb, 87, 94, 102), 95%); } :global(.orange) .flexiblePopupPanels:global(.game) { background-color: transparent; } :global(.orange) .flexiblePopupPanels:global(.game) .header, :global(.orange) .flexiblePopupPanels:global(.game) .content { border-radius: 0.5rem; box-shadow: 0 0.75rem 0.75rem rgb(var(--sand-shadow-color-rgb, 0, 0, 0), 30%); outline-color: var(--sand-overlay-outline-color, transparent); outline-style: var(--sand-overlay-outline-style, none); outline-width: 0.0625rem; outline-offset: -0.0625rem; } :global(.orange) .flexiblePopupPanels:global(.game).scrimTranslucent .header, :global(.orange) .flexiblePopupPanels:global(.game).scrimTranslucent .content { background-color: rgb(var(--sand-overlay-bg-color-rgb, 87, 94, 102), 90%); } :global(.orange) .flexiblePopupPanels:global(.game).scrimNone .header, :global(.orange) .flexiblePopupPanels:global(.game).scrimTransparent .header, :global(.orange) .flexiblePopupPanels:global(.game).scrimNone .content, :global(.orange) .flexiblePopupPanels:global(.game).scrimTransparent .content { background-color: rgb(var(--sand-overlay-bg-color-rgb, 87, 94, 102), 95%); } .panel { pointer-events: none; } .panel > .body { padding: 0; } .panel .bodyLayout { max-height: -webkit-fill-available; pointer-events: auto; } .panel > *:first-child { pointer-events: auto; } .panel .header { margin-left: 0.25rem; margin-right: 0.25rem; } .panel .header.showBack { margin-left: 4.5rem; } .panel .content { margin: 0 0.25rem; padding: 1.25rem 0.5rem; box-sizing: border-box; } .panel.auto { /* Availble for export */ } .panel.small:nth-child(2), .panel.large:nth-child(2) { left: -50%; } .panel.small .bodyLayout, .panel.large .bodyLayout { width: 100%; } .panel.small { width: 19rem; } .panel.small + .panel.large { left: -19rem; } .panel.large { width: 34rem; } .panel.large + .panel.small { left: -34rem; } :global(.enact-locale-right-to-left) .panel > .body { direction: ltr; } :global(.enact-locale-right-to-left) .panel > .body .bodyLayout { direction: rtl; }