UNPKG

@adobe/coral-spectrum

Version:

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

619 lines (618 loc) 14.2 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-Shell { top: 0; } ._coral-Shell,coral-shell-content { position: absolute; left: 0; bottom: 0; right: 0; } coral-shell-content { top: 48px; -webkit-overflow-scrolling: touch; overflow: auto; scrollbar-width: thin; -ms-overflow-style: none; } coral-shell-content::-webkit-scrollbar { width: 0.1em; background-color: transparent; } coral-shell-content::-webkit-scrollbar-thumb { background-color: transparent; } @media (max-width: 320px) { coral-shell-content { scrollbar-width: none; } } ._coral-Shell-header { display: block; box-sizing: border-box; position: relative; height: 48px; padding: 0 2px 0 8px; background-color: #1e1e1e; } ._coral-Shell-header ._coral-Shell-menu-button[badge]:after { border-color: #1e1e1e; } ._coral-Shell-header ._coral-Shell-menu-button[badge]:disabled:after, ._coral-Shell-header ._coral-Shell-menu-button[badge].is-disabled:after { background-color: #3e3e3e; color: #1e1e1e; } ._coral-Shell-header ._coral-Shell-menu-button[badge="0"]:after { display: none; } coral-shell-header-home { display: flex; align-items: center; height: 100%; float: left; } @media (min-width: 768px) { coral-shell-header-home { margin-right: 64px; } } coral-shell-header-actions { display: flex; align-items: center; height: 100%; float: right; margin-left: 15px; } coral-shell-header-content { height: 45px; display: inline-block; vertical-align: top; } ._coral-Shell-homeAnchor { display: block; box-sizing: border-box; vertical-align: top; transition: color 0.15s ease-out; margin: 0; padding: 0 8px; text-decoration: none; text-align: center; line-height: 38px; color: #949494; cursor: pointer; white-space: nowrap; } ._coral-Shell-homeAnchor:not(:disabled):not(.is-disabled).is-selected, ._coral-Shell-homeAnchor:not(:disabled):not(.is-disabled):active, ._coral-Shell-homeAnchor:not(:disabled):not(.is-disabled):hover { color: #fff; } ._coral-Shell-homeAnchor:not(:disabled):not(.is-disabled):focus, ._coral-Shell-homeAnchor:not(:disabled):not(.is-disabled).is-focused { color: #fff; } ._coral-Shell-homeAnchor:not(:disabled):not(.is-disabled):active { color: #fff; } ._coral-Shell-homeAnchor-icon { vertical-align: middle; margin-top: -3px; margin-right: 5px; } coral-shell-homeanchor-label { display: inline-block; } @media (max-width: 766px) { coral-shell-homeanchor-label { position: absolute; clip: rect(0, 0, 0, 0); overflow: hidden; width: 1px !important; height: 1px !important; margin: 0 -1px -1px 0 !important; padding: 0 !important; } } ._coral-Shell-help { display: block; box-sizing: border-box; width: 220px; } ._coral-Shell-help-search { width: calc(100% - 16px); margin-top: 4px; margin-left: 8px; } ._coral-Shell-help-search input[is="coral-textfield"] { width: 100%; } ._coral-Shell-help-items { padding: 3px 0; } ._coral-Shell-help-result-item { height: auto; } ._coral-Shell-help-result-description { color: #707070; font-weight: 300; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } ._coral-Shell-help-loading, ._coral-Shell-help-resultMessage { position: relative; display: block; height: 300px; background-color: #fff; } ._coral-Shell-help-resultMessage { display: table; width: 100%; } .coral-Heading--2._coral-Shell-help-resultMessage-heading { margin: 0; } ._coral-Shell-help-resultMessage-container { display: table-cell; padding: 0 20px; vertical-align: middle; text-align: center; } ._coral-Shell-help-loading-wait { position: absolute; bottom: 52%; left: 50%; margin-left: -16px; margin-bottom: 8px; } ._coral-Shell-help-loading-info { position: absolute; top: 48%; left: 0; right: 0; padding-left: 5px; display: block; padding-top: 8px; text-align: center; } coral-shell-help-separator { display: block; position: relative; height: 2px; background-color: #fff; } coral-shell-help-separator::before { content: ""; position: absolute; left: 16px; right: 16px; height: 100%; background-color: rgba(0,0,0,0.05); } coral-shell-menu { display: none; } ._coral-Shell-menubar { display: flex; } ._coral-Shell-menubar-item { vertical-align: top; padding-left: 8px; padding-right: 8px; outline: none; } ._coral-Shell-menubar-item[iconsize="M"] ._coral-Shell-menu-button { top: -1px; } ._coral-Shell-menubar-item--circle ._coral-Icon--sizeXXS ._coral-Icon--image { border-radius: 9px; } ._coral-Shell-menubar-item--circle ._coral-Icon--sizeXS ._coral-Icon--image { border-radius: 12px; } ._coral-Shell-menubar-item--circle ._coral-Icon--sizeS ._coral-Icon--image { border-radius: 18px; } ._coral-Shell-menubar-item--circle ._coral-Icon--sizeM ._coral-Icon--image { border-radius: 24px; } ._coral-Shell-menu--full { display: block; visibility: visible; opacity: 1; border: none !important; top: 48px !important; left: 0 !important; right: 0 !important; z-index: 10000 !important; transform: translateY(calc(-100% - 48px)) !important; transition: transform 350ms cubic-bezier(0.42, -0.01, 0.175, 1) !important; } ._coral-Shell-menu--full coral-popover-content { height: 100%; } ._coral-Shell-menu--full.is-open { transform: translateY(0) translateX(0) !important; max-height: calc(100% - 48px); } ._coral-Shell-menu-button { position: relative; } ._coral-Shell-menu-button[badge]:after { content: attr(badge); position: absolute; top: 3px; left: 16px; min-width: 5px; height: 12px; padding-left: 3.5px; padding-right: 3.5px; line-height: 12px; text-align: center; font-weight: bold; font-size: 9px; color: #fff; border-radius: 16px; background-color: #e0322d; } ._coral-Shell-orgSwitcher { width: 250px; box-sizing: border-box; } ._coral-Shell-orgSwitcher-items { max-height: 320px; overflow-y: auto; } ._coral-Shell-orgSwitcher-item.is-parent { display: block; } ._coral-Shell-orgSwitcher-item.is-parent:hover { cursor: default !important; background: transparent !important; } ._coral-Shell-orgSwitcher-subitems { margin-left: 18px; } ._coral-Shell-orgSwitcher-subitem:first-child { margin-top: 6px; } ._coral-Shell-orgSwitcher-search { width: calc(100% - 16px); margin-top: 4px; margin-bottom: 4px; margin-left: 8px; } ._coral-Shell-orgSwitcher-search input[is="coral-textfield"] { width: 100%; } ._coral-Shell-orgSwitcher-resultMessage { display: table; width: 100%; height: 200px; background-color: #fff; } ._coral-Shell-orgSwitcher-resultMessage-container { display: table-cell; padding: 0 20px; vertical-align: middle; text-align: center; } ._coral-Shell-orgSwitcher-checkmark { position: absolute; top: 8px; right: 12px; } coral-shell-orgswitcher-footer { display: flex; flex-direction: column; align-items: center; padding: 4px; } coral-shell-orgswitcher-footer:empty { display: none; } coral-shell-orgswitcher-footer ._coral-Button + ._coral-Button { margin-left: 0; margin-top: 12px; } ._coral-Shell-solutionSwitcher { display: flex; padding: 48px 5%; background: #1e1e1e; } @media (max-width: 900px) { ._coral-Shell-solutionSwitcher { padding: 30px; } } @media (max-width: 550px) { ._coral-Shell-solutionSwitcher { padding: 30px; flex-direction: column; } } ._coral-Shell-solutions-container { width: 80%; padding-bottom: 40px; display: flex; flex-direction: row; justify-content: space-around; } @media (max-width: 900px) { ._coral-Shell-solutions-container { flex-wrap: wrap; } } @media (max-width: 550px) { ._coral-Shell-solutions-container { flex-wrap: wrap; } } ._coral-Shell-solutions { flex-direction: column; } @media (min-width: 900px) { ._coral-Shell-solutions { width: 75%; column-count: 3; } } ._coral-Shell-solution { display: inline-flex; height: 48px; align-items: center; padding: 16px 0; position: relative; text-decoration: none; color: #858585; font-size: 16px; width: 100%; } ._coral-Shell-solution:before { content: ''; } ._coral-Shell-solution:focus { outline: none; color: #fff; } ._coral-Shell-solution:focus coral-shell-solution-label { text-decoration: underline; } ._coral-Shell-solution:focus.focus-ring:before { position: absolute; top: 0; left: -8px; bottom: 0; right: 0; border-radius: 4px; box-shadow: 0 0 0 1px #2680eb; border: 1px solid #2680eb; } ._coral-Shell-solution:not([icon]) ._coral-Shell-solution-icon { display: none; } ._coral-Shell-solution:hover { color: #fff; } ._coral-Shell-solution:hover coral-shell-solution-label { text-decoration: underline; } ._coral-Shell-solution--linked { color: rgba(226,226,226,0.8); } ._coral-Shell-solution--linked:hover ._coral-Shell-solution-icon, ._coral-Shell-solution--linked:focus ._coral-Shell-solution-icon { transform: scale(1.1); } ._coral-Shell-solution--linked ._coral-Shell-solution-icon:before { width: 48px; height: 48px; } ._coral-Shell-solution-icon { color: rgba(255,255,255,0.45); font-size: 48px; will-change: transform; transition: transform 0.21s ease-out, opacity 0.21s ease-out; } ._coral-Shell-solution-icon:before { width: 48px; height: 48px; } coral-shell-solution-label { margin-left: 16px; font-weight: 300; transition: opacity 0.21s ease-out; } ._coral-Shell-solutions--secondary { display: flex; vertical-align: top; padding-right: 0; width: 20%; } @media (max-width: 550px) { ._coral-Shell-solutions--secondary { width: 100%; } } ._coral-Shell-solutions--secondary ._coral-Shell-solution:not(:first-of-type) { display: flex; height: auto; width: auto; padding: 0; text-decoration: none; text-align: left; } ._coral-Shell-solutions--secondary ._coral-Shell-solution:not(:first-of-type):hover ._coral-Shell-solution-icon, ._coral-Shell-solutions--secondary ._coral-Shell-solution:not(:first-of-type):focus ._coral-Shell-solution-icon { transform: scale(1); } ._coral-Shell-solutions--secondary ._coral-Shell-solution:not(:first-of-type):hover coral-shell-solution-label, ._coral-Shell-solutions--secondary ._coral-Shell-solution:not(:first-of-type):focus coral-shell-solution-label { color: #fff; text-decoration: underline; } ._coral-Shell-solutions--secondary ._coral-Shell-solution:not(:first-of-type) coral-shell-solution-label { margin-left: 0; display: inline-block; font-size: 13px; padding: 16px 0; } ._coral-Shell-solutions:first-of-type { column-count: 1; } @media (min-width: 900px) { ._coral-Shell-solutions:first-of-type { width: 25%; } } @media (max-width: 900px) { ._coral-Shell-solutions:first-of-type { width: 100%; } } coral-shell-solutions-header { display: none; } ._coral-Shell-selectListSwitcher { display: block; box-sizing: border-box; width: 170px; float: right; } ._coral-Shell-selectlistswitcher-item { display: none; padding: 7px 12px 7px 10px; } ._coral-Shell-user { display: block; padding: 24px; min-width: 230px; } ._coral-Shell-user-container { border-bottom: 2px solid #eaeaea; } ._coral-Shell-user-image { height: 64px; width: 64px; overflow: hidden; margin: auto; display: flex; justify-content: center; align-items: center; } ._coral-Shell-user-image ._coral-Icon { display: block; height: 100%; width: 100%; border-radius: 100%; object-fit: cover; } coral-shell-user-name { display: block; text-align: center; font-weight: 100; font-size: 28px; margin: 16px 0 8px; color: #4b4b4b; } coral-shell-user-heading { display: block; text-align: center; font-size: 14px; color: #767676; padding-bottom: 16px; } coral-shell-user-subheading { padding: 16px 0; display: flex; flex-direction: column; align-items: center; } coral-shell-user-subheading:empty { display: none; } coral-shell-user-content { padding: 16px 0; display: block; } coral-shell-user-content:empty { display: none; } coral-shell-user-footer { display: flex; flex-direction: column; align-items: center; } coral-shell-user-subheading ._coral-Button + ._coral-Button, coral-shell-user-footer ._coral-Button + ._coral-Button { margin-left: 0; margin-top: 12px; } ._coral-Shell-workspaces { display: flex; align-items: center; height: 100%; } ._coral-Shell-workspaces ._coral-Shell-workspaces-select { margin-top: 4px; height: 100%; width: inherit; border-bottom: 2px solid #fff; } ._coral-Shell-workspaces ._coral-Shell-workspaces-select ._coral-Dropdown-trigger { margin-top: 7px; } ._coral-Shell-workspaces ._coral-Shell-workspaces-select ._coral-SelectList-icon { margin-left: 8px; } ._coral-Shell-workspaces ._coral-Shell-workspaces-select coral-selectlist-item-content { white-space: nowrap; } @media (min-width: 1024px) { ._coral-Shell-workspaces ._coral-Shell-workspaces-select { display: none; } } ._coral-Shell-workspaces-workspace { display: inline-block; box-sizing: border-box; height: 50px; margin: 0 12px; border-bottom: 2px solid transparent; line-height: 52px; color: #bebebe; text-decoration: none; font-style: normal; transition: border-color 0.21s ease-out, color 0.21s ease-out; } ._coral-Shell-workspaces-workspace:hover { color: #fff; } ._coral-Shell-workspaces-workspace.is-selected { border-color: #fff; color: #fff; } ._coral-Shell-workspaces-workspace:focus { color: #fff; outline: none; } ._coral-Shell-workspaces-workspace:first-of-type { margin-left: 0; } @media (max-width: 1023px) { ._coral-Shell-workspaces-workspace { display: none; } }