@mixin center { align-items: center; display: inline-flex; justify-content: center; } @mixin clearfix { clear: both; content: ""; display: block; } @mixin ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } @mixin font-mono { font-family: "Input Mono", "Fira Mono", "Fira Code", "Courier New", monospace; } @mixin font-sans { font-family: "Inter UI", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"; } @mixin font-serif { font-family: Georgia, serif; } @mixin hide-text { border: none; color: transparent; font: 0 / 0 a; text-shadow: none; } @mixin no-user-select { user-select: none; -ms-user-select: none; -moz-user-select: none; -webkit-user-select: none; } @mixin selection($background-color, $text-color) { &::selection { background-color: $background-color; color: $text-color; text-shadow: none; } &::-moz-selection { background-color: $background-color; color: $text-color; text-shadow: none; } } @mixin underline($text-color: $lbry-black, $whitespace-color: #fff) { @include selection($text-color, $whitespace-color); background-image: linear-gradient($whitespace-color, $whitespace-color), linear-gradient($whitespace-color, $whitespace-color), linear-gradient($text-color, $text-color); background-position: 0 88%, 100% 88%, 0 88%; background-repeat: no-repeat, no-repeat, repeat-x; background-size: 0.05rem 1px, 0.05rem 1px, 1px 1px; box-decoration-break: clone; display: inline; text-decoration: none; text-shadow: 0.03rem 0 $whitespace-color, -0.03rem 0 $whitespace-color, 0 0.03rem $whitespace-color, 0 -0.03rem $whitespace-color, 0.06rem 0 $whitespace-color, -0.06rem 0 $whitespace-color, 0.09rem 0 $whitespace-color, -0.09rem 0 $whitespace-color, 0.12rem 0 $whitespace-color, -0.12rem 0 $whitespace-color, 0.15rem 0 $whitespace-color, -0.15rem 0 $whitespace-color; @-moz-document url-prefix() { // sass-lint:disable-line empty-args background-position: 0 90%, 100% 90%, 0 90%; } }