index.css 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181
  1. @import "@opencode-ai/ui/styles/tailwind";
  2. @import "@opencode-ai/session-ui/styles";
  3. @import "@opencode-ai/ui/v2/styles/tailwind.css";
  4. @font-face {
  5. font-family: "JetBrainsMono Nerd Font Mono";
  6. src: url("/assets/JetBrainsMonoNerdFontMono-Regular.woff2") format("woff2");
  7. font-weight: normal;
  8. font-style: normal;
  9. }
  10. @font-face {
  11. font-family: "Inter";
  12. src: url("/assets/Inter.ttf") format("truetype");
  13. font-weight: 100 900;
  14. font-style: normal;
  15. }
  16. @media (display-mode: standalone) {
  17. /* WebKit excludes safe-area insets from dvh in installed apps. */
  18. #root {
  19. height: 100vh;
  20. }
  21. }
  22. @layer components {
  23. @keyframes session-progress-whip {
  24. 0% {
  25. clip-path: inset(0 100% 0 0 round 999px);
  26. animation-timing-function: cubic-bezier(0.2, 0.8, 0.2, 1);
  27. }
  28. 48% {
  29. clip-path: inset(0 0 0 0 round 999px);
  30. animation-timing-function: cubic-bezier(0.65, 0, 0.35, 1);
  31. }
  32. 100% {
  33. clip-path: inset(0 0 0 100% round 999px);
  34. }
  35. }
  36. [data-component="session-progress"] {
  37. position: absolute;
  38. inset: 0 0 auto;
  39. height: 2px;
  40. overflow: hidden;
  41. pointer-events: none;
  42. opacity: 1;
  43. transition: opacity 220ms ease-out;
  44. }
  45. [data-component="session-progress"][data-state="hiding"] {
  46. opacity: 0;
  47. }
  48. [data-component="session-progress-bar"] {
  49. width: 100%;
  50. height: 100%;
  51. border-radius: 999px;
  52. clip-path: inset(0 100% 0 0 round 999px);
  53. will-change: clip-path;
  54. }
  55. [data-component="getting-started"] {
  56. container-type: inline-size;
  57. container-name: getting-started;
  58. }
  59. [data-component="dropdown-menu-content"].desktop-app-menu,
  60. [data-component="dropdown-menu-sub-content"].desktop-app-menu {
  61. min-width: 160px;
  62. padding: 2px;
  63. }
  64. [data-component="dropdown-menu-content"].desktop-app-menu {
  65. width: 160px;
  66. }
  67. [data-component="dropdown-menu-sub-content"].desktop-app-menu {
  68. width: max-content;
  69. min-width: 240px;
  70. max-width: min(320px, calc(100vw - 24px));
  71. }
  72. [data-component="dropdown-menu-content"].desktop-app-menu [data-slot="dropdown-menu-group-label"] {
  73. display: flex;
  74. align-items: center;
  75. height: 28px;
  76. padding: 0 12px;
  77. font-size: var(--font-size-x-small);
  78. font-weight: var(--font-weight-medium);
  79. line-height: 1;
  80. color: var(--text-weak);
  81. }
  82. [data-component="dropdown-menu-content"].desktop-app-menu [data-slot="dropdown-menu-item"],
  83. [data-component="dropdown-menu-content"].desktop-app-menu [data-slot="dropdown-menu-sub-trigger"],
  84. [data-component="dropdown-menu-sub-content"].desktop-app-menu [data-slot="dropdown-menu-item"],
  85. [data-component="dropdown-menu-sub-content"].desktop-app-menu [data-slot="dropdown-menu-sub-trigger"] {
  86. min-height: 28px;
  87. padding: 0 12px;
  88. gap: 8px;
  89. font-weight: var(--font-weight-regular);
  90. line-height: 1;
  91. }
  92. [data-component="dropdown-menu-content"].desktop-app-menu [data-slot="dropdown-menu-item-label"],
  93. [data-component="dropdown-menu-sub-content"].desktop-app-menu [data-slot="dropdown-menu-item-label"] {
  94. white-space: nowrap;
  95. }
  96. [data-slot="desktop-app-menu-keybind"] {
  97. margin-left: auto;
  98. color: var(--text-weak);
  99. font-size: var(--font-size-x-small);
  100. font-weight: var(--font-weight-regular);
  101. white-space: nowrap;
  102. }
  103. [data-slot="desktop-app-menu-chevron"] {
  104. display: flex;
  105. margin-left: auto;
  106. color: var(--icon-base);
  107. }
  108. [data-component="getting-started-actions"] {
  109. display: flex;
  110. flex-direction: column;
  111. gap: 0.75rem; /* gap-3 */
  112. }
  113. [data-component="getting-started-actions"] > [data-component="button"] {
  114. width: 100%;
  115. }
  116. @container getting-started (min-width: 17rem) {
  117. [data-component="getting-started-actions"] {
  118. flex-direction: row;
  119. align-items: center;
  120. }
  121. [data-component="getting-started-actions"] > [data-component="button"] {
  122. width: auto;
  123. }
  124. }
  125. [data-slot="titlebar-update-loader"] {
  126. display: block;
  127. flex-shrink: 0;
  128. margin: 1px;
  129. width: 12px;
  130. height: 12px;
  131. border-radius: 9999px;
  132. border: 2px solid color-mix(in srgb, var(--v2-icon-icon-accent) 30%, transparent);
  133. border-top-color: var(--v2-icon-icon-accent);
  134. animation: titlebar-update-loader-spin 0.67s linear infinite;
  135. transform-origin: 50% 50%;
  136. }
  137. @media (prefers-reduced-motion: reduce) {
  138. [data-slot="titlebar-update-loader"] {
  139. animation: none;
  140. }
  141. }
  142. @keyframes titlebar-update-loader-spin {
  143. to {
  144. transform: rotate(360deg);
  145. }
  146. }
  147. @keyframes fade-in {
  148. from {
  149. opacity: 0;
  150. }
  151. to {
  152. opacity: 1;
  153. }
  154. }
  155. }