Skip to content

Commit 9a47936

Browse files
committed
fix css
1 parent b61883f commit 9a47936

File tree

1 file changed

+19
-5
lines changed

1 file changed

+19
-5
lines changed

snippets/components/CodePreview.css

Lines changed: 19 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,10 @@
1414
}
1515
}
1616

17+
.code-block, .code-block [data-component-part="code-block-root"] {
18+
background-color: #0b1e3d !important;
19+
}
20+
1721
/* Content Panel */
1822
.content-panel {
1923
display: flex;
@@ -24,7 +28,7 @@
2428

2529
/* Content Section */
2630
.content-section {
27-
padding: 1rem;
31+
padding: 0.5rem 1rem;
2832
border-left: 3px solid transparent;
2933
transition: all 0.25s ease;
3034
border-radius: 6px;
@@ -46,6 +50,15 @@
4650
box-shadow:
4751
0 2px 8px rgba(176, 176, 176, 0.1),
4852
inset 0 0 20px rgba(176, 176, 176, 0.05);
53+
color: rgb(63, 65, 69);
54+
}
55+
56+
.code-panel [data-component-part="code-block-root"] {
57+
padding: 0rem 1rem;
58+
}
59+
60+
.code-panel .code-block {
61+
margin: 0px;
4962
}
5063

5164
.content-section.active::before {
@@ -95,10 +108,10 @@
95108
display: flex;
96109
justify-content: space-between;
97110
align-items: center;
98-
padding: 0.75rem 1rem;
99-
background: #2d2d2d;
111+
padding: 0.4rem 1rem;
112+
background: #0b1e3d;
100113
border-bottom: 1px solid #404040;
101-
color: #a0a0a0;
114+
color: white;
102115
font-size: 0.875rem;
103116
font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
104117
}
@@ -150,6 +163,7 @@
150163
overflow-x: auto;
151164
background: #0b1e3d;
152165
scroll-behavior: smooth;
166+
padding: 14px 0px;
153167
}
154168

155169
/* Custom scrollbar for code content */
@@ -173,7 +187,7 @@
173187

174188
.code-content pre {
175189
margin: 0;
176-
padding: 1rem;
190+
padding: 0rem 1rem;
177191
background: transparent;
178192
color: #d4d4d4;
179193
font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;

0 commit comments

Comments
 (0)