UNPKG

webwriter-chart

Version:

ww-chart is an interactive data visualization widget for the WebWriter tool that implements various charts and diagrams for static and exploratory data visualization.

169 lines (148 loc) 2.94 kB
import { css } from "lit"; export default css` #main { outline: 1px solid lightgray; } .logo { height: 6em; padding: 1.5em; will-change: filter; transition: filter 300ms; } .logo:hover { filter: drop-shadow(0 0 2em #646cffaa); } .logo.lit:hover { filter: drop-shadow(0 0 2em #325cffaa); } .card { padding: 2em; } .read-the-docs { color: #888; } h1 { font-size: 3.2em; line-height: 1.1; } a { font-weight: 500; color: #646cff; text-decoration: inherit; } a:hover { color: #535bf2; } button { border-radius: 1px; border: 1px solid transparent; padding: 0.6em 1.2em; font-size: 1em; font-weight: 500; font-family: inherit; background-color: #1a1a1a; cursor: pointer; transition: border-color 0.25s; } sl-button { --sl-button-font-size-medium: 1em; --sl-button-height-medium: 2.5em; --sl-button-border-radius-medium: 1px; } button:hover { border-color: #646cff; } button:focus, button:focus-visible { outline: 4px auto -webkit-focus-ring-color; } @media (prefers-color-scheme: light) { a:hover { color: #747bff; } button { background-color: #f9f9f9; } } div { margin: 0; padding: 0; box-sizing: border-box; } #button-group { flex: 0 0 auto; display: flex; flex-direction: row; gap: 1em; } #main { height: 32rem; width: 100%; display: flex; flex-direction: column; } :host(.ww-printable) #main { height: auto; } :host(.ww-printable) #settings, :host(.ww-printable) sl-tab-group { display: none; } #main > * { padding: 10px; box-sizing: border-box; } #display-chart { flex: 1 0 0; position: relative; display: flex; } #data-panel { flex: 1; padding: 0 0.5em; background-color: #eaeaea; width: 100%; overflow: auto; } #settings { color: var(--sl-color-gray-600); font-size: var(--sl-font-size-medium); line-height: var(--sl-line-height-medium); font-weight: 400; overflow: overlay; padding-top: 0px !important; width: 100%; box-sizing: content-box; padding-left: 10px; } #settings-wrapper { display: flex; flex-direction: column; gap: 0.25em; } #settings-panel { background-color: white; overflow: hidden; display: flex; padding: 3px; padding-top: 0; flex-direction: column; align-items: left; gap: 16px; margin-bottom: 16px; box-sizing: border-box; } #settings h2 { font-size: var(--sl-button-font-size-medium); line-height: calc( var(--sl-input-height-medium) - var(--sl-input-border-width) * 2 ); font-weight: 500; position: sticky; top: 0; background: #f4f4f4; z-index: 1; border-bottom: 2px solid var(--sl-color-gray-600); color: darkblue; } `;