github.phpd.cn/cilium/cilium@v1.6.12/Documentation/_static/copybutton.css (about)

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