summaryrefslogtreecommitdiffhomepage
path: root/packages/app/src/index.css
blob: 8db576dd83427d0343ab07de16e3dc9a1151e3c0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
@import "@opencode-ai/ui/styles/tailwind";

@font-face {
  font-family: "JetBrainsMono Nerd Font Mono";
  src: url("/assets/JetBrainsMonoNerdFontMono-Regular.woff2") format("woff2");
  font-weight: normal;
  font-style: normal;
}

@layer components {
  @keyframes session-progress-whip {
    0% {
      clip-path: inset(0 100% 0 0 round 999px);
      animation-timing-function: cubic-bezier(0.2, 0.8, 0.2, 1);
    }

    48% {
      clip-path: inset(0 0 0 0 round 999px);
      animation-timing-function: cubic-bezier(0.65, 0, 0.35, 1);
    }

    100% {
      clip-path: inset(0 0 0 100% round 999px);
    }
  }

  [data-component="session-progress"] {
    position: absolute;
    inset: 0 0 auto;
    height: 2px;
    overflow: hidden;
    pointer-events: none;
    opacity: 1;
    transition: opacity 220ms ease-out;
  }

  [data-component="session-progress"][data-state="hiding"] {
    opacity: 0;
  }

  [data-component="session-progress-bar"] {
    width: 100%;
    height: 100%;
    border-radius: 999px;
    background: var(--session-progress-color);
    clip-path: inset(0 100% 0 0 round 999px);
    animation: session-progress-whip var(--session-progress-ms, 1800ms) infinite;
    will-change: clip-path;
  }

  [data-component="getting-started"] {
    container-type: inline-size;
    container-name: getting-started;
  }

  [data-component="getting-started-actions"] {
    display: flex;
    flex-direction: column;
    gap: 0.75rem; /* gap-3 */
  }

  [data-component="getting-started-actions"] > [data-component="button"] {
    width: 100%;
  }

  @container getting-started (min-width: 17rem) {
    [data-component="getting-started-actions"] {
      flex-direction: row;
      align-items: center;
    }

    [data-component="getting-started-actions"] > [data-component="button"] {
      width: auto;
    }
  }

  @keyframes fade-in {
    from {
      opacity: 0;
    }
    to {
      opacity: 1;
    }
  }
}