_close.scss 724B

123456789101112131415161718192021222324252627282930
  1. .close {
  2. float: right;
  3. font-size: $close-font-size;
  4. font-weight: $close-font-weight;
  5. line-height: 1;
  6. color: $close-color;
  7. text-shadow: $close-text-shadow;
  8. opacity: .5;
  9. @include hover-focus {
  10. color: $close-color;
  11. text-decoration: none;
  12. opacity: .75;
  13. }
  14. }
  15. // Additional properties for button version
  16. // iOS requires the button element instead of an anchor tag.
  17. // If you want the anchor version, it requires `href="#"`.
  18. // See https://developer.mozilla.org/en-US/docs/Web/Events/click#Safari_Mobile
  19. // stylelint-disable property-no-vendor-prefix, selector-no-qualifying-type
  20. button.close {
  21. padding: 0;
  22. background: transparent;
  23. border: 0;
  24. -webkit-appearance: none;
  25. }
  26. // stylelint-enable