|
1 | 1 | .codeBlock {
|
2 |
| - margin: 1rem 0; |
3 |
| - border-radius: 8px; |
4 |
| - overflow: hidden; |
5 |
| - background-color: #1a1a1a; |
6 |
| - border: 1px solid #333; |
7 |
| - font-family: 'Consolas', 'Monaco', 'Lucida Console', monospace; |
8 |
| - position: relative; |
| 2 | + margin: 1rem 0; |
| 3 | + border-radius: 8px; |
| 4 | + overflow: hidden; |
| 5 | + background-color: #1a1a1a; |
| 6 | + border: 1px solid #333; |
| 7 | + font-family: "Consolas", "Monaco", "Lucida Console", monospace; |
| 8 | + position: relative; |
9 | 9 | }
|
10 | 10 |
|
11 | 11 | /* Add border for dark theme */
|
12 | 12 | [data-theme="dark"] .codeBlock {
|
13 |
| - border: 1px solid #444; |
| 13 | + border: 1px solid #444; |
14 | 14 | }
|
15 | 15 |
|
16 | 16 | .codeHeader {
|
17 |
| - background-color: #1a1a1a; |
18 |
| - padding: 0.75rem 1rem; |
19 |
| - border-bottom: 1px solid #333; |
20 |
| - color: #888; |
21 |
| - font-size: 0.875rem; |
22 |
| - font-weight: 400; |
23 |
| - font-style: italic; |
| 17 | + background-color: #1a1a1a; |
| 18 | + padding: 0.75rem 1rem; |
| 19 | + border-bottom: 1px solid #333; |
| 20 | + color: #888; |
| 21 | + font-size: 0.875rem; |
| 22 | + font-weight: 400; |
| 23 | + font-style: italic; |
24 | 24 | }
|
25 | 25 |
|
26 | 26 | .codeTitle {
|
27 |
| - color: #888; |
28 |
| - font-style: italic; |
| 27 | + color: #888; |
| 28 | + font-style: italic; |
29 | 29 | }
|
30 | 30 |
|
31 | 31 | .codeContainer {
|
32 |
| - position: relative; |
33 |
| - background-color: #1a1a1a; |
| 32 | + position: relative; |
| 33 | + background-color: #1a1a1a; |
34 | 34 | }
|
35 | 35 |
|
36 | 36 | .codeContent {
|
37 |
| - margin: 0; |
38 |
| - padding: 1rem; |
39 |
| - padding-bottom: 2rem; |
40 |
| - background-color: transparent; |
41 |
| - color: #e6e6e6; |
42 |
| - font-size: 0.875rem; |
43 |
| - line-height: 1.6; |
44 |
| - overflow-x: auto; |
45 |
| - white-space: pre; |
| 37 | + margin: 0; |
| 38 | + padding: 1rem; |
| 39 | + padding-bottom: 2rem; |
| 40 | + background-color: transparent; |
| 41 | + color: #e6e6e6; |
| 42 | + font-size: 0.875rem; |
| 43 | + line-height: 1.6; |
| 44 | + overflow-x: auto; |
| 45 | + white-space: pre; |
46 | 46 | }
|
47 | 47 |
|
48 | 48 | .shortCode {
|
49 |
| - padding-bottom: 0.5rem; |
| 49 | + padding-bottom: 0.5rem; |
50 | 50 | }
|
51 | 51 |
|
52 | 52 | .codeLine {
|
53 |
| - display: block; |
54 |
| - min-height: 1.6rem; |
| 53 | + display: block; |
| 54 | + min-height: 1.6rem; |
55 | 55 | }
|
56 | 56 |
|
57 | 57 | .copyButtonContainer {
|
58 |
| - background-color: #1a1a1a; |
59 |
| - padding: 0.75rem 1rem; |
60 |
| - display: flex; |
61 |
| - justify-content: flex-end; |
62 |
| - cursor: pointer; |
| 58 | + background-color: #1a1a1a; |
| 59 | + padding: 0.75rem 1rem; |
| 60 | + display: flex; |
| 61 | + justify-content: flex-end; |
| 62 | + cursor: pointer; |
63 | 63 | }
|
64 | 64 |
|
65 | 65 | .copyButton {
|
66 |
| - background-color: #333; |
67 |
| - color: #fff; |
68 |
| - border: 1px solid #333; |
69 |
| - border-radius: 4px; |
70 |
| - padding: 0.5rem 0.75rem; |
71 |
| - font-size: 0.75rem; |
72 |
| - cursor: pointer; |
73 |
| - display: flex; |
74 |
| - align-items: center; |
75 |
| - gap: 0.5rem; |
76 |
| - transition: all 0.2s ease; |
77 |
| - font-family: inherit; |
78 |
| - width: 100%; |
79 |
| - justify-content: flex-end; |
| 66 | + background-color: #333; |
| 67 | + color: #fff; |
| 68 | + border: 1px solid #333; |
| 69 | + border-radius: 4px; |
| 70 | + padding: 0.5rem 0.75rem; |
| 71 | + font-size: 0.75rem; |
| 72 | + cursor: pointer; |
| 73 | + display: flex; |
| 74 | + align-items: center; |
| 75 | + gap: 0.5rem; |
| 76 | + transition: all 0.2s ease; |
| 77 | + font-family: inherit; |
| 78 | + width: 100%; |
| 79 | + justify-content: flex-end; |
80 | 80 | }
|
81 | 81 |
|
82 | 82 | .copyButton:hover {
|
83 |
| - background-color: #333; |
84 |
| - color: #fff; |
85 |
| - border-color: #666; |
| 83 | + background-color: #333; |
| 84 | + color: #fff; |
| 85 | + border-color: #666; |
86 | 86 | }
|
87 | 87 |
|
88 | 88 | .copyButton:active {
|
89 |
| - transform: scale(0.98); |
| 89 | + transform: scale(0.98); |
90 | 90 | }
|
91 | 91 |
|
92 | 92 | .copyButton svg {
|
93 |
| - width: 14px; |
94 |
| - height: 14px; |
| 93 | + width: 14px; |
| 94 | + height: 14px; |
95 | 95 | }
|
96 | 96 |
|
97 | 97 | .codeContent :global(.keyword) {
|
98 |
| - color: #4fc1ff; |
99 |
| - font-weight: 400; |
| 98 | + color: #4fc1ff; |
| 99 | + font-weight: 400; |
100 | 100 | }
|
101 | 101 |
|
102 | 102 | .codeContent :global(.comment) {
|
103 |
| - color: #6a9955; |
104 |
| - font-style: italic; |
| 103 | + color: #6a9955; |
| 104 | + font-style: italic; |
105 | 105 | }
|
106 | 106 |
|
107 | 107 | .codeContent :global(.string) {
|
108 |
| - color: #ff6b9d; |
| 108 | + color: #ff6b9d; |
109 | 109 | }
|
110 | 110 |
|
111 | 111 | .codeContent :global(.function) {
|
112 |
| - color: #ffab70; |
113 |
| - font-weight: 400; |
| 112 | + color: #ffab70; |
| 113 | + font-weight: 400; |
114 | 114 | }
|
115 | 115 |
|
116 | 116 | .codeContent :global(.number) {
|
117 |
| - color: #53FFE8; |
| 117 | + color: #53ffe8; |
118 | 118 | }
|
119 | 119 |
|
120 | 120 | .codeContent :global(.header) {
|
121 |
| - color: #e6e6e6; |
122 |
| - font-style: italic; |
| 121 | + color: #e6e6e6; |
| 122 | + font-style: italic; |
123 | 123 | }
|
124 | 124 |
|
125 | 125 | /* YAML syntax highlighting */
|
126 | 126 | .codeContent :global(.yaml-key) {
|
127 |
| - color: #9cdcfe; |
128 |
| - font-weight: 400; |
| 127 | + color: #9cdcfe; |
| 128 | + font-weight: 400; |
129 | 129 | }
|
130 | 130 |
|
131 | 131 | .codeContent :global(.yaml-value) {
|
132 |
| - color: #569cd6; |
133 |
| - font-weight: 400; |
| 132 | + color: #569cd6; |
| 133 | + font-weight: 400; |
134 | 134 | }
|
135 | 135 |
|
136 | 136 | .codeContent :global(.yaml-operator) {
|
137 |
| - color: #d4d4d4; |
138 |
| - font-weight: 400; |
| 137 | + color: #d4d4d4; |
| 138 | + font-weight: 400; |
139 | 139 | }
|
140 | 140 |
|
141 | 141 | /* File pattern syntax highlighting */
|
142 | 142 | .codeContent :global(.glob) {
|
143 |
| - color: #ffab70; |
144 |
| - font-weight: 600; |
| 143 | + color: #ffab70; |
| 144 | + font-weight: 600; |
145 | 145 | }
|
146 | 146 |
|
147 | 147 | .codeContent :global(.extension) {
|
148 |
| - color: #ff6b9d; |
149 |
| - font-weight: 400; |
| 148 | + color: #ff6b9d; |
| 149 | + font-weight: 400; |
150 | 150 | }
|
151 | 151 |
|
152 | 152 | .codeContent :global(.filename) {
|
153 |
| - color: #9cdcfe; |
154 |
| - font-weight: 400; |
| 153 | + color: #9cdcfe; |
| 154 | + font-weight: 400; |
155 | 155 | }
|
156 | 156 |
|
157 | 157 | .codeContent :global(.separator) {
|
158 |
| - color: #d4d4d4; |
159 |
| - font-weight: 400; |
| 158 | + color: #d4d4d4; |
| 159 | + font-weight: 400; |
160 | 160 | }
|
161 | 161 |
|
162 | 162 | @media (max-width: 768px) {
|
163 |
| - .codeContent { |
164 |
| - font-size: 0.8rem; |
165 |
| - padding: 0.75rem; |
166 |
| - padding-bottom: 3rem; |
167 |
| - } |
168 |
| - |
169 |
| - .shortCode { |
170 |
| - padding-bottom: 0.3rem; |
171 |
| - } |
172 |
| - |
173 |
| - .copyButton { |
174 |
| - font-size: 0.7rem; |
175 |
| - padding: 0.4rem 0.6rem; |
176 |
| - } |
177 |
| - |
178 |
| - .copyButtonContainer { |
179 |
| - padding: 0.5rem 0.75rem; |
180 |
| - } |
| 163 | + .codeContent { |
| 164 | + font-size: 0.8rem; |
| 165 | + padding: 0.75rem; |
| 166 | + padding-bottom: 3rem; |
| 167 | + } |
| 168 | + |
| 169 | + .shortCode { |
| 170 | + padding-bottom: 0.3rem; |
| 171 | + } |
| 172 | + |
| 173 | + .copyButton { |
| 174 | + font-size: 0.7rem; |
| 175 | + padding: 0.4rem 0.6rem; |
| 176 | + } |
| 177 | + |
| 178 | + .copyButtonContainer { |
| 179 | + padding: 0.5rem 0.75rem; |
| 180 | + } |
181 | 181 | }
|
0 commit comments