index.css 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. @import "@opencode-ai/ui/styles/tailwind";
  2. @font-face {
  3. font-family: "JetBrainsMono Nerd Font Mono";
  4. src: url("/assets/JetBrainsMonoNerdFontMono-Regular.woff2") format("woff2");
  5. font-weight: normal;
  6. font-style: normal;
  7. }
  8. @layer components {
  9. @keyframes session-progress-whip {
  10. 0% {
  11. clip-path: inset(0 100% 0 0 round 999px);
  12. animation-timing-function: cubic-bezier(0.2, 0.8, 0.2, 1);
  13. }
  14. 48% {
  15. clip-path: inset(0 0 0 0 round 999px);
  16. animation-timing-function: cubic-bezier(0.65, 0, 0.35, 1);
  17. }
  18. 100% {
  19. clip-path: inset(0 0 0 100% round 999px);
  20. }
  21. }
  22. [data-component="session-progress"] {
  23. position: absolute;
  24. inset: 0 0 auto;
  25. height: 2px;
  26. overflow: hidden;
  27. pointer-events: none;
  28. opacity: 1;
  29. transition: opacity 220ms ease-out;
  30. }
  31. [data-component="session-progress"][data-state="hiding"] {
  32. opacity: 0;
  33. }
  34. [data-component="session-progress-bar"] {
  35. width: 100%;
  36. height: 100%;
  37. border-radius: 999px;
  38. background: var(--session-progress-color);
  39. clip-path: inset(0 100% 0 0 round 999px);
  40. animation: session-progress-whip var(--session-progress-ms, 1800ms) infinite;
  41. will-change: clip-path;
  42. }
  43. [data-component="getting-started"] {
  44. container-type: inline-size;
  45. container-name: getting-started;
  46. }
  47. [data-component="getting-started-actions"] {
  48. display: flex;
  49. flex-direction: column;
  50. gap: 0.75rem; /* gap-3 */
  51. }
  52. [data-component="getting-started-actions"] > [data-component="button"] {
  53. width: 100%;
  54. }
  55. @container getting-started (min-width: 17rem) {
  56. [data-component="getting-started-actions"] {
  57. flex-direction: row;
  58. align-items: center;
  59. }
  60. [data-component="getting-started-actions"] > [data-component="button"] {
  61. width: auto;
  62. }
  63. }
  64. @keyframes fade-in {
  65. from {
  66. opacity: 0;
  67. }
  68. to {
  69. opacity: 1;
  70. }
  71. }
  72. }