| | |
| | |
| | @use "demo-list"; |
| | @use "buttons"; |
| |
|
| | |
| | :root[data-theme="dark"] { |
| | color-scheme: dark; |
| | } |
| |
|
| | |
| | .main_frame { |
| | opacity: 1; |
| | transition-property: opacity; |
| | transition-duration: 1s; |
| | } |
| |
|
| | .compare-wrapper { |
| | zoom: 0.9; |
| | height: 111.11vh; |
| | display: grid; |
| | grid-template-rows: auto 1fr; |
| | overflow: hidden; |
| | box-sizing: border-box; |
| | width: 100%; |
| | max-width: 100%; |
| | } |
| |
|
| | .compare-toolbar { |
| | position: sticky; |
| | top: 0; |
| | z-index: 1000; |
| | padding: 10px 20px; |
| | border-bottom: 1px solid var(--border-color); |
| | display: flex; |
| | justify-content: space-between; |
| | align-items: center; |
| | flex-wrap: wrap; |
| | gap: 10px; |
| | row-gap: 6px; |
| | background-color: var(--bg-color); |
| | box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); |
| | box-sizing: border-box; |
| |
|
| | .compare-toolbar-title { |
| | margin: 0; |
| | font-size: 20px; |
| | font-weight: 600; |
| | flex: 1 1 320px; |
| | min-width: 200px; |
| | } |
| |
|
| | .compare-toolbar-actions { |
| | display: flex; |
| | align-items: center; |
| | flex-wrap: wrap; |
| | gap: 10px; |
| | flex: 0 0 auto; |
| | max-width: 100%; |
| | margin-left: auto; |
| | } |
| | |
| | |
| | #edit_mode_toggle.finish-edit { |
| | background-color: var(--primary-color, #3b82f6); |
| | color: white; |
| | border-color: var(--primary-color, #3b82f6); |
| | font-weight: 600; |
| | |
| | &:hover { |
| | background-color: #2563eb; |
| | border-color: #2563eb; |
| | } |
| | |
| | &:active { |
| | background-color: #1d4ed8; |
| | border-color: #1d4ed8; |
| | } |
| | } |
| | } |
| |
|
| | .compare-container { |
| | display: flex; |
| | flex-direction: row; |
| | width: 100%; |
| | |
| | overflow-x: auto; |
| | overflow-y: auto; |
| | box-sizing: border-box; |
| | position: relative; |
| | |
| | |
| | |
| | &:has(.compare-column) .compare-empty-state { |
| | display: none; |
| | } |
| | |
| | |
| | &:not(:has(.compare-column)) .compare-empty-state { |
| | display: flex; |
| | } |
| | } |
| |
|
| | .compare-column { |
| | width: 420px; |
| | flex: 0 0 420px; |
| | display: flex; |
| | flex-direction: column; |
| | border-right: 1px solid var(--border-color); |
| | padding: 0 10px 10px 10px; |
| | |
| | overflow: visible; |
| | box-sizing: border-box; |
| | |
| | &:last-child { |
| | border-right: none; |
| | } |
| | } |
| |
|
| | .compare-header { |
| | position: sticky; |
| | top: 0; |
| | z-index: 10; |
| | font-size: 18px; |
| | font-weight: bold; |
| | margin-bottom: 15px; |
| | padding: 5px 0; |
| | border-bottom: 2px solid var(--border-color); |
| | background-color: var(--bg-color); |
| | color: var(--text-color); |
| | text-align: center; |
| | display: flex; |
| | flex-direction: column; |
| | gap: 8px; |
| | } |
| |
|
| | |
| | .column-actions-row { |
| | display: none; |
| | justify-content: center; |
| | gap: 8px; |
| | align-items: center; |
| | } |
| |
|
| | |
| | .edit-mode .column-actions-row { |
| | display: flex; |
| | } |
| |
|
| | |
| | .column-actions-row button { |
| | width: 28px; |
| | height: 28px; |
| | padding: 0; |
| | border: 1px solid var(--border-color); |
| | background-color: var(--bg-color); |
| | color: var(--text-color); |
| | border-radius: 4px; |
| | cursor: pointer; |
| | display: flex; |
| | align-items: center; |
| | justify-content: center; |
| | font-size: 14px; |
| | transition: all 0.2s; |
| | |
| | &:hover { |
| | background-color: var(--button-hover-bg, rgba(0, 0, 0, 0.05)); |
| | } |
| | |
| | &.delete-btn { |
| | color: var(--error-color, #f44336); |
| | |
| | &:hover { |
| | background-color: var(--error-color, #f44336); |
| | color: white; |
| | } |
| | } |
| | |
| | &:disabled { |
| | opacity: 0.4; |
| | cursor: not-allowed; |
| | pointer-events: none; |
| | } |
| | } |
| |
|
| | |
| | .column-title { |
| | white-space: nowrap; |
| | overflow: hidden; |
| | text-overflow: ellipsis; |
| | width: 100%; |
| | text-align: center; |
| | line-height: 1.5; |
| | } |
| |
|
| | |
| | .stats { |
| | width: 100%; |
| | max-width: 100%; |
| | box-sizing: border-box; |
| | padding: 0; |
| | |
| | svg { |
| | |
| | box-sizing: border-box; |
| | } |
| | } |
| |
|
| | |
| | .compare-column .text-metrics { |
| | margin-bottom: 20px; |
| | text-align: center; |
| | display: flex; |
| | flex-direction: column; |
| | align-items: center; |
| | justify-content: center; |
| | } |
| |
|
| | |
| | .compare-column .text-metrics-secondary { |
| | min-height: 2.5em; |
| | } |
| |
|
| | |
| | .compare-text-render { |
| | margin-top: 20px; |
| | width: 100%; |
| | min-height: 200px; |
| | border-top: 1px solid var(--border-color); |
| | padding-top: 10px; |
| | position: relative; |
| | |
| | &.is-hidden { |
| | display: none; |
| | } |
| | |
| | |
| | |
| | .LMF { |
| | padding-left: 5px; |
| | padding-right: 5px; |
| | position: relative; |
| |
|
| | &.minimap-enabled { |
| | padding-right: calc(5px + var(--minimap-width)); |
| | } |
| | } |
| | } |
| |
|
| | |
| | .demo-selector-container { |
| | display: flex; |
| | flex-direction: column; |
| | flex: 1; |
| | min-height: 0; |
| | margin-bottom: 0; |
| | |
| | .demo-section { |
| | display: flex !important; |
| | flex-direction: column !important; |
| | flex: 1; |
| | min-height: 0 !important; |
| | overflow: hidden; |
| | } |
| | |
| | .demo-header { |
| | display: flex; |
| | justify-content: space-between; |
| | align-items: center; |
| | margin-bottom: 8px; |
| | flex-shrink: 0; |
| | } |
| | |
| | .demo-header-actions { |
| | display: flex; |
| | gap: 8px; |
| | align-items: center; |
| | } |
| | |
| | |
| | .demos { |
| | flex: 1; |
| | min-height: 0; |
| | height: auto; |
| | } |
| | |
| | .demo-item { |
| | width: 100%; |
| | min-width: 0; |
| | margin-bottom: 1px; |
| | } |
| | |
| | .demo-item-disabled { |
| | opacity: 0.6; |
| | pointer-events: none; |
| | |
| | .demo-checkbox-inline { |
| | cursor: not-allowed; |
| | opacity: 0.5; |
| | } |
| | |
| | .demoBtn.demo-disabled { |
| | color: var(--text-muted); |
| | cursor: not-allowed; |
| | } |
| | } |
| | } |
| |
|
| | |
| | .compare-empty-state { |
| | display: flex; |
| | flex-direction: column; |
| | align-items: center; |
| | justify-content: center; |
| | position: absolute; |
| | top: 0; |
| | left: 0; |
| | right: 0; |
| | bottom: 0; |
| | min-height: 400px; |
| | padding: 40px 20px; |
| | text-align: center; |
| | pointer-events: none; |
| | |
| | .empty-icon { |
| | font-size: 48px; |
| | margin-bottom: 16px; |
| | opacity: 0.5; |
| | } |
| | |
| | .empty-title { |
| | font-size: 20px; |
| | font-weight: 500; |
| | color: var(--text-color); |
| | margin-bottom: 8px; |
| | } |
| | |
| | .empty-description { |
| | font-size: 16px; |
| | color: var(--text-muted); |
| | line-height: 1.5; |
| | max-width: 500px; |
| | } |
| | |
| | .empty-example { |
| | margin-top: 12px; |
| | padding: 8px 12px; |
| | background-color: var(--button-bg, rgba(0, 0, 0, 0.05)); |
| | border-radius: 4px; |
| | font-family: monospace; |
| | font-size: 14px; |
| | color: var(--text-color); |
| | display: inline-block; |
| | } |
| | } |
| |
|
| | |
| | .tooltip { |
| | font-size: 9pt; |
| | font-weight: 500; |
| | border-radius: 5px; |
| | padding: 5px; |
| | background: var(--tooltip-bg); |
| | color: var(--text-color); |
| | transition-property: opacity, background-color, color; |
| | transition-duration: .2s; |
| | position: absolute; |
| | z-index: 101; |
| | pointer-events: auto; |
| | cursor: pointer; |
| | } |
| |
|
| | |
| | #global_tooltip { |
| | position: fixed; |
| | pointer-events: none; |
| | opacity: 0; |
| | } |
| |
|
| | |
| | .predictions-table { |
| | display: table; |
| | } |
| |
|
| | |
| | .currentToken { |
| | font-family: 'Courier New', Courier, monospace; |
| | font-weight: bold; |
| | margin-bottom: 5px; |
| | } |
| |
|
| | |
| | @media (max-width: 1023px) { |
| | .compare-wrapper { |
| | zoom: 0.8; |
| | height: 125vh; |
| | } |
| | } |
| |
|
| |
|