mirror of
https://github.com/github/choosealicense.com
synced 2024-06-09 12:47:49 +02:00
40 lines
586 B
SCSS
40 lines
586 B
SCSS
/**
|
|
* source: hint-sizes.scss
|
|
*
|
|
* Defines width restricted tooltips that can span
|
|
* across multiple lines.
|
|
*
|
|
* Classes added:
|
|
* 1) hint--small
|
|
* 2) hint--medium
|
|
* 3) hint--large
|
|
*
|
|
*/
|
|
|
|
|
|
.#{$hintPrefix}small,
|
|
.#{$hintPrefix}medium,
|
|
.#{$hintPrefix}large {
|
|
&:after {
|
|
white-space: normal;
|
|
line-height: 1.4em;
|
|
word-wrap: break-word; // Ensure long words do not overflow.
|
|
}
|
|
}
|
|
|
|
.#{$hintPrefix}small {
|
|
&:after {
|
|
width: $hintSizeSmall;
|
|
}
|
|
}
|
|
.#{$hintPrefix}medium {
|
|
&:after {
|
|
width: $hintSizeMedium;
|
|
}
|
|
}
|
|
.#{$hintPrefix}large {
|
|
&:after {
|
|
width: $hintSizeLarge;
|
|
}
|
|
}
|