|
| 1 | +/* State Component - BEM: .state (block), .state__* (elements), .state--* (modifiers) */ |
| 2 | + |
| 3 | +/* Empty State Component */ |
| 4 | + |
| 5 | +.state { |
| 6 | + @apply mx-auto flex w-full max-w-72 flex-col items-center justify-center gap-3 rounded-lg bg-background p-6 text-center; |
| 7 | +} |
| 8 | + |
| 9 | +.state__illustration { |
| 10 | + @apply relative h-36 w-60 flex items-center justify-center; |
| 11 | +} |
| 12 | + |
| 13 | +.state__card { |
| 14 | + @apply absolute flex h-11 w-44 items-center gap-1.5 rounded-lg border border-secondary p-2.5; |
| 15 | + |
| 16 | + background: linear-gradient(194deg, var(--color-primary) 27%, var(--color-background) 65%); |
| 17 | + box-shadow: var(--box-shadow-card); |
| 18 | +} |
| 19 | + |
| 20 | +.state__card--top { |
| 21 | + @apply start-0 top-0; |
| 22 | +} |
| 23 | + |
| 24 | +.state__card--middle { |
| 25 | + @apply start-14 top-8; |
| 26 | +} |
| 27 | + |
| 28 | +.state__card--bottom { |
| 29 | + @apply start-5 top-20; |
| 30 | +} |
| 31 | + |
| 32 | +.state__badge { |
| 33 | + @apply flex size-6 shrink-0 items-center justify-center rounded-full text-xs font-medium leading-none text-content; |
| 34 | + |
| 35 | + background: color-mix(in oklab, var(--color-tertiary) 88%, var(--color-primary)); |
| 36 | +} |
| 37 | + |
| 38 | +.state__body { |
| 39 | + @apply flex min-w-0 flex-1 flex-col gap-1; |
| 40 | +} |
| 41 | + |
| 42 | +.state__line { |
| 43 | + @apply block h-1.5 rounded-full; |
| 44 | + |
| 45 | + background: color-mix(in oklab, var(--color-tertiary) 78%, var(--color-primary)); |
| 46 | +} |
| 47 | + |
| 48 | +.state__line--title { |
| 49 | + @apply opacity-75; |
| 50 | +} |
| 51 | + |
| 52 | +.state__line--large { |
| 53 | + @apply w-14; |
| 54 | +} |
| 55 | + |
| 56 | +.state__line--medium { |
| 57 | + @apply w-12; |
| 58 | +} |
| 59 | + |
| 60 | +.state__line--small { |
| 61 | + @apply w-11; |
| 62 | +} |
| 63 | + |
| 64 | +.state__line--content { |
| 65 | + @apply w-full; |
| 66 | +} |
| 67 | + |
| 68 | +.state__message { |
| 69 | + @apply text-base font-normal leading-6 text-content-secondary; |
| 70 | +} |
| 71 | + |
| 72 | +/* Frame Load Failed Component */ |
| 73 | +.state--frame-load-failed { |
| 74 | + @apply max-w-96 gap-1; |
| 75 | +} |
| 76 | + |
| 77 | +.state__document { |
| 78 | + @apply absolute flex h-28 w-20 flex-col rounded-lg border border-secondary p-0.5; |
| 79 | + |
| 80 | + background: linear-gradient(235deg, var(--color-primary) 27%, var(--color-background) 65%); |
| 81 | +} |
| 82 | + |
| 83 | +.state__document--start { |
| 84 | + @apply start-4 rotate-[-21deg]; |
| 85 | +} |
| 86 | + |
| 87 | +.state__document--center { |
| 88 | + @apply start-16 z-10; |
| 89 | +} |
| 90 | + |
| 91 | +.state__document--end { |
| 92 | + @apply start-24 rotate-[21deg] z-0; |
| 93 | +} |
| 94 | + |
| 95 | +.state__document-body { |
| 96 | + @apply flex h-full w-full items-center rounded-lg p-2.5; |
| 97 | + |
| 98 | + box-shadow: var(--box-shadow-card); |
| 99 | +} |
| 100 | + |
| 101 | +.state__document-lines { |
| 102 | + @apply flex h-full w-full flex-col justify-between |
| 103 | +} |
| 104 | + |
| 105 | +.state__document-line { |
| 106 | + @apply block h-1 w-full rounded-full; |
| 107 | + |
| 108 | + background: color-mix(in oklab, var(--color-tertiary) 78%, var(--color-primary)); |
| 109 | +} |
| 110 | + |
| 111 | +.state__document-line--short { |
| 112 | + @apply w-10; |
| 113 | +} |
| 114 | + |
| 115 | +.state__magnifier { |
| 116 | + @apply absolute start-[30%] top-[30%] z-20 bg-none; |
| 117 | +} |
| 118 | + |
| 119 | +.state__magnifier-icon { |
| 120 | + @apply size-24 text-content-secondary opacity-20; |
| 121 | +} |
| 122 | + |
| 123 | +.state__note { |
| 124 | + @apply text-center text-sm font-normal leading-5 text-content; |
| 125 | +} |
| 126 | + |
| 127 | +.state__link { |
| 128 | + color: color-mix(in oklab, var(--color-info-content), var(--color-content) 10%); |
| 129 | +} |
0 commit comments