UNPKG

rapidoc

Version:

RapiDoc - Open API spec viewer with built in console

76 lines (68 loc) 1.56 kB
import { css } from 'lit'; export default css` *, *:before, *:after { box-sizing: border-box; } .dialog-box-overlay { background-color: var(--overlay-bg); position: fixed; left: 0; top: 0; width: 100vw; height: 100vh; overflow: hidden; z-index: var(--dialog-z-index); } .dialog-box { position: fixed; top: 100px; left: 50%; transform: translate(-50%, 0%); display: flex; flex-direction: column; width: 70vw; background-color: var(--bg2); color: var(--fg2); border-radius: 4px; max-height: 500px; overflow: hidden; border: 1px solid var(--border-color); box-shadow: 0 14px 28px rgba(0,0,0,0.25), 0 10px 10px rgba(0,0,0,0.22); } .dialog-box-header { position: sticky; top: 0; align-self: stretch; display: flex; align-items: center; padding: 0px 16px; min-height: 60px; max-height: 60px; border-bottom: 1px solid var(--light-border-color); overflow: hidden; } .dialog-box-header button { font-size: 1.5rem; font-weight: 700; line-height: 1; color: var(--fg); border: none; outline: none; background-color: transparent; cursor:pointer; border: 1px solid transparent; border-radius: 50%; margin-right: -8px; } .dialog-box-header button:hover { border-color: var(--primary-color); } .dialog-box-content { padding: 16px; display:block; overflow: auto; height: 100%; } .dialog-box-title { flex-grow: 1; font-size:24px; } `;