mirror of
https://github.com/danny-avila/LibreChat.git
synced 2026-11-17 13:33:45 +00:00
* fix: Mirror Chat Surfaces For RTL Layouts * fix: Keep Short Subagent Ticker Lines at Their Reading Start Adds RTL chat scenarios covering code, markdown blocks, sibling arrows and virtualized lists. * fix: Resolve Quote and List Direction From Their Content dir=auto skips descendants that carry their own dir, so a quote or loose list holding dir=auto paragraphs always resolved left-to-right. Lists now take one direction so markers and indent stay on the same side. * fix: Keep Tables, Callouts and Trace Axes on One Direction Tables take one direction from their content so cell borders share a frame; strong-direction detection skips Arabic-Indic digits, separators and marks; handoff and answer callouts use a logical start border; trace tick and range labels stay on the LTR axis. * fix: Treat Every Script's Letters as Strong Direction Direction detection now keys on Unicode letters, so Devanagari, Thai and other LTR scripts resolve LTR. E2E specs that selected rows by pl-6 now select ps-6. * test: Cover the Shared Strong Direction Helper on Its Own * fix: Read Bidi Marks and Native Script Digits as Strong Direction * fix: Approximate Bidi Classes by Block So Symbols and Numerals Resolve * fix: Resolve Strong Direction From Unicode Bidi Class Tables * docs: Note How the Bidi Tables Are Generated and Where They Differ * fix: Generate the Bidi Tables From Unicode 17 Including L-Class Marks
201 lines
4.5 KiB
CSS
201 lines
4.5 KiB
CSS
/* `@apply` needs the theme in scope, and this file is a separate entry point imported by
|
|
* main.jsx rather than an `@import` of style.css. `@reference` loads that theme without
|
|
* emitting its CSS a second time. */
|
|
@reference './style.css';
|
|
|
|
.hover-button.active {
|
|
display: block;
|
|
visibility: visible;
|
|
}
|
|
|
|
.nav {
|
|
position: fixed;
|
|
z-index: 110;
|
|
top: 0;
|
|
|
|
/* max-width: 260px; */
|
|
|
|
bottom: 0;
|
|
opacity: 0;
|
|
}
|
|
|
|
.nav.active {
|
|
position: relative;
|
|
inset-inline-start: 0;
|
|
opacity: 1;
|
|
}
|
|
|
|
@media (max-width: 767px) {
|
|
.nav {
|
|
width: calc(100% - 10px);
|
|
transition: all 0.15s;
|
|
}
|
|
|
|
.nav.active {
|
|
position: fixed;
|
|
}
|
|
}
|
|
|
|
@media (max-width: 1024px) {
|
|
.hover-button {
|
|
display: block;
|
|
visibility: visible;
|
|
}
|
|
}
|
|
|
|
.hide-scrollbar {
|
|
/* Hide scrollbar for Chrome, Safari, and Opera */
|
|
scrollbar-width: none; /* For Firefox */
|
|
-ms-overflow-style: none; /* For Internet Explorer and Edge */
|
|
}
|
|
|
|
.hide-scrollbar::-webkit-scrollbar {
|
|
display: none; /* For WebKit browsers */
|
|
}
|
|
|
|
@keyframes tuning {
|
|
0% {
|
|
transform: rotate(30deg);
|
|
}
|
|
25% {
|
|
transform: rotate(110deg);
|
|
}
|
|
50% {
|
|
transform: rotate(-40deg);
|
|
}
|
|
75% {
|
|
transform: rotate(80deg);
|
|
}
|
|
100% {
|
|
transform: rotate(30deg);
|
|
}
|
|
}
|
|
|
|
.rotate {
|
|
animation: tuning 2.1s 1;
|
|
}
|
|
|
|
.azure-bg-color {
|
|
background: linear-gradient(0.375turn, #61bde2, #4389d0);
|
|
}
|
|
|
|
@keyframes slowPulse {
|
|
0%,
|
|
100% {
|
|
opacity: 1;
|
|
}
|
|
50% {
|
|
opacity: 0.7;
|
|
}
|
|
}
|
|
|
|
.slow-pulse {
|
|
animation: slowPulse 2.5s ease-in-out infinite;
|
|
}
|
|
|
|
.scrollbar-gutter-stable {
|
|
scrollbar-gutter: stable;
|
|
}
|
|
|
|
/* Reserves the same band a `scrollbar-gutter: stable` container holds back, so
|
|
a centered column lines up with the scrolling message column. Use this, not
|
|
the gutter itself, wherever the column has content painted outside its box:
|
|
`scrollbar-gutter` only applies to scroll containers, and a scroll container
|
|
clips (the composer's in-flight steer overlay, a button's focus ring).
|
|
|
|
`useScrollbarGutter` measures the band the message column really reserves and
|
|
publishes it here. The token is only the fallback for before that first
|
|
measurement: it matches the `::-webkit-scrollbar` width, which Firefox
|
|
ignores and an overlay scrollbar drops to nothing. */
|
|
/* Below `sm` the composer runs edge to edge (it is squared off at the bottom and
|
|
carries no horizontal padding there), so holding the band back would leave a
|
|
dead strip down its right side instead of lining anything up. The message
|
|
column it aligns to only shares a centre from `sm` up. */
|
|
@media (min-width: 640px) {
|
|
.scrollbar-gutter-spacer {
|
|
padding-inline-end: var(--message-scrollbar-gutter, var(--scrollbar-size));
|
|
}
|
|
}
|
|
|
|
/* Base wrapper for both preview and editor */
|
|
.sp-wrapper {
|
|
@apply flex h-full w-full grow flex-col;
|
|
}
|
|
|
|
/* Stack containers (sp-preview and sp-editor) */
|
|
.sp-preview,
|
|
.sp-editor {
|
|
@apply flex h-full w-full grow flex-col;
|
|
}
|
|
|
|
/* Inner containers */
|
|
.sp-preview-container,
|
|
.sp-code-editor {
|
|
@apply flex h-full w-full grow flex-col;
|
|
}
|
|
|
|
/* Content elements */
|
|
.sp-preview-iframe {
|
|
@apply h-full w-full grow;
|
|
/* An unstyled artifact document inks in the browser's black over a transparent frame, which is
|
|
* unreadable on a dark theme. Canvas gives the frame an opaque page in the scheme the system
|
|
* prefers, and the document's own color-scheme decides whether it adapts to it or the browser
|
|
* paints it a light backdrop. */
|
|
color-scheme: light dark;
|
|
background-color: Canvas;
|
|
}
|
|
|
|
.sp-cm {
|
|
@apply h-full w-full grow;
|
|
}
|
|
|
|
@keyframes shake {
|
|
0%,
|
|
100% {
|
|
transform: translateX(0);
|
|
}
|
|
10%,
|
|
30%,
|
|
50%,
|
|
70%,
|
|
90% {
|
|
transform: translateX(-3px);
|
|
}
|
|
20%,
|
|
40%,
|
|
60%,
|
|
80% {
|
|
transform: translateX(3px);
|
|
}
|
|
}
|
|
|
|
.shake {
|
|
animation: shake 0.5s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
|
|
}
|
|
|
|
.cm-content:focus {
|
|
outline: none !important;
|
|
}
|
|
|
|
/* `p.whitespace-pre-wrap a` (0,1,2) outranked a utility under v3 too, so it stays unlayered and
|
|
* keeps doing so. `li a` is two element selectors: a class beat it under v3, and unlayered under
|
|
* v4's layers it would beat every utility instead — `no-underline` on a link inside a list stopped
|
|
* working. Layered, it loses to a utility again and still styles an unclassed list link. */
|
|
p.whitespace-pre-wrap a {
|
|
color: rgb(var(--link-inline));
|
|
text-decoration: underline;
|
|
font-weight: bold;
|
|
}
|
|
|
|
@layer base {
|
|
li a {
|
|
color: rgb(var(--link-inline));
|
|
text-decoration: underline;
|
|
font-weight: bold;
|
|
}
|
|
}
|
|
|
|
.dark p.whitespace-pre-wrap a,
|
|
.dark li a {
|
|
color: rgb(var(--link-inline));
|
|
}
|