mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-12-03 16:24:01 +03:00
Add copy button to code blocks for improved documentation usability
This commit is contained in:
parent
82b9b83ca4
commit
d690b86f9a
|
|
@ -6,16 +6,15 @@
|
|||
padding: 2px 6px;
|
||||
cursor: pointer;
|
||||
|
||||
background: #f7f7f9; /* code block bg */
|
||||
border: 1px solid #e1e1e8; /* code block border */
|
||||
background: #f7f7f9;
|
||||
border: 1px solid #e1e1e8;
|
||||
border-radius: 3px;
|
||||
|
||||
color: #dc322f !important; /* fallback if no span */
|
||||
color: #dc322f !important;
|
||||
|
||||
box-shadow: 0 1px 1px rgba(0,0,0,0.04);
|
||||
}
|
||||
|
||||
/* Separate rule for the span inside the button */
|
||||
.copy-block-button span {
|
||||
color: #dc322f !important;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user