mirror of
https://github.com/nagisa77/OpenIsle.git
synced 2026-03-03 18:40:46 +08:00
Add code block copy button with toast
This commit is contained in:
@@ -101,6 +101,24 @@ body {
|
||||
padding: 8px 12px;
|
||||
border-radius: 4px;
|
||||
line-height: 0.8;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.copy-code-btn {
|
||||
position: absolute;
|
||||
top: 4px;
|
||||
right: 4px;
|
||||
font-size: 12px;
|
||||
padding: 2px 6px;
|
||||
border: none;
|
||||
border-radius: 4px;
|
||||
background-color: var(--primary-color);
|
||||
color: #fff;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.copy-code-btn:hover {
|
||||
background-color: var(--primary-color-hover);
|
||||
}
|
||||
|
||||
.info-content-text code {
|
||||
|
||||
Reference in New Issue
Block a user