UNPKG

@adobe/coral-spectrum

Version:

Coral Spectrum is a JavaScript library of Web Components following Spectrum design patterns.

141 lines (118 loc) 3.64 kB
/** * Copyright 2019 Adobe. All rights reserved. * This file is licensed to you under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. You may obtain a copy * of the License at http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software distributed under * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS * OF ANY KIND, either express or implied. See the License for the specific language * governing permissions and limitations under the License. */ ._coral-QuickActions { visibility: hidden; opacity: 0; transition: transform 130ms ease-in-out, opacity 130ms ease-in-out, visibility 0ms linear 130ms; pointer-events: none; } ._coral-QuickActions.is-open { visibility: visible; opacity: 1; transition-delay: 0ms; pointer-events: auto; } ._coral-QuickActions--left.is-open { transform: translateX(6px); } ._coral-QuickActions--right.is-open { transform: translateX(-6px); } ._coral-QuickActions { box-sizing: border-box; display: -ms-inline-flexbox; display: inline-flex; -ms-flex-align: center; align-items: center; -ms-flex-pack: center; justify-content: center; padding: 4px 4px; height: 40px; border-radius: 4px; } ._coral-QuickActions ._coral-ActionButton + ._coral-ActionButton { margin-left: 8px; } ._coral-QuickActions--textOnly ._coral-ActionButton + ._coral-ActionButton { margin-left: 4px; } .coral--large ._coral-QuickActions { transition: transform 130ms ease-in-out, opacity 130ms ease-in-out, visibility 0ms linear 130ms; } .coral--large ._coral-QuickActions--left.is-open { transform: translateX(8px); } .coral--large ._coral-QuickActions--right.is-open { transform: translateX(-8px); } .coral--large ._coral-QuickActions { padding: 5px 5px; height: 50px; border-radius: 5px; } .coral--large ._coral-QuickActions ._coral-ActionButton + ._coral-ActionButton { margin-left: 10px; } .coral--large ._coral-QuickActions--textOnly ._coral-ActionButton + ._coral-ActionButton { margin-left: 5px; } .coral--light ._coral-QuickActions-overlay { background-color: rgba(0,0,0,0.2); } .coral--light ._coral-QuickActions { background-color: rgba(245,245,245,0.9); } .coral--lightest ._coral-QuickActions-overlay { background-color: rgba(0,0,0,0.2); } .coral--lightest ._coral-QuickActions { background-color: rgba(255,255,255,0.9); } .coral--dark ._coral-QuickActions-overlay { background-color: rgba(0,0,0,0.2); } .coral--dark ._coral-QuickActions { background-color: rgba(50,50,50,0.9); } .coral--darkest ._coral-QuickActions-overlay { background-color: rgba(0,0,0,0.2); } .coral--darkest ._coral-QuickActions { background-color: rgba(30,30,30,0.9); } coral-quickactions, coral-quickactions-item { display: none; } ._coral-QuickActions { transition: margin 130ms cubic-bezier(.45, 0, .40, 1), opacity 130ms cubic-bezier(.45, 0, .40, 1), visibility 0ms cubic-bezier(0, 0, 1, 1) 130ms; } .coral--large ._coral-QuickActions { transition: margin 130ms cubic-bezier(.45, 0, .40, 1), opacity 130ms cubic-bezier(.45, 0, .40, 1), visibility 0ms cubic-bezier(0, 0, 1, 1) 130ms; } ._coral-QuickActions-item { justify-content: center; } ._coral-QuickActions-buttonList { max-height: 240px; overflow-y: auto; } ._coral-QuickActions-item-more._coral-ActionButton { margin-left: 8px; } ._coral-QuickActions ._coral-QuickActions-moreOverlay + ._coral-ActionButton { margin-left: 8px; }