github.com/cilium/cilium@v1.16.2/Documentation/_static/copybutton.css (about) 1 div.code-wrapper { 2 position: relative !important; 3 } 4 5 section > div.code-wrapper { 6 margin-bottom: 24px !important; 7 } 8 9 div.code-wrapper pre { 10 padding-top: 25px !important; 11 } 12 13 div.copybutton-wrapper { 14 display: block; 15 position: absolute; 16 top: 0px; 17 right: 0px; 18 width: auto; 19 height: 20px; 20 text-align: center; 21 background-color: #eef0f0; 22 user-select: none; 23 padding: 2px 5px 0 7px; 24 font-size: 14px; 25 line-height: 14px; 26 font-weight: 400; 27 opacity: 0.4; 28 /* white-space: pre; */ 29 } 30 31 div.code-wrapper:hover div.copybutton-wrapper { 32 opacity: 1; 33 } 34 35 div.copybutton-wrapper a.copybutton { 36 display: inline-block; 37 padding: 0 5px; 38 color: #666; 39 } 40 41 img.copy-icon { 42 position: relative; 43 top: -1px; 44 width: 14px; 45 } 46 47 div.copybutton-wrapper a.copybutton:hover { 48 color: #000; 49 }