UNPKG

@adobe/spectrum-css

Version:

The Spectrum CSS top-level backwards compatible package

458 lines (414 loc) 9 kB
.spectrum-Site { height: 100%; display: -ms-flexbox; display: flex; -ms-flex-direction: column; flex-direction: column; } .spectrum-Site-content { display: -ms-flexbox; display: flex; -ms-flex-direction: row; flex-direction: row; max-height: 100%; height: 100%; } .spectrum-Site-header { display: none; box-sizing: border-box; height: 48px; padding: 8px; border-bottom-width: 1px; border-bottom-style: solid; } .spectrum-Site-sideBar { display: -ms-flexbox; display: flex; -ms-flex-direction: column; flex-direction: column; -ms-flex-positive: 0; flex-grow: 0; -ms-flex-negative: 0; flex-shrink: 0; max-width: 100%; transition: none; } .spectrum-Site-sideBarHeader { -ms-flex-positive: 0; flex-grow: 0; -ms-flex-negative: 0; flex-shrink: 0; display: -ms-flexbox; display: flex; -ms-flex-direction: row; flex-direction: row; -ms-flex-align: center; align-items: center; padding: 32px; text-decoration: none; } .spectrum-Site-sideBarHeader:focus { outline: none; } .spectrum-Site-sideBarHeader:focus h2 { text-decoration: underline; } .spectrum-Site-search { padding: 0 32px 32px 32px; } .spectrum-Site-searchResults { top: -100%; left: -100%; max-height: calc(90vh - 120px); z-index: 101; position: absolute; overflow-y: auto; } .spectrum-Site-noSearchResults { padding: 32px 32px 32px; } .spectrum-Site-logo { margin-right: 14px; color: rgb(225, 37, 27); } .spectrum--medium .spectrum-Site-logo { height: 31px; } .spectrum--large .spectrum-Site-logo { height: 39px; } .spectrum-Site-nav { -ms-flex-positive: 1; flex-grow: 1; padding: 0px 24px 40px; } .spectrum-Site-bottomNav { margin-top: 80px; } .spectrum-Site-mainContainer { -ms-flex-positive: 1; flex-grow: 1; border: none; overflow-y: auto; } .spectrum-Site-page { padding: 40px 52px 24px 52px; max-width: 1080px; margin: auto; } .spectrum-Site-hero { max-width: 75%; margin: auto; } .spectrum-Site-heroHeading { margin-bottom: 16px; } .spectrum-Site-heroImage { margin-top: 40px; margin-bottom: 80px; max-width: 100%; } .spectrum-Site-footer { display: -ms-flexbox; display: flex; -ms-flex-direction: row; flex-direction: row; -ms-flex-pack: justify; justify-content: space-between; } .spectrum-Site-overlay { display: none; visibility: hidden; opacity: 0; pointer-events: none; position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 99; overflow: hidden; } @media screen and (max-width: 960px) { .spectrum-Site-overlay { display: block; transition: opacity 160ms ease-out 0ms, visibility 0ms linear 160ms; } .spectrum-Site-overlay.is-open { visibility: visible; opacity: 1; pointer-events: auto; transition: opacity 160ms ease-in 0ms; } .spectrum-Site-overlay { visibility: visible; } .spectrum-Site-sideBar { position: fixed; top: 0; bottom: 0; right: 100%; z-index: 100; transform: translateX(0); transition: transform 160ms ease-in-out; } .spectrum-Site-sideBar.is-open { transform: translateX(100%); } .spectrum-Site-header { display: block; } .spectrum-Site-page { padding-left: 24px; padding-right: 24px; } .spectrum-Site-hero { max-width: 100%; } .spectrum-Site-heroHeading h1.spectrum-Heading1--display { font-size: 36px; } } .spectrum-CSSComponent { max-width: 1080px; margin: 40px auto; padding: 0 56px; } .spectrum-CSSComponent-heading { margin-bottom: 40px; display: -ms-flexbox; display: flex; -ms-flex-direction: row; flex-direction: row; -ms-flex-align: center; align-items: center; -ms-flex-pack: justify; justify-content: space-between; } .spectrum-CSSComponent-link { display: -ms-flexbox; display: flex; -ms-flex-align: center; align-items: center; color: inherit; text-decoration: none; outline: none; } .spectrum-CSSComponent-link.focus-ring, .spectrum-CSSComponent-link:hover { text-decoration: underline; } .spectrum-CSSComponent-statusContainer { -ms-flex-item-align: center; -ms-grid-row-align: center; align-self: center; -ms-flex-positive: 1; flex-grow: 1; vertical-align: bottom; margin: 0 16px; } .spectrum-CSSComponent-detailsTable th { text-align: left; height: 28px; font-weight: 400; padding-right: 24px; } .spectrum-CSSComponent-detailsTable { border-spacing: 0; margin-top: 40px; margin-bottom: 36px; } .spectrum-CSSComponent-sectionHeading { margin-top: 56px; margin-bottom: 40px; } .spectrum-CSSExample-status, .spectrum-CSSComponent-status { padding: 0 !important; min-height: 0 !important; } .spectrum-CSSComponent-status::before { margin-left: 0 !important; } .spectrum-CSSExample-status { margin-left: 16px; } .spectrum-CSSComponent-version { -ms-flex-positive: 1; flex-grow: 1; text-align: right; } .spectrum-CSSComponent-description { margin-top: 24px; margin-bottom: 72px; } .spectrum-CSSComponent-resources { display: -ms-flexbox; display: flex; -ms-flex-wrap: wrap; flex-wrap: wrap; -ms-flex-direction: row; flex-direction: row; margin-bottom: 56px; } .spectrum-CSSComponent-resources .spectrum-Card { margin-right: 24px; margin-bottom: 24px; } .spectrum-CSSComponent-resource--adobe { color: rgb(255, 2, 1) !important; background-color: rgba(255, 2, 1, 0.1) !important; } .spectrum-CSSComponent-resource--github { background-color: rgba(0, 0, 0, 0.1) !important; color: black; } .spectrum--dark .spectrum-CSSComponent-resource--github, .spectrum--darkest .spectrum-CSSComponent-resource--github { background-color: rgba(245, 245, 245, 0.1) !important; color: rgb(245, 245, 245); } .spectrum-CSSComponent-resource--npm { background-color: rgba(203, 56, 55, 0.1) !important; } .spectrum-CSSComponent-cardImage { text-decoration: none; } .spectrum-CSSComponent-switcher { display: -ms-flexbox; display: flex; -ms-flex-direction: row; flex-direction: row; -ms-flex-wrap: wrap; flex-wrap: wrap; -ms-flex-pack: end; justify-content: flex-end; } .spectrum-CSS-switcherContainer { margin-left: 32px; white-space: nowrap; } .spectrum-CSSExample { margin-bottom: 64px; } .spectrum-CSSExample-container { position: relative; display: -ms-flexbox; display: flex; -ms-flex-direction: column; flex-direction: column; border-radius: 4px; } .spectrum-CSSExample-heading { display: -ms-flexbox; display: flex; -ms-flex-direction: row; flex-direction: row; -ms-flex-align: center; align-items: center; margin-bottom: 8px !important; } .spectrum-CSSExample-example, .spectrum-CSSExample-markup { box-sizing: border-box; } .spectrum-CSSExample-example { -ms-flex: 1 0 auto; flex: 1 0 auto; min-height: --spectrum-global-dimension-size-2400; padding: 32px 40px; border-radius: 4px 4px 0 0; } .spectrum-CSSExample-markup { position: relative; max-width: 100%; max-height: 192px; padding: 10px 18px; border-radius: 0 0 4px 4px; font-size: 10px; overflow: hidden; } .spectrum-CSSExample-markup.is-open { max-height: 100%; padding-bottom: 56px; } .spectrum-CSSExample-markup.is-open .spectrum-CSSExample-markupToggle::before { display: none; } .spectrum-CSSExample-markupToggle + pre { padding-bottom: 8px; } .spectrum-CSSExample-example--overlay { position: relative; } .spectrum-Dialog.spectrum-CSSExample-dialog { position: relative !important; transform: none !important; margin-left: auto; margin-right: auto; left: 0; top: 0; z-index: 1; transition: none; } .spectrum-CSSExample-overlayShowButton { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); } .spectrum-CSSExample-markup pre code { white-space: pre-wrap; } .spectrum-CSSExample-markupToggle { position: absolute; z-index: 0; bottom: 0; left: 0; right: 0; box-sizing: border-box; padding: 24px 24px; font-size: 15px; text-align: left } @media screen and (max-width: 960px) { .spectrum-CSSComponent { padding: 0 20px; margin: 8px auto; } .spectrum-CSSComponent-description { margin-bottom: 12px; } .spectrum-CSSExample { margin-bottom: 16px; } .spectrum-CSSExample-example { padding: 16px 16px; } .spectrum-CSSComponent-header { margin-bottom: 12px; } .spectrum-CSSComponent-statusContainer, .spectrum-CSSComponent-version { display: none; } .spectrum-CSSComponent-title { font-size: 28px; } } .u-scrollable { overflow-x: hidden; overflow-y: auto; -webkit-overflow-scrolling: touch; } .u-scrollable::-webkit-scrollbar { width: 10px; height: 10px; } .u-scrollable::-webkit-scrollbar-thumb { border-radius: 8px; width: 8px; height: 8px; border: 2px solid rgba(0, 0, 0, 0); background-clip: padding-box; }