diff options
| author | Borber <borber.drum@gmail.com> | 2025-03-25 22:59:05 +0800 | 
|---|---|---|
| committer | Borber <borber.drum@gmail.com> | 2025-03-25 22:59:05 +0800 | 
| commit | 0bfeae752f63dae4afa26fe587d4b628d2455d0e (patch) | |
| tree | 8d2beea904b828f94c412ffba2275753e5db3edf /assets/css | |
| parent | 361e58e6660b646eb56a538f8840cccabcc01fed (diff) | |
fix: copy button position
Diffstat (limited to 'assets/css')
| -rw-r--r-- | assets/css/main.css | 23 | 
1 files changed, 15 insertions, 8 deletions
| diff --git a/assets/css/main.css b/assets/css/main.css index 6e83511..a2f67cf 100644 --- a/assets/css/main.css +++ b/assets/css/main.css @@ -66,7 +66,7 @@ li {      list-style-type: none;    } -  & > input[type="checkbox"] { +  &>input[type="checkbox"] {      width: var(--li-checkbox-size);      height: var(--li-checkbox-size);      margin: 0 0.2em 0.15em -1.25em; @@ -86,17 +86,24 @@ input {  /* Code blocks */ +.highlight { +  position: relative; +} + + +.copy-code-container { +  position: absolute; +  top: 10px; +  right: 10px; +  z-index: 10; +} +  .copy-code-button {    background-color: var(--background);    font-family: var(--font-mono);    padding: 3px 6px; -  font-size: 0.8em; +  font-size: .8em;    border-radius: var(--copy-code-button-border-radius); -  position: absolute; -  top: 10px; -  right: 10px; -  z-index: 1; -  display: none;    border: 1px solid var(--code-border);  } @@ -598,4 +605,4 @@ blockquote {  blockquote p {    margin-left: 1rem;    margin-right: 1rem; -} +}
\ No newline at end of file | 
