mirror of
https://github.com/shoelace-style/webawesome.git
synced 2026-01-12 04:09:12 +00:00
* move print styles * begin native styles split * unsplit button styles 😓 * unsplit callout; remove .wa-callout * merge forms * remove unused * remove unused * unsplit checkbox * remove old astro config * remove overflow * unsplit slider * fix tooltip position in RTL * unsplit radio * move required light DOM styles to <wa-page> * remove unused file * remove unused import * remove * goodbye * fix examples * unsplit dialog * unsplit select * remove select * unsplit input * unsplit details * update * update comment * update textarea * combine native docs; improvements * update * reorg and fix headings * fix details summary padding; fixes #684 * update * fix native details summary padding; fixes #684 * #684 * remove passthrough style nonsense * it's CSS not JS * fix details in sidebar * add spacing in native buttons for icons * whitespace * update docs * remove button group util * remove shadow folder, add component folder * layerize * default border radius * remove color contrast script from dist * add term * layerize themes + color folders * reorder * remove radio button; #504 * remove visual tests * remove visual tests * remove unused stylesheet * make search smarter * add radio styles * Fix filled textareas * re-introduce visual tests (with adjustments) * fix button appearances * fix textarea focus styles * re-introduce appearance classes * remove 'native styles' note from component pages * fix checked radio styles * touch up callout styles * remove errant `.wa-tag` * scope appearance classes to relevant elements * more visual test cases * fix details borders * minor visual tests reorg * add `--box-shadow` to buttons * fix Awesome theme * use same layer for all themes (allows unset properties to inherit from Default theme) * fix box-shadow in wa-textarea * set button box shadow to `initial` * fix Active theme * fix Brutalist theme * fix Glossy theme * fix Matter theme (mostly) * fix Playful theme * fix Premium theme * fix Shoelac theme * fix Tailspin theme * fix custom radio button styles * fix links to native styles doc --------- Co-authored-by: lindsaym-fa <dev@lindsaym.design>
146 lines
2.9 KiB
CSS
146 lines
2.9 KiB
CSS
/* App UI, for themer, palette tweaking etc */
|
|
|
|
:root {
|
|
--fa-sliders-simple: '\f1de';
|
|
}
|
|
|
|
.title {
|
|
wa-icon-button {
|
|
font-size: var(--wa-font-size-l);
|
|
color: var(--wa-color-text-quiet);
|
|
|
|
&:not(:hover, :focus) {
|
|
opacity: 0.5;
|
|
}
|
|
}
|
|
}
|
|
|
|
.popup {
|
|
background: var(--wa-color-surface-default);
|
|
border: 1px solid var(--wa-color-surface-border);
|
|
padding: var(--wa-space-xl);
|
|
border-radius: var(--wa-border-radius-m);
|
|
max-height: 90dvh;
|
|
overflow: auto;
|
|
|
|
code {
|
|
white-space: nowrap;
|
|
}
|
|
}
|
|
|
|
.color-select {
|
|
&.default::part(display-input) {
|
|
opacity: 0.6;
|
|
font-style: italic;
|
|
}
|
|
|
|
> small {
|
|
margin-inline-start: var(--wa-space-xs);
|
|
padding-block: 0 var(--wa-space-xs);
|
|
}
|
|
|
|
&::part(combobox)::before,
|
|
wa-option::before {
|
|
content: '';
|
|
display: inline-block;
|
|
width: 1.2em;
|
|
aspect-ratio: 1;
|
|
margin-inline-end: var(--wa-space-xs);
|
|
flex: none;
|
|
border-radius: var(--wa-border-radius-m);
|
|
background: var(--color);
|
|
border: 1px solid var(--wa-color-surface-default);
|
|
}
|
|
|
|
wa-option {
|
|
white-space: nowrap;
|
|
|
|
&::before {
|
|
width: 1em;
|
|
margin-inline: var(--wa-space-xs);
|
|
}
|
|
|
|
&::part(checked-icon) {
|
|
order: 2;
|
|
}
|
|
}
|
|
|
|
.default-badge {
|
|
opacity: 0.6;
|
|
margin-inline-start: var(--wa-space-xs);
|
|
}
|
|
}
|
|
|
|
.swatch-select {
|
|
padding: 2px;
|
|
|
|
wa-radio {
|
|
--swatch-border-color: color-mix(in oklab, canvastext, transparent 80%);
|
|
|
|
&::part(base) {
|
|
/* a <button> */
|
|
width: 2em;
|
|
height: 2em;
|
|
padding: 0;
|
|
border-radius: var(--border-radius, var(--wa-border-radius-m));
|
|
background: var(--color);
|
|
background-clip: border-box;
|
|
border-color: var(--swatch-border-color);
|
|
}
|
|
}
|
|
|
|
&.swatch-shape-circle {
|
|
--border-radius: var(--wa-border-radius-circle);
|
|
}
|
|
|
|
wa-radio:is([checked], :state(checked)) {
|
|
--swatch-border-color: var(--wa-color-surface-default);
|
|
&::part(base) {
|
|
box-shadow:
|
|
inset 0 0 0 var(--indicator-width) var(--wa-color-surface-default),
|
|
0 0 0 calc(var(--indicator-width) + 1px) var(--indicator-color);
|
|
}
|
|
}
|
|
|
|
&::part(form-control-input) {
|
|
flex-wrap: wrap;
|
|
gap: var(--wa-space-xs);
|
|
}
|
|
}
|
|
|
|
/* Repeated to increase specificity */
|
|
.editable-text.editable-text {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: var(--wa-space-xs);
|
|
--edit-hint-color: oklab(from var(--wa-color-warning-fill-quiet) l a b / 50%);
|
|
|
|
> .text {
|
|
&:hover,
|
|
&:focus {
|
|
background-color: var(--edit-hint-color);
|
|
box-shadow: 0 0 0 var(--wa-space-2xs) var(--edit-hint-color);
|
|
color: inherit;
|
|
border-radius: calc(var(--wa-border-radius-m) - var(--wa-space-2xs));
|
|
}
|
|
}
|
|
|
|
> input {
|
|
font: inherit;
|
|
margin-block: calc(-1 * var(--wa-space-smaller));
|
|
field-sizing: content;
|
|
}
|
|
|
|
wa-icon-button {
|
|
font-size: 90%;
|
|
}
|
|
}
|
|
|
|
.info-tip-default-trigger {
|
|
color: var(--wa-color-text-quiet);
|
|
|
|
&:not(:hover, :focus) {
|
|
opacity: 65%;
|
|
}
|
|
}
|