|
1 | 1 | @layer components { |
2 | | - .applies, |
3 | | - .applies-inline { |
| 2 | + .applies { |
4 | 3 | cursor: default; |
5 | 4 |
|
| 5 | + @apply text-subdued; |
| 6 | + |
6 | 7 | [data-tippy-content]:not([data-tippy-content='']) { |
7 | | - cursor: help; |
8 | | - border-radius: 9999px; |
9 | | - &:hover { |
10 | | - text-decoration: underline; |
11 | | - } |
| 8 | + @apply cursor-help; |
12 | 9 | } |
13 | 10 |
|
14 | | - .applicable-meta-removed { |
15 | | - color: var(--color-red-90); |
16 | | - } |
17 | | - .applicable-meta-ga { |
18 | | - color: var(--color-green-90); |
19 | | - } |
20 | | - .applicable-meta-technical-preview { |
21 | | - color: var(--color-blue-elastic-80); |
22 | | - } |
23 | | - .applicable-meta-deprecated { |
24 | | - color: var(--color-pink-90); |
| 11 | + .applicable-info { |
| 12 | + @apply border-grey-20 inline-grid cursor-default grid-cols-[auto_1fr_auto] rounded-full border-[1px] bg-white pt-1.5 pr-3 pb-1.5 pl-3; |
25 | 13 | } |
26 | | - .applicable-meta-beta { |
27 | | - color: var(--color-poppy-90); |
| 14 | + |
| 15 | + .applicable-name, |
| 16 | + .applicable-meta { |
| 17 | + @apply text-xs text-nowrap; |
28 | 18 | } |
29 | | - .applicable-meta-planned { |
30 | | - color: var(--color-grey-90); |
| 19 | + |
| 20 | + .applicable-separator { |
| 21 | + width: 1px; |
| 22 | + height: 100%; |
| 23 | + background-color: var(--color-grey-20); |
| 24 | + margin-left: calc(var(--spacing) * 2); |
| 25 | + margin-right: calc(var(--spacing) * 2); |
31 | 26 | } |
32 | 27 | } |
33 | 28 |
|
34 | | - .applies { |
35 | | - @apply font-sans; |
36 | | - border-bottom: 1px solid var(--color-grey-20); |
37 | | - padding-bottom: calc(var(--spacing) * 3); |
38 | | - font-variant: all-petite-caps; |
| 29 | + .applies.applies-block { |
| 30 | + @apply border-b-grey-20 flex flex-wrap gap-2 border-b-1 pb-4; |
| 31 | + } |
39 | 32 |
|
40 | | - .applicable-info { |
41 | | - padding: calc(var(--spacing) * 0.5); |
42 | | - padding-left: calc(var(--spacing) * 2); |
43 | | - padding-right: calc(var(--spacing) * 2); |
44 | | - margin: calc(var(--spacing) * 0.5); |
45 | | - display: inline-block; |
46 | | - font-size: 0.8em; |
47 | | - border-radius: 0.4em; |
48 | | - background-color: var(--color-white); |
49 | | - border: 1px solid var(--color-grey-20); |
50 | | - } |
51 | | - .applicable-version { |
52 | | - font-weight: bold; |
53 | | - margin-left: calc(var(--spacing) * 0.5); |
54 | | - font-variant: none; |
55 | | - font-size: 0.87em; |
| 33 | + .applies.applies-inline { |
| 34 | + display: inline-block; |
| 35 | + vertical-align: bottom; |
| 36 | + .applicable-separator { |
| 37 | + margin-left: calc(var(--spacing) * 1.5); |
| 38 | + margin-right: calc(var(--spacing) * 1.5); |
56 | 39 | } |
57 | | - .applicable-lifecycle { |
58 | | - font-weight: bold; |
59 | | - } |
60 | | - } |
61 | | - .applies-inline { |
62 | | - @apply font-sans; |
63 | | - font-variant: all-petite-caps; |
64 | 40 | .applicable-info { |
65 | | - cursor: default; |
66 | | - padding: calc(var(--spacing) * 0.5); |
67 | | - padding-left: calc(var(--spacing) * 2); |
68 | | - padding-right: calc(var(--spacing) * 2); |
69 | | - margin-left: calc(var(--spacing) * 0.5); |
70 | | - margin-right: calc(var(--spacing) * 0.5); |
71 | | - display: inline-block; |
72 | | - font-size: 0.8em; |
73 | | - border-radius: 0.4em; |
74 | | - background-color: var(--color-white); |
75 | | - border: 1px solid var(--color-grey-20); |
76 | | - font-weight: normal; |
77 | | - } |
78 | | - .applicable-version { |
79 | | - font-weight: bold; |
80 | | - margin-left: calc(var(--spacing) * 0.5); |
81 | | - font-variant: none; |
82 | | - font-size: 0.87em; |
| 41 | + @apply rounded-sm pt-1 pr-1.5 pb-1 pl-1.5; |
83 | 42 | } |
84 | | - .applicable-lifecycle { |
85 | | - font-weight: bold; |
| 43 | + .applicable-name, |
| 44 | + .applicable-meta { |
| 45 | + font-size: 0.65em; |
86 | 46 | } |
87 | 47 | } |
88 | 48 | } |
0 commit comments