close.scss 825 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. @import "vars";
  2. @import "mixins";
  3. //
  4. // Close icons
  5. // --------------------------------------------------
  6. .close {
  7. position: absolute;
  8. top: 0px;
  9. right: 0px;
  10. height: 60px;
  11. width: 60px;
  12. text-align: center;
  13. line-height: 60px;
  14. font-size: 40px;
  15. color: $dark !important;
  16. opacity: 0.5;
  17. outline: 0 !important;
  18. &:focus {
  19. @include tab-focus();
  20. }
  21. &:hover,
  22. &:focus {
  23. text-decoration: none;
  24. cursor: pointer;
  25. }
  26. &:active {
  27. @include opacity(1);
  28. }
  29. // [converter] extracted button& to button.close
  30. }
  31. // Additional properties for button version
  32. // iOS requires the button element instead of an anchor tag.
  33. // If you want the anchor version, it requires `href="#"`.
  34. button.close {
  35. padding: 0;
  36. cursor: pointer;
  37. background: transparent;
  38. border: 0;
  39. -webkit-appearance: none;
  40. }