mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-12-04 08:44:02 +03:00
22 lines
465 B
CSS
22 lines
465 B
CSS
.copy-block-button {
|
|
position: absolute;
|
|
top: 6px;
|
|
right: 6px;
|
|
font-size: 12px;
|
|
padding: 2px 6px;
|
|
cursor: pointer;
|
|
|
|
background: #f7f7f9; /* code block bg */
|
|
border: 1px solid #e1e1e8; /* code block border */
|
|
border-radius: 3px;
|
|
|
|
color: #dc322f !important; /* fallback if no span */
|
|
|
|
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;
|
|
}
|