index.css 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143
  1. @import "@opencode-ai/ui/styles/tailwind";
  2. @import "@opencode-ai/ui/v2/styles/tailwind.css";
  3. @font-face {
  4. font-family: "JetBrainsMono Nerd Font Mono";
  5. src: url("/assets/JetBrainsMonoNerdFontMono-Regular.woff2") format("woff2");
  6. font-weight: normal;
  7. font-style: normal;
  8. }
  9. @layer components {
  10. @keyframes session-progress-whip {
  11. 0% {
  12. clip-path: inset(0 100% 0 0 round 999px);
  13. animation-timing-function: cubic-bezier(0.2, 0.8, 0.2, 1);
  14. }
  15. 48% {
  16. clip-path: inset(0 0 0 0 round 999px);
  17. animation-timing-function: cubic-bezier(0.65, 0, 0.35, 1);
  18. }
  19. 100% {
  20. clip-path: inset(0 0 0 100% round 999px);
  21. }
  22. }
  23. [data-component="session-progress"] {
  24. position: absolute;
  25. inset: 0 0 auto;
  26. height: 2px;
  27. overflow: hidden;
  28. pointer-events: none;
  29. opacity: 1;
  30. transition: opacity 220ms ease-out;
  31. }
  32. [data-component="session-progress"][data-state="hiding"] {
  33. opacity: 0;
  34. }
  35. [data-component="session-progress-bar"] {
  36. width: 100%;
  37. height: 100%;
  38. border-radius: 999px;
  39. background: var(--session-progress-color);
  40. clip-path: inset(0 100% 0 0 round 999px);
  41. animation: session-progress-whip var(--session-progress-ms, 1800ms) infinite;
  42. will-change: clip-path;
  43. }
  44. [data-component="getting-started"] {
  45. container-type: inline-size;
  46. container-name: getting-started;
  47. }
  48. [data-component="dropdown-menu-content"].desktop-app-menu,
  49. [data-component="dropdown-menu-sub-content"].desktop-app-menu {
  50. min-width: 160px;
  51. padding: 2px;
  52. }
  53. [data-component="dropdown-menu-content"].desktop-app-menu {
  54. width: 160px;
  55. }
  56. [data-component="dropdown-menu-sub-content"].desktop-app-menu {
  57. width: max-content;
  58. min-width: 240px;
  59. max-width: min(320px, calc(100vw - 24px));
  60. }
  61. [data-component="dropdown-menu-content"].desktop-app-menu [data-slot="dropdown-menu-group-label"] {
  62. display: flex;
  63. align-items: center;
  64. height: 28px;
  65. padding: 0 12px;
  66. font-size: var(--font-size-x-small);
  67. font-weight: var(--font-weight-medium);
  68. line-height: 1;
  69. color: var(--text-weak);
  70. }
  71. [data-component="dropdown-menu-content"].desktop-app-menu [data-slot="dropdown-menu-item"],
  72. [data-component="dropdown-menu-content"].desktop-app-menu [data-slot="dropdown-menu-sub-trigger"],
  73. [data-component="dropdown-menu-sub-content"].desktop-app-menu [data-slot="dropdown-menu-item"],
  74. [data-component="dropdown-menu-sub-content"].desktop-app-menu [data-slot="dropdown-menu-sub-trigger"] {
  75. min-height: 28px;
  76. padding: 0 12px;
  77. gap: 8px;
  78. font-weight: var(--font-weight-regular);
  79. line-height: 1;
  80. }
  81. [data-component="dropdown-menu-content"].desktop-app-menu [data-slot="dropdown-menu-item-label"],
  82. [data-component="dropdown-menu-sub-content"].desktop-app-menu [data-slot="dropdown-menu-item-label"] {
  83. white-space: nowrap;
  84. }
  85. [data-slot="desktop-app-menu-keybind"] {
  86. margin-left: auto;
  87. color: var(--text-weak);
  88. font-size: var(--font-size-x-small);
  89. font-weight: var(--font-weight-regular);
  90. white-space: nowrap;
  91. }
  92. [data-slot="desktop-app-menu-chevron"] {
  93. display: flex;
  94. margin-left: auto;
  95. color: var(--icon-base);
  96. }
  97. [data-component="getting-started-actions"] {
  98. display: flex;
  99. flex-direction: column;
  100. gap: 0.75rem; /* gap-3 */
  101. }
  102. [data-component="getting-started-actions"] > [data-component="button"] {
  103. width: 100%;
  104. }
  105. @container getting-started (min-width: 17rem) {
  106. [data-component="getting-started-actions"] {
  107. flex-direction: row;
  108. align-items: center;
  109. }
  110. [data-component="getting-started-actions"] > [data-component="button"] {
  111. width: auto;
  112. }
  113. }
  114. @keyframes fade-in {
  115. from {
  116. opacity: 0;
  117. }
  118. to {
  119. opacity: 1;
  120. }
  121. }
  122. }