|
| 1 | +@layer theme, base, components, utilities; |
| 2 | + |
| 3 | +@import "tailwindcss/theme.css" layer(theme); |
| 4 | +@import "tailwindcss/utilities.css" layer(utilities); |
| 5 | + |
1 | 6 | /* Outer Container */ |
2 | 7 | .config-explorer-code-outer-container { |
3 | | - overflow: visible; |
4 | | - display: flex; |
5 | | - flex-direction: column; |
| 8 | + @apply overflow-visible flex flex-col; |
6 | 9 | } |
7 | 10 |
|
8 | 11 | /* File Node */ |
9 | 12 | .config-explorer-file-node { |
10 | | - display: flex; |
11 | | - align-items: center; |
12 | | - border-radius: 10px; |
13 | | - width: fit-content; |
14 | | - flex-shrink: 0; |
15 | | - white-space: nowrap; |
16 | | - cursor: default; |
| 13 | + @apply flex items-center rounded-[10px] w-fit shrink-0 whitespace-nowrap cursor-default; |
17 | 14 | } |
18 | 15 |
|
19 | | -.config-explorer-file-node-with-link { |
20 | | - font-weight: bold; |
| 16 | +.config-explorer-file-node-with-link, |
| 17 | +.config-explorer-file-folder-node-with-link { |
| 18 | + @apply font-bold; |
21 | 19 | } |
22 | 20 |
|
23 | | -.config-explorer-file-node-with-link:hover { |
24 | | - background-color: rgba(0, 0, 0, 0.1); |
25 | | - cursor: pointer; |
26 | | - text-decoration: none; |
| 21 | +.config-explorer-file-node-with-link:hover, |
| 22 | +.config-explorer-file-folder-node-with-link:hover { |
| 23 | + @apply bg-black/10 cursor-pointer no-underline; |
27 | 24 | } |
28 | 25 |
|
29 | 26 | /* File Folder Node */ |
30 | 27 | .config-explorer-file-folder-node { |
31 | | - display: flex; |
32 | | - align-items: center; |
33 | | - width: fit-content; |
| 28 | + @apply flex items-center w-fit cursor-default no-underline; |
34 | 29 | color: var(--config-node-highlight-text-color); |
35 | 30 | } |
36 | 31 |
|
37 | | -.config-explorer-file-folder-node:hover { |
38 | | - cursor: default; |
39 | | - text-decoration: none; |
40 | | - color: var(--config-node-highlight-text-color); |
41 | | -} |
42 | | - |
43 | | -/* File Folder Node with Link */ |
44 | 32 | .config-explorer-file-folder-node-with-link { |
45 | | - font-weight: bold; |
46 | | - color: var(--ifm-link-color); |
47 | | -} |
48 | | - |
49 | | -.config-explorer-file-folder-node-with-link:hover { |
50 | | - background-color: rgba(0, 0, 0, 0.1); |
51 | | - cursor: pointer; |
52 | | - text-decoration: none; |
53 | 33 | color: var(--ifm-link-color); |
54 | 34 | } |
55 | 35 |
|
56 | | -/* Popup Window Container */ |
| 36 | +/* Popup Window */ |
57 | 37 | .config-explorer-popup-window-container { |
58 | | - position: relative; |
59 | | - display: inline-block; |
60 | | - vertical-align: middle; |
| 38 | + @apply relative inline-block align-middle; |
61 | 39 | } |
62 | 40 |
|
63 | | -/* Popup Window */ |
64 | 41 | .config-explorer-popup-window { |
| 42 | + @apply absolute p-2.5 rounded border-0 whitespace-normal z-20; |
65 | 43 | background-color: var(--config-node-popup-background-color); |
66 | | - padding: 10px; |
67 | 44 | box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5); |
68 | | - border-radius: 5px; |
69 | | - margin-left: 5px; |
70 | | - margin-top: -5px; |
71 | | - width: max-content; |
72 | 45 | min-width: 200px; |
73 | 46 | max-width: 500px; |
74 | | - z-index: 20; |
75 | | - white-space: normal; |
76 | | - position: absolute; |
| 47 | + width: max-content; |
77 | 48 | left: 20px; |
78 | 49 | top: -10px; |
| 50 | + margin-left: 5px; |
| 51 | + margin-top: -5px; |
79 | 52 | } |
80 | 53 |
|
81 | 54 | .config-explorer-popup-window-open-tag { |
82 | | - z-index: 5; |
83 | | - margin-left: 3px; |
84 | | -} |
85 | | - |
86 | | -.config-explorer-popup-window-open-tag:hover { |
87 | | - font-weight: bold; |
88 | | - cursor: pointer; |
89 | | -} |
90 | | - |
91 | | -/* Tree Line Components */ |
92 | | -.tree-line { |
93 | | - font-size: 14px; |
94 | | - color: #bbbbbb; |
95 | | - display: inline-block; |
96 | | - font-family: monospace; |
97 | | - letter-spacing: 0; |
98 | | - line-height: 1; |
| 55 | + @apply z-5 ml-0.75 cursor-pointer font-normal hover:font-bold; |
99 | 56 | } |
100 | 57 |
|
| 58 | +/* Tree Components */ |
| 59 | +.tree-line, |
101 | 60 | .prefix-line { |
102 | | - font-size: 14px; |
103 | | - color: #bbbbbb; |
104 | | - display: inline-block; |
105 | | - font-family: monospace; |
106 | | - letter-spacing: 0; |
107 | | - line-height: 1; |
| 61 | + @apply text-sm text-slate-400 inline-block font-mono leading-none; |
108 | 62 | } |
109 | 63 |
|
110 | 64 | /* Node Icon */ |
111 | 65 | .config-explorer-node-icon { |
112 | | - font-size: 23px; |
| 66 | + @apply text-2xl mr-1.25; |
| 67 | + color: var(--config-node-highlight-text-color); |
113 | 68 | } |
114 | 69 |
|
115 | | -/* Node */ |
116 | | -.config-explorer-node { |
117 | | - align-items: flex-start; |
118 | | - position: relative; |
119 | | - display: flex; |
120 | | - flex-direction: column; |
121 | | - flex-shrink: 0; |
| 70 | +/* Node Structure */ |
| 71 | +.config-explorer-node, |
| 72 | +.config-explorer-node-noflex { |
| 73 | + @apply items-start relative flex flex-col shrink-0; |
| 74 | +} |
| 75 | + |
| 76 | +.config-explorer-node-noflex { |
| 77 | + @apply my-1.25; |
122 | 78 | } |
123 | 79 |
|
124 | 80 | .config-explorer-node-header { |
125 | | - display: flex; |
126 | | - align-items: center; |
127 | | - margin: 0; |
128 | | - padding: 0; |
| 81 | + @apply flex items-center; |
129 | 82 | } |
130 | 83 |
|
131 | 84 | .config-explorer-node-content { |
132 | | - display: flex; |
133 | | - align-items: center; |
| 85 | + @apply flex items-center; |
134 | 86 | } |
135 | 87 |
|
136 | | -/* Node without Flex */ |
137 | | -.config-explorer-node-noflex { |
138 | | - align-items: flex-start; |
139 | | - position: relative; |
140 | | - display: flex; |
141 | | - flex-direction: column; |
142 | | - margin: 5px 0 5px 0; |
| 88 | +.config-node-contents-wrapper { |
| 89 | + @apply mx-1.25 flex items-center text-base; |
143 | 90 | } |
144 | 91 |
|
145 | | -.config-node-contents-wrapper { |
146 | | - margin: 0 5px 0 0; |
147 | | - display: flex; |
148 | | - align-items: center; |
149 | | - font-size: 15px; |
| 92 | +/* Description Below */ |
| 93 | +.config-explorer-description-below { |
| 94 | + @apply flex items-start my-0.5 py-0.5 text-xs leading-relaxed; |
150 | 95 | } |
151 | 96 |
|
152 | | -.config-explorer-icon { |
153 | | - /* Make it go back to the original color */ |
154 | | - color: var(--config-node-highlight-text-color); |
155 | | - margin-right: 5px; |
| 97 | +.config-explorer-description-text { |
| 98 | + @apply text-gray-400 whitespace-normal wrap-break-word flex-1; |
| 99 | + max-width: 600px; |
156 | 100 | } |
157 | 101 |
|
158 | | -/* Display None */ |
| 102 | +/* Utility */ |
159 | 103 | .display--none { |
160 | | - display: none; |
| 104 | + @apply hidden; |
161 | 105 | } |
0 commit comments