Skip to content

Commit

Permalink
fix: mask height difference in code editor and reduce contrast of edi…
Browse files Browse the repository at this point in the history
…tor elements in light mode
  • Loading branch information
andrew-boyd committed Feb 12, 2024
1 parent 8c839ae commit d9cd123
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 6 deletions.
2 changes: 1 addition & 1 deletion docs/assets/css/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ html.dark::before {
@apply text-lg font-bold mb-3 dark:text-gray-100;
}
.page-section table {
@apply w-full mb-10 text-base text-slate-700 rounded-lg shadow-md border border-slate-300 border-separate border-spacing-0;
@apply w-full mb-10 text-base text-slate-700 rounded-lg shadow-sm border border-slate-300 border-separate border-spacing-0;
@apply dark:border-purple-950 dark:shadow-none dark:text-slate-200;
}
.page-section table th {
Expand Down
13 changes: 9 additions & 4 deletions docs/components/CodeExample.client.vue
Original file line number Diff line number Diff line change
Expand Up @@ -119,12 +119,14 @@ const stopWatch = watch(el, () => {
mdl:-mx-8
lg:-mx-24
shadow-sm
bg-[#f9f9f9] ${'' /* --vs-editor-background */}
after:-z-10
after:absolute
after:-inset-1
after:bg-sky-600
after:-inset-px
after:bg-sky-600/50
after:rounded-lg
dark:bg-[#180626] ${'' /* --vs-editor-background */}
dark:after:-inset-px
dark:after:bg-purple-900
`"
Expand All @@ -144,8 +146,11 @@ const stopWatch = watch(el, () => {
md:rounded-tr-lg
md:rounded-bl-none
dark:bg-black/40
dark:border-0
dark:bg-purple-600/5
dark:border-t-0
dark:border-r-0
dark:border-b-0
dark:border-l-purple-950/50
`"
>
<ul v-if="result">
Expand Down
2 changes: 1 addition & 1 deletion docs/components/HeadingSection.vue
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ const isInView = useElementVisibility(heading)
<span class="sr-only">{{ title }}</span>
<ClockFont
:chars="title.toLocaleLowerCase()"
:delay="200"
:delay="120"
:start="isInView"
/>
</h2>
Expand Down

0 comments on commit d9cd123

Please sign in to comment.