1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
|
@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;
}
/// Smart font include
/// Simply pass in the font-weight you want to use and the normal/italicized versions will be added
/// No more weighing down the front-end with references to unused weights
@mixin font($font-weight, $relative-font-path, $font-name) {
@font-face {
font-family: $font-name;
font-style: normal;
font-weight: $font-weight;
src: url("#{$relative-font-path}/#{$font-weight}.woff2") format("woff2");
}
}
@mixin font-plus-italics($font-weight, $relative-font-path, $font-name) {
@font-face {
font-family: $font-name;
font-style: normal;
font-weight: $font-weight;
src: url("#{$relative-font-path}/#{$font-weight}.woff2") format("woff2");
}
@font-face {
font-family: $font-name;
font-style: italic;
font-weight: $font-weight;
src: url("#{$relative-font-path}/#{$font-weight}i.woff2") format("woff2");
}
}
@mixin mono-plus-italics($font-weight, $relative-font-path, $font-name) {
@font-face {
font-family: $font-name;
font-style: normal;
font-weight: $font-weight;
src: url("#{$relative-font-path}/#{$font-weight}.woff2") format("woff2");
unicode-range: U+24, U+30-39, U+A2-A5; // $, 0-9, ¢£¤¥
}
@font-face {
font-family: $font-name;
font-style: italic;
font-weight: $font-weight;
src: url("#{$relative-font-path}/#{$font-weight}i.woff2") format("woff2");
unicode-range: U+24, U+30-39, U+A2-A5; // $, 0-9, ¢£¤¥
}
}
@mixin hide-text {
border: none;
color: transparent;
font: 0 / 0 a;
text-shadow: none;
}
@mixin selection($background-color: var(--uchu-yang), $text-color: var(--uchu-gray-9)) {
&::selection {
background-color: $background-color;
color: $text-color;
text-shadow: none;
}
&::-moz-selection {
background-color: $background-color;
color: $text-color;
text-shadow: none;
}
}
|