| |
| |
| @use "lmf-readout" as lmf; |
| @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%; |
| } |
|
|
| |
|
|
| .app-page-toolbar { |
| |
| .compare-toolbar-title { |
| margin: 0; |
| display: flex; |
| flex-wrap: wrap; |
| align-items: baseline; |
| column-gap: 0.4em; |
| row-gap: 2px; |
| flex: 1 1 320px; |
| min-width: 0; |
| font-size: var(--page-chrome-title-size); |
| line-height: var(--page-chrome-line-height); |
| } |
|
|
| .compare-toolbar-title-app { |
| font-weight: 500; |
| letter-spacing: 0.02em; |
| color: var(--text-color, #333); |
| } |
|
|
| .compare-toolbar-title-sep { |
| font-weight: 300; |
| opacity: 0.42; |
| user-select: none; |
| } |
|
|
| .compare-toolbar-title-page { |
| font-size: var(--page-chrome-subtitle-size); |
| font-weight: 800; |
| line-height: var(--page-chrome-line-height); |
| letter-spacing: 0.03em; |
| color: var(--primary-color, #3b82f6); |
| } |
| |
| |
| #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: lmf.$mono-font-stack; |
| 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; |
| user-select: none; |
| -webkit-user-select: none; |
| } |
|
|
| |
| #global_tooltip { |
| position: fixed; |
| pointer-events: none; |
| opacity: 0; |
| transition-property: background-color, color; |
| } |
|
|
| |
| .predictions-table { |
| display: table; |
| } |
|
|
| |
| .currentToken { |
| font-family: lmf.$mono-font-stack; |
| font-weight: bold; |
| margin-bottom: 5px; |
| } |
|
|
| |
| @media (max-width: 1023px) { |
| .compare-wrapper { |
| zoom: 0.8; |
| height: 125vh; |
| } |
| } |
|
|
|
|