index.less 809 Bytes
Newer Older
ι™ˆεΈ…'s avatar
commit  
ι™ˆεΈ… committed
1
.copy-block {
ι™ˆεΈ…'s avatar
ι™ˆεΈ… committed
2
  position: fixed;
ι™ˆεΈ…'s avatar
commit  
ι™ˆεΈ… committed
3 4 5 6 7 8
  right: 80px;
  bottom: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
ι™ˆεΈ…'s avatar
ι™ˆεΈ… committed
9 10
  width: 40px;
  height: 40px;
ι™ˆεΈ…'s avatar
commit  
ι™ˆεΈ… committed
11 12 13 14 15 16
  font-size: 20px;
  background: #fff;
  border-radius: 40px;
  box-shadow: 0 2px 4px -1px rgba(0, 0, 0, 0.2), 0 4px 5px 0 rgba(0, 0, 0, 0.14),
    0 1px 10px 0 rgba(0, 0, 0, 0.12);
  cursor: pointer;
ι™ˆεΈ…'s avatar
ι™ˆεΈ… committed
17
}
ι™ˆεΈ…'s avatar
commit  
ι™ˆεΈ… committed
18

ι™ˆεΈ…'s avatar
ι™ˆεΈ… committed
19 20 21 22 23 24
.copy-block-view {
  position: relative;
  :global {
    .ant-typography-copy {
      position: absolute;
      right: 5px;
ι™ˆεΈ…'s avatar
ι™ˆεΈ… committed
25
      bottom: 0;
ι™ˆεΈ…'s avatar
ι™ˆεΈ… committed
26 27 28
    }
  }
  .copy-block-code {
ι™ˆεΈ…'s avatar
ι™ˆεΈ… committed
29
    display: inline-block;
ι™ˆεΈ…'s avatar
ι™ˆεΈ… committed
30 31
    margin: 0 0.2em;
    padding: 0.2em 0.4em 0.1em;
ι™ˆεΈ…'s avatar
ι™ˆεΈ… committed
32
    color: #fff;
ι™ˆεΈ…'s avatar
ι™ˆεΈ… committed
33 34 35 36
    font-size: 85%;
    background: rgba(0, 0, 0, 0.06);
    border-radius: 3px;
  }
ι™ˆεΈ…'s avatar
commit  
ι™ˆεΈ… committed
37
  .copy-block-text {
ι™ˆεΈ…'s avatar
ι™ˆεΈ… committed
38
    margin: 0;
ι™ˆεΈ…'s avatar
ι™ˆεΈ… committed
39
    font-size: 12px;
ι™ˆεΈ…'s avatar
commit  
ι™ˆεΈ… committed
40 41
  }
}