clipboard-js.less 612 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. // clipboard.js
  2. //
  3. // JS-based `Copy` buttons for code snippets.
  4. .bs-clipboard {
  5. position: relative;
  6. display: none;
  7. float: right;
  8. + .highlight {
  9. margin-top: 0;
  10. }
  11. }
  12. .btn-clipboard {
  13. position: absolute;
  14. top: 0;
  15. right: 0;
  16. z-index: 10;
  17. display: block;
  18. padding: 4px 8px;
  19. font-size: 12px;
  20. color: #818a91;
  21. cursor: pointer;
  22. background-color: transparent;
  23. border: 0;
  24. border-top-right-radius: 4px;
  25. border-bottom-left-radius: 4px;
  26. &:hover {
  27. color: #fff;
  28. background-color: #027de7;
  29. }
  30. }
  31. @media (min-width: @screen-sm-min) {
  32. .bs-clipboard {
  33. display: block;
  34. }
  35. }