Skip to content

Commit 0354c8a

Browse files
committed
fix copyBtn
1 parent 7d32fbc commit 0354c8a

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

resources/css/app.css

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,9 +62,8 @@ button { @apply cursor-pointer; }
6262

6363
li code,p code{border-radius:3px;padding:1px 5px;background-color: var(--tw-prose-pre-bg);color:#fff}
6464
pre{display:flex;border-radius:.5rem;position:relative;}
65-
pre .copyBtn{position:absolute;right:0;top:0;height:1.5rem;width:1.5rem;--tw-text-opacity:1;color:rgb(63 63 70 / var(--tw-text-opacity));outline:2px solid transparent;outline-offset:2px}
65+
pre .copyBtn{position:absolute;display:flex;right:8px;top:10px;height:1.5rem;width:1.5rem;--tw-text-opacity:1;color:rgb(63 63 70 / var(--tw-text-opacity));outline:2px solid transparent;outline-offset:2px}
6666
pre .copyBtn:active,pre .copyBtn:focus,pre .copyBtn:hover{--tw-text-opacity:1;color:rgb(255 255 255 / var(--tw-text-opacity))}
67-
pre .copyBtn svg{position:absolute;top:0;right:0;margin-right:1rem;margin-top:1.25rem}
6867
pre code{display:flex;flex:1 1 0%;border-radius:.5rem;--tw-text-opacity:1!important;color:rgb(255 255 255 / var(--tw-text-opacity))!important}
6968
pre code{font-size:.9em;line-height:2;font-family:Menlo,ui-monospace,SFMono-Regular,Monaco,Consolas,Liberation Mono,Courier New,monospace}
7069
pre code.torchlight{display:block;overflow-x:auto;padding-top:1rem;padding-bottom:1rem;padding-right:1rem}

0 commit comments

Comments
 (0)