|
|
@ -310,7 +310,7 @@
|
|
|
|
position: relative;
|
|
|
|
position: relative;
|
|
|
|
z-index: 1;
|
|
|
|
z-index: 1;
|
|
|
|
margin: 0;
|
|
|
|
margin: 0;
|
|
|
|
padding: 16px 0;
|
|
|
|
padding: 20px 0;
|
|
|
|
background: transparent;
|
|
|
|
background: transparent;
|
|
|
|
overflow-x: auto;
|
|
|
|
overflow-x: auto;
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -419,24 +419,25 @@
|
|
|
|
/*rtl:ignore*/
|
|
|
|
/*rtl:ignore*/
|
|
|
|
direction: ltr;
|
|
|
|
direction: ltr;
|
|
|
|
position: absolute;
|
|
|
|
position: absolute;
|
|
|
|
top: 8px;
|
|
|
|
top: 12px;
|
|
|
|
/*rtl:ignore*/
|
|
|
|
/*rtl:ignore*/
|
|
|
|
right: 8px;
|
|
|
|
right: 12px;
|
|
|
|
z-index: 3;
|
|
|
|
z-index: 3;
|
|
|
|
display: block;
|
|
|
|
display: block;
|
|
|
|
justify-content: center;
|
|
|
|
justify-content: center;
|
|
|
|
align-items: center;
|
|
|
|
align-items: center;
|
|
|
|
|
|
|
|
border: 1px solid var(--vp-code-copy-code-border-color);
|
|
|
|
border-radius: 4px;
|
|
|
|
border-radius: 4px;
|
|
|
|
width: 40px;
|
|
|
|
width: 40px;
|
|
|
|
height: 40px;
|
|
|
|
height: 40px;
|
|
|
|
background-color: var(--vp-code-block-bg);
|
|
|
|
background-color: var(--vp-code-copy-code-bg);
|
|
|
|
opacity: 0;
|
|
|
|
opacity: 0;
|
|
|
|
cursor: pointer;
|
|
|
|
cursor: pointer;
|
|
|
|
background-image: var(--vp-icon-copy);
|
|
|
|
background-image: var(--vp-icon-copy);
|
|
|
|
background-position: 50%;
|
|
|
|
background-position: 50%;
|
|
|
|
background-size: 20px;
|
|
|
|
background-size: 20px;
|
|
|
|
background-repeat: no-repeat;
|
|
|
|
background-repeat: no-repeat;
|
|
|
|
transition: opacity 0.4s;
|
|
|
|
transition: border-color 0.25s, background-color 0.25s, opacity 0.25s;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.vp-doc [class*='language-']:hover > button.copy,
|
|
|
|
.vp-doc [class*='language-']:hover > button.copy,
|
|
|
@ -444,7 +445,9 @@
|
|
|
|
opacity: 1;
|
|
|
|
opacity: 1;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.vp-doc [class*='language-'] > button.copy:hover {
|
|
|
|
.vp-doc [class*='language-'] > button.copy:hover,
|
|
|
|
|
|
|
|
.vp-doc [class*='language-'] > button.copy.copied {
|
|
|
|
|
|
|
|
border-color: var(--vp-code-copy-code-hover-border-color);
|
|
|
|
background-color: var(--vp-code-copy-code-hover-bg);
|
|
|
|
background-color: var(--vp-code-copy-code-hover-bg);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
@ -459,12 +462,15 @@
|
|
|
|
.vp-doc [class*='language-'] > button.copy.copied::before,
|
|
|
|
.vp-doc [class*='language-'] > button.copy.copied::before,
|
|
|
|
.vp-doc [class*='language-'] > button.copy:hover.copied::before {
|
|
|
|
.vp-doc [class*='language-'] > button.copy:hover.copied::before {
|
|
|
|
position: relative;
|
|
|
|
position: relative;
|
|
|
|
|
|
|
|
top: -1px;
|
|
|
|
/*rtl:ignore*/
|
|
|
|
/*rtl:ignore*/
|
|
|
|
left: -65px;
|
|
|
|
left: -65px;
|
|
|
|
display: flex;
|
|
|
|
display: flex;
|
|
|
|
justify-content: center;
|
|
|
|
justify-content: center;
|
|
|
|
align-items: center;
|
|
|
|
align-items: center;
|
|
|
|
|
|
|
|
border: 1px solid var(--vp-code-copy-code-hover-border-color);
|
|
|
|
/*rtl:ignore*/
|
|
|
|
/*rtl:ignore*/
|
|
|
|
|
|
|
|
border-right: 0;
|
|
|
|
border-radius: 4px 0 0 4px;
|
|
|
|
border-radius: 4px 0 0 4px;
|
|
|
|
width: 64px;
|
|
|
|
width: 64px;
|
|
|
|
height: 40px;
|
|
|
|
height: 40px;
|
|
|
@ -479,9 +485,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
.vp-doc [class*='language-'] > span.lang {
|
|
|
|
.vp-doc [class*='language-'] > span.lang {
|
|
|
|
position: absolute;
|
|
|
|
position: absolute;
|
|
|
|
top: 6px;
|
|
|
|
top: 2px;
|
|
|
|
/*rtl:ignore*/
|
|
|
|
/*rtl:ignore*/
|
|
|
|
right: 12px;
|
|
|
|
right: 8px;
|
|
|
|
z-index: 2;
|
|
|
|
z-index: 2;
|
|
|
|
font-size: 12px;
|
|
|
|
font-size: 12px;
|
|
|
|
font-weight: 500;
|
|
|
|
font-weight: 500;
|
|
|
|