mirror of
https://github.com/shoelace-style/webawesome.git
synced 2026-01-12 20:19:13 +00:00
* Basic scaffolding * Generate theme & palette data.js that other JS can import * Make it possible to include page-card without links * WIP * Add `appearance` to details, closes #569 Except `accent` as that's a) far less useful and b) trickier due to the icon color * Fix broken link * WIP * WIP * Icons icon * Unify styles for interactive cards * Prevent focusing inside theme icons * Fixes * Action page cards * Panel scrollables * scrollable * Scroll shadows * Add renaming UI * UI * Move styling of heading icons to `ui.css` * Support permalinks & CRUD * Make clickable cards more accessible * Style cards a little better * Default to styles panel if theme is selected * Update theme-icons.css * Custom themes should be saved under Custom * Get theme code * Bigger title * Fixes * Use theme Vue app for remixing too * Fix preview jank and make preview script more flexible * Make radio groups scrollable * Add affordance to button cards * Sticky * `<color-select>` * Fix theme remixing * Improve previewing logic * Fix preview * Move `domChange()` to separate module `theme-picker.js` includes side-effects, which may not always be desirable everywhere we may want to import `domChange()` * Update preview.js * Panel animation * Hide Save button if no changes and not saved * Do not show blank code when no selection has been made * Use theme slug in filename * Remove unused component * Better UI for editing title (and any other text) * Tweak UI of renaming * Better indicate default selection * Fix preview reverting bug * Fill out app preview with more examples * Remove `zoom` from theme showcase (yields unexpected/painful results Safari), improve display in wider viewports * Pending delete * Make styles panel cards scrollable * Fix some of the Safari issues * Update search.css * Update panel.css * Select preview UI * Fix typo * Frame colors setting as color contrast * Show dark mode in color mappings * Brand color * Swatch styling * Fix caret icon * Move Starting theme to the same level as other controls * Rename typography to Fonts * Fix bug: Swatch select should show swatches from the selected palette * Move capitalize to shared utils * Add utils for handling nested objects * Icons panel * Update code.js * Move utils around * Add fit and finish to sidebar panels * Theme card: Move icons to separate data structure * Move data to dedicated folder since we now have a lot more of it * Add default icon families and variants to themes * Data * Add `deepEntries()` * Add Duotone * Spruce up icons preview * Use theme's icon family in showcase * Font cards * Font cards * Add `max-inline-size` to preview container * Remove alternate preview options * Remove theme subtitle * Support FA kit codes * Remove Pro badges from theme cards * Use panagram preview for Fonts * Consistent heading and label capitalization * Classes for different icons-card types * Update data.js.njk * Variable style on icon family cards * Fix Sharp Duotone * Clean up FA kit code hint * Hide non-functional Icon Library field * Fix theme icon heights * icon variant -> style in theme metadata * Fix bug with icons defaults not being shown * More convenient theme defaults * Fix bug with non updating URL * Fix bug * Fix multiplying badges * Custom docs pages * Add Duotone icons to Mellow theme * Fix 404 * Remove "Create" from sidebar * Fix bug * Move vue components to `/assets/`, move their CSS with them * Safari/FF compatibility * Make panels scrollable again * Fix extra spacing --------- Co-authored-by: lindsaym-fa <dev@lindsaym.design>
767 lines
15 KiB
CSS
767 lines
15 KiB
CSS
@import 'code-highlighter.css';
|
|
@import 'copy-code.css';
|
|
@import 'outline.css';
|
|
@import 'search.css';
|
|
@import 'cera_typeface.css';
|
|
@import 'theme-icons.css';
|
|
|
|
:root {
|
|
--wa-brand-orange: #f36944;
|
|
--wa-brand-grey: #30323b;
|
|
}
|
|
|
|
.wa-dark .only-light,
|
|
.only-dark:not(.wa-dark, .wa-dark *) {
|
|
display: none;
|
|
}
|
|
|
|
wa-page {
|
|
--wa-flow-spacing: var(--wa-space-xl);
|
|
}
|
|
|
|
/* Header */
|
|
wa-page::part(header) {
|
|
background-color: var(--wa-color-surface-default);
|
|
border-bottom: var(--wa-border-style) var(--wa-panel-border-width) var(--wa-color-surface-border);
|
|
}
|
|
|
|
wa-page::part(body) {
|
|
padding-top: 0px;
|
|
}
|
|
|
|
wa-page::part(header-actions) {
|
|
align-self: center;
|
|
}
|
|
|
|
wa-page > header {
|
|
padding-inline: var(--wa-space-xl);
|
|
|
|
a[href='/'] {
|
|
color: var(--wa-color-text-normal);
|
|
line-height: 1;
|
|
}
|
|
|
|
wa-button[data-toggle-nav] {
|
|
--text-color: currentColor;
|
|
font-size: 1rem;
|
|
margin-inline-start: -0.875rem;
|
|
margin-inline-end: 0;
|
|
|
|
&::part(base) {
|
|
padding: 0;
|
|
padding-inline: 0.875rem;
|
|
}
|
|
}
|
|
|
|
svg {
|
|
width: auto;
|
|
height: 1.75rem;
|
|
}
|
|
|
|
#docs-branding,
|
|
#docs-toolbar {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: var(--wa-space-xs);
|
|
}
|
|
|
|
#version-number {
|
|
color: var(--wa-color-text-quiet);
|
|
font-size: var(--wa-font-size-xs);
|
|
line-height: 1;
|
|
margin-block-start: var(--wa-space-2xs);
|
|
}
|
|
#version-number + wa-badge {
|
|
font-size: var(--wa-font-size-2xs);
|
|
text-transform: uppercase;
|
|
}
|
|
wa-button#search-trigger {
|
|
--background-color: var(--wa-form-control-background-color);
|
|
--border-color: var(--wa-form-control-border-color);
|
|
}
|
|
#search-trigger kbd {
|
|
font-size: var(--wa-font-size-2xs);
|
|
line-height: var(--wa-form-control-value-line-height);
|
|
}
|
|
}
|
|
|
|
#sidebar,
|
|
#outline {
|
|
h2 {
|
|
font-size: var(--wa-font-size-m);
|
|
margin: 0;
|
|
}
|
|
|
|
h2:not(:first-child),
|
|
wa-details:not(:first-child) {
|
|
margin-block-start: var(--wa-space-xs);
|
|
}
|
|
|
|
wa-details {
|
|
border: none;
|
|
background: none;
|
|
padding: 0;
|
|
}
|
|
|
|
ul {
|
|
border-inline-start: var(--wa-border-width-s) solid var(--wa-color-surface-border);
|
|
font-size: var(--wa-font-size-s);
|
|
line-height: var(--wa-line-height-condensed);
|
|
margin: 0;
|
|
padding-inline-start: var(--wa-space-m);
|
|
}
|
|
|
|
ul ul {
|
|
margin-block-start: var(--wa-space-m);
|
|
}
|
|
|
|
ul:empty {
|
|
display: none;
|
|
}
|
|
|
|
li {
|
|
list-style: none;
|
|
|
|
+ li {
|
|
margin-block-start: var(--wa-space-m);
|
|
}
|
|
}
|
|
|
|
li a {
|
|
color: var(--wa-color-text-normal);
|
|
text-decoration: none;
|
|
|
|
&:hover {
|
|
text-decoration: underline;
|
|
}
|
|
}
|
|
|
|
li wa-badge::part(base) {
|
|
font-size: var(--wa-font-size-2xs);
|
|
font-weight: var(--wa-font-weight-bold);
|
|
}
|
|
|
|
li wa-icon {
|
|
color: var(--wa-color-text-quiet);
|
|
vertical-align: middle;
|
|
|
|
&[name='flask'] {
|
|
margin-inline: 0.125em;
|
|
}
|
|
}
|
|
}
|
|
|
|
#outline-standard h2 {
|
|
margin-block-end: var(--wa-space-m);
|
|
}
|
|
|
|
/* Pro badges */
|
|
wa-badge.pro {
|
|
background-color: var(--wa-brand-orange);
|
|
border-color: var(--wa-brand-orange);
|
|
}
|
|
|
|
#sidebar {
|
|
h2 {
|
|
color: var(--wa-color-text-quiet);
|
|
|
|
a {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.4em;
|
|
color: var(--wa-color-text-normal);
|
|
text-decoration: none;
|
|
|
|
wa-icon {
|
|
margin-block-end: -0.15em;
|
|
font-size: var(--wa-font-size-s);
|
|
font-weight: var(--wa-font-weight-action);
|
|
color: var(--wa-color-gray-70);
|
|
}
|
|
|
|
&:hover {
|
|
color: var(--wa-color-brand-on-normal);
|
|
|
|
wa-icon {
|
|
color: var(--wa-color-brand-on-quiet);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
wa-icon-button.delete {
|
|
vertical-align: -0.2em;
|
|
margin-inline-start: var(--wa-space-xs);
|
|
|
|
&:not(li:hover > *, :focus) {
|
|
opacity: 0;
|
|
}
|
|
}
|
|
}
|
|
|
|
wa-icon-button.delete {
|
|
&:hover {
|
|
color: var(--wa-color-danger-on-quiet);
|
|
}
|
|
|
|
&::part(base):hover {
|
|
background: var(--wa-color-danger-fill-quiet);
|
|
}
|
|
|
|
&:not(:hover, :focus) {
|
|
opacity: 0.5;
|
|
}
|
|
}
|
|
|
|
#sidebar-close-button {
|
|
display: none;
|
|
}
|
|
|
|
@media screen and (max-width: 768px) {
|
|
#sidebar-close-button {
|
|
display: inline-block;
|
|
position: absolute;
|
|
top: 1rem;
|
|
right: 1rem;
|
|
}
|
|
}
|
|
|
|
#sidebar nav {
|
|
padding-bottom: 1rem;
|
|
}
|
|
|
|
wa-page::part(menu) {
|
|
scrollbar-width: thin;
|
|
}
|
|
|
|
wa-page[view='mobile'] :is([slot='navigation-header'], [slot='navigation']) {
|
|
padding: 0;
|
|
|
|
& wa-details::part(icon) {
|
|
padding-inline: var(--wa-space-xs); /* aligns details icons with drawer close icon */
|
|
}
|
|
}
|
|
|
|
[slot='navigation-header'] wa-menu {
|
|
font-family: var(--wa-font-family-body);
|
|
font-size: var(--wa-font-size-m);
|
|
font-weight: var(--wa-font-weight-normal);
|
|
}
|
|
|
|
/* Main content */
|
|
wa-page > main {
|
|
max-width: 80ch;
|
|
padding: var(--wa-space-xl);
|
|
margin-inline: auto;
|
|
}
|
|
|
|
h1.title {
|
|
wa-badge {
|
|
vertical-align: middle;
|
|
font-size: 1.5rem;
|
|
}
|
|
}
|
|
|
|
.block-info {
|
|
display: flex;
|
|
gap: var(--wa-space-xs);
|
|
flex-wrap: wrap;
|
|
align-items: center;
|
|
margin-block-end: var(--wa-flow-spacing);
|
|
|
|
code {
|
|
line-height: var(--wa-line-height-condensed);
|
|
}
|
|
}
|
|
|
|
/* Current link */
|
|
#sidebar,
|
|
#outline {
|
|
.current {
|
|
font-weight: var(--wa-font-weight-bold);
|
|
text-decoration-style: solid;
|
|
}
|
|
}
|
|
|
|
/* Anchor headings */
|
|
.anchor-heading a {
|
|
visibility: hidden;
|
|
text-decoration: none;
|
|
}
|
|
|
|
@media (hover: hover) {
|
|
.anchor-heading:hover a {
|
|
visibility: visible;
|
|
padding: 0 0.125em;
|
|
}
|
|
}
|
|
|
|
/* Callouts */
|
|
.callout {
|
|
display: flex;
|
|
gap: 1rem;
|
|
border: var(--wa-border-style) var(--wa-border-width-s);
|
|
border-radius: var(--wa-border-radius-l);
|
|
padding: 1rem;
|
|
margin-block-end: var(--wa-flow-spacing);
|
|
|
|
:first-child {
|
|
margin-block-start: 0;
|
|
}
|
|
|
|
:last-child {
|
|
margin-block-end: 0;
|
|
}
|
|
}
|
|
|
|
.callout-icon {
|
|
flex: 0 0 auto;
|
|
font-size: 1.5rem;
|
|
}
|
|
|
|
.callout-content {
|
|
flex: 1 1 auto;
|
|
}
|
|
|
|
.callout-info {
|
|
background-color: var(--wa-color-brand-fill-quiet);
|
|
border-color: var(--wa-color-brand-border-quiet);
|
|
|
|
.callout-icon {
|
|
color: var(--wa-color-brand-on-normal);
|
|
}
|
|
|
|
code {
|
|
background-color: var(--wa-color-brand-fill-normal);
|
|
}
|
|
}
|
|
|
|
.callout-warning {
|
|
background-color: var(--wa-color-warning-fill-quiet);
|
|
border-color: var(--wa-color-warning-border-quiet);
|
|
|
|
.callout-icon {
|
|
color: var(--wa-color-warning-on-normal);
|
|
}
|
|
|
|
code {
|
|
background-color: var(--wa-color-warning-fill-normal);
|
|
}
|
|
}
|
|
|
|
/* Index Pages */
|
|
wa-page > main:has(> .index-grid) {
|
|
max-width: 120ch;
|
|
margin-inline: auto;
|
|
}
|
|
|
|
.index-summary {
|
|
max-inline-size: 80ch;
|
|
}
|
|
|
|
.index-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(4, 1fr);
|
|
gap: var(--wa-space-2xl);
|
|
margin-block-end: var(--wa-space-3xl);
|
|
|
|
@media screen and (max-width: 1470px) {
|
|
grid-template-columns: repeat(3, 1fr);
|
|
}
|
|
|
|
@media screen and (max-width: 960px) {
|
|
grid-template-columns: repeat(2, 1fr);
|
|
}
|
|
|
|
@media screen and (max-width: 500px) {
|
|
grid-template-columns: repeat(1, 1fr);
|
|
}
|
|
|
|
a {
|
|
border-radius: var(--wa-border-radius-l);
|
|
text-decoration: none;
|
|
}
|
|
|
|
wa-card {
|
|
--spacing: var(--wa-space-m);
|
|
|
|
[slot='header'] {
|
|
display: flex;
|
|
}
|
|
|
|
&::part(header) {
|
|
background-color: var(--header-background, var(--wa-color-neutral-fill-quiet));
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
min-block-size: calc(6rem + var(--spacing));
|
|
}
|
|
}
|
|
}
|
|
|
|
wa-card .page-name {
|
|
font-size: var(--wa-font-size-s);
|
|
font-weight: var(--wa-font-weight-action);
|
|
}
|
|
|
|
.index-category {
|
|
grid-column: 1 / -1;
|
|
margin-block-end: 0;
|
|
margin-block-start: var(--wa-space-2xl);
|
|
}
|
|
|
|
/* Interactive cards */
|
|
wa-card[role='button'][tabindex='0'],
|
|
button,
|
|
a[href],
|
|
wa-option,
|
|
wa-radio,
|
|
wa-checkbox {
|
|
/* Disabled state */
|
|
&:is(:disabled, [disabled], [aria-disabled='true']) {
|
|
&:is(wa-card, :has(> wa-card)) {
|
|
opacity: 60%;
|
|
cursor: not-allowed;
|
|
}
|
|
}
|
|
|
|
&:where(:not(:disabled, [disabled], [aria-disabled='true'])) {
|
|
&:has(> wa-card) {
|
|
/* Parents only (not interactive <wa-card>) */
|
|
margin: calc(var(--wa-border-width-m) + 1px);
|
|
padding: 0;
|
|
|
|
/* Hover state */
|
|
&:hover,
|
|
&:state(hover),
|
|
&:state(current) {
|
|
/* Do not change the parent background as a hover effect (we style the card instead) */
|
|
background: transparent !important;
|
|
}
|
|
|
|
&::part(control),
|
|
&:is(wa-option)::part(checked-icon) {
|
|
--background-color-checked: var(--wa-color-brand-fill-loud);
|
|
--checked-icon-scale: 0.5;
|
|
--offset: var(--wa-space-2xs);
|
|
|
|
position: absolute;
|
|
inset: calc(var(--offset) + var(--wa-border-width-m));
|
|
inset-block-end: auto;
|
|
inset-inline-start: auto;
|
|
z-index: 1;
|
|
margin: 0;
|
|
background: var(--wa-color-brand-fill-loud);
|
|
color: var(--wa-color-brand-on-loud);
|
|
}
|
|
|
|
&::part(checked-icon) {
|
|
color: var(--wa-color-brand-on-loud);
|
|
}
|
|
|
|
&:is(wa-option)::part(checked-icon) {
|
|
inset-block-start: calc(var(--wa-space-smaller) - 0.5em);
|
|
inset-inline-end: calc(var(--wa-space-smaller) - 0.5em);
|
|
width: 1em;
|
|
height: 1em;
|
|
line-height: 1em;
|
|
padding: 0.4em;
|
|
border-radius: var(--wa-border-radius-circle);
|
|
text-align: center;
|
|
font-size: var(--wa-font-size-xs);
|
|
}
|
|
}
|
|
|
|
/* Hover state */
|
|
&:hover,
|
|
&:state(hover),
|
|
&:state(current) {
|
|
&:is(wa-card),
|
|
> wa-card {
|
|
--border-color: var(--wa-color-brand-border-loud);
|
|
border-color: var(--border-color);
|
|
box-shadow: 0 0 0 var(--wa-border-width-s) var(--border-color);
|
|
}
|
|
}
|
|
|
|
&:is(wa-card, :has(> wa-card)) {
|
|
/* Interactive card parent */
|
|
position: relative;
|
|
cursor: pointer;
|
|
|
|
/* Unselected state */
|
|
&:where(:not(:state(checked), :state(selected), [aria-checked='true'], [aria-selected='true'])) {
|
|
&::part(checked-icon),
|
|
&::part(control) {
|
|
display: none;
|
|
}
|
|
}
|
|
}
|
|
|
|
&:is(wa-card),
|
|
> wa-card {
|
|
/* The card itself */
|
|
box-shadow: none;
|
|
}
|
|
}
|
|
}
|
|
|
|
/* Selected cards */
|
|
:state(selected),
|
|
:state(checked),
|
|
[aria-checked='true'],
|
|
[aria-selected='true'] {
|
|
&:is(wa-card, :has(> wa-card)) {
|
|
background: transparent;
|
|
}
|
|
|
|
&:is(wa-card),
|
|
> wa-card {
|
|
--border-color: var(--wa-color-brand-border-loud);
|
|
box-shadow: 0 0 0 var(--wa-border-width-m) var(--border-color);
|
|
|
|
&::part(body) {
|
|
background: var(--wa-color-brand-fill-quiet);
|
|
}
|
|
}
|
|
}
|
|
|
|
wa-select:has(> wa-option > wa-card) {
|
|
&::part(listbox) {
|
|
--column-width: 1fr;
|
|
--columns: 1;
|
|
--gap: var(--wa-space-smaller);
|
|
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fill, minmax(var(--column-width), 1fr));
|
|
width: calc(var(--columns) * var(--column-width) + (var(--columns) - 1) * var(--gap) + 2 * var(--wa-space));
|
|
max-width: var(--auto-size-available-width, 90vw);
|
|
gap: var(--gap);
|
|
padding: var(--wa-space-smaller) var(--wa-space);
|
|
}
|
|
|
|
> wa-option > wa-card {
|
|
--spacing: var(--wa-space-s);
|
|
}
|
|
}
|
|
|
|
wa-radio:has(> wa-card) {
|
|
grid-template-columns: 1fr;
|
|
width: auto;
|
|
}
|
|
|
|
/* Swatches */
|
|
.swatch {
|
|
position: relative;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
background-color: transparent;
|
|
border-color: var(--wa-color-neutral-border-normal);
|
|
border-style: var(--wa-border-style);
|
|
border-width: var(--wa-border-width-s);
|
|
border-radius: var(--wa-border-radius-m);
|
|
box-sizing: border-box;
|
|
min-height: 2.5em;
|
|
padding: var(--wa-space-xs);
|
|
font-weight: var(--wa-font-weight-semibold);
|
|
line-height: var(--wa-line-height-condensed);
|
|
|
|
&.color {
|
|
border-color: transparent;
|
|
transition: background var(--wa-transition-slow);
|
|
background: linear-gradient(var(--color-2, transparent) 0% 100%) no-repeat border-box var(--color,);
|
|
background-position: var(--color-2-position, bottom);
|
|
background-size: var(--color-2-width, 100%) var(--color-2-height, 50%);
|
|
|
|
&.contrast-fail {
|
|
outline: 1px dashed var(--wa-color-red);
|
|
outline-offset: calc(-1 * var(--wa-space-2xs));
|
|
}
|
|
}
|
|
|
|
> wa-copy-button {
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
width: 100%;
|
|
height: 100%;
|
|
display: block;
|
|
--background-color-hover: transparent;
|
|
font-family: var(--wa-font-family-code);
|
|
|
|
&::part(button) {
|
|
display: block;
|
|
height: 100%;
|
|
width: 100%;
|
|
}
|
|
|
|
&::part(button):hover {
|
|
cursor: copy;
|
|
}
|
|
|
|
&::part(copy-icon),
|
|
&::part(success-icon),
|
|
&::part(error-icon) {
|
|
opacity: 0 !important;
|
|
}
|
|
}
|
|
}
|
|
|
|
table.colors {
|
|
thead {
|
|
th {
|
|
text-align: center;
|
|
padding-block: 0;
|
|
}
|
|
}
|
|
|
|
tbody {
|
|
tr {
|
|
border: none;
|
|
&:hover {
|
|
background: transparent;
|
|
}
|
|
}
|
|
|
|
th {
|
|
width: 0;
|
|
vertical-align: middle;
|
|
text-align: right;
|
|
}
|
|
|
|
td {
|
|
padding-inline: var(--wa-space-3xs);
|
|
padding-block: var(--wa-space-s);
|
|
}
|
|
}
|
|
|
|
.core-column {
|
|
padding-inline-end: var(--wa-space-xl);
|
|
}
|
|
}
|
|
|
|
.value-up,
|
|
.value-down {
|
|
position: relative;
|
|
|
|
&::after {
|
|
content: ' ' var(--icon);
|
|
position: absolute;
|
|
margin-inline-start: 3em;
|
|
scale: 1 0.6;
|
|
color: color-mix(in oklch, oklch(from var(--icon-color) none c h) 0%, oklch(from currentColor l none none));
|
|
font-size: 90%;
|
|
}
|
|
}
|
|
|
|
.value-down {
|
|
--icon: '▼';
|
|
--icon-color: var(--wa-color-danger-fill-quiet);
|
|
|
|
&::after {
|
|
margin-block-end: -0.2em;
|
|
}
|
|
}
|
|
|
|
.value-up {
|
|
--icon: '▲';
|
|
--icon-color: var(--wa-color-success-fill-quiet);
|
|
}
|
|
|
|
.icon-modifier {
|
|
position: relative;
|
|
display: inline-flex;
|
|
|
|
.modifier {
|
|
position: absolute;
|
|
bottom: -0.1em;
|
|
right: -0.3em;
|
|
font-size: 60%;
|
|
|
|
&::part(svg) {
|
|
stroke: var(--background-color, var(--wa-color-surface-default));
|
|
stroke-width: 100px;
|
|
paint-order: stroke;
|
|
overflow: visible;
|
|
stroke-linecap: round;
|
|
stroke-linejoin: round;
|
|
}
|
|
}
|
|
}
|
|
|
|
/* Layout Examples */
|
|
.layout-example-boundary {
|
|
border: var(--wa-border-width-s) dashed var(--wa-color-neutral-border-normal);
|
|
border-radius: var(--wa-border-radius-l);
|
|
padding: var(--wa-space-s);
|
|
}
|
|
|
|
.layout-example-block {
|
|
background-color: var(--wa-color-indigo-60);
|
|
border-radius: var(--wa-border-radius-m);
|
|
min-block-size: 4rem;
|
|
min-inline-size: 4rem;
|
|
}
|
|
|
|
.layout-example-mixed-sizing .layout-example-block:nth-child(3n) {
|
|
min-inline-size: 6rem;
|
|
}
|
|
.layout-example-mixed-sizing .layout-example-block:nth-child(3n + 2) {
|
|
min-inline-size: 8rem;
|
|
}
|
|
|
|
/* Utilities */
|
|
.two-columns {
|
|
columns: 2;
|
|
gap: 1rem;
|
|
}
|
|
|
|
.component-table td > * + * {
|
|
margin-block-start: var(--wa-space-s);
|
|
}
|
|
|
|
.table-scroll {
|
|
overflow-x: auto;
|
|
margin-block-end: var(--wa-flow-spacing);
|
|
}
|
|
|
|
/** desktop */
|
|
@media screen and not (max-width: 768px) {
|
|
/* Navigation sidebar */
|
|
wa-page::part(navigation) {
|
|
border-right: var(--wa-border-style) var(--wa-panel-border-width) var(--wa-color-surface-border);
|
|
}
|
|
|
|
wa-page > #sidebar {
|
|
overflow: auto;
|
|
max-height: 100%;
|
|
min-width: 300px;
|
|
padding: var(--wa-space-xl);
|
|
max-width: 300px;
|
|
}
|
|
|
|
wa-page > main {
|
|
padding: var(--wa-space-3xl);
|
|
}
|
|
}
|
|
|
|
.page-wide {
|
|
wa-page > main {
|
|
max-width: 140ch;
|
|
|
|
.max-line-length {
|
|
max-width: 80ch;
|
|
}
|
|
}
|
|
}
|
|
|
|
.layout-theme {
|
|
iframe {
|
|
width: 100%;
|
|
min-height: 16lh;
|
|
height: 65vh;
|
|
max-height: 21lh;
|
|
}
|
|
}
|