UNPKG

@enact/moonstone

Version:

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

144 lines (143 loc) 7.08 kB
.toggleIcon { width: 1.125rem; height: 1.125rem; border-radius: 40rem; } .toggleIcon .icon { visibility: hidden; margin: 0; line-height: 1.125rem; width: 1.125rem; height: 1.125rem; font-size: 2.25rem; } .toggleIcon:global(.largeText) { width: 1.375rem; height: 1.375rem; border-radius: 1.375rem; } .toggleIcon:global(.largeText) .icon { line-height: 1.375rem; width: 1.375rem; height: 1.375rem; font-size: 2.75rem; } .toggleIcon.selected .icon { visibility: visible; } .toggleIcon:global(.moonstone) { color: #fff; background-color: rgba(255, 255, 255, 0.22); } :global(.enact-a11y-high-contrast) .toggleIcon:global(.moonstone.highContrast) { color: #fff; background-color: rgba(255, 255, 255, 0.22); } .toggleIcon:global(.moonstone-light) { color: #fff; background-color: #686868; } :global(.enact-a11y-high-contrast) .toggleIcon:global(.moonstone-light.highContrast) { color: #fff; background-color: #7a7a7a; } :global(.spotlight-input-key) :global(.spottable):focus .toggleIcon:global(.moonstone), :global(.spotlight-input-mouse) :global(.spottable):focus .toggleIcon:global(.moonstone) { color: #fff; background-color: rgba(255, 255, 255, 0.4); } :global(.spotlight-input-key) :global(.spottable):focus .toggleIcon:global(.moonstone)[disabled], :global(.spotlight-input-mouse) :global(.spottable):focus .toggleIcon:global(.moonstone)[disabled] { opacity: 0.4; } :global(.enact-a11y-high-contrast) :global(.spotlight-input-key) :global(.spottable):focus .toggleIcon:global(.moonstone.highContrast), :global(.enact-a11y-high-contrast) :global(.spotlight-input-mouse) :global(.spottable):focus .toggleIcon:global(.moonstone.highContrast) { color: #fff; background-color: rgba(0, 0, 0, 0.4); } :global(.enact-a11y-high-contrast) :global(.spotlight-input-key) :global(.spottable):focus .toggleIcon:global(.moonstone.highContrast)[disabled], :global(.enact-a11y-high-contrast) :global(.spotlight-input-mouse) :global(.spottable):focus .toggleIcon:global(.moonstone.highContrast)[disabled] { opacity: 0.4; } :global(.spotlight-input-key) :global(.spottable):focus .toggleIcon:global(.moonstone-light), :global(.spotlight-input-mouse) :global(.spottable):focus .toggleIcon:global(.moonstone-light) { color: #fff; background-color: rgba(255, 255, 255, 0.3); } :global(.spotlight-input-key) :global(.spottable):focus .toggleIcon:global(.moonstone-light)[disabled], :global(.spotlight-input-mouse) :global(.spottable):focus .toggleIcon:global(.moonstone-light)[disabled] { opacity: 0.4; } :global(.enact-a11y-high-contrast) :global(.spotlight-input-key) :global(.spottable):focus .toggleIcon:global(.moonstone-light.highContrast), :global(.enact-a11y-high-contrast) :global(.spotlight-input-mouse) :global(.spottable):focus .toggleIcon:global(.moonstone-light.highContrast) { color: #fff; background-color: rgba(255, 255, 255, 0.3); } :global(.enact-a11y-high-contrast) :global(.spotlight-input-key) :global(.spottable):focus .toggleIcon:global(.moonstone-light.highContrast)[disabled], :global(.enact-a11y-high-contrast) :global(.spotlight-input-mouse) :global(.spottable):focus .toggleIcon:global(.moonstone-light.highContrast)[disabled] { opacity: 0.4; } :global(.spotlight-input-touch) :global(.spottable):active .toggleIcon:global(.moonstone) { color: #fff; background-color: rgba(255, 255, 255, 0.4); } :global(.spotlight-input-touch) :global(.spottable):active .toggleIcon:global(.moonstone)[disabled] { opacity: 0.4; } :global(.enact-a11y-high-contrast) :global(.spotlight-input-touch) :global(.spottable):active .toggleIcon:global(.moonstone.highContrast) { color: #fff; background-color: rgba(0, 0, 0, 0.4); } :global(.enact-a11y-high-contrast) :global(.spotlight-input-touch) :global(.spottable):active .toggleIcon:global(.moonstone.highContrast)[disabled] { opacity: 0.4; } :global(.spotlight-input-touch) :global(.spottable):active .toggleIcon:global(.moonstone-light) { color: #fff; background-color: rgba(255, 255, 255, 0.3); } :global(.spotlight-input-touch) :global(.spottable):active .toggleIcon:global(.moonstone-light)[disabled] { opacity: 0.4; } :global(.enact-a11y-high-contrast) :global(.spotlight-input-touch) :global(.spottable):active .toggleIcon:global(.moonstone-light.highContrast) { color: #fff; background-color: rgba(255, 255, 255, 0.3); } :global(.enact-a11y-high-contrast) :global(.spotlight-input-touch) :global(.spottable):active .toggleIcon:global(.moonstone-light.highContrast)[disabled] { opacity: 0.4; } :global(.spotlight-input-key) [data-spotlight-container-muted="true"] :global(.spottable):focus .toggleIcon:global(.moonstone):not([disabled]), :global(.spotlight-input-mouse) [data-spotlight-container-muted="true"] :global(.spottable):focus .toggleIcon:global(.moonstone):not([disabled]) { color: #fff; background-color: rgba(255, 255, 255, 0.22); } :global(.enact-a11y-high-contrast) :global(.spotlight-input-key) [data-spotlight-container-muted="true"] :global(.spottable):focus .toggleIcon:global(.moonstone.highContrast):not([disabled]), :global(.enact-a11y-high-contrast) :global(.spotlight-input-mouse) [data-spotlight-container-muted="true"] :global(.spottable):focus .toggleIcon:global(.moonstone.highContrast):not([disabled]) { color: #fff; background-color: rgba(255, 255, 255, 0.22); } :global(.spotlight-input-key) [data-spotlight-container-muted="true"] :global(.spottable):focus .toggleIcon:global(.moonstone-light):not([disabled]), :global(.spotlight-input-mouse) [data-spotlight-container-muted="true"] :global(.spottable):focus .toggleIcon:global(.moonstone-light):not([disabled]) { color: #fff; background-color: #686868; } :global(.enact-a11y-high-contrast) :global(.spotlight-input-key) [data-spotlight-container-muted="true"] :global(.spottable):focus .toggleIcon:global(.moonstone-light.highContrast):not([disabled]), :global(.enact-a11y-high-contrast) :global(.spotlight-input-mouse) [data-spotlight-container-muted="true"] :global(.spottable):focus .toggleIcon:global(.moonstone-light.highContrast):not([disabled]) { color: #fff; background-color: #7a7a7a; } :global(.spotlight-input-touch) [data-spotlight-container-muted="true"] :global(.spottable):active .toggleIcon:global(.moonstone):not([disabled]) { color: #fff; background-color: rgba(255, 255, 255, 0.22); } :global(.enact-a11y-high-contrast) :global(.spotlight-input-touch) [data-spotlight-container-muted="true"] :global(.spottable):active .toggleIcon:global(.moonstone.highContrast):not([disabled]) { color: #fff; background-color: rgba(255, 255, 255, 0.22); } :global(.spotlight-input-touch) [data-spotlight-container-muted="true"] :global(.spottable):active .toggleIcon:global(.moonstone-light):not([disabled]) { color: #fff; background-color: #686868; } :global(.enact-a11y-high-contrast) :global(.spotlight-input-touch) [data-spotlight-container-muted="true"] :global(.spottable):active .toggleIcon:global(.moonstone-light.highContrast):not([disabled]) { color: #fff; background-color: #7a7a7a; }