cycat-project-website/_sass/bootstrap/_close.scss

42 lines
960 B
SCSS
Raw Normal View History

2018-12-09 08:21:01 +01:00
.close {
float: right;
2020-08-23 12:01:06 +02:00
@include font-size($close-font-size);
2018-12-09 08:21:01 +01:00
font-weight: $close-font-weight;
line-height: 1;
color: $close-color;
text-shadow: $close-text-shadow;
opacity: .5;
2020-08-23 12:01:06 +02:00
// Override <a>'s hover style
@include hover() {
2018-12-09 08:21:01 +01:00
color: $close-color;
text-decoration: none;
}
&:not(:disabled):not(.disabled) {
2020-08-23 12:01:06 +02:00
@include hover-focus() {
opacity: .75;
}
2018-12-09 08:21:01 +01:00
}
}
// Additional properties 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
2020-08-23 12:01:06 +02:00
// stylelint-disable-next-line selector-no-qualifying-type
2018-12-09 08:21:01 +01:00
button.close {
padding: 0;
background-color: transparent;
border: 0;
2020-08-23 12:01:06 +02:00
appearance: none;
}
// Future-proof disabling of clicks on `<a>` elements
// stylelint-disable-next-line selector-no-qualifying-type
a.close.disabled {
pointer-events: none;
2018-12-09 08:21:01 +01:00
}