1
0

_float.scss 671 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. .float-container {
  2. bottom: 2rem;
  3. right: 2rem;
  4. z-index: 100;
  5. position: fixed;
  6. font-size: 1.6em;
  7. a {
  8. position: relative;
  9. display: inline-block;
  10. width: 3rem;
  11. height: 3rem;
  12. font-size: 2rem;
  13. color: $alt-fg-color;
  14. background-color: $alt-bg-color;
  15. border-radius: 0.2rem;
  16. opacity: 0.5;
  17. transition: all 0.25s ease-in;
  18. &:hover,
  19. &:focus {
  20. color: $link-color;
  21. opacity: 1;
  22. @media only screen and (max-width: 768px) {
  23. color: $alt-fg-color;
  24. opacity: 0.5;
  25. }
  26. }
  27. i {
  28. position: absolute;
  29. top: 50%;
  30. left: 50%;
  31. transform: translate(-50%, -50%);
  32. }
  33. }
  34. }