1
0
mirror of https://github.com/github/choosealicense.com synced 2024-06-09 12:47:49 +02:00
choosealicense.com/assets/vendor/hint.css/src/hint-always.scss
2023-08-27 14:15:54 +05:00

47 lines
760 B
SCSS

/**
* source: hint-always.scss
*
* Defines a persisted tooltip which shows always.
*
* Classes added:
* 1) hint--always
*
*/
.#{$hintPrefix}always {
&:after, &:before {
opacity: 1;
visibility: visible;
}
&.#{$hintPrefix}top {
@include set-margin('translateY', -1, -50%);
&-left {
@include set-margin('translateY', -1, -100%);
}
&-right {
@include set-margin('translateY', -1, 0);
}
}
&.#{$hintPrefix}bottom {
@include set-margin('translateY', 1, -50%);
&-left {
@include set-margin('translateY', 1, -100%);
}
&-right {
@include set-margin('translateY', 1, 0);
}
}
&.#{$hintPrefix}left {
@include set-margin('translateX', -1);
}
&.#{$hintPrefix}right {
@include set-margin('translateX', 1);
}
}