*/
.o-tooltip--left {
position: relative;
}
.o-tooltip--left:after {
opacity: 0;
visibility: hidden;
position: absolute;
content: attr(data-tooltip);
padding: 2px;
top: 0;
left: 0;
background: grey;
font-size: 1rem;
color: white;
white-space: nowrap;
z-index: 2;
border-radius: 2px;
transform: translateX(-102%) translateY(0);
transition: opacity 0.2s cubic-bezier(0.64, 0.09, 0.08, 1), transform 0.2s cubic-bezier(0.64, 0.09, 0.08, 1);
}
.o-tooltip--left:hover:after {
display: block;
opacity: 1;
visibility: visible;
transform: translateX(-100%) translateY(0);
transition: opacity 0.2s cubic-bezier(0.64, 0.09, 0.08, 1), transform 0.2s cubic-bezier(0.64, 0.09, 0.08, 1);
}PK `mPM+0 ' sphinx_copybutton/_static/copybutton.js/**
* Set up copy/paste for code blocks
*/
const runWhenDOMLoaded = cb => {
if (document.readyState != 'loading') {
cb()
} else if (document.addEventListener) {
document.addEventListener('DOMContentLoaded', cb)
} else {
document.attachEvent('onreadystatechange', function() {
if (document.readyState == 'complete') cb()
})
}
}
const codeCellId = index => `codecell${index}`
const clipboardButton = id =>
``
// Clears selected text since ClipboardJS will select the text when copying
const clearSelection = () => {
if (window.getSelection) {
window.getSelection().removeAllRanges()
} else if (document.selection) {
document.selection.empty()
}
}
// Changes tooltip text for two seconds, then changes it back
const temporarilyChangeTooltip = (el, newText) => {
const oldText = el.getAttribute('data-tooltip')
el.setAttribute('data-tooltip', newText)
setTimeout(() => el.setAttribute('data-tooltip', oldText), 2000)
}
const addCopyButtonToCodeCells = () => {
// If ClipboardJS hasn't loaded, wait a bit and try again. This
// happens because we load ClipboardJS asynchronously.
if (window.ClipboardJS === undefined) {
setTimeout(addCopyButtonToCodeCells, 250)
return
}
const codeCells = document.querySelectorAll('div.highlight pre')
codeCells.forEach((codeCell, index) => {
const id = codeCellId(index)
codeCell.setAttribute('id', id)
codeCell.insertAdjacentHTML('afterend', clipboardButton(id))
})
const clipboard = new ClipboardJS('.copybtn')
clipboard.on('success', event => {
clearSelection()
temporarilyChangeTooltip(event.trigger, 'Copied!')
})
clipboard.on('error', event => {
temporarilyChangeTooltip(event.trigger, 'Failed to copy')
})
}
runWhenDOMLoaded(addCopyButtonToCodeCells)PK hqLd/ / ) sphinx_copybutton-0.2.0.dist-info/LICENSEMIT License
Copyright (c) 2018 Chris Holdgraf
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
PK !Hp!Q a ' sphinx_copybutton-0.2.0.dist-info/WHEELHM
K-*ϳR03rOK-J,/RH,zd&Y)r$[)T&UD" PK !H>W * sphinx_copybutton-0.2.0.dist-info/METADATAS]O0}DcI$*LMMؑPg'IKu=ǹ "Γ5\Ol.,5Lڶ_v!XvEio&B 4)>EUKmsveZQE:y^Q%emX凄nHFط_u4ADDzo $j٤uLkG(p ]5U.KGmMo#ϣ,ke7MVgKg0i[g_Q{}sʐ-p OTuHԽACu?FzOہhBy@Mtʖڲ`,K5REZxom研֬xۗTunEφ/qš{M>pW|Kg/ćs>OF#QTjD"'0v
#4w
5c:pjk2U(ЕB1PK !HMt6
( sphinx_copybutton-0.2.0.dist-info/RECORDɒ@{?`(atU٨H `S6Dx1^ɛ,g !ڶf YBy-40tg)ܺF.C0&)WAg/kaǓ#L8YT+:zjuǮ
ePC:4ǜ?晕9mwFv2bP4;nްݶKBU(˨DtHiieeJذk qTw}H$筘s=8;BMn@W4ex(^zks$|Bx}EPM!9w**F~.C{&{{IN\]t%N?]խҮXW7ODX^~PK }mPM( sphinx_copybutton/__init__.pyPK `mPMT
) L sphinx_copybutton/_static/copy-button.svgPK `mPM}F ( Y sphinx_copybutton/_static/copybutton.cssPK `mPM+0 ' / sphinx_copybutton/_static/copybutton.jsPK hqLd/ / ) $ sphinx_copybutton-0.2.0.dist-info/LICENSEPK !Hp!Q a ' sphinx_copybutton-0.2.0.dist-info/WHEELPK !H>W * 0 sphinx_copybutton-0.2.0.dist-info/METADATAPK !HMt6
( sphinx_copybutton-0.2.0.dist-info/RECORDPK j