2018-05-02 00:45:31 +02:00
|
|
|
@mixin center {
|
|
|
|
align-items: center;
|
|
|
|
display: inline-flex;
|
|
|
|
justify-content: center;
|
|
|
|
}
|
|
|
|
|
2018-10-06 00:46:08 +02:00
|
|
|
@mixin clearfix {
|
|
|
|
clear: both;
|
|
|
|
content: "";
|
|
|
|
display: block;
|
2018-05-02 00:45:31 +02:00
|
|
|
}
|
|
|
|
|
2018-10-06 00:46:08 +02:00
|
|
|
@mixin ellipsis {
|
|
|
|
overflow: hidden;
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
white-space: nowrap;
|
2018-05-02 00:45:31 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
@mixin font-mono {
|
2018-10-03 23:53:39 +02:00
|
|
|
font-family: "Input Mono", "Fira Mono", "Fira Code", "Courier New", monospace;
|
2018-05-02 00:45:31 +02:00
|
|
|
}
|
|
|
|
|
2018-10-06 00:46:08 +02:00
|
|
|
@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";
|
|
|
|
}
|
2018-05-02 00:45:31 +02:00
|
|
|
|
2018-10-06 00:46:08 +02:00
|
|
|
@mixin font-serif {
|
|
|
|
font-family: Georgia, serif;
|
2018-05-02 00:45:31 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
@mixin hide-text {
|
2018-10-06 00:46:08 +02:00
|
|
|
border: none;
|
2018-05-02 00:45:31 +02:00
|
|
|
color: transparent;
|
2018-10-06 00:46:08 +02:00
|
|
|
font: 0 / 0 a;
|
2018-05-02 00:45:31 +02:00
|
|
|
text-shadow: none;
|
|
|
|
}
|
|
|
|
|
2018-10-06 00:46:08 +02:00
|
|
|
@mixin no-user-select {
|
|
|
|
user-select: none;
|
|
|
|
|
|
|
|
-ms-user-select: none;
|
|
|
|
-moz-user-select: none;
|
|
|
|
-webkit-user-select: none;
|
2018-05-02 00:45:31 +02:00
|
|
|
}
|
|
|
|
|
2018-10-06 00:46:08 +02:00
|
|
|
@mixin selection($background-color, $text-color) {
|
2018-06-29 18:09:36 +02:00
|
|
|
&::selection {
|
2018-10-06 00:46:08 +02:00
|
|
|
background-color: $background-color;
|
|
|
|
color: $text-color;
|
2018-06-29 18:09:36 +02:00
|
|
|
text-shadow: none;
|
2018-05-02 00:45:31 +02:00
|
|
|
}
|
|
|
|
|
2018-06-29 18:09:36 +02:00
|
|
|
&::-moz-selection {
|
2018-10-06 00:46:08 +02:00
|
|
|
background-color: $background-color;
|
|
|
|
color: $text-color;
|
2018-06-29 18:09:36 +02:00
|
|
|
text-shadow: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2018-10-06 00:46:08 +02:00
|
|
|
@mixin underline($text-color: #000, $whitespace-color: #fff) {
|
|
|
|
@include selection($text-color, $whitespace-color);
|
2018-06-29 18:09:36 +02:00
|
|
|
|
2018-10-06 00:46:08 +02:00
|
|
|
background-image: linear-gradient($whitespace-color, $whitespace-color), linear-gradient($whitespace-color, $whitespace-color), linear-gradient($text-color, $text-color);
|
2018-06-29 18:09:36 +02:00
|
|
|
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;
|
2018-10-06 00:46:08 +02:00
|
|
|
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;
|
2018-06-29 18:09:36 +02:00
|
|
|
|
2018-10-06 00:46:08 +02:00
|
|
|
@-moz-document url-prefix() { // sass-lint:disable-line empty-args
|
2018-06-29 18:09:36 +02:00
|
|
|
background-position: 0 90%, 100% 90%, 0 90%;
|
2018-05-02 00:45:31 +02:00
|
|
|
}
|
|
|
|
}
|