File tree Expand file tree Collapse file tree 2 files changed +21
-3
lines changed Expand file tree Collapse file tree 2 files changed +21
-3
lines changed Original file line number Diff line number Diff line change 2727 --content-fg : # 000 ;
2828 --content-hover-bg : # adadad ;
2929 --content-hover-fg : # 000 ;
30+
31+ /* Code styling colors for help menu*/
32+ --code-text-color : rgba (0 , 122 , 255 , 1 );
33+ --code-bg-color : rgba (96 , 165 , 250 , 0.2 );
34+ --code-block-bg-color : rgba (60 , 60 , 60 , 0.12 );
3035}
3136
3237@media (prefers-color-scheme : dark) {
Original file line number Diff line number Diff line change 1212 />
1313 <span class =" ml-2 font-semibold" >{{ node.display_name }}</span >
1414 </div >
15- <div class =" p-4 flex-grow node-help-content max-w-[600px] mx-auto" >
15+ <div class =" p-4 flex-grow node-help-content w-full mx-auto" >
1616 <ProgressSpinner
1717 v-if =" isLoading"
1818 class =" m-auto"
@@ -188,7 +188,7 @@ const outputList = computed(() =>
188188
189189.markdown-content :deep (li),
190190.fallback-content li {
191- @apply my-1 ;
191+ @apply my-2 ;
192192}
193193
194194.markdown-content :deep (* :first-child),
@@ -198,7 +198,9 @@ const outputList = computed(() =>
198198
199199.markdown-content :deep (code),
200200.fallback-content code {
201- @apply text-[var(--error-text)] bg-[var(--content-bg)] rounded px-1 py-0.5 ;
201+ color : var (--code-text-color );
202+ background-color : var (--code-bg-color );
203+ @apply rounded px-1.5 py-0.5 ;
202204}
203205
204206.markdown-content :deep (table),
@@ -227,4 +229,15 @@ const outputList = computed(() =>
227229.fallback-content thead {
228230 border-bottom : 1 px solid var (--p-text-color );
229231}
232+
233+ .markdown-content :deep (pre),
234+ .fallback-content pre {
235+ @apply rounded p-4 my-4 overflow-x-auto;
236+ background-color : var (--code-block-bg-color );
237+
238+ code {
239+ @apply bg-transparent p-0;
240+ color : var (--p-text-color );
241+ }
242+ }
230243 </style >
You can’t perform that action at this time.
0 commit comments