2021-07-07 11:12:38 +00:00
|
|
|
// transparent background and border properties included for button version.
|
|
|
|
// iOS requires the button element instead of an anchor tag.
|
|
|
|
// If you want the anchor version, it requires `href="#"`.
|
|
|
|
// See https://developer.mozilla.org/en-US/docs/Web/Events/click#Safari_Mobile
|
|
|
|
|
|
|
|
.btn-close {
|
|
|
|
box-sizing: content-box;
|
|
|
|
width: $btn-close-width;
|
|
|
|
height: $btn-close-height;
|
|
|
|
padding: $btn-close-padding-y $btn-close-padding-x;
|
|
|
|
color: $btn-close-color;
|
|
|
|
background: transparent escape-svg($btn-close-bg) center / $btn-close-width auto no-repeat; // include transparent for button elements
|
|
|
|
border: 0; // for button elements
|
|
|
|
@include border-radius();
|
|
|
|
opacity: $btn-close-opacity;
|
2020-05-19 16:53:54 +00:00
|
|
|
|
|
|
|
// Override <a>'s hover style
|
2021-07-07 11:12:38 +00:00
|
|
|
&:hover {
|
|
|
|
color: $btn-close-color;
|
2020-05-19 16:53:54 +00:00
|
|
|
text-decoration: none;
|
2021-07-07 11:12:38 +00:00
|
|
|
opacity: $btn-close-hover-opacity;
|
2020-05-19 16:53:54 +00:00
|
|
|
}
|
|
|
|
|
2021-07-07 11:12:38 +00:00
|
|
|
&:focus {
|
|
|
|
outline: 0;
|
|
|
|
box-shadow: $btn-close-focus-shadow;
|
|
|
|
opacity: $btn-close-focus-opacity;
|
2020-05-19 16:53:54 +00:00
|
|
|
}
|
|
|
|
|
2021-07-07 11:12:38 +00:00
|
|
|
&:disabled,
|
|
|
|
&.disabled {
|
|
|
|
pointer-events: none;
|
|
|
|
user-select: none;
|
|
|
|
opacity: $btn-close-disabled-opacity;
|
|
|
|
}
|
2020-05-19 16:53:54 +00:00
|
|
|
}
|
|
|
|
|
2021-07-07 11:12:38 +00:00
|
|
|
.btn-close-white {
|
|
|
|
filter: $btn-close-white-filter;
|
2020-05-19 16:53:54 +00:00
|
|
|
}
|