WebOrbiton
v1.4.2

AtheraStudio Code

2,724 lines · 51.1 KB
  1. :root {
  2. --ath-font-code: "Geist Mono", ui-monospace, "Cascadia Code", Consolas, monospace;
  3. --ath-font-size: 14px;
  4. --ath-topbar-h: 46px;
  5. --ath-status-h: 26px;
  6. ​
  7. --ath-editor-bg: var(--orb-surface);
  8. --ath-active-line: color-mix(in srgb, var(--orb-primary) 5%, transparent);
  9. --ath-selection: color-mix(in srgb, var(--orb-primary) 22%, transparent);
  10. --ath-selection-match: color-mix(in srgb, var(--orb-primary) 12%, transparent);
  11. ​
  12. --ath-syn-keyword: #7c3aed;
  13. --ath-syn-string: #0a7f55;
  14. --ath-syn-number: #c2410c;
  15. --ath-syn-comment: #8b95a7;
  16. --ath-syn-tag: #d6336c;
  17. --ath-syn-attr: #b45309;
  18. --ath-syn-property: #1d4ed8;
  19. --ath-syn-function: #0e7490;
  20. --ath-syn-type: #a21caf;
  21. --ath-syn-variable: var(--orb-text);
  22. --ath-syn-punct: #64748b;
  23. --ath-syn-meta: #64748b;
  24. --ath-syn-regexp: #db2777;
  25. }
  26. ​
  27. .orb-dark {
  28. --ath-active-line: rgba(255, 255, 255, 0.03);
  29. --ath-selection: color-mix(in srgb, var(--orb-primary) 32%, transparent);
  30. ​
  31. --ath-syn-keyword: #c4b5fd;
  32. --ath-syn-string: #86efac;
  33. --ath-syn-number: #fdba74;
  34. --ath-syn-comment: #61667a;
  35. --ath-syn-tag: #fb7185;
  36. --ath-syn-attr: #fcd34d;
  37. --ath-syn-property: #93c5fd;
  38. --ath-syn-function: #67e8f9;
  39. --ath-syn-type: #f0abfc;
  40. --ath-syn-punct: #9ca3af;
  41. --ath-syn-meta: #9ca3af;
  42. --ath-syn-regexp: #f9a8d4;
  43. }
  44. ​
  45. html,
  46. body {
  47. height: 100%;
  48. overflow: hidden;
  49. }
  50. ​
  51. body {
  52. background: var(--orb-bg);
  53. font-size: 14px;
  54. }
  55. ​
  56. .ath-icon {
  57. width: 16px;
  58. height: 16px;
  59. flex-shrink: 0;
  60. }
  61. ​
  62. [hidden] {
  63. display: none !important;
  64. }
  65. ​
  66. * {
  67. scrollbar-width: thin;
  68. scrollbar-color: var(--orb-border-strong) transparent;
  69. }
  70. ​
  71. ::-webkit-scrollbar {
  72. width: 10px;
  73. height: 10px;
  74. }
  75. ​
  76. ::-webkit-scrollbar-track {
  77. background: transparent;
  78. }
  79. ​
  80. ::-webkit-scrollbar-thumb {
  81. background: var(--orb-border-strong);
  82. border: 3px solid transparent;
  83. border-radius: 10px;
  84. background-clip: padding-box;
  85. }
  86. ​
  87. ::-webkit-scrollbar-thumb:hover {
  88. background-color: var(--orb-text-subtle);
  89. }
  90. ​
  91. ::-webkit-scrollbar-corner {
  92. background: transparent;
  93. }
  94. ​
  95. .ath-shell {
  96. height: 100vh;
  97. height: 100dvh;
  98. display: grid;
  99. grid-template-rows: var(--ath-topbar-h) minmax(0, 1fr) var(--ath-status-h);
  100. }
  101. ​
  102. .ath-topbar {
  103. position: relative;
  104. z-index: 100;
  105. display: flex;
  106. align-items: center;
  107. gap: var(--orb-space-4);
  108. padding: 0 var(--orb-space-3);
  109. background: var(--orb-bg);
  110. border-bottom: 1px solid var(--orb-border);
  111. }
  112. ​
  113. .ath-brand {
  114. display: flex;
  115. align-items: center;
  116. gap: 9px;
  117. color: var(--orb-text);
  118. white-space: nowrap;
  119. }
  120. ​
  121. .ath-logo {
  122. width: 28px;
  123. height: 28px;
  124. object-fit: contain;
  125. }
  126. ​
  127. .ath-brand-name {
  128. font-size: 0.875rem;
  129. font-weight: 500;
  130. letter-spacing: -0.01em;
  131. }
  132. ​
  133. .ath-brand-name b {
  134. font-weight: 700;
  135. color: var(--orb-primary-text);
  136. }
  137. ​
  138. .ath-menus {
  139. display: flex;
  140. align-items: center;
  141. gap: 2px;
  142. }
  143. ​
  144. .ath-menu-btn {
  145. height: 30px;
  146. padding: 0 10px;
  147. border: none;
  148. border-radius: var(--orb-radius-sm);
  149. background: transparent;
  150. color: var(--orb-text-muted);
  151. font-size: 0.8125rem;
  152. font-weight: 500;
  153. cursor: pointer;
  154. transition: background-color var(--orb-dur-fast) var(--orb-ease), color var(--orb-dur-fast) var(--orb-ease);
  155. }
  156. ​
  157. .ath-menu-btn:hover,
  158. .ath-menu-btn[aria-expanded="true"] {
  159. background: var(--orb-surface-alt);
  160. color: var(--orb-text);
  161. }
  162. ​
  163. .ath-menu-btn:focus-visible {
  164. outline: 2px solid var(--orb-primary);
  165. outline-offset: 1px;
  166. }
  167. ​
  168. .orb-kbd {
  169. flex-shrink: 0;
  170. white-space: nowrap;
  171. }
  172. ​
  173. .ath-menus .orb-dropdown-menu {
  174. min-width: 250px;
  175. width: max-content;
  176. }
  177. ​
  178. .ath-menus .orb-dropdown-item>span:not(.orb-kbd),
  179. .ath-context-menu .orb-dropdown-item>span:not(.orb-kbd) {
  180. white-space: nowrap;
  181. }
  182. ​
  183. .ath-menus .orb-dropdown-item {
  184. font-size: 0.8125rem;
  185. padding: 7px 10px;
  186. }
  187. ​
  188. .ath-topbar-actions {
  189. margin-left: auto;
  190. display: flex;
  191. align-items: center;
  192. gap: 4px;
  193. }
  194. ​
  195. #btn-preview[aria-pressed="true"] {
  196. color: var(--orb-primary-text);
  197. background: var(--orb-primary-dim);
  198. }
  199. ​
  200. .ath-theme-btn .ath-when-dark,
  201. .orb-dark .ath-theme-btn .ath-when-light {
  202. display: none;
  203. }
  204. ​
  205. .orb-dark .ath-theme-btn .ath-when-dark {
  206. display: inline-flex;
  207. }
  208. ​
  209. .ath-theme-btn span {
  210. display: inline-flex;
  211. }
  212. ​
  213. .ath-accent-menu {
  214. min-width: 0;
  215. padding: var(--orb-space-3) var(--orb-space-4) var(--orb-space-4);
  216. }
  217. ​
  218. .ath-accent-label {
  219. font-size: 0.6875rem;
  220. font-weight: 700;
  221. text-transform: uppercase;
  222. letter-spacing: 0.06em;
  223. color: var(--orb-text-subtle);
  224. margin-bottom: var(--orb-space-3);
  225. }
  226. ​
  227. .ath-accent-grid {
  228. display: grid;
  229. grid-template-columns: repeat(4, 28px);
  230. gap: 10px;
  231. }
  232. ​
  233. .ath-main {
  234. position: relative;
  235. display: flex;
  236. min-height: 0;
  237. overflow: hidden;
  238. }
  239. ​
  240. .ath-pane-head {
  241. display: flex;
  242. align-items: center;
  243. gap: var(--orb-space-2);
  244. height: 36px;
  245. flex-shrink: 0;
  246. padding: 0 6px 0 14px;
  247. }
  248. ​
  249. .ath-pane-title {
  250. font-size: 0.6875rem;
  251. font-weight: 700;
  252. text-transform: uppercase;
  253. letter-spacing: 0.06em;
  254. color: var(--orb-text-muted);
  255. white-space: nowrap;
  256. overflow: hidden;
  257. text-overflow: ellipsis;
  258. min-width: 0;
  259. }
  260. ​
  261. .ath-pane-actions {
  262. margin-left: auto;
  263. display: flex;
  264. gap: 2px;
  265. flex-shrink: 0;
  266. }
  267. ​
  268. .ath-icon-btn {
  269. width: 26px;
  270. height: 26px;
  271. display: grid;
  272. place-items: center;
  273. border: none;
  274. border-radius: var(--orb-radius-xs);
  275. background: transparent;
  276. color: var(--orb-text-muted);
  277. cursor: pointer;
  278. transition: background-color var(--orb-dur-fast) var(--orb-ease), color var(--orb-dur-fast) var(--orb-ease);
  279. }
  280. ​
  281. .ath-icon-btn:hover {
  282. background: var(--orb-surface-hover);
  283. color: var(--orb-text);
  284. }
  285. ​
  286. .ath-icon-btn:disabled {
  287. opacity: 0.4;
  288. cursor: default;
  289. background: transparent;
  290. color: var(--orb-text-muted);
  291. }
  292. ​
  293. .ath-icon-btn:focus-visible {
  294. outline: 2px solid var(--orb-primary);
  295. outline-offset: -2px;
  296. }
  297. ​
  298. .ath-sidebar {
  299. width: var(--ath-sidebar-w, 250px);
  300. flex-shrink: 0;
  301. display: flex;
  302. flex-direction: column;
  303. min-height: 0;
  304. background: var(--orb-bg);
  305. }
  306. ​
  307. .ath-explorer {
  308. flex: 1;
  309. min-height: 0;
  310. overflow: auto;
  311. padding: 2px 0 24px;
  312. font-size: 0.8125rem;
  313. outline: none;
  314. }
  315. ​
  316. .ath-tree-row {
  317. display: flex;
  318. align-items: center;
  319. gap: 5px;
  320. height: 26px;
  321. padding: 0 10px 0 calc(8px + var(--depth, 0) * 14px);
  322. color: var(--orb-text);
  323. white-space: nowrap;
  324. cursor: pointer;
  325. user-select: none;
  326. outline: none;
  327. position: relative;
  328. transition:
  329. background-color var(--orb-dur) var(--orb-ease),
  330. color var(--orb-dur) var(--orb-ease),
  331. box-shadow var(--orb-dur) var(--orb-ease),
  332. opacity var(--orb-dur) var(--orb-ease);
  333. }
  334. ​
  335. .ath-tree-row::before {
  336. content: "";
  337. position: absolute;
  338. left: 0;
  339. top: 4px;
  340. bottom: 4px;
  341. width: 2px;
  342. border-radius: 0 2px 2px 0;
  343. background: var(--orb-primary);
  344. opacity: 0;
  345. transform: scaleY(0.2);
  346. transition:
  347. opacity var(--orb-dur) var(--orb-ease),
  348. transform var(--orb-dur-slow) var(--orb-ease-spring);
  349. pointer-events: none;
  350. }
  351. ​
  352. .ath-tree-row.is-selected::before,
  353. .ath-tree-row.is-active::before {
  354. opacity: 1;
  355. transform: scaleY(1);
  356. }
  357. ​
  358. .ath-tree-row:hover {
  359. background: var(--orb-surface-hover);
  360. }
  361. ​
  362. .ath-tree-row:hover .ath-tree-chevron {
  363. color: var(--orb-text-muted);
  364. }
  365. ​
  366. .ath-tree-row:active .ath-ficon {
  367. transform: scale(0.92);
  368. }
  369. ​
  370. .ath-tree-row.is-entering {
  371. animation: ath-row-in var(--orb-dur-slow) var(--orb-ease-out) both;
  372. animation-delay: calc(var(--i, 0) * 18ms);
  373. }
  374. ​
  375. @keyframes ath-row-in {
  376. from {
  377. opacity: 0;
  378. transform: translateX(-10px);
  379. }
  380. ​
  381. to {
  382. opacity: 1;
  383. transform: none;
  384. }
  385. }
  386. ​
  387. @keyframes ath-ficon-pop {
  388. 0% {
  389. transform: scale(0.7);
  390. }
  391. ​
  392. 60% {
  393. transform: scale(1.18);
  394. }
  395. ​
  396. 100% {
  397. transform: scale(1);
  398. }
  399. }
  400. ​
  401. .ath-tree-row.is-selected {
  402. background: var(--orb-surface-hover);
  403. }
  404. ​
  405. .ath-tree-row.is-selected .ath-ficon,
  406. .ath-tree-row.is-active .ath-ficon {
  407. transform: scale(1.06);
  408. }
  409. ​
  410. .ath-tree-row.is-multi {
  411. background: var(--orb-primary-dim);
  412. }
  413. ​
  414. .ath-tree-row.is-active {
  415. background: var(--orb-primary-dim);
  416. color: var(--orb-primary-text);
  417. }
  418. ​
  419. .ath-tree-row:focus-visible {
  420. box-shadow: inset 0 0 0 1px var(--orb-primary);
  421. }
  422. ​
  423. .ath-tree-row.is-dragging {
  424. opacity: 0.45;
  425. }
  426. ​
  427. .ath-tree-row.is-drop-target {
  428. background: var(--orb-primary-dim-strong);
  429. color: var(--orb-primary-text);
  430. box-shadow: inset 0 0 0 1px var(--orb-primary-border);
  431. }
  432. ​
  433. .ath-explorer.is-drop-root {
  434. box-shadow: inset 0 0 0 2px var(--orb-primary-border);
  435. background: var(--orb-primary-dim);
  436. }
  437. ​
  438. .ath-tree-chevron {
  439. width: 14px;
  440. display: grid;
  441. place-items: center;
  442. flex-shrink: 0;
  443. color: var(--orb-text-subtle);
  444. transition: color var(--orb-dur) var(--orb-ease);
  445. }
  446. ​
  447. .ath-tree-chevron .ath-icon {
  448. width: 12px;
  449. height: 12px;
  450. transition: transform var(--orb-dur) var(--orb-ease-spring);
  451. }
  452. ​
  453. .ath-tree-row.is-open .ath-tree-chevron .ath-icon {
  454. transform: rotate(90deg);
  455. }
  456. ​
  457. .ath-tree-name {
  458. overflow: hidden;
  459. text-overflow: ellipsis;
  460. }
  461. ​
  462. .ath-ficon {
  463. width: 20px;
  464. flex-shrink: 0;
  465. display: inline-flex;
  466. align-items: center;
  467. justify-content: center;
  468. font-family: var(--ath-font-code);
  469. font-size: 9px;
  470. font-weight: 800;
  471. letter-spacing: -0.03em;
  472. color: var(--orb-text-muted);
  473. transition:
  474. transform var(--orb-dur) var(--orb-ease-spring),
  475. color var(--orb-dur) var(--orb-ease);
  476. }
  477. ​
  478. .ath-ficon.is-toggled {
  479. animation: ath-ficon-pop var(--orb-dur-spring) var(--orb-ease-out);
  480. }
  481. ​
  482. .ath-ficon .ath-icon {
  483. width: 15px;
  484. height: 15px;
  485. }
  486. ​
  487. .ath-ficon-dir {
  488. color: color-mix(in srgb, var(--orb-primary) 70%, var(--orb-text-muted));
  489. }
  490. ​
  491. .ath-ficon[data-type="html"] {
  492. color: var(--orb-orange);
  493. }
  494. ​
  495. .ath-ficon[data-type="php"] {
  496. color: var(--orb-indigo);
  497. }
  498. ​
  499. .ath-ficon[data-type="css"] {
  500. color: var(--orb-sky);
  501. font-size: 12px;
  502. }
  503. ​
  504. .ath-ficon[data-type="js"] {
  505. color: var(--orb-gold);
  506. }
  507. ​
  508. .ath-ficon[data-type="ts"] {
  509. color: var(--orb-cobalt);
  510. }
  511. ​
  512. .ath-ficon[data-type="json"] {
  513. color: var(--orb-amber);
  514. }
  515. ​
  516. .ath-ficon[data-type="md"] {
  517. color: var(--orb-slate);
  518. }
  519. ​
  520. .ath-ficon[data-type="img"] {
  521. color: var(--orb-emerald);
  522. }
  523. ​
  524. .ath-ficon[data-type="xml"] {
  525. color: #0d9488;
  526. }
  527. ​
  528. .ath-ficon[data-type="rss"] {
  529. color: #f97316;
  530. }
  531. ​
  532. .ath-ficon[data-type="sitemap"] {
  533. color: var(--orb-emerald);
  534. }
  535. ​
  536. .orb-dark .ath-ficon[data-type="xml"] {
  537. color: #2dd4bf;
  538. }
  539. ​
  540. .orb-dark .ath-ficon[data-type="php"] {
  541. color: var(--orb-lavender);
  542. }
  543. ​
  544. .orb-dark .ath-ficon[data-type="ts"] {
  545. color: #60a5fa;
  546. }
  547. ​
  548. .orb-dark .ath-ficon[data-type="md"] {
  549. color: var(--orb-text-muted);
  550. }
  551. ​
  552. .ath-sidebar-empty {
  553. display: flex;
  554. flex-direction: column;
  555. gap: var(--orb-space-2);
  556. padding: var(--orb-space-2) var(--orb-space-4) var(--orb-space-4);
  557. font-size: 0.8125rem;
  558. color: var(--orb-text-muted);
  559. }
  560. ​
  561. .ath-sidebar-empty p {
  562. margin-bottom: var(--orb-space-1);
  563. }
  564. ​
  565. .ath-hint {
  566. font-size: 0.75rem;
  567. color: var(--orb-text-subtle);
  568. margin-top: var(--orb-space-2);
  569. line-height: 1.5;
  570. }
  571. ​
  572. .ath-tree-spacer {
  573. position: relative;
  574. min-height: 1px;
  575. }
  576. ​
  577. .ath-tree-window {
  578. position: absolute;
  579. top: 0;
  580. left: 0;
  581. right: 0;
  582. will-change: transform;
  583. }
  584. ​
  585. .ath-tree-row.is-loading {
  586. color: var(--orb-text-subtle);
  587. cursor: default;
  588. }
  589. ​
  590. .ath-tree-message {
  591. padding: var(--orb-space-3) var(--orb-space-4);
  592. color: var(--orb-text-subtle);
  593. font-size: 0.8125rem;
  594. }
  595. ​
  596. .ath-tree-message.is-error {
  597. color: var(--orb-danger);
  598. }
  599. ​
  600. .ath-spinner.ath-spinner-sm {
  601. width: 13px;
  602. height: 13px;
  603. border-width: 2px;
  604. margin: 0 3px;
  605. }
  606. ​
  607. .ath-splitter {
  608. position: relative;
  609. z-index: 5;
  610. flex: 0 0 5px;
  611. margin: 0 -2px;
  612. cursor: col-resize;
  613. touch-action: none;
  614. }
  615. ​
  616. .ath-splitter::after {
  617. content: "";
  618. position: absolute;
  619. top: 0;
  620. bottom: 0;
  621. left: 2px;
  622. width: 1px;
  623. background: var(--orb-border);
  624. transition: background-color var(--orb-dur) var(--orb-ease), width var(--orb-dur) var(--orb-ease), left var(--orb-dur) var(--orb-ease);
  625. }
  626. ​
  627. .ath-splitter:hover::after,
  628. .ath-resizing .ath-splitter:active::after {
  629. left: 1px;
  630. width: 3px;
  631. background: var(--orb-primary);
  632. }
  633. ​
  634. body.ath-resizing {
  635. cursor: col-resize;
  636. user-select: none;
  637. }
  638. ​
  639. body.ath-resizing iframe {
  640. pointer-events: none;
  641. }
  642. ​
  643. body.ath-no-sidebar .ath-sidebar,
  644. body.ath-no-sidebar [data-split="sidebar"],
  645. body.ath-no-preview .ath-preview,
  646. body.ath-no-preview [data-split="preview"] {
  647. display: none;
  648. }
  649. ​
  650. .ath-center {
  651. flex: 1;
  652. min-width: 0;
  653. display: flex;
  654. flex-direction: column;
  655. background: var(--ath-editor-bg);
  656. }
  657. ​
  658. .ath-tabs {
  659. display: flex;
  660. height: 38px;
  661. flex-shrink: 0;
  662. overflow-x: auto;
  663. overflow-y: hidden;
  664. scrollbar-width: none;
  665. background: var(--orb-bg);
  666. box-shadow: inset 0 -1px 0 var(--orb-border);
  667. }
  668. ​
  669. .ath-tabs::-webkit-scrollbar {
  670. display: none;
  671. }
  672. ​
  673. .ath-tabs:empty {
  674. display: none;
  675. }
  676. ​
  677. .ath-tab {
  678. position: relative;
  679. flex: none;
  680. display: flex;
  681. align-items: center;
  682. gap: 6px;
  683. max-width: 230px;
  684. padding: 0 6px 0 10px;
  685. border-right: 1px solid var(--orb-border);
  686. font-size: 0.8125rem;
  687. color: var(--orb-text-muted);
  688. cursor: pointer;
  689. user-select: none;
  690. transition:
  691. background-color var(--orb-dur) var(--orb-ease),
  692. color var(--orb-dur) var(--orb-ease),
  693. opacity var(--orb-dur) var(--orb-ease);
  694. }
  695. ​
  696. .ath-tab::before {
  697. content: "";
  698. position: absolute;
  699. left: 0;
  700. right: 0;
  701. top: 0;
  702. height: 2px;
  703. background: var(--orb-primary);
  704. transform: scaleX(0);
  705. transform-origin: center center;
  706. transition: transform var(--orb-dur-slow) var(--orb-ease-out);
  707. pointer-events: none;
  708. }
  709. ​
  710. .ath-tab:hover {
  711. background: var(--orb-surface-alt);
  712. color: var(--orb-text);
  713. }
  714. ​
  715. .ath-tab.is-active {
  716. background: var(--ath-editor-bg);
  717. color: var(--orb-text);
  718. }
  719. ​
  720. .ath-tab.is-active::before {
  721. transform: scaleX(1);
  722. }
  723. ​
  724. .ath-tab.is-entering {
  725. overflow: hidden;
  726. animation: ath-tab-in var(--orb-dur-slow) var(--orb-ease-out) both;
  727. }
  728. ​
  729. .ath-tab.is-leaving {
  730. overflow: hidden;
  731. pointer-events: none;
  732. animation: ath-tab-out var(--orb-dur) var(--orb-ease) forwards;
  733. }
  734. ​
  735. .ath-tab.is-dragging {
  736. opacity: 0.4;
  737. }
  738. ​
  739. .ath-tab-marker {
  740. position: fixed;
  741. left: 0;
  742. top: 0;
  743. width: 2px;
  744. margin-left: -1px;
  745. border-radius: 2px;
  746. background: var(--orb-primary);
  747. box-shadow: 0 0 0 1px var(--orb-primary-dim-strong), 0 0 8px var(--orb-primary);
  748. opacity: 0;
  749. pointer-events: none;
  750. z-index: 60;
  751. transition:
  752. opacity var(--orb-dur-fast) var(--orb-ease),
  753. transform 90ms var(--orb-ease-out);
  754. }
  755. ​
  756. .ath-tab-marker.is-visible {
  757. opacity: 1;
  758. }
  759. ​
  760. @keyframes ath-tab-in {
  761. from {
  762. opacity: 0;
  763. max-width: 0;
  764. padding-left: 0;
  765. padding-right: 0;
  766. }
  767. ​
  768. to {
  769. opacity: 1;
  770. max-width: 230px;
  771. padding-left: 10px;
  772. padding-right: 6px;
  773. }
  774. }
  775. ​
  776. @keyframes ath-tab-out {
  777. from {
  778. opacity: 1;
  779. width: var(--w);
  780. max-width: var(--w);
  781. }
  782. ​
  783. to {
  784. opacity: 0;
  785. width: 0;
  786. max-width: 0;
  787. padding-left: 0;
  788. padding-right: 0;
  789. border-right-width: 0;
  790. }
  791. }
  792. ​
  793. .ath-tab-name {
  794. overflow: hidden;
  795. text-overflow: ellipsis;
  796. white-space: nowrap;
  797. }
  798. ​
  799. .ath-tab-close {
  800. width: 22px;
  801. height: 22px;
  802. flex-shrink: 0;
  803. display: grid;
  804. place-items: center;
  805. border: none;
  806. border-radius: var(--orb-radius-xs);
  807. background: transparent;
  808. color: var(--orb-text-muted);
  809. cursor: pointer;
  810. opacity: 0;
  811. }
  812. ​
  813. .ath-tab-close .ath-icon {
  814. width: 14px;
  815. height: 14px;
  816. }
  817. ​
  818. .ath-tab:hover .ath-tab-close,
  819. .ath-tab.is-active .ath-tab-close,
  820. .ath-tab.is-dirty .ath-tab-close,
  821. .ath-tab-close:focus-visible {
  822. opacity: 1;
  823. }
  824. ​
  825. .ath-tab-close:hover {
  826. background: var(--orb-surface-hover);
  827. color: var(--orb-text);
  828. }
  829. ​
  830. .ath-tab-dot {
  831. display: none;
  832. width: 8px;
  833. height: 8px;
  834. border-radius: 50%;
  835. background: currentColor;
  836. }
  837. ​
  838. .ath-tab.is-dirty .ath-tab-close:not(:hover) .ath-icon {
  839. display: none;
  840. }
  841. ​
  842. .ath-tab.is-dirty .ath-tab-close:not(:hover) .ath-tab-dot {
  843. display: block;
  844. }
  845. ​
  846. .ath-tab.is-dirty .ath-tab-close {
  847. color: var(--orb-text);
  848. }
  849. ​
  850. .ath-editor-area {
  851. position: relative;
  852. flex: 1;
  853. min-height: 0;
  854. }
  855. ​
  856. .ath-editor-host,
  857. .ath-image-view,
  858. .ath-welcome {
  859. position: absolute;
  860. inset: 0;
  861. display: none;
  862. }
  863. ​
  864. body[data-view="editor"] .ath-editor-host {
  865. display: block;
  866. }
  867. ​
  868. body[data-view="image"] .ath-image-view {
  869. display: grid;
  870. }
  871. ​
  872. body[data-view="welcome"] .ath-welcome {
  873. display: flex;
  874. }
  875. ​
  876. .ath-editor-host .cm-editor {
  877. height: 100%;
  878. }
  879. ​
  880. .ath-editor-host.has-minimap .cm-editor {
  881. width: calc(100% - 88px);
  882. }
  883. ​
  884. .ath-minimap {
  885. --ath-minimap-code: color-mix(in srgb, var(--orb-text-muted) 72%, transparent);
  886. --ath-minimap-selection: color-mix(in srgb, var(--orb-primary) 20%, transparent);
  887. --ath-minimap-cursor: var(--orb-primary);
  888. position: absolute;
  889. inset: 8px 8px 8px auto;
  890. width: 80px;
  891. overflow: hidden;
  892. border: 1px solid var(--orb-border);
  893. border-radius: 8px;
  894. background: linear-gradient(180deg, var(--orb-surface) 0%, var(--orb-surface-alt) 100%);
  895. box-shadow: 0 2px 8px color-mix(in srgb, var(--orb-text) 5%, transparent);
  896. cursor: pointer;
  897. touch-action: none;
  898. animation: ath-minimap-in var(--orb-dur-slow) var(--orb-ease-spring) both;
  899. transition:
  900. border-color var(--orb-dur) var(--orb-ease),
  901. box-shadow var(--orb-dur) var(--orb-ease),
  902. background-color var(--orb-dur) var(--orb-ease);
  903. }
  904. ​
  905. .ath-minimap:hover {
  906. border-color: var(--orb-border-strong);
  907. box-shadow: 0 4px 16px color-mix(in srgb, var(--orb-text) 9%, transparent);
  908. }
  909. ​
  910. .ath-minimap.is-dragging {
  911. cursor: grabbing;
  912. }
  913. ​
  914. .ath-minimap canvas {
  915. display: block;
  916. width: 100%;
  917. height: 100%;
  918. padding: 0;
  919. box-sizing: border-box;
  920. opacity: 0.76;
  921. pointer-events: none;
  922. transition: opacity var(--orb-dur) var(--orb-ease);
  923. }
  924. ​
  925. .ath-minimap:hover canvas {
  926. opacity: 1;
  927. }
  928. ​
  929. .ath-minimap-viewport {
  930. position: absolute;
  931. right: 4px;
  932. left: 4px;
  933. z-index: 1;
  934. box-sizing: border-box;
  935. border: 1px solid color-mix(in srgb, var(--orb-primary) 55%, transparent);
  936. border-radius: 5px;
  937. background: linear-gradient(110deg,
  938. color-mix(in srgb, var(--orb-primary) 13%, transparent),
  939. color-mix(in srgb, var(--orb-primary) 8%, transparent));
  940. box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--orb-surface) 35%, transparent);
  941. pointer-events: none;
  942. transition:
  943. border-color var(--orb-dur) var(--orb-ease),
  944. background-color var(--orb-dur) var(--orb-ease);
  945. }
  946. ​
  947. .ath-minimap-markers {
  948. position: absolute;
  949. inset: 0;
  950. z-index: 2;
  951. overflow: hidden;
  952. pointer-events: none;
  953. }
  954. ​
  955. .ath-minimap-selection {
  956. position: absolute;
  957. right: 7px;
  958. left: 7px;
  959. border-left: 2px solid var(--orb-primary);
  960. border-radius: 2px;
  961. background: var(--ath-minimap-selection);
  962. }
  963. ​
  964. .ath-minimap-cursor {
  965. position: absolute;
  966. right: 6px;
  967. left: 6px;
  968. height: 1px;
  969. border-radius: 2px;
  970. background: var(--ath-minimap-cursor);
  971. box-shadow: 0 0 5px color-mix(in srgb, var(--orb-primary) 70%, transparent);
  972. }
  973. ​
  974. .ath-minimap:hover .ath-minimap-viewport {
  975. border-color: color-mix(in srgb, var(--orb-primary) 80%, transparent);
  976. background: color-mix(in srgb, var(--orb-primary) 17%, transparent);
  977. }
  978. ​
  979. .ath-minimap.is-dragging .ath-minimap-viewport {
  980. transition: none;
  981. }
  982. ​
  983. @keyframes ath-minimap-in {
  984. from {
  985. opacity: 0;
  986. transform: translateX(8px);
  987. }
  988. ​
  989. to {
  990. opacity: 1;
  991. transform: none;
  992. }
  993. }
  994. ​
  995. .ath-minimap:focus-visible {
  996. outline: 2px solid var(--orb-primary);
  997. outline-offset: -2px;
  998. }
  999. ​
  1000. @media (max-width: 720px) {
  1001. .ath-editor-host.has-minimap .cm-editor {
  1002. width: 100%;
  1003. }
  1004. ​
  1005. .ath-minimap {
  1006. display: none;
  1007. }
  1008. }
  1009. ​
  1010. @media (prefers-reduced-motion: reduce) {
  1011. .ath-minimap,
  1012. .ath-minimap canvas,
  1013. .ath-minimap-viewport {
  1014. animation: none !important;
  1015. transition: none !important;
  1016. }
  1017. }
  1018. ​
  1019. .ath-image-view {
  1020. place-items: center;
  1021. padding: var(--orb-space-8);
  1022. overflow: auto;
  1023. background-color: var(--orb-surface-alt);
  1024. background-image: conic-gradient(var(--orb-surface-hover) 25%, transparent 0 50%, var(--orb-surface-hover) 0 75%, transparent 0);
  1025. background-size: 20px 20px;
  1026. }
  1027. ​
  1028. .ath-image-view img {
  1029. max-width: 100%;
  1030. max-height: 100%;
  1031. object-fit: contain;
  1032. box-shadow: var(--orb-shadow-md);
  1033. }
  1034. ​
  1035. .ath-welcome {
  1036. overflow: auto;
  1037. align-items: center;
  1038. justify-content: center;
  1039. padding: var(--orb-space-8) var(--orb-space-4);
  1040. background:
  1041. radial-gradient(600px 300px at 50% 0%, var(--orb-primary-dim), transparent 70%),
  1042. var(--ath-editor-bg);
  1043. }
  1044. ​
  1045. .ath-welcome-inner {
  1046. max-width: 560px;
  1047. width: 100%;
  1048. text-align: center;
  1049. margin: auto;
  1050. }
  1051. ​
  1052. .ath-welcome-logo {
  1053. display: block;
  1054. width: 104px;
  1055. height: 104px;
  1056. margin: 0 auto var(--orb-space-4);
  1057. object-fit: contain;
  1058. filter: drop-shadow(0 10px 24px rgba(3, 3, 26, 0.35));
  1059. }
  1060. ​
  1061. .ath-welcome .orb-lead {
  1062. margin: var(--orb-space-3) auto 0;
  1063. }
  1064. ​
  1065. .ath-welcome-actions {
  1066. display: flex;
  1067. flex-wrap: wrap;
  1068. justify-content: center;
  1069. gap: var(--orb-space-3);
  1070. margin: var(--orb-space-6) 0 var(--orb-space-3);
  1071. }
  1072. ​
  1073. .ath-recent {
  1074. margin-bottom: var(--orb-space-2);
  1075. }
  1076. ​
  1077. .ath-limited {
  1078. text-align: left;
  1079. margin-top: var(--orb-space-5);
  1080. }
  1081. ​
  1082. .ath-shortcuts {
  1083. display: grid;
  1084. grid-template-columns: repeat(2, minmax(0, 1fr));
  1085. gap: var(--orb-space-3) var(--orb-space-6);
  1086. margin-top: var(--orb-space-8);
  1087. padding-top: var(--orb-space-6);
  1088. border-top: 1px solid var(--orb-border);
  1089. text-align: left;
  1090. }
  1091. ​
  1092. .ath-shortcuts>div {
  1093. display: flex;
  1094. align-items: center;
  1095. gap: 4px;
  1096. font-size: 0.8125rem;
  1097. color: var(--orb-text-muted);
  1098. }
  1099. ​
  1100. .ath-shortcuts>div>span:last-child {
  1101. margin-left: 6px;
  1102. }
  1103. ​
  1104. .ath-preview {
  1105. width: var(--ath-preview-w, 42%);
  1106. flex-shrink: 0;
  1107. min-width: 0;
  1108. display: flex;
  1109. flex-direction: column;
  1110. background: var(--orb-bg);
  1111. }
  1112. ​
  1113. .ath-preview-status {
  1114. display: inline-flex;
  1115. align-items: center;
  1116. gap: 4px;
  1117. padding: 2px 8px;
  1118. border: none;
  1119. border-radius: var(--orb-radius-full);
  1120. background: var(--orb-danger-dim);
  1121. color: var(--orb-danger);
  1122. font-size: 0.71875rem;
  1123. font-weight: 700;
  1124. cursor: pointer;
  1125. white-space: nowrap;
  1126. }
  1127. ​
  1128. .ath-preview-status .ath-icon {
  1129. width: 13px;
  1130. height: 13px;
  1131. }
  1132. ​
  1133. .ath-preview-body {
  1134. position: relative;
  1135. flex: 1;
  1136. min-height: 0;
  1137. margin: 0 8px 8px;
  1138. border: 1px solid var(--orb-border);
  1139. border-radius: var(--orb-radius-md);
  1140. overflow: hidden;
  1141. background: #ffffff;
  1142. }
  1143. ​
  1144. .ath-preview-body iframe {
  1145. display: block;
  1146. width: 100%;
  1147. height: 100%;
  1148. border: 0;
  1149. background: #ffffff;
  1150. }
  1151. ​
  1152. .ath-preview-empty {
  1153. position: absolute;
  1154. inset: 0;
  1155. display: flex;
  1156. flex-direction: column;
  1157. align-items: center;
  1158. justify-content: center;
  1159. gap: var(--orb-space-3);
  1160. padding: var(--orb-space-6);
  1161. text-align: center;
  1162. font-size: 0.8125rem;
  1163. color: var(--orb-text-subtle);
  1164. background: var(--orb-surface);
  1165. }
  1166. ​
  1167. .ath-preview-empty .ath-icon {
  1168. width: 32px;
  1169. height: 32px;
  1170. }
  1171. ​
  1172. .ath-console {
  1173. flex-shrink: 0;
  1174. position: relative;
  1175. display: flex;
  1176. flex-direction: column;
  1177. margin: 0 8px 8px;
  1178. border: 1px solid var(--orb-border);
  1179. border-radius: var(--orb-radius-md);
  1180. background: var(--orb-surface);
  1181. overflow: hidden;
  1182. }
  1183. ​
  1184. .ath-console[hidden] {
  1185. display: none;
  1186. }
  1187. ​
  1188. .ath-console-grip {
  1189. display: none;
  1190. position: absolute;
  1191. top: 0;
  1192. left: 0;
  1193. right: 0;
  1194. height: 6px;
  1195. z-index: 2;
  1196. cursor: ns-resize;
  1197. touch-action: none;
  1198. }
  1199. ​
  1200. .ath-console.is-open .ath-console-grip {
  1201. display: block;
  1202. }
  1203. ​
  1204. .ath-console-head {
  1205. display: flex;
  1206. align-items: center;
  1207. gap: 6px;
  1208. min-height: 32px;
  1209. padding: 0 4px 0 2px;
  1210. }
  1211. ​
  1212. .ath-console-toggle {
  1213. display: inline-flex;
  1214. align-items: center;
  1215. gap: 6px;
  1216. padding: 5px 8px;
  1217. border: 0;
  1218. border-radius: var(--orb-radius-sm);
  1219. background: transparent;
  1220. color: var(--orb-text);
  1221. font: inherit;
  1222. font-size: 0.78125rem;
  1223. font-weight: 600;
  1224. cursor: pointer;
  1225. }
  1226. ​
  1227. .ath-console-toggle:hover {
  1228. background: var(--orb-surface-hover);
  1229. }
  1230. ​
  1231. .ath-console-toggle .ath-icon {
  1232. width: 14px;
  1233. height: 14px;
  1234. transition: transform 0.15s;
  1235. }
  1236. ​
  1237. .ath-console.is-open .ath-console-toggle .ath-icon {
  1238. transform: rotate(90deg);
  1239. }
  1240. ​
  1241. .ath-console-badge {
  1242. padding: 1px 7px;
  1243. border-radius: var(--orb-radius-full);
  1244. font-size: 0.6875rem;
  1245. font-weight: 700;
  1246. }
  1247. ​
  1248. .ath-console-badge.is-error {
  1249. background: var(--orb-danger-dim);
  1250. color: var(--orb-danger);
  1251. }
  1252. ​
  1253. .ath-console-badge.is-warn {
  1254. background: var(--orb-warning-dim);
  1255. color: var(--orb-warning);
  1256. }
  1257. ​
  1258. .ath-console-badge[hidden] {
  1259. display: none;
  1260. }
  1261. ​
  1262. .ath-console-tools {
  1263. display: flex;
  1264. align-items: center;
  1265. gap: 2px;
  1266. margin-left: auto;
  1267. min-width: 0;
  1268. opacity: 0;
  1269. visibility: hidden;
  1270. pointer-events: none;
  1271. }
  1272. ​
  1273. .ath-console.is-open .ath-console-tools {
  1274. opacity: 1;
  1275. visibility: visible;
  1276. pointer-events: auto;
  1277. }
  1278. ​
  1279. .ath-console-filter {
  1280. padding: 3px 8px;
  1281. border: 0;
  1282. border-radius: var(--orb-radius-full);
  1283. background: transparent;
  1284. color: var(--orb-text-muted);
  1285. font: inherit;
  1286. font-size: 0.71875rem;
  1287. font-weight: 600;
  1288. white-space: nowrap;
  1289. cursor: pointer;
  1290. }
  1291. ​
  1292. .ath-console-filter:hover {
  1293. background: var(--orb-surface-hover);
  1294. }
  1295. ​
  1296. .ath-console-filter.is-active {
  1297. background: var(--orb-primary-dim);
  1298. color: var(--orb-primary-text);
  1299. }
  1300. ​
  1301. .ath-console-body {
  1302. display: block;
  1303. height: 0;
  1304. max-height: 60vh;
  1305. overflow: hidden;
  1306. border-top: 0 solid var(--orb-border);
  1307. opacity: 0;
  1308. visibility: hidden;
  1309. font-family: var(--ath-font-code);
  1310. font-size: 0.75rem;
  1311. }
  1312. ​
  1313. .ath-console.is-open .ath-console-body {
  1314. height: var(--ath-console-h, 220px);
  1315. overflow: auto;
  1316. border-top-width: 1px;
  1317. opacity: 1;
  1318. visibility: visible;
  1319. }
  1320. ​
  1321. .ath-console-empty {
  1322. padding: 12px;
  1323. color: var(--orb-text-subtle);
  1324. font-family: inherit;
  1325. }
  1326. ​
  1327. .ath-console-row {
  1328. display: flex;
  1329. align-items: flex-start;
  1330. gap: 8px;
  1331. padding: 3px 10px;
  1332. border-bottom: 1px solid color-mix(in srgb, var(--orb-border) 55%, transparent);
  1333. line-height: 1.55;
  1334. }
  1335. ​
  1336. .ath-console-row.is-error {
  1337. background: var(--orb-danger-dim);
  1338. color: var(--orb-danger);
  1339. }
  1340. ​
  1341. .ath-console-row.is-warn {
  1342. background: var(--orb-warning-dim);
  1343. color: var(--orb-warning);
  1344. }
  1345. ​
  1346. .ath-console-row.is-input {
  1347. color: var(--orb-text-muted);
  1348. }
  1349. ​
  1350. .ath-console-row.is-input .ath-console-lead::before {
  1351. content: "\203A";
  1352. }
  1353. ​
  1354. .ath-console-row.is-result .ath-console-lead::before {
  1355. content: "\2039";
  1356. color: var(--orb-text-subtle);
  1357. }
  1358. ​
  1359. .ath-console-lead {
  1360. flex: 0 0 14px;
  1361. display: inline-flex;
  1362. justify-content: center;
  1363. }
  1364. ​
  1365. .ath-console-lead .ath-icon {
  1366. width: 13px;
  1367. height: 13px;
  1368. margin-top: 3px;
  1369. }
  1370. ​
  1371. .ath-console-tag {
  1372. padding: 0 6px;
  1373. border-radius: var(--orb-radius-sm);
  1374. background: var(--orb-info-dim);
  1375. color: var(--orb-info);
  1376. font-size: 0.65625rem;
  1377. font-weight: 700;
  1378. line-height: 1.7;
  1379. }
  1380. ​
  1381. .ath-console-text {
  1382. flex: 1;
  1383. min-width: 0;
  1384. margin: 0;
  1385. font: inherit;
  1386. white-space: pre-wrap;
  1387. word-break: break-word;
  1388. }
  1389. ​
  1390. .ath-console-repeat {
  1391. padding: 0 6px;
  1392. border-radius: var(--orb-radius-full);
  1393. background: var(--orb-surface-alt);
  1394. color: var(--orb-text-muted);
  1395. font-size: 0.6875rem;
  1396. font-weight: 700;
  1397. }
  1398. ​
  1399. .ath-console-repeat[hidden] {
  1400. display: none;
  1401. }
  1402. ​
  1403. .ath-console-loc {
  1404. flex-shrink: 0;
  1405. padding: 0;
  1406. border: 0;
  1407. background: transparent;
  1408. color: var(--orb-text-subtle);
  1409. font: inherit;
  1410. font-size: 0.6875rem;
  1411. cursor: pointer;
  1412. }
  1413. ​
  1414. .ath-console-loc:not(.is-plain):hover {
  1415. color: var(--orb-primary-text);
  1416. text-decoration: underline;
  1417. }
  1418. ​
  1419. .ath-console-loc.is-plain {
  1420. cursor: default;
  1421. }
  1422. ​
  1423. .ath-console-input {
  1424. display: flex;
  1425. align-items: center;
  1426. gap: 8px;
  1427. padding: 0 10px;
  1428. max-height: 0;
  1429. overflow: hidden;
  1430. border-top: 0 solid var(--orb-border);
  1431. opacity: 0;
  1432. visibility: hidden;
  1433. }
  1434. ​
  1435. .ath-console.is-open .ath-console-input {
  1436. max-height: 48px;
  1437. border-top-width: 1px;
  1438. opacity: 1;
  1439. visibility: visible;
  1440. }
  1441. ​
  1442. .ath-console.is-armed .ath-console-body,
  1443. .ath-console.is-armed .ath-console-input,
  1444. .ath-console.is-armed .ath-console-tools {
  1445. transition:
  1446. height var(--orb-dur-slow) var(--orb-ease-out),
  1447. max-height var(--orb-dur-slow) var(--orb-ease-out),
  1448. border-top-width var(--orb-dur-slow) var(--orb-ease-out),
  1449. opacity var(--orb-dur) var(--orb-ease),
  1450. visibility 0s linear var(--orb-dur-slow);
  1451. }
  1452. ​
  1453. .ath-console.is-armed.is-open .ath-console-body,
  1454. .ath-console.is-armed.is-open .ath-console-input,
  1455. .ath-console.is-armed.is-open .ath-console-tools {
  1456. transition:
  1457. height var(--orb-dur-slow) var(--orb-ease-out),
  1458. max-height var(--orb-dur-slow) var(--orb-ease-out),
  1459. border-top-width var(--orb-dur-slow) var(--orb-ease-out),
  1460. opacity var(--orb-dur) var(--orb-ease) 60ms,
  1461. visibility 0s;
  1462. }
  1463. ​
  1464. .ath-console.is-resizing .ath-console-body {
  1465. transition: none !important;
  1466. }
  1467. ​
  1468. @media (prefers-reduced-motion: reduce) {
  1469. .ath-console .ath-console-body,
  1470. .ath-console .ath-console-input,
  1471. .ath-console .ath-console-tools {
  1472. transition: none !important;
  1473. }
  1474. }
  1475. ​
  1476. .ath-console-prompt {
  1477. color: var(--orb-primary-text);
  1478. font-family: var(--ath-font-code);
  1479. font-weight: 700;
  1480. }
  1481. ​
  1482. .ath-console-input input {
  1483. flex: 1;
  1484. min-width: 0;
  1485. padding: 7px 0;
  1486. border: 0;
  1487. outline: 0;
  1488. background: transparent;
  1489. color: var(--orb-text);
  1490. font-family: var(--ath-font-code);
  1491. font-size: 0.75rem;
  1492. }
  1493. ​
  1494. .ath-statusbar {
  1495. display: flex;
  1496. align-items: center;
  1497. padding: 0 6px;
  1498. font-size: 0.75rem;
  1499. color: var(--orb-text-muted);
  1500. background: var(--orb-bg);
  1501. border-top: 1px solid var(--orb-border);
  1502. white-space: nowrap;
  1503. overflow: hidden;
  1504. }
  1505. ​
  1506. .ath-status-item {
  1507. padding: 0 8px;
  1508. }
  1509. ​
  1510. .ath-status-item:empty {
  1511. display: none;
  1512. }
  1513. ​
  1514. .ath-status-spacer {
  1515. flex: 1;
  1516. }
  1517. ​
  1518. .ath-status-mode {
  1519. padding: 1px 8px;
  1520. border-radius: var(--orb-radius-xs);
  1521. background: var(--orb-primary-dim);
  1522. color: var(--orb-primary-text);
  1523. font-weight: 600;
  1524. overflow: hidden;
  1525. text-overflow: ellipsis;
  1526. }
  1527. ​
  1528. .ath-status-mode.is-limited {
  1529. background: var(--orb-warning-dim);
  1530. color: color-mix(in srgb, var(--orb-warning) 70%, var(--orb-text));
  1531. }
  1532. ​
  1533. .ath-status-brand {
  1534. color: var(--orb-text-subtle);
  1535. }
  1536. ​
  1537. .ath-dialog .orb-modal-close .ath-icon {
  1538. width: 18px;
  1539. height: 18px;
  1540. }
  1541. ​
  1542. .ath-dialog-text {
  1543. font-size: 0.875rem;
  1544. line-height: 1.6;
  1545. }
  1546. ​
  1547. .ath-context-menu {
  1548. position: fixed;
  1549. z-index: 2000;
  1550. min-width: 220px;
  1551. width: max-content;
  1552. }
  1553. ​
  1554. .ath-context-menu .orb-dropdown-item {
  1555. font-size: 0.8125rem;
  1556. padding: 7px 10px;
  1557. }
  1558. ​
  1559. .ath-error-list {
  1560. list-style: none;
  1561. display: flex;
  1562. flex-direction: column;
  1563. gap: 6px;
  1564. }
  1565. ​
  1566. .ath-error-list li {
  1567. padding: 8px 10px;
  1568. border-radius: var(--orb-radius-sm);
  1569. background: var(--orb-danger-dim);
  1570. color: var(--orb-danger);
  1571. font-size: 0.78125rem;
  1572. word-break: break-word;
  1573. }
  1574. ​
  1575. .ath-keys-table {
  1576. width: 100%;
  1577. font-size: 0.8125rem;
  1578. }
  1579. ​
  1580. .ath-keys-table td {
  1581. padding: 7px 10px;
  1582. vertical-align: middle;
  1583. }
  1584. ​
  1585. .ath-keys-table td:first-child {
  1586. white-space: nowrap;
  1587. width: 1%;
  1588. }
  1589. ​
  1590. .ath-combo {
  1591. display: inline-flex;
  1592. gap: 3px;
  1593. }
  1594. ​
  1595. .ath-about {
  1596. text-align: center;
  1597. }
  1598. ​
  1599. .ath-about p {
  1600. margin-top: var(--orb-space-2);
  1601. font-size: 0.875rem;
  1602. }
  1603. ​
  1604. .ath-about-logo {
  1605. width: 72px;
  1606. height: 72px;
  1607. margin: 0 auto var(--orb-space-3);
  1608. display: block;
  1609. object-fit: contain;
  1610. }
  1611. ​
  1612. .ath-lang-menu {
  1613. min-width: 250px;
  1614. }
  1615. ​
  1616. .ath-lang-menu .ath-accent-label {
  1617. padding: 6px 10px 0;
  1618. margin-bottom: 6px;
  1619. }
  1620. ​
  1621. .ath-lang-menu .orb-dropdown-item {
  1622. font-size: 0.8125rem;
  1623. padding: 7px 10px;
  1624. }
  1625. ​
  1626. .ath-lang-item.is-current {
  1627. color: var(--orb-primary-text);
  1628. font-weight: 600;
  1629. }
  1630. ​
  1631. .ath-lang-item.is-current svg {
  1632. color: var(--orb-primary-text);
  1633. }
  1634. ​
  1635. .ath-lang-code {
  1636. margin-left: auto;
  1637. font-size: 0.6875rem;
  1638. color: var(--orb-text-subtle);
  1639. text-transform: uppercase;
  1640. letter-spacing: 0.04em;
  1641. }
  1642. ​
  1643. .ath-shell {
  1644. transition: opacity 140ms var(--orb-ease);
  1645. }
  1646. ​
  1647. body:not(.is-ready) .ath-shell {
  1648. opacity: 0;
  1649. }
  1650. ​
  1651. body:not(.is-ready) * {
  1652. transition: none !important;
  1653. animation: none !important;
  1654. }
  1655. ​
  1656. .ath-drop-hint {
  1657. position: fixed;
  1658. inset: 12px;
  1659. z-index: 3000;
  1660. display: flex;
  1661. align-items: center;
  1662. justify-content: center;
  1663. gap: var(--orb-space-3);
  1664. border: 2px dashed var(--orb-primary);
  1665. border-radius: var(--orb-radius-xl);
  1666. background: color-mix(in srgb, var(--orb-bg) 82%, transparent);
  1667. backdrop-filter: blur(4px);
  1668. -webkit-backdrop-filter: blur(4px);
  1669. color: var(--orb-primary-text);
  1670. font-size: 1rem;
  1671. font-weight: 600;
  1672. opacity: 0;
  1673. pointer-events: none;
  1674. transition: opacity var(--orb-dur) var(--orb-ease);
  1675. }
  1676. ​
  1677. .ath-drop-hint.is-visible {
  1678. opacity: 1;
  1679. }
  1680. ​
  1681. .ath-drop-hint .ath-icon {
  1682. width: 24px;
  1683. height: 24px;
  1684. }
  1685. ​
  1686. @media (max-width: 960px) {
  1687. .ath-preview {
  1688. position: absolute;
  1689. top: 0;
  1690. right: 0;
  1691. bottom: 0;
  1692. z-index: 20;
  1693. width: min(100%, 520px);
  1694. border-left: 1px solid var(--orb-border);
  1695. box-shadow: var(--orb-shadow-lg);
  1696. }
  1697. ​
  1698. [data-split="preview"] {
  1699. display: none;
  1700. }
  1701. }
  1702. ​
  1703. @media (max-width: 720px) {
  1704. .ath-sidebar {
  1705. position: absolute;
  1706. top: 0;
  1707. left: 0;
  1708. bottom: 0;
  1709. z-index: 21;
  1710. width: min(85%, 300px);
  1711. border-right: 1px solid var(--orb-border);
  1712. box-shadow: var(--orb-shadow-lg);
  1713. }
  1714. ​
  1715. [data-split="sidebar"] {
  1716. display: none;
  1717. }
  1718. ​
  1719. .ath-brand-name {
  1720. display: none;
  1721. }
  1722. ​
  1723. .ath-topbar {
  1724. gap: var(--orb-space-2);
  1725. }
  1726. ​
  1727. .ath-shortcuts {
  1728. grid-template-columns: 1fr;
  1729. }
  1730. ​
  1731. #st-indent,
  1732. .ath-status-brand {
  1733. display: none;
  1734. }
  1735. }
  1736. ​
  1737. .ath-settings {
  1738. display: flex;
  1739. flex-direction: column;
  1740. gap: var(--orb-space-6);
  1741. }
  1742. ​
  1743. .ath-set-section h3 {
  1744. font-size: 0.6875rem;
  1745. font-weight: 700;
  1746. text-transform: uppercase;
  1747. letter-spacing: 0.06em;
  1748. color: var(--orb-text-subtle);
  1749. margin-bottom: var(--orb-space-2);
  1750. }
  1751. ​
  1752. .ath-set-row {
  1753. display: grid;
  1754. grid-template-columns: minmax(0, 1fr) minmax(0, 240px);
  1755. align-items: center;
  1756. gap: var(--orb-space-4);
  1757. padding: 10px 0;
  1758. border-bottom: 1px solid var(--orb-border);
  1759. }
  1760. ​
  1761. .ath-set-row:last-child {
  1762. border-bottom: none;
  1763. }
  1764. ​
  1765. .ath-set-label {
  1766. display: flex;
  1767. flex-direction: column;
  1768. gap: 2px;
  1769. font-size: 0.875rem;
  1770. min-width: 0;
  1771. }
  1772. ​
  1773. .ath-set-label small {
  1774. font-size: 0.75rem;
  1775. color: var(--orb-text-subtle);
  1776. line-height: 1.45;
  1777. }
  1778. ​
  1779. .ath-set-control {
  1780. display: flex;
  1781. justify-content: flex-end;
  1782. min-width: 0;
  1783. }
  1784. ​
  1785. .ath-set-control .orb-select {
  1786. min-height: 36px;
  1787. padding-top: 6px;
  1788. padding-bottom: 6px;
  1789. }
  1790. ​
  1791. .ath-set-accents {
  1792. grid-template-columns: repeat(8, 22px);
  1793. gap: 8px;
  1794. }
  1795. ​
  1796. .ath-set-accents .orb-color-dot {
  1797. width: 22px;
  1798. height: 22px;
  1799. }
  1800. ​
  1801. .ath-range {
  1802. display: flex;
  1803. align-items: center;
  1804. gap: var(--orb-space-3);
  1805. width: 100%;
  1806. }
  1807. ​
  1808. .ath-range-value {
  1809. min-width: 48px;
  1810. text-align: right;
  1811. font-size: 0.8125rem;
  1812. color: var(--orb-text-muted);
  1813. font-variant-numeric: tabular-nums;
  1814. }
  1815. ​
  1816. .ath-set-hint {
  1817. font-size: 0.8125rem;
  1818. color: var(--orb-text-muted);
  1819. line-height: 1.5;
  1820. margin-bottom: var(--orb-space-3);
  1821. }
  1822. ​
  1823. .ath-set-hint code {
  1824. font-family: var(--orb-font-mono);
  1825. font-size: 0.75rem;
  1826. }
  1827. ​
  1828. .ath-font-list {
  1829. display: flex;
  1830. flex-direction: column;
  1831. gap: 6px;
  1832. margin-bottom: var(--orb-space-3);
  1833. }
  1834. ​
  1835. .ath-font-item {
  1836. display: flex;
  1837. align-items: center;
  1838. justify-content: space-between;
  1839. gap: var(--orb-space-3);
  1840. padding: 6px 6px 6px 12px;
  1841. border: 1px solid var(--orb-border);
  1842. border-radius: var(--orb-radius-sm);
  1843. font-size: 0.9375rem;
  1844. }
  1845. ​
  1846. .ath-set-empty {
  1847. font-size: 0.8125rem;
  1848. color: var(--orb-text-subtle);
  1849. }
  1850. ​
  1851. @media (max-width: 560px) {
  1852. .ath-set-row {
  1853. grid-template-columns: 1fr;
  1854. gap: var(--orb-space-2);
  1855. }
  1856. ​
  1857. .ath-set-control {
  1858. justify-content: flex-start;
  1859. }
  1860. }
  1861. ​
  1862. .ath-palette-overlay {
  1863. position: fixed;
  1864. inset: 0;
  1865. z-index: 1500;
  1866. display: flex;
  1867. justify-content: center;
  1868. align-items: flex-start;
  1869. padding-top: 72px;
  1870. background: rgba(0, 0, 0, 0.18);
  1871. }
  1872. ​
  1873. .ath-palette {
  1874. width: min(640px, calc(100vw - 32px));
  1875. max-height: min(480px, 70vh);
  1876. display: flex;
  1877. flex-direction: column;
  1878. overflow: hidden;
  1879. background: var(--orb-surface);
  1880. border: 1px solid var(--orb-border-strong);
  1881. border-radius: var(--orb-radius-md);
  1882. box-shadow: var(--orb-shadow-lg);
  1883. animation: orb-pop var(--orb-dur) var(--orb-ease-out);
  1884. }
  1885. ​
  1886. .ath-palette-input {
  1887. width: 100%;
  1888. border: 0;
  1889. border-bottom: 1px solid var(--orb-border);
  1890. padding: 14px 16px;
  1891. background: transparent;
  1892. color: var(--orb-text);
  1893. font-size: 0.9375rem;
  1894. outline: none;
  1895. }
  1896. ​
  1897. .ath-palette[data-mode="cmd"] .ath-palette-input,
  1898. .ath-palette[data-mode="line"] .ath-palette-input {
  1899. font-family: var(--orb-font-mono);
  1900. }
  1901. ​
  1902. .ath-palette-list {
  1903. overflow-y: auto;
  1904. padding: 6px;
  1905. }
  1906. ​
  1907. .ath-palette-item {
  1908. display: flex;
  1909. align-items: center;
  1910. gap: 10px;
  1911. min-height: 34px;
  1912. padding: 6px 10px;
  1913. border-radius: var(--orb-radius-sm);
  1914. font-size: 0.8125rem;
  1915. cursor: pointer;
  1916. }
  1917. ​
  1918. .ath-palette-item.is-active {
  1919. background: var(--orb-primary-dim-strong);
  1920. }
  1921. ​
  1922. .ath-palette-item.is-disabled {
  1923. color: var(--orb-text-subtle);
  1924. cursor: default;
  1925. }
  1926. ​
  1927. .ath-palette-item .ath-icon {
  1928. color: var(--orb-text-muted);
  1929. }
  1930. ​
  1931. .ath-palette-noicon {
  1932. width: 20px;
  1933. flex-shrink: 0;
  1934. }
  1935. ​
  1936. .ath-palette-label {
  1937. white-space: nowrap;
  1938. overflow: hidden;
  1939. text-overflow: ellipsis;
  1940. }
  1941. ​
  1942. .ath-palette-label mark {
  1943. background: none;
  1944. color: var(--orb-primary-text);
  1945. font-weight: 700;
  1946. }
  1947. ​
  1948. .ath-palette-detail {
  1949. margin-left: auto;
  1950. padding-left: 12px;
  1951. color: var(--orb-text-subtle);
  1952. font-size: 0.75rem;
  1953. white-space: nowrap;
  1954. overflow: hidden;
  1955. text-overflow: ellipsis;
  1956. max-width: 55%;
  1957. font-family: var(--orb-font-mono);
  1958. }
  1959. ​
  1960. .ath-status-problems {
  1961. display: inline-flex;
  1962. align-items: center;
  1963. gap: 10px;
  1964. height: 100%;
  1965. border: 0;
  1966. background: none;
  1967. color: inherit;
  1968. font: inherit;
  1969. cursor: pointer;
  1970. }
  1971. ​
  1972. .ath-status-problems:hover {
  1973. color: var(--orb-text);
  1974. background: var(--orb-surface-hover);
  1975. }
  1976. ​
  1977. .ath-status-problems span {
  1978. display: inline-flex;
  1979. align-items: center;
  1980. gap: 3px;
  1981. }
  1982. ​
  1983. .ath-status-problems .ath-icon {
  1984. width: 12px;
  1985. height: 12px;
  1986. }
  1987. ​
  1988. .ath-status-problems.has-errors .ath-st-err {
  1989. color: var(--orb-danger);
  1990. font-weight: 700;
  1991. }
  1992. ​
  1993. body[data-view="welcome"] .ath-status-problems,
  1994. body[data-view="image"] .ath-status-problems {
  1995. display: none;
  1996. }
  1997. ​
  1998. .ath-snippet-preview {
  1999. margin: 0;
  2000. max-width: 460px;
  2001. max-height: 260px;
  2002. overflow: auto;
  2003. font-family: var(--ath-font-code);
  2004. font-size: 12px;
  2005. line-height: 1.5;
  2006. white-space: pre;
  2007. color: var(--orb-text-muted);
  2008. }
  2009. ​
  2010. .ath-pane-title[data-badge]::after {
  2011. content: attr(data-badge);
  2012. margin-left: 8px;
  2013. padding: 1px 6px;
  2014. border-radius: var(--orb-radius-xs);
  2015. background: var(--orb-primary-dim);
  2016. color: var(--orb-primary-text);
  2017. font-size: 0.625rem;
  2018. letter-spacing: 0.04em;
  2019. }
  2020. ​
  2021. .ath-preview-loading {
  2022. position: absolute;
  2023. inset: 0;
  2024. display: flex;
  2025. flex-direction: column;
  2026. align-items: center;
  2027. justify-content: center;
  2028. gap: var(--orb-space-3);
  2029. background: color-mix(in srgb, var(--orb-surface) 88%, transparent);
  2030. color: var(--orb-text-muted);
  2031. font-size: 0.8125rem;
  2032. z-index: 2;
  2033. }
  2034. ​
  2035. .ath-spinner {
  2036. width: 26px;
  2037. height: 26px;
  2038. border-radius: 50%;
  2039. border: 3px solid var(--orb-primary-dim-strong);
  2040. border-top-color: var(--orb-primary);
  2041. animation: orb-spin 0.8s linear infinite;
  2042. }
  2043. ​
  2044. .ath-search {
  2045. flex: 0 0 auto;
  2046. display: flex;
  2047. flex-direction: column;
  2048. position: relative;
  2049. min-height: 0;
  2050. overflow: hidden;
  2051. height: 35px;
  2052. border-top: 1px solid var(--orb-border);
  2053. background: var(--orb-bg);
  2054. transition: height var(--orb-dur-slow) var(--orb-ease-out);
  2055. }
  2056. ​
  2057. .ath-search.is-open {
  2058. height: var(--ath-search-h, 320px);
  2059. max-height: 80%;
  2060. }
  2061. ​
  2062. body.ath-resizing .ath-search {
  2063. transition: none;
  2064. }
  2065. ​
  2066. .ath-search-grip {
  2067. display: none;
  2068. position: absolute;
  2069. left: 0;
  2070. right: 0;
  2071. top: -3px;
  2072. height: 6px;
  2073. cursor: row-resize;
  2074. z-index: 2;
  2075. }
  2076. ​
  2077. .ath-search.is-open .ath-search-grip {
  2078. display: block;
  2079. }
  2080. ​
  2081. .ath-search-head {
  2082. display: flex;
  2083. align-items: center;
  2084. gap: var(--orb-space-2);
  2085. height: 34px;
  2086. flex-shrink: 0;
  2087. padding: 0 6px;
  2088. }
  2089. ​
  2090. .ath-search-toggle {
  2091. display: flex;
  2092. align-items: center;
  2093. gap: 6px;
  2094. flex: 1;
  2095. min-width: 0;
  2096. height: 100%;
  2097. padding: 0 8px;
  2098. border: none;
  2099. background: transparent;
  2100. color: inherit;
  2101. text-align: left;
  2102. cursor: pointer;
  2103. }
  2104. ​
  2105. .ath-search-chev {
  2106. display: grid;
  2107. place-items: center;
  2108. color: var(--orb-text-muted);
  2109. transition: transform var(--orb-dur-fast) var(--orb-ease);
  2110. }
  2111. ​
  2112. .ath-search-chev .ath-icon,
  2113. .ath-sr-chev .ath-icon {
  2114. width: 13px;
  2115. height: 13px;
  2116. }
  2117. ​
  2118. .ath-search.is-open .ath-search-chev {
  2119. transform: rotate(90deg);
  2120. }
  2121. ​
  2122. .ath-search-count,
  2123. .ath-sr-num {
  2124. margin-left: auto;
  2125. flex-shrink: 0;
  2126. min-width: 18px;
  2127. padding: 0 6px;
  2128. border-radius: 999px;
  2129. background: var(--orb-primary-dim);
  2130. color: var(--orb-primary-text);
  2131. font-size: 0.6875rem;
  2132. font-weight: 600;
  2133. line-height: 18px;
  2134. text-align: center;
  2135. }
  2136. ​
  2137. .ath-search-count:empty {
  2138. display: none;
  2139. }
  2140. ​
  2141. .ath-search-body {
  2142. display: flex;
  2143. flex-direction: column;
  2144. flex: 1;
  2145. min-height: 0;
  2146. opacity: 0;
  2147. visibility: hidden;
  2148. transform: translateY(-4px);
  2149. transition: opacity var(--orb-dur) var(--orb-ease), transform var(--orb-dur) var(--orb-ease-out), visibility 0s linear var(--orb-dur);
  2150. }
  2151. ​
  2152. .ath-search.is-open .ath-search-body {
  2153. opacity: 1;
  2154. visibility: visible;
  2155. transform: none;
  2156. transition: opacity var(--orb-dur-slow) var(--orb-ease) 60ms, transform var(--orb-dur-slow) var(--orb-ease-out) 60ms, visibility 0s;
  2157. }
  2158. ​
  2159. .ath-search-form {
  2160. display: flex;
  2161. flex-direction: column;
  2162. gap: 6px;
  2163. flex-shrink: 0;
  2164. padding: 2px 10px 8px;
  2165. }
  2166. ​
  2167. .ath-search-row {
  2168. display: flex;
  2169. align-items: center;
  2170. gap: 4px;
  2171. }
  2172. ​
  2173. .ath-search-input {
  2174. flex: 1;
  2175. min-width: 0;
  2176. height: 28px;
  2177. padding: 0 8px;
  2178. font-size: 0.8125rem;
  2179. }
  2180. ​
  2181. .ath-search-multiline {
  2182. height: auto;
  2183. min-height: 28px;
  2184. max-height: 88px;
  2185. padding: 5px 8px;
  2186. line-height: 1.35;
  2187. resize: none;
  2188. overflow-y: auto;
  2189. white-space: pre-wrap;
  2190. }
  2191. ​
  2192. #search-query,
  2193. #search-replace {
  2194. align-self: flex-start;
  2195. }
  2196. ​
  2197. .ath-search-opt {
  2198. flex-shrink: 0;
  2199. width: 26px;
  2200. height: 26px;
  2201. border: 1px solid transparent;
  2202. border-radius: var(--orb-radius-xs);
  2203. background: transparent;
  2204. color: var(--orb-text-muted);
  2205. font: 600 0.6875rem var(--ath-font-code);
  2206. cursor: pointer;
  2207. }
  2208. ​
  2209. .ath-search-opt:hover {
  2210. background: var(--orb-surface-hover);
  2211. color: var(--orb-text);
  2212. }
  2213. ​
  2214. .ath-search-opt[aria-pressed="true"],
  2215. #search-replace-toggle[aria-pressed="true"] {
  2216. background: var(--orb-primary-dim-strong);
  2217. color: var(--orb-primary-text);
  2218. border-color: var(--orb-primary-border);
  2219. }
  2220. ​
  2221. .ath-search-status {
  2222. display: flex;
  2223. align-items: center;
  2224. gap: 8px;
  2225. flex-shrink: 0;
  2226. min-height: 22px;
  2227. padding: 0 12px 4px;
  2228. font-size: 0.75rem;
  2229. color: var(--orb-text-muted);
  2230. }
  2231. ​
  2232. .ath-search-stop {
  2233. margin-left: auto;
  2234. border: none;
  2235. background: transparent;
  2236. color: var(--orb-primary-text);
  2237. font-size: 0.75rem;
  2238. cursor: pointer;
  2239. }
  2240. ​
  2241. .ath-search-results {
  2242. flex: 1;
  2243. min-height: 0;
  2244. overflow: auto;
  2245. overflow-anchor: none;
  2246. padding-bottom: 12px;
  2247. font-size: 0.8125rem;
  2248. }
  2249. ​
  2250. .ath-cm-search-panel {
  2251. display: flex;
  2252. flex-direction: column;
  2253. gap: 6px;
  2254. padding: 8px 10px;
  2255. font-family: var(--orb-font-sans);
  2256. font-size: 0.8125rem;
  2257. }
  2258. ​
  2259. .ath-cm-search-row,
  2260. .ath-cm-search-replace {
  2261. display: flex;
  2262. align-items: flex-start;
  2263. gap: 6px;
  2264. }
  2265. ​
  2266. .ath-cm-search-replace[hidden] {
  2267. display: none;
  2268. }
  2269. ​
  2270. .ath-cm-search-field {
  2271. flex: 1;
  2272. min-width: 100px;
  2273. min-height: 30px;
  2274. max-height: 84px;
  2275. padding: 5px 8px;
  2276. resize: none;
  2277. overflow-y: auto;
  2278. white-space: pre-wrap;
  2279. line-height: 1.35;
  2280. font-size: 0.8125rem;
  2281. }
  2282. ​
  2283. .ath-cm-search-controls {
  2284. display: flex;
  2285. flex-wrap: wrap;
  2286. gap: 3px;
  2287. }
  2288. ​
  2289. .ath-cm-search-button {
  2290. min-width: 28px;
  2291. min-height: 28px;
  2292. padding: 2px 7px;
  2293. border: 1px solid var(--orb-border);
  2294. border-radius: var(--orb-radius-xs);
  2295. background: var(--orb-surface);
  2296. color: var(--orb-text);
  2297. font: inherit;
  2298. cursor: pointer;
  2299. }
  2300. ​
  2301. .ath-cm-search-button:hover {
  2302. background: var(--orb-surface-hover);
  2303. }
  2304. ​
  2305. .ath-cm-search-option {
  2306. font-family: var(--ath-font-code);
  2307. }
  2308. ​
  2309. .ath-cm-search-option[aria-pressed="true"] {
  2310. border-color: var(--orb-primary-border);
  2311. background: var(--orb-primary-dim-strong);
  2312. color: var(--orb-primary-text);
  2313. }
  2314. ​
  2315. .ath-sr-file {
  2316. display: flex;
  2317. align-items: center;
  2318. gap: 5px;
  2319. height: 26px;
  2320. padding: 0 8px;
  2321. cursor: pointer;
  2322. user-select: none;
  2323. outline: none;
  2324. }
  2325. ​
  2326. .ath-sr-file:hover,
  2327. .ath-sr-match:hover {
  2328. background: var(--orb-surface-hover);
  2329. }
  2330. ​
  2331. .ath-sr-file:focus-visible,
  2332. .ath-sr-match:focus-visible {
  2333. box-shadow: inset 0 0 0 1px var(--orb-primary);
  2334. }
  2335. ​
  2336. .ath-sr-chev {
  2337. display: grid;
  2338. place-items: center;
  2339. color: var(--orb-text-muted);
  2340. transition: transform var(--orb-dur-fast) var(--orb-ease);
  2341. }
  2342. ​
  2343. .ath-sr-group:not(.is-collapsed) .ath-sr-chev {
  2344. transform: rotate(90deg);
  2345. }
  2346. ​
  2347. .ath-sr-name {
  2348. font-weight: 600;
  2349. white-space: nowrap;
  2350. }
  2351. ​
  2352. .ath-sr-dir {
  2353. flex: 1;
  2354. min-width: 0;
  2355. overflow: hidden;
  2356. text-overflow: ellipsis;
  2357. white-space: nowrap;
  2358. color: var(--orb-text-subtle);
  2359. font-size: 0.75rem;
  2360. }
  2361. ​
  2362. .ath-sr-group {
  2363. display: grid;
  2364. grid-template-rows: auto 1fr;
  2365. transition: grid-template-rows var(--orb-dur) var(--orb-ease-out);
  2366. }
  2367. ​
  2368. .ath-sr-list {
  2369. min-height: 0;
  2370. overflow: hidden;
  2371. transition: opacity var(--orb-dur) var(--orb-ease), visibility 0s;
  2372. }
  2373. ​
  2374. .ath-sr-group.is-collapsed {
  2375. grid-template-rows: auto 0fr;
  2376. }
  2377. ​
  2378. .ath-sr-group.is-collapsed .ath-sr-list {
  2379. opacity: 0;
  2380. visibility: hidden;
  2381. transition: opacity var(--orb-dur-fast) var(--orb-ease), visibility 0s linear var(--orb-dur);
  2382. }
  2383. ​
  2384. .ath-sr-match {
  2385. display: flex;
  2386. align-items: center;
  2387. gap: 8px;
  2388. min-height: 22px;
  2389. padding: 1px 8px 1px 26px;
  2390. font-family: var(--ath-font-code);
  2391. font-size: 0.75rem;
  2392. cursor: pointer;
  2393. outline: none;
  2394. }
  2395. ​
  2396. .ath-sr-line {
  2397. flex: 0 0 auto;
  2398. min-width: 2.2em;
  2399. text-align: right;
  2400. color: var(--orb-text-subtle);
  2401. }
  2402. ​
  2403. .ath-sr-text {
  2404. flex: 1;
  2405. min-width: 0;
  2406. overflow: hidden;
  2407. text-overflow: ellipsis;
  2408. white-space: pre;
  2409. }
  2410. ​
  2411. .ath-sr-hit {
  2412. border-radius: 2px;
  2413. background: var(--orb-primary-dim-strong);
  2414. color: inherit;
  2415. }
  2416. ​
  2417. .ath-sr-ins {
  2418. display: none;
  2419. border-radius: 2px;
  2420. background: color-mix(in srgb, var(--orb-success) 22%, transparent);
  2421. text-decoration: none;
  2422. }
  2423. ​
  2424. .ath-search-results.is-replace .ath-sr-ins {
  2425. display: inline;
  2426. }
  2427. ​
  2428. .ath-search-results.is-replace .ath-sr-hit {
  2429. background: color-mix(in srgb, var(--orb-danger) 18%, transparent);
  2430. text-decoration: line-through;
  2431. }
  2432. ​
  2433. .ath-sr-replace {
  2434. display: none;
  2435. flex-shrink: 0;
  2436. width: 22px;
  2437. height: 22px;
  2438. }
  2439. ​
  2440. .ath-search-results.is-replace .ath-sr-file:hover .ath-sr-replace,
  2441. .ath-search-results.is-replace .ath-sr-file:focus-within .ath-sr-replace,
  2442. .ath-search-results.is-replace .ath-sr-match:hover .ath-sr-replace,
  2443. .ath-search-results.is-replace .ath-sr-match:focus-within .ath-sr-replace {
  2444. display: grid;
  2445. }
  2446. ​
  2447. .ath-search-more {
  2448. padding: 8px 10px;
  2449. }
  2450. ​
  2451. @media (prefers-reduced-motion: reduce) {
  2452. ​
  2453. .ath-tab,
  2454. .ath-tab::before,
  2455. .ath-tab-marker {
  2456. transition: none !important;
  2457. }
  2458. ​
  2459. .ath-tab.is-entering,
  2460. .ath-tab.is-leaving {
  2461. animation: none !important;
  2462. }
  2463. ​
  2464. .ath-tab.is-leaving {
  2465. display: none;
  2466. }
  2467. ​
  2468. .ath-tree-row,
  2469. .ath-tree-row::before,
  2470. .ath-tree-chevron,
  2471. .ath-tree-chevron .ath-icon,
  2472. .ath-ficon {
  2473. transition: none !important;
  2474. }
  2475. ​
  2476. .ath-tree-row.is-entering,
  2477. .ath-ficon.is-toggled {
  2478. animation: none !important;
  2479. }
  2480. ​
  2481. .ath-search,
  2482. .ath-search-body,
  2483. .ath-search-chev,
  2484. .ath-sr-group,
  2485. .ath-sr-list,
  2486. .ath-sr-chev {
  2487. transition: none !important;
  2488. }
  2489. }
  2490. ​
  2491. .ath-swatch {
  2492. display: inline-block;
  2493. width: 0.95em;
  2494. height: 0.95em;
  2495. margin: 0 0.4em 0 0.1em;
  2496. vertical-align: -0.12em;
  2497. border-radius: 3px;
  2498. box-shadow: 0 0 0 1px var(--orb-border-strong);
  2499. background-color: var(--orb-bg);
  2500. background-image:
  2501. linear-gradient(45deg, var(--orb-border) 25%, transparent 25%, transparent 75%, var(--orb-border) 75%),
  2502. linear-gradient(45deg, var(--orb-border) 25%, transparent 25%, transparent 75%, var(--orb-border) 75%);
  2503. background-size: 8px 8px;
  2504. background-position: 0 0, 4px 4px;
  2505. cursor: pointer;
  2506. user-select: none;
  2507. overflow: hidden;
  2508. transition: transform var(--orb-dur) var(--orb-ease), box-shadow var(--orb-dur) var(--orb-ease);
  2509. }
  2510. ​
  2511. .ath-swatch:hover {
  2512. transform: scale(1.18);
  2513. box-shadow: 0 0 0 1px var(--orb-primary);
  2514. }
  2515. ​
  2516. .ath-swatch-fill {
  2517. display: block;
  2518. width: 100%;
  2519. height: 100%;
  2520. border-radius: inherit;
  2521. }
  2522. ​
  2523. .ath-cp-overlay {
  2524. z-index: 1200;
  2525. }
  2526. ​
  2527. .ath-cp-modal {
  2528. max-width: 460px;
  2529. }
  2530. ​
  2531. .ath-cp-body {
  2532. display: flex;
  2533. flex-direction: column;
  2534. gap: var(--orb-space-4);
  2535. }
  2536. ​
  2537. .ath-cp-preview {
  2538. display: flex;
  2539. flex-direction: column;
  2540. gap: var(--orb-space-3);
  2541. padding: var(--orb-space-4);
  2542. border-radius: var(--orb-radius-md);
  2543. border: 1px solid var(--orb-border);
  2544. background:
  2545. linear-gradient(45deg, var(--orb-border) 25%, transparent 25%, transparent 75%, var(--orb-border) 75%),
  2546. linear-gradient(45deg, var(--orb-border) 25%, transparent 25%, transparent 75%, var(--orb-border) 75%),
  2547. var(--orb-surface);
  2548. background-size: 12px 12px;
  2549. background-position: 0 0, 6px 6px;
  2550. }
  2551. ​
  2552. .ath-cp-preview::before {
  2553. content: "";
  2554. display: block;
  2555. height: 44px;
  2556. border-radius: var(--orb-radius-sm);
  2557. border: 1px solid var(--orb-border-strong);
  2558. background: var(--ath-cp-color, transparent);
  2559. box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
  2560. order: -1;
  2561. }
  2562. ​
  2563. .ath-cp-picker-row {
  2564. display: flex;
  2565. gap: var(--orb-space-3);
  2566. align-items: stretch;
  2567. }
  2568. ​
  2569. .ath-cp-sv {
  2570. position: relative;
  2571. flex: 1;
  2572. min-width: 0;
  2573. height: 180px;
  2574. border-radius: var(--orb-radius-sm);
  2575. border: 1px solid var(--orb-border-strong);
  2576. cursor: crosshair;
  2577. overflow: hidden;
  2578. }
  2579. ​
  2580. .ath-cp-sv-cursor {
  2581. position: absolute;
  2582. width: 14px;
  2583. height: 14px;
  2584. border-radius: 50%;
  2585. border: 2px solid #fff;
  2586. box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.4), 0 1px 3px rgba(0, 0, 0, 0.4);
  2587. transform: translate(-50%, -50%);
  2588. pointer-events: none;
  2589. }
  2590. ​
  2591. .ath-cp-side {
  2592. display: flex;
  2593. flex-direction: row;
  2594. gap: var(--orb-space-2);
  2595. width: 28px;
  2596. flex-shrink: 0;
  2597. }
  2598. ​
  2599. .ath-cp-hue,
  2600. .ath-cp-alpha {
  2601. position: relative;
  2602. flex: 1;
  2603. min-width: 0;
  2604. border-radius: var(--orb-radius-full);
  2605. border: 1px solid var(--orb-border-strong);
  2606. cursor: pointer;
  2607. }
  2608. ​
  2609. .ath-cp-hue {
  2610. background: linear-gradient(to bottom,
  2611. #f00 0%, #ff0 17%, #0f0 33%,
  2612. #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);
  2613. }
  2614. ​
  2615. .ath-cp-alpha {
  2616. background:
  2617. linear-gradient(to bottom, transparent 0%, var(--ath-cp-color, #000) 100%),
  2618. linear-gradient(45deg, var(--orb-border) 25%, transparent 25%, transparent 75%, var(--orb-border) 75%),
  2619. linear-gradient(45deg, var(--orb-border) 25%, transparent 25%, transparent 75%, var(--orb-border) 75%),
  2620. var(--orb-surface);
  2621. background-size: 100% 100%, 8px 8px, 8px 8px, 100% 100%;
  2622. background-position: 0 0, 0 0, 4px 4px, 0 0;
  2623. }
  2624. ​
  2625. .ath-cp-hue-cursor,
  2626. .ath-cp-alpha-cursor {
  2627. position: absolute;
  2628. left: 50%;
  2629. width: 20px;
  2630. height: 12px;
  2631. border-radius: var(--orb-radius-full);
  2632. border: 2px solid #fff;
  2633. box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.35), 0 1px 3px rgba(0, 0, 0, 0.3);
  2634. transform: translate(-50%, -50%);
  2635. pointer-events: none;
  2636. }
  2637. ​
  2638. .ath-cp-tabs {
  2639. align-self: flex-start;
  2640. }
  2641. ​
  2642. .ath-cp-fields {
  2643. display: grid;
  2644. grid-template-columns: repeat(4, 1fr);
  2645. gap: var(--orb-space-3);
  2646. }
  2647. ​
  2648. .ath-cp-field .orb-label {
  2649. margin-bottom: var(--orb-space-1);
  2650. text-transform: uppercase;
  2651. font-size: 0.6875rem;
  2652. letter-spacing: 0.05em;
  2653. }
  2654. ​
  2655. .ath-cp-field .orb-input {
  2656. min-height: 36px;
  2657. padding: 6px 10px;
  2658. font-size: 0.8125rem;
  2659. }
  2660. ​
  2661. .ath-cp-hexwrap .orb-label {
  2662. margin-bottom: var(--orb-space-1);
  2663. text-transform: uppercase;
  2664. font-size: 0.6875rem;
  2665. letter-spacing: 0.05em;
  2666. }
  2667. ​
  2668. .ath-cp-hexwrap .orb-input {
  2669. min-height: 36px;
  2670. font-size: 0.8125rem;
  2671. }
  2672. ​
  2673. .ath-cp-actions {
  2674. justify-content: space-between;
  2675. }
  2676. ​
  2677. .ath-cp-actions-right {
  2678. display: flex;
  2679. gap: var(--orb-space-2);
  2680. }
  2681. ​
  2682. @media (max-width: 560px) {
  2683. .ath-cp-fields {
  2684. grid-template-columns: repeat(2, 1fr);
  2685. }
  2686. ​
  2687. .ath-cp-picker-row {
  2688. flex-direction: column;
  2689. }
  2690. ​
  2691. .ath-cp-side {
  2692. width: 100%;
  2693. height: 24px;
  2694. }
  2695. ​
  2696. .ath-cp-hue,
  2697. .ath-cp-alpha {
  2698. height: 24px;
  2699. }
  2700. ​
  2701. .ath-cp-hue {
  2702. background: linear-gradient(to right,
  2703. #f00 0%, #ff0 17%, #0f0 33%,
  2704. #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);
  2705. }
  2706. ​
  2707. .ath-cp-alpha {
  2708. background:
  2709. linear-gradient(to right, transparent 0%, var(--ath-cp-color, #000) 100%),
  2710. linear-gradient(45deg, var(--orb-border) 25%, transparent 25%, transparent 75%, var(--orb-border) 75%),
  2711. linear-gradient(45deg, var(--orb-border) 25%, transparent 25%, transparent 75%, var(--orb-border) 75%),
  2712. var(--orb-surface);
  2713. background-size: 100% 100%, 8px 8px, 8px 8px, 100% 100%;
  2714. background-position: 0 0, 0 0, 4px 4px, 0 0;
  2715. }
  2716. ​
  2717. .ath-cp-hue-cursor,
  2718. .ath-cp-alpha-cursor {
  2719. top: 50% !important;
  2720. left: auto;
  2721. width: 12px;
  2722. height: 20px;
  2723. }
  2724. }