refac: styling
This commit is contained in:
1 parent
e10e7d056e
commit
d215e46315
2 files changed
+61
-39
No files matched your search
@@ -417,13 +417,13 @@
|
||||
|
||||
<div>
|
||||
<div
|
||||
class="relative {className} flex flex-col rounded-3xl border border-gray-100/30 dark:border-gray-850/30 my-0.5"
|
||||
class="relative {className} flex flex-col rounded-2xl border border-gray-100/30 dark:border-gray-850/30 my-0.5"
|
||||
dir="ltr"
|
||||
>
|
||||
{#if ['mermaid', 'vega', 'vega-lite'].includes(lang)}
|
||||
{#if renderHTML}
|
||||
<SvgPanZoom
|
||||
className=" rounded-3xl max-h-fit overflow-hidden"
|
||||
className=" rounded-2xl max-h-fit overflow-hidden"
|
||||
svg={renderHTML}
|
||||
content={_token.text}
|
||||
/>
|
||||
@@ -441,13 +441,13 @@
|
||||
{/if}
|
||||
{:else}
|
||||
<div
|
||||
class="absolute left-0 right-0 py-2.5 pr-3 text-text-300 pl-4.5 text-xs font-medium dark:text-white"
|
||||
class="absolute left-0 right-0 py-1.5 pr-3 text-text-300 pl-4.5 text-xs font-medium dark:text-white"
|
||||
>
|
||||
{lang}
|
||||
</div>
|
||||
|
||||
<div
|
||||
class="sticky {stickyButtonsClassName} left-0 right-0 py-2 pr-3 flex items-center justify-end w-full z-10 text-xs text-black dark:text-white"
|
||||
class="sticky {stickyButtonsClassName} left-0 right-0 py-1.5 pr-3 flex items-center justify-end w-full z-10 text-xs text-black dark:text-white"
|
||||
>
|
||||
<div class="flex items-center gap-0.5">
|
||||
<button
|
||||
@@ -514,13 +514,13 @@
|
||||
</div>
|
||||
|
||||
<div
|
||||
class="language-{lang} rounded-t-3xl -mt-9 {editorClassName
|
||||
class="language-{lang} rounded-t-2xl -mt-8 {editorClassName
|
||||
? editorClassName
|
||||
: executing || stdout || stderr || result
|
||||
? ''
|
||||
: 'rounded-b-3xl'} overflow-hidden"
|
||||
: 'rounded-b-2xl'} overflow-hidden"
|
||||
>
|
||||
<div class=" pt-8 bg-white dark:bg-black"></div>
|
||||
<div class=" pt-6.5 bg-white dark:bg-black"></div>
|
||||
|
||||
{#if !collapsed}
|
||||
{#if edit}
|
||||
@@ -550,7 +550,7 @@
|
||||
{/if}
|
||||
{:else}
|
||||
<div
|
||||
class="bg-white dark:bg-black dark:text-white rounded-b-3xl! pt-0.5 pb-3 px-4 flex flex-col gap-2 text-xs"
|
||||
class="bg-white dark:bg-black dark:text-white rounded-b-2xl! pt-0.5 pb-3 px-4 flex flex-col gap-2 text-xs"
|
||||
>
|
||||
<span class="text-gray-500 italic">
|
||||
{$i18n.t('{{COUNT}} hidden lines', {
|
||||
@@ -569,7 +569,7 @@
|
||||
|
||||
{#if executing || stdout || stderr || result || files}
|
||||
<div
|
||||
class="bg-gray-50 dark:bg-black dark:text-white rounded-b-3xl! py-4 px-4 flex flex-col gap-2"
|
||||
class="bg-gray-50 dark:bg-black dark:text-white rounded-b-2xl! py-4 px-4 flex flex-col gap-2"
|
||||
>
|
||||
{#if executing}
|
||||
<div class=" ">
|
||||
|
||||
Reference in new issue
Block a user