diff --git a/.vuepress/theme/styles/code.css b/.vuepress/theme/styles/code.css index bebe4e70..9e0f8282 100644 --- a/.vuepress/theme/styles/code.css +++ b/.vuepress/theme/styles/code.css @@ -8,7 +8,7 @@ @apply .leading-normal .overflow-auto .my-4 .mx-0; code { - @apply .text-white .p-0 .bg-transparent .border-0; + @apply .text-white .p-0 .bg-transparent .border-0 .inline-block; } &::-webkit-scrollbar { @@ -28,8 +28,8 @@ div[class*="language-"] { @apply .relative .bg-grey-darkest .rounded .border .border-black .text-sm .my-4; .highlight-lines { - @apply .absolute .pin-t .pin-l .w-full .leading-normal .select-none; - margin-top: .9rem; + @apply .absolute .pin-l .w-full .leading-normal .select-none; + top: .9rem; .highlighted { background: rgba(0, 0, 0, 0.3);