You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

codecopy.less 767B

1234567891011121314151617181920212223242526272829303132
  1. .markup .code-block {
  2. position: relative;
  3. }
  4. .markup .code-copy {
  5. position: absolute;
  6. top: 8px;
  7. right: 6px;
  8. padding: 9px;
  9. visibility: hidden;
  10. animation: fadeout .2s both;
  11. }
  12. /* adjustments for comment content having only 14px font size */
  13. .repository.view.issue .comment-list .comment .markup .code-copy {
  14. right: 5px;
  15. padding: 8px;
  16. }
  17. /* can not use regular transparent button colors for hover and active states because
  18. we need opaque colors here as code can appear behind the button */
  19. .markup .code-copy:hover {
  20. background: var(--color-secondary) !important;
  21. }
  22. .markup .code-copy:active {
  23. background: var(--color-secondary-dark-1) !important;
  24. }
  25. .markup .code-block:hover .code-copy {
  26. visibility: visible;
  27. animation: fadein .2s both;
  28. }