mirror of
https://github.com/codex-team/codex.docs.git
synced 2025-07-29 18:19:42 +02:00
refactor: delete copy link button from header
This commit is contained in:
parent
b83d468ba0
commit
91ba44a169
3 changed files with 5 additions and 145 deletions
|
@ -125,111 +125,9 @@
|
|||
pointer-events: none;
|
||||
}
|
||||
|
||||
&--link-copied {
|
||||
.block-header__copy-link,
|
||||
.block-header__copy-link:hover {
|
||||
background: var(--color-success);
|
||||
opacity: 1;
|
||||
animation: check-square-in 250ms ease-in;
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
.block-header__copy-link-icon--initial {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.block-header__copy-link-icon--success {
|
||||
display: flex;
|
||||
animation: check-sign-in 350ms ease-in forwards;
|
||||
}
|
||||
|
||||
.block-header__copy-link-splash {
|
||||
opacity: 0;
|
||||
visibility: visible;
|
||||
transform: scale(3.5);
|
||||
}
|
||||
}
|
||||
|
||||
&__copy-link-splash {
|
||||
position: absolute;
|
||||
left: 0;
|
||||
width: 28px;
|
||||
height: 28px;
|
||||
background-color: var(--color-success);
|
||||
transform: scale(1);
|
||||
border-radius: 100%;
|
||||
transition: transform 400ms ease-out, opacity 400ms;
|
||||
visibility: hidden;
|
||||
}
|
||||
|
||||
&__copy-link-icon--success {
|
||||
width: 24px;
|
||||
height: 24px;
|
||||
display: none;
|
||||
color: white;
|
||||
}
|
||||
|
||||
&__copy-link-icon--initial {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
&__copy-link {
|
||||
width: 28px;
|
||||
height: 28px;
|
||||
cursor: pointer;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
border-radius: 8px;
|
||||
@apply --squircle;
|
||||
color: var(--color-text-second);
|
||||
opacity: 0;
|
||||
margin-right: 8px;
|
||||
|
||||
@media (--can-hover) {
|
||||
&:hover {
|
||||
background: var(--color-link-hover);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@media (--can-hover) {
|
||||
&:hover {
|
||||
.block-header__copy-link {
|
||||
opacity: 1;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.inline-code {
|
||||
line-height: inherit;
|
||||
}
|
||||
|
||||
@keyframes check-sign-in {
|
||||
from {
|
||||
transform: scale(.7);
|
||||
}
|
||||
80% {
|
||||
transform: scale(1.1);
|
||||
}
|
||||
to {
|
||||
transform: none;
|
||||
}
|
||||
}
|
||||
|
||||
@keyframes check-square-in {
|
||||
from {
|
||||
transform: scale(1.05);
|
||||
}
|
||||
80% {
|
||||
transform: scale(.96);
|
||||
}
|
||||
to {
|
||||
transform: none;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -580,4 +478,3 @@
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue