UNPKG

@enact/sandstone

Version:

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

411 lines (410 loc) 12.7 kB
.inputPopupWrapper { display: inline; } .popup .numberField, .popup .number, .popup .password, .popup .separated { /* Available for customization */ } .popup .back { position: absolute; } .popup .back:global(.largeText) { font-family: "Sandstone"; font-size: 1.25rem; font-style: normal; font-weight: 600; font-kerning: normal; } :global(.enact-locale-non-latin) .popup .back:global(.largeText) { font-family: "Sandstone"; } :global(.enact-locale-non-latin) .popup .back:global(.largeText) { font-family: "Sandstone"; font-size: 1.125rem; font-style: normal; font-weight: 700; } .popup .body { line-height: 0; } .popup .titles { max-width: 100%; width: 100%; } .popup .fieldWrapper { display: inline-block; position: relative; } .popup .joined, .popup .numberCell { position: relative; z-index: 0; } .popup .joined::before, .popup .numberCell::before { position: absolute; top: 0; right: 0; bottom: 0; left: 0; content: ''; z-index: -1; border-radius: 0.25rem; } .popup .inputArea { text-align: center; } .popup .numberCell { justify-content: center; align-items: center; display: flex; } .popup .numberCell:not(.password) { font-family: "Sandstone"; } .popup .submitButton { display: block; margin: 1.75rem auto 0 auto; } .popup .inputArea .tooltip { margin-top: 0.625rem; } .popup .inputArea .tooltip .tooltipLabel { font-size: 1rem; font-weight: 600; } :global(.enact-locale-right-to-left) .popup .keypad { direction: ltr; } .popup.fullscreen .back { top: 2.75rem; left: 2rem; right: initial; } :global(.enact-locale-right-to-left) .popup.fullscreen .back { left: initial; right: 2rem; } .popup.fullscreen .body { padding: 3.375rem 4rem 4.125rem 4rem; } .popup.fullscreen .title { font-size: 3rem; } :global(.enact-locale-non-latin) .popup.fullscreen .title { font-size: 3rem; } .popup.fullscreen .numberCell { width: 5.125rem; height: 6.25rem; font-size: 2.625rem; margin: 0 0.375rem; } .popup.fullscreen .joined { min-width: 24.25rem; width: calc(var(--input-max-number-length) * 2.625rem ); height: 3.5rem; line-height: 3.5rem; letter-spacing: 1rem; text-indent: 1rem; font-size: 2.625rem; margin: auto; padding: 0 0.5em; } .popup.fullscreen .keypad { margin: 5.625rem auto 0 auto; max-width: 100vw; } :global(.enact-orientation-portrait) .popup.fullscreen .keypad { margin: 12.5rem auto 0 auto; width: 14.625rem; } :global(.enact-orientation-portrait):global(.enact-text-large) .popup.fullscreen .keypad { width: 17.625rem; } .popup.fullscreen .key { margin: 0; } :global(.enact-orientation-portrait) .popup.fullscreen .key { margin: 0.9375rem; } .popup.fullscreen .buttonArea { margin: 0; display: flex; justify-content: center; } .popup.fullscreen .inputArea, .popup.fullscreen .buttonArea { margin-top: 0.875rem; } .popup.fullscreen .inputArea .textField { width: 30rem; } :global(.enact-orientation-portrait) .popup.fullscreen .inputArea { margin: 2rem 0 0 0; } .popup.fullscreen .tooltip .tooltipLabel { max-width: 67.5rem; } .popup.fullscreen.text .inputArea, .popup.fullscreen.password .inputArea, .popup.fullscreen.url .inputArea { margin: 4.625rem 0 0 0; } :global(.enact-orientation-portrait) .popup.fullscreen.text .inputArea, :global(.enact-orientation-portrait) .popup.fullscreen.password .inputArea, :global(.enact-orientation-portrait) .popup.fullscreen.url .inputArea { margin: 14rem 0 0 0; } .popup.overlay .back { top: 0.1875rem; left: -0.875rem; right: initial; } :global(.enact-locale-right-to-left) .popup.overlay .back { left: initial; right: -0.875rem; } .popup.overlay .body { padding: 0.875rem 0.375rem 0.875rem 0.375rem; } .popup.overlay .title { margin: 0 3rem 0.35417rem 3rem; font-size: 1.875rem; } :global(.enact-locale-non-latin) .popup.overlay .title { font-size: 1.875rem; } .popup.overlay .inputArea { margin: 2rem 0 0 0; } .popup.overlay .inputArea .textField { width: 24.25rem; } .popup.overlay .numberCell { width: 3.625rem; height: 4.375rem; font-size: 2.25rem; margin: 0 0.25rem; } .popup.overlay .joined { min-width: 15.375rem; width: calc(var(--input-max-number-length) * 2.25rem ); height: 2.75rem; line-height: 2.75rem; letter-spacing: 0.75rem; text-indent: 0.75rem; font-size: 2.25rem; margin: auto; padding: 0 0.5em; } .popup.overlay .keypad { margin: 2.75rem auto 0 auto; width: 13.5rem; } :global(.enact-text-large) .popup.overlay .keypad { width: 16.5rem; } .popup.overlay .buttonArea { display: flex; flex-direction: row; justify-content: center; margin: 1.75rem 0 0 0; } .popup.overlay .tooltip .tooltipLabel { max-width: 15.375rem; } .popup:global(.neutral) { background-color: var(--sand-fullscreen-bg-color, var(--sand-bg-color, #000000)); } .popup:global(.neutral) .numberCell::before { background-color: rgb(var(--sand-text-color-rgb, 230, 230, 230), 20%); } .popup:global(.neutral) .joined, .popup:global(.neutral) .numberCell.active { color: rgb(var(--sand-component-focus-text-color-rgb, 76, 80, 89)); } .popup:global(.neutral) .joined::before, .popup:global(.neutral) .numberCell.active::before { opacity: 1; background-color: rgb(var(--sand-focus-bg-color-rgb, 230, 230, 230)); box-shadow: 0 0.75rem 0.75rem rgb(var(--sand-shadow-color-rgb, 0, 0, 0), 30%); box-shadow: none; } .popup:global(.neutral) .joined[disabled], .popup:global(.neutral) .numberCell.active[disabled] { opacity: 1; color: rgb(var(--sand-component-focus-text-color-rgb, 76, 80, 89), 40%); } .popup:global(.neutral) .joined[disabled]::before, .popup:global(.neutral) .numberCell.active[disabled]::before { opacity: 0.585; } .popup:global(.neutral) .inputArea .tooltip .tooltipLabel { color: #fb5656; } .popup:global(.neutral).overlay { background-color: rgb(var(--sand-overlay-bg-color-rgb, 87, 94, 102), 90%); } :global(.enact-a11y-high-contrast) .popup:global(.neutral):global(.highContrast) { background-color: rgb(var(--sand-overlay-bg-color-rgb, 0, 0, 0)); } :global(.enact-a11y-high-contrast) .popup:global(.neutral):global(.highContrast) .numberCell::before { background-color: rgb(var(--sand-text-color-rgb, 230, 230, 230), 20%); } :global(.enact-a11y-high-contrast) .popup:global(.neutral):global(.highContrast) .joined, :global(.enact-a11y-high-contrast) .popup:global(.neutral):global(.highContrast) .numberCell.active { color: rgb(var(--sand-component-focus-text-color-rgb, 76, 80, 89)); } :global(.enact-a11y-high-contrast) .popup:global(.neutral):global(.highContrast) .joined::before, :global(.enact-a11y-high-contrast) .popup:global(.neutral):global(.highContrast) .numberCell.active::before { opacity: 1; background-color: rgb(var(--sand-focus-bg-color-rgb, 230, 230, 230)); box-shadow: 0 0.75rem 0.75rem rgb(var(--sand-shadow-color-rgb, 0, 0, 0), 30%); box-shadow: none; } :global(.enact-a11y-high-contrast) .popup:global(.neutral):global(.highContrast) .joined[disabled], :global(.enact-a11y-high-contrast) .popup:global(.neutral):global(.highContrast) .numberCell.active[disabled] { opacity: 1; color: rgb(var(--sand-component-focus-text-color-rgb, 76, 80, 89), 40%); } :global(.enact-a11y-high-contrast) .popup:global(.neutral):global(.highContrast) .joined[disabled]::before, :global(.enact-a11y-high-contrast) .popup:global(.neutral):global(.highContrast) .numberCell.active[disabled]::before { opacity: 0.585; } :global(.enact-a11y-high-contrast) .popup:global(.neutral):global(.highContrast) .inputArea .tooltip .tooltipLabel { color: #fb5656; } :global(.enact-a11y-high-contrast) .popup:global(.neutral):global(.highContrast).overlay { background-color: rgb(var(--sand-overlay-bg-color-rgb, 0, 0, 0)); } .popup:global(.light) { background-color: var(--sand-fullscreen-bg-color, var(--sand-bg-color, #cacbcc)); } .popup:global(.light) .numberCell::before { background-color: rgb(var(--sand-text-color-rgb, 46, 50, 57), 20%); } .popup:global(.light) .joined, .popup:global(.light) .numberCell.active { color: rgb(var(--sand-component-focus-text-color-rgb, 76, 80, 89)); } .popup:global(.light) .joined::before, .popup:global(.light) .numberCell.active::before { opacity: 1; background-color: rgb(var(--sand-focus-bg-color-rgb, 230, 230, 230)); box-shadow: 0 0.75rem 0.75rem rgb(var(--sand-shadow-color-rgb, 0, 0, 0), 30%); box-shadow: none; } .popup:global(.light) .joined[disabled], .popup:global(.light) .numberCell.active[disabled] { opacity: 1; color: rgb(var(--sand-component-focus-text-color-rgb, 76, 80, 89), 40%); } .popup:global(.light) .joined[disabled]::before, .popup:global(.light) .numberCell.active[disabled]::before { opacity: 0.585; } .popup:global(.light) .inputArea .tooltip .tooltipLabel { color: #fb5656; } .popup:global(.light).overlay { background-color: rgb(var(--sand-alert-overlay-bg-color-rgb, 187, 187, 187), 90%); } .popup:global(.game) { background-color: var(--sand-fullscreen-bg-color, var(--sand-bg-color, #000000)); } .popup:global(.game) .numberCell::before { background-color: rgb(var(--sand-text-color-rgb, 230, 230, 230), 20%); } .popup:global(.game) .joined, .popup:global(.game) .numberCell.active { color: rgb(var(--sand-component-focus-text-color-rgb, 230, 230, 230)); } .popup:global(.game) .joined::before, .popup:global(.game) .numberCell.active::before { opacity: 1; background-color: var(--sand-focus-bg-color, #6d2fa1); box-shadow: 0 0.75rem 0.75rem rgb(var(--sand-shadow-color-rgb, 0, 0, 0), 30%); box-shadow: none; } .popup:global(.game) .joined[disabled], .popup:global(.game) .numberCell.active[disabled] { opacity: 1; color: rgb(var(--sand-component-focus-text-color-rgb, 230, 230, 230), 40%); } .popup:global(.game) .joined[disabled]::before, .popup:global(.game) .numberCell.active[disabled]::before { opacity: 0.585; } .popup:global(.game) .inputArea .tooltip .tooltipLabel { color: #fb5656; } .popup:global(.game).overlay { background-color: rgb(var(--sand-overlay-bg-color-rgb, 87, 94, 102), 90%); } :global(.green) .popup:global(.game) { background-color: var(--sand-fullscreen-bg-color, var(--sand-bg-color, #000000)); } :global(.green) .popup:global(.game) .numberCell::before { background-color: rgb(var(--sand-text-color-rgb, 230, 230, 230), 20%); } :global(.green) .popup:global(.game) .joined, :global(.green) .popup:global(.game) .numberCell.active { color: rgb(var(--sand-component-focus-text-color-rgb, 230, 230, 230)); } :global(.green) .popup:global(.game) .joined::before, :global(.green) .popup:global(.game) .numberCell.active::before { opacity: 1; background-color: var(--sand-focus-bg-color, #3ea07d); box-shadow: 0 0.75rem 0.75rem rgb(var(--sand-shadow-color-rgb, 0, 0, 0), 30%); box-shadow: none; } :global(.green) .popup:global(.game) .joined[disabled], :global(.green) .popup:global(.game) .numberCell.active[disabled] { opacity: 1; color: rgb(var(--sand-component-focus-text-color-rgb, 230, 230, 230), 40%); } :global(.green) .popup:global(.game) .joined[disabled]::before, :global(.green) .popup:global(.game) .numberCell.active[disabled]::before { opacity: 0.585; } :global(.green) .popup:global(.game) .inputArea .tooltip .tooltipLabel { color: #fb5656; } :global(.green) .popup:global(.game).overlay { background-color: rgb(var(--sand-overlay-bg-color-rgb, 87, 94, 102), 90%); } :global(.orange) .popup:global(.game) { background-color: var(--sand-fullscreen-bg-color, var(--sand-bg-color, #000000)); } :global(.orange) .popup:global(.game) .numberCell::before { background-color: rgb(var(--sand-text-color-rgb, 230, 230, 230), 20%); } :global(.orange) .popup:global(.game) .joined, :global(.orange) .popup:global(.game) .numberCell.active { color: rgb(var(--sand-component-focus-text-color-rgb, 230, 230, 230)); } :global(.orange) .popup:global(.game) .joined::before, :global(.orange) .popup:global(.game) .numberCell.active::before { opacity: 1; background-color: var(--sand-focus-bg-color, #b85f23); box-shadow: 0 0.75rem 0.75rem rgb(var(--sand-shadow-color-rgb, 0, 0, 0), 30%); box-shadow: none; } :global(.orange) .popup:global(.game) .joined[disabled], :global(.orange) .popup:global(.game) .numberCell.active[disabled] { opacity: 1; color: rgb(var(--sand-component-focus-text-color-rgb, 230, 230, 230), 40%); } :global(.orange) .popup:global(.game) .joined[disabled]::before, :global(.orange) .popup:global(.game) .numberCell.active[disabled]::before { opacity: 0.585; } :global(.orange) .popup:global(.game) .inputArea .tooltip .tooltipLabel { color: #fb5656; } :global(.orange) .popup:global(.game).overlay { background-color: rgb(var(--sand-overlay-bg-color-rgb, 87, 94, 102), 90%); }