mirror of
https://github.com/McShelby/hugo-theme-relearn.git
synced 2024-11-30 03:03:09 +00:00
theme: adjust code print styles #35
This commit is contained in:
parent
7059329c01
commit
40a243deff
1 changed files with 17 additions and 0 deletions
|
@ -608,12 +608,24 @@ code.copy-to-clipboard-inline {
|
|||
border-top-right-radius: 0;
|
||||
border-right-width: 0;
|
||||
}
|
||||
@media print {
|
||||
code.copy-to-clipboard-inline {
|
||||
border-bottom-right-radius: 2px;
|
||||
border-top-right-radius: 2px;
|
||||
border-right-width: 1px;
|
||||
}
|
||||
}
|
||||
pre {
|
||||
padding: 1rem;
|
||||
border: 0;
|
||||
border-radius: 2px;
|
||||
line-height: 1.15;
|
||||
}
|
||||
@media print {
|
||||
pre {
|
||||
border: 1px solid #ccc;
|
||||
}
|
||||
}
|
||||
pre code {
|
||||
background-color: inherit;
|
||||
color: inherit;
|
||||
|
@ -1045,6 +1057,11 @@ td {
|
|||
font-size: 92%;
|
||||
padding-left: 22px;
|
||||
}
|
||||
@media print {
|
||||
.copy-to-clipboard {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
.copy-to-clipboard:hover {
|
||||
background-color: #FCEBB4;
|
||||
border-color: #B19F7A;
|
||||
|
|
Loading…
Reference in a new issue