Skip to content

Commit 557ee7c

Browse files
authored
Refactor font imports and highlight mixin
1 parent b2c8697 commit 557ee7c

1 file changed

Lines changed: 16 additions & 10 deletions

File tree

src/assets/prop.scss

Lines changed: 16 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
// App
2-
@import url("https://fonts.googleapis.com/css2?family=Outfit:wght@100..900&display=swap");
2+
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@100..900&display=swap');
33

44
@font-face {
5-
font-family: "Cubano";
6-
src: url("./Cubano.ttf") format("truetype");
5+
font-family: 'Cubano';
6+
src: url('./Cubano.ttf') format('truetype');
77
font-weight: normal;
88
font-style: normal;
99
}
@@ -33,8 +33,8 @@
3333
--module-nav-bdr: #3d444d;
3434

3535
// Font
36-
--app-font-heads: "Cubano", serif !important;
37-
--app-font-content: "Outfit", sans-serif;
36+
--app-font-heads: 'Cubano', serif !important;
37+
--app-font-content: 'Outfit', sans-serif;
3838
--font-size-lg: 3.6rem;
3939
--font-size-rg: 1.8rem;
4040
--font-size-md: 1.6rem;
@@ -136,21 +136,27 @@ app-root,
136136
user-select: none !important;
137137
}
138138

139-
.highlight {
139+
@mixin highlight($fontFamily: var(--app-font-heads), $fontSize: 1.8rem, $letterSpace: 0) {
140140
display: flex;
141141
gap: 1rem;
142-
142+
143143
span {
144144
@include blurLayer($bdrRds: 1rem);
145-
font-family: var(--app-font-heads) !important;
146-
color: #ffffff !important;
147-
font-size: 1.8rem;
145+
font-family: $fontFamily !important;
146+
color: var(--theme-colour) !important;
147+
font-size: $fontSize !important;
148+
font-weight: 600;
148149
line-height: 1.8rem !important;
149150
padding: 0.6rem 1rem !important;
150151
margin-bottom: 0.6rem;
152+
letter-spacing: $letterSpace !important;
151153
}
152154
}
153155

156+
.highlight {
157+
@include highlight();
158+
}
159+
154160
.uline {
155161
text-decoration: underline;
156162
}

0 commit comments

Comments
 (0)