mirror of
https://github.com/johndoe6345789/metabuilder.git
synced 2026-04-24 13:54:57 +00:00
819 lines
17 KiB
SCSS
819 lines
17 KiB
SCSS
/**
|
|
* Workflow Editor Module - Material Design 3
|
|
* Scoped styles for the visual workflow editor
|
|
*/
|
|
|
|
// Main layout
|
|
.editor {
|
|
display: flex;
|
|
flex-direction: column;
|
|
height: 100vh;
|
|
height: 100dvh; // Dynamic viewport height for mobile
|
|
background: var(--mat-sys-surface);
|
|
color: var(--mat-sys-on-surface);
|
|
overflow: hidden;
|
|
// Compensate for parent layout padding
|
|
margin: -24px;
|
|
width: calc(100% + 48px);
|
|
max-width: 100vw;
|
|
box-sizing: border-box;
|
|
|
|
@media (max-width: 768px) {
|
|
margin: -16px;
|
|
width: calc(100% + 32px);
|
|
}
|
|
|
|
@media (max-width: 480px) {
|
|
margin: -8px;
|
|
width: calc(100% + 16px);
|
|
}
|
|
}
|
|
|
|
// Top toolbar
|
|
.toolbar {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 12px;
|
|
padding: 8px 16px;
|
|
background: var(--mat-sys-surface-container);
|
|
border-bottom: 1px solid var(--mat-sys-outline-variant);
|
|
z-index: 100;
|
|
flex-wrap: wrap;
|
|
min-height: 56px;
|
|
|
|
@media (max-width: 768px) {
|
|
gap: 8px;
|
|
padding: 8px 12px;
|
|
}
|
|
|
|
@media (max-width: 480px) {
|
|
padding: 6px 8px;
|
|
}
|
|
}
|
|
|
|
.toolbarDivider {
|
|
width: 1px;
|
|
align-self: stretch;
|
|
background: var(--mat-sys-outline-variant);
|
|
margin: 4px 0;
|
|
}
|
|
|
|
.toolbarTitle {
|
|
font: var(--mat-sys-title-medium-font);
|
|
color: var(--mat-sys-on-surface);
|
|
margin: 0;
|
|
}
|
|
|
|
.toolbarMeta {
|
|
font: var(--mat-sys-body-small-font);
|
|
color: var(--mat-sys-on-surface-variant);
|
|
white-space: nowrap;
|
|
|
|
@media (max-width: 600px) {
|
|
display: none;
|
|
}
|
|
}
|
|
|
|
.toolbarSpacer {
|
|
flex: 1;
|
|
}
|
|
|
|
.zoomControls {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 4px;
|
|
|
|
@media (max-width: 480px) {
|
|
.zoomBadge {
|
|
display: none;
|
|
}
|
|
}
|
|
}
|
|
|
|
.zoomBadge {
|
|
min-width: 60px;
|
|
text-align: center;
|
|
padding: 4px 12px;
|
|
background: var(--mat-sys-surface-container-high);
|
|
border-radius: var(--mat-sys-corner-small);
|
|
font: var(--mat-sys-label-medium-font);
|
|
color: var(--mat-sys-on-surface);
|
|
}
|
|
|
|
// Main content area
|
|
.content {
|
|
display: flex;
|
|
flex: 1;
|
|
overflow: hidden;
|
|
}
|
|
|
|
// Canvas area
|
|
.canvasContainer {
|
|
flex: 1;
|
|
position: relative;
|
|
overflow: hidden;
|
|
background: var(--mat-sys-surface-container-lowest);
|
|
background-image: radial-gradient(
|
|
circle,
|
|
var(--mat-sys-outline-variant) 1px,
|
|
transparent 1px
|
|
);
|
|
background-size: 20px 20px;
|
|
}
|
|
|
|
.canvasTransform {
|
|
position: absolute;
|
|
transform-origin: 0 0;
|
|
}
|
|
|
|
.canvasSvg {
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
pointer-events: none;
|
|
overflow: visible;
|
|
}
|
|
|
|
// Empty state
|
|
.emptyState {
|
|
position: absolute;
|
|
top: 50%;
|
|
left: 50%;
|
|
transform: translate(-50%, -50%);
|
|
text-align: center;
|
|
pointer-events: none;
|
|
}
|
|
|
|
.emptyStateTitle {
|
|
font: var(--mat-sys-title-large-font);
|
|
color: var(--mat-sys-on-surface-variant);
|
|
margin: 0 0 8px;
|
|
}
|
|
|
|
.emptyStateText {
|
|
font: var(--mat-sys-body-medium-font);
|
|
color: var(--mat-sys-outline);
|
|
margin: 0;
|
|
}
|
|
|
|
// Node palette sidebar (right side)
|
|
.palette {
|
|
width: 280px;
|
|
max-width: 100%;
|
|
background: var(--mat-sys-surface-container);
|
|
border-left: 1px solid var(--mat-sys-outline-variant);
|
|
overflow: auto;
|
|
flex-shrink: 0;
|
|
|
|
@media (max-width: 900px) {
|
|
width: 240px;
|
|
}
|
|
|
|
@media (max-width: 768px) {
|
|
position: fixed;
|
|
right: 0;
|
|
top: 56px;
|
|
bottom: 0;
|
|
width: 280px;
|
|
z-index: 200;
|
|
transform: translateX(100%);
|
|
transition: transform 200ms ease;
|
|
box-shadow: var(--mat-sys-elevation-3);
|
|
|
|
&.paletteOpen {
|
|
transform: translateX(0);
|
|
}
|
|
}
|
|
}
|
|
|
|
.paletteHeader {
|
|
padding: 16px;
|
|
border-bottom: 1px solid var(--mat-sys-outline-variant);
|
|
}
|
|
|
|
.paletteTitle {
|
|
font: var(--mat-sys-title-small-font);
|
|
color: var(--mat-sys-on-surface);
|
|
margin: 0 0 4px;
|
|
}
|
|
|
|
.paletteSubtitle {
|
|
font: var(--mat-sys-body-small-font);
|
|
color: var(--mat-sys-on-surface-variant);
|
|
margin: 0;
|
|
}
|
|
|
|
// Category header
|
|
.categoryHeader {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
padding: 12px 16px;
|
|
cursor: pointer;
|
|
background: var(--mat-sys-surface-container-low);
|
|
border-bottom: 1px solid var(--mat-sys-outline-variant);
|
|
transition: background var(--mat-sys-motion-duration-short4) var(--mat-sys-motion-easing-standard);
|
|
|
|
&:hover {
|
|
background: var(--mat-sys-surface-container-high);
|
|
}
|
|
}
|
|
|
|
.categoryLabel {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
}
|
|
|
|
.categoryDot {
|
|
width: 8px;
|
|
height: 8px;
|
|
border-radius: 50%;
|
|
}
|
|
|
|
.categoryName {
|
|
font: var(--mat-sys-label-large-font);
|
|
color: var(--mat-sys-on-surface);
|
|
}
|
|
|
|
.categoryCount {
|
|
font: var(--mat-sys-label-small-font);
|
|
color: var(--mat-sys-on-surface-variant);
|
|
padding: 2px 8px;
|
|
background: var(--mat-sys-surface-container-highest);
|
|
border-radius: var(--mat-sys-corner-extra-small);
|
|
}
|
|
|
|
.categoryChevron {
|
|
color: var(--mat-sys-on-surface-variant);
|
|
transition: transform var(--mat-sys-motion-duration-short4) var(--mat-sys-motion-easing-standard);
|
|
|
|
&.expanded {
|
|
transform: rotate(180deg);
|
|
}
|
|
}
|
|
|
|
// Category content
|
|
.categoryContent {
|
|
padding: 8px 12px;
|
|
}
|
|
|
|
// Palette node item
|
|
.paletteNode {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 12px;
|
|
padding: 8px 12px;
|
|
margin-bottom: 4px;
|
|
border-radius: var(--mat-sys-corner-small);
|
|
cursor: grab;
|
|
background: transparent;
|
|
border: 1px solid transparent;
|
|
transition: all var(--mat-sys-motion-duration-short4) var(--mat-sys-motion-easing-standard);
|
|
|
|
&:hover {
|
|
background: var(--mat-sys-surface-container-highest);
|
|
border-color: var(--mat-sys-outline-variant);
|
|
}
|
|
|
|
&:active {
|
|
cursor: grabbing;
|
|
}
|
|
}
|
|
|
|
.paletteNodeIcon {
|
|
width: 32px;
|
|
height: 32px;
|
|
border-radius: var(--mat-sys-corner-small);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
flex-shrink: 0;
|
|
color: white;
|
|
}
|
|
|
|
.paletteNodeInfo {
|
|
min-width: 0;
|
|
flex: 1;
|
|
}
|
|
|
|
.paletteNodeName {
|
|
font: var(--mat-sys-label-large-font);
|
|
color: var(--mat-sys-on-surface);
|
|
margin: 0;
|
|
}
|
|
|
|
.paletteNodeDesc {
|
|
font: var(--mat-sys-body-small-font);
|
|
color: var(--mat-sys-on-surface-variant);
|
|
margin: 0;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
// Canvas node
|
|
.canvasNode {
|
|
position: absolute;
|
|
width: 200px;
|
|
min-height: 80px;
|
|
border-radius: var(--mat-sys-corner-medium);
|
|
background: var(--mat-sys-surface-container);
|
|
border: 2px solid var(--mat-sys-outline-variant);
|
|
box-shadow: var(--mat-sys-level1);
|
|
cursor: move;
|
|
overflow: visible;
|
|
transition: box-shadow var(--mat-sys-motion-duration-short4) var(--mat-sys-motion-easing-standard);
|
|
|
|
&.selected {
|
|
border-color: var(--mat-sys-primary);
|
|
box-shadow: var(--mat-sys-level2), 0 0 0 2px var(--mat-sys-primary-container);
|
|
z-index: 100;
|
|
}
|
|
|
|
&:hover:not(.selected) {
|
|
box-shadow: var(--mat-sys-level2);
|
|
}
|
|
}
|
|
|
|
.canvasNodeHeader {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
padding: 10px 12px;
|
|
border-bottom: 1px solid var(--mat-sys-outline-variant);
|
|
border-radius: var(--mat-sys-corner-medium) var(--mat-sys-corner-medium) 0 0;
|
|
color: white;
|
|
}
|
|
|
|
.canvasNodeTitle {
|
|
font: var(--mat-sys-label-large-font);
|
|
color: white;
|
|
flex: 1;
|
|
margin: 0;
|
|
}
|
|
|
|
.canvasNodeBody {
|
|
padding: 10px 12px;
|
|
}
|
|
|
|
.canvasNodeDesc {
|
|
font: var(--mat-sys-body-small-font);
|
|
color: var(--mat-sys-on-surface-variant);
|
|
margin: 0;
|
|
}
|
|
|
|
// Node ports
|
|
.inputPort,
|
|
.outputPort {
|
|
position: absolute;
|
|
width: 16px;
|
|
height: 16px;
|
|
border-radius: 50%;
|
|
cursor: crosshair;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
transition: transform var(--mat-sys-motion-duration-short4) var(--mat-sys-motion-easing-standard);
|
|
|
|
&:hover {
|
|
transform: scale(1.3);
|
|
}
|
|
}
|
|
|
|
.inputPort {
|
|
left: -8px;
|
|
background: var(--mat-sys-surface-container);
|
|
border: 2px solid var(--mat-sys-outline);
|
|
}
|
|
|
|
.outputPort {
|
|
right: -8px;
|
|
border: 2px solid currentColor;
|
|
}
|
|
|
|
// Properties dialog
|
|
.propertiesForm {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 16px;
|
|
}
|
|
|
|
.propertiesField {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 4px;
|
|
}
|
|
|
|
.propertiesLabel {
|
|
font: var(--mat-sys-label-medium-font);
|
|
color: var(--mat-sys-on-surface-variant);
|
|
}
|
|
|
|
.propertiesInput {
|
|
width: 100%;
|
|
padding: 12px 16px;
|
|
font: var(--mat-sys-body-large-font);
|
|
color: var(--mat-sys-on-surface);
|
|
background: var(--mat-sys-surface-container-highest);
|
|
border: 1px solid var(--mat-sys-outline);
|
|
border-radius: var(--mat-sys-corner-small);
|
|
box-sizing: border-box;
|
|
|
|
&:focus {
|
|
outline: none;
|
|
border-color: var(--mat-sys-primary);
|
|
box-shadow: 0 0 0 1px var(--mat-sys-primary);
|
|
}
|
|
}
|
|
|
|
.propertiesTextarea {
|
|
width: 100%;
|
|
padding: 12px 16px;
|
|
font: var(--mat-sys-body-medium-font);
|
|
font-family: monospace;
|
|
color: var(--mat-sys-on-surface);
|
|
background: var(--mat-sys-surface-container-highest);
|
|
border: 1px solid var(--mat-sys-outline);
|
|
border-radius: var(--mat-sys-corner-small);
|
|
box-sizing: border-box;
|
|
resize: vertical;
|
|
min-height: 120px;
|
|
|
|
&:focus {
|
|
outline: none;
|
|
border-color: var(--mat-sys-primary);
|
|
box-shadow: 0 0 0 1px var(--mat-sys-primary);
|
|
}
|
|
}
|
|
|
|
.propertiesMeta {
|
|
display: flex;
|
|
gap: 8px;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.propertiesChip {
|
|
font: var(--mat-sys-label-small-font);
|
|
color: var(--mat-sys-on-surface-variant);
|
|
padding: 4px 12px;
|
|
background: var(--mat-sys-surface-container-high);
|
|
border-radius: var(--mat-sys-corner-extra-small);
|
|
}
|
|
|
|
// =============================================================================
|
|
// Properties Dialog - Three Panel Layout
|
|
// =============================================================================
|
|
|
|
.propertiesDialogLayout {
|
|
display: grid;
|
|
grid-template-columns: 1fr 1.5fr 1fr;
|
|
gap: 16px;
|
|
min-height: 350px;
|
|
width: 100%;
|
|
max-width: 100%;
|
|
box-sizing: border-box;
|
|
|
|
// Tablet: stack center panel on top
|
|
@media (max-width: 900px) {
|
|
grid-template-columns: 1fr 1fr;
|
|
grid-template-rows: auto auto;
|
|
|
|
.propertiesPanelCenter {
|
|
grid-column: 1 / -1;
|
|
grid-row: 1;
|
|
}
|
|
}
|
|
|
|
// Mobile: single column
|
|
@media (max-width: 600px) {
|
|
grid-template-columns: 1fr;
|
|
gap: 12px;
|
|
min-height: auto;
|
|
}
|
|
}
|
|
|
|
.propertiesPanel {
|
|
display: flex;
|
|
flex-direction: column;
|
|
background: var(--mat-sys-surface-container);
|
|
border-radius: var(--mat-sys-corner-medium);
|
|
overflow: hidden;
|
|
}
|
|
|
|
.propertiesPanelCenter {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 16px;
|
|
}
|
|
|
|
.propertiesPanelHeader {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
padding: 12px 16px;
|
|
background: var(--mat-sys-surface-container-high);
|
|
border-bottom: 1px solid var(--mat-sys-outline-variant);
|
|
}
|
|
|
|
.propertiesPanelTitle {
|
|
display: flex;
|
|
align-items: center;
|
|
font: var(--mat-sys-label-large-font);
|
|
font-weight: 500;
|
|
color: var(--mat-sys-on-surface);
|
|
}
|
|
|
|
.propertiesPanelBadge {
|
|
font: var(--mat-sys-label-small-font);
|
|
color: var(--mat-sys-on-surface-variant);
|
|
padding: 2px 8px;
|
|
background: var(--mat-sys-surface-container-highest);
|
|
border-radius: var(--mat-sys-corner-full);
|
|
}
|
|
|
|
.propertiesPreview {
|
|
flex: 1;
|
|
margin: 0;
|
|
padding: 12px 16px;
|
|
font-family: 'JetBrains Mono', 'Fira Code', monospace;
|
|
font-size: 0.75rem;
|
|
line-height: 1.5;
|
|
color: var(--mat-sys-on-surface-variant);
|
|
background: transparent;
|
|
overflow: auto;
|
|
white-space: pre-wrap;
|
|
word-break: break-word;
|
|
}
|
|
|
|
.propertiesHint {
|
|
margin: 0;
|
|
padding: 8px 16px 12px;
|
|
font: var(--mat-sys-body-small-font);
|
|
color: var(--mat-sys-on-surface-variant);
|
|
font-style: italic;
|
|
}
|
|
|
|
// Tab Switcher
|
|
.propertiesTabs {
|
|
display: flex;
|
|
gap: 4px;
|
|
padding: 4px;
|
|
background: var(--mat-sys-surface-container);
|
|
border-radius: var(--mat-sys-corner-medium);
|
|
}
|
|
|
|
.propertiesTab {
|
|
flex: 1;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: 6px;
|
|
padding: 10px 16px;
|
|
font: var(--mat-sys-label-large-font);
|
|
color: var(--mat-sys-on-surface-variant);
|
|
background: transparent;
|
|
border: none;
|
|
border-radius: var(--mat-sys-corner-small);
|
|
cursor: pointer;
|
|
transition: all 100ms ease;
|
|
|
|
&:hover {
|
|
background: var(--mat-sys-surface-container-high);
|
|
}
|
|
}
|
|
|
|
.propertiesTabActive {
|
|
color: var(--mat-sys-on-primary-container);
|
|
background: var(--mat-sys-primary-container);
|
|
|
|
&:hover {
|
|
background: var(--mat-sys-primary-container);
|
|
}
|
|
}
|
|
|
|
// Checkbox field
|
|
.propertiesCheckbox {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
padding: 8px 0;
|
|
cursor: pointer;
|
|
|
|
input {
|
|
width: 18px;
|
|
height: 18px;
|
|
accent-color: var(--mat-sys-primary);
|
|
}
|
|
|
|
span {
|
|
font: var(--mat-sys-body-medium-font);
|
|
color: var(--mat-sys-on-surface);
|
|
}
|
|
}
|
|
|
|
// Node info section
|
|
.propertiesNodeInfo {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 8px;
|
|
padding: 12px;
|
|
background: var(--mat-sys-surface-container);
|
|
border-radius: var(--mat-sys-corner-small);
|
|
}
|
|
|
|
.propertiesInfoRow {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
font: var(--mat-sys-body-small-font);
|
|
|
|
span {
|
|
color: var(--mat-sys-on-surface-variant);
|
|
}
|
|
|
|
code {
|
|
font-family: 'JetBrains Mono', 'Fira Code', monospace;
|
|
font-size: 0.75rem;
|
|
color: var(--mat-sys-on-surface);
|
|
padding: 2px 6px;
|
|
background: var(--mat-sys-surface-container-highest);
|
|
border-radius: var(--mat-sys-corner-extra-small);
|
|
}
|
|
}
|
|
|
|
// AI Panel
|
|
.propertiesAiPanel {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 16px;
|
|
padding: 16px;
|
|
background: var(--mat-sys-surface-container);
|
|
border-radius: var(--mat-sys-corner-medium);
|
|
border: 1px dashed var(--mat-sys-outline-variant);
|
|
}
|
|
|
|
.propertiesAiIntro {
|
|
margin: 0;
|
|
font: var(--mat-sys-body-medium-font);
|
|
color: var(--mat-sys-on-surface-variant);
|
|
}
|
|
|
|
.propertiesAiInput {
|
|
width: 100%;
|
|
padding: 12px 16px;
|
|
font: var(--mat-sys-body-medium-font);
|
|
color: var(--mat-sys-on-surface);
|
|
background: var(--mat-sys-surface-container-highest);
|
|
border: 1px solid var(--mat-sys-outline);
|
|
border-radius: var(--mat-sys-corner-small);
|
|
box-sizing: border-box;
|
|
resize: vertical;
|
|
|
|
&:focus {
|
|
outline: none;
|
|
border-color: var(--mat-sys-primary);
|
|
box-shadow: 0 0 0 1px var(--mat-sys-primary);
|
|
}
|
|
|
|
&::placeholder {
|
|
color: var(--mat-sys-on-surface-variant);
|
|
}
|
|
}
|
|
|
|
.propertiesAiResponse {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 12px;
|
|
padding: 16px;
|
|
background: color-mix(in srgb, var(--mat-sys-tertiary-container) 30%, transparent);
|
|
border-radius: var(--mat-sys-corner-medium);
|
|
border: 1px solid var(--mat-sys-tertiary);
|
|
}
|
|
|
|
.propertiesAiResponseHeader {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
font: var(--mat-sys-label-large-font);
|
|
font-weight: 500;
|
|
color: var(--mat-sys-on-tertiary-container);
|
|
}
|
|
|
|
.propertiesAiResponseContent {
|
|
margin: 0;
|
|
font: var(--mat-sys-body-medium-font);
|
|
color: var(--mat-sys-on-surface);
|
|
white-space: pre-wrap;
|
|
line-height: 1.6;
|
|
}
|
|
|
|
.propertiesAiResponseActions {
|
|
display: flex;
|
|
justify-content: flex-end;
|
|
gap: 8px;
|
|
margin-top: 8px;
|
|
}
|
|
|
|
// =============================================================================
|
|
// Palette Header Controls
|
|
// =============================================================================
|
|
|
|
.paletteControls {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 4px;
|
|
}
|
|
|
|
.paletteControlBtn {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
width: 28px;
|
|
height: 28px;
|
|
padding: 0;
|
|
border: none;
|
|
border-radius: var(--mat-sys-corner-small);
|
|
background: var(--mat-sys-surface-container-highest);
|
|
color: var(--mat-sys-on-surface);
|
|
font-size: 14px;
|
|
font-weight: 500;
|
|
cursor: pointer;
|
|
transition: background 100ms ease;
|
|
|
|
&:hover {
|
|
background: var(--mat-sys-surface-container-high);
|
|
}
|
|
|
|
&:active {
|
|
background: color-mix(in srgb, var(--mat-sys-primary) 12%, var(--mat-sys-surface-container-highest));
|
|
}
|
|
}
|
|
|
|
// =============================================================================
|
|
// Language Filter Chips
|
|
// =============================================================================
|
|
|
|
.languageFilters {
|
|
display: flex;
|
|
gap: 6px;
|
|
flex-wrap: wrap;
|
|
margin-bottom: 12px;
|
|
}
|
|
|
|
.languageChip {
|
|
position: relative;
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
height: 32px;
|
|
padding: 0 12px;
|
|
border: none;
|
|
border-radius: var(--mat-sys-corner-full);
|
|
background: var(--mat-sys-surface-container-highest);
|
|
color: var(--mat-sys-on-surface);
|
|
font-size: 12px;
|
|
font-weight: 500;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.5px;
|
|
cursor: pointer;
|
|
transition:
|
|
background 100ms ease,
|
|
color 100ms ease,
|
|
box-shadow 100ms ease;
|
|
|
|
&:hover:not(.languageChipActive) {
|
|
background: var(--mat-sys-surface-container-high);
|
|
}
|
|
|
|
&:focus-visible {
|
|
outline: 2px solid var(--mat-sys-primary);
|
|
outline-offset: 2px;
|
|
}
|
|
}
|
|
|
|
.languageChipActive {
|
|
background: var(--mat-sys-primary);
|
|
color: var(--mat-sys-on-primary);
|
|
box-shadow: var(--mat-sys-elevation-1);
|
|
|
|
&:hover {
|
|
background: color-mix(in srgb, var(--mat-sys-primary) 92%, var(--mat-sys-on-primary));
|
|
}
|
|
}
|
|
|
|
.languageChipUnhealthy {
|
|
opacity: 0.6;
|
|
}
|
|
|
|
.languageChipBadge {
|
|
position: absolute;
|
|
top: -2px;
|
|
right: -2px;
|
|
width: 10px;
|
|
height: 10px;
|
|
border-radius: 50%;
|
|
background: var(--mat-sys-error);
|
|
border: 2px solid var(--mat-sys-surface);
|
|
}
|