Skip to content

Commit e846b3b

Browse files
committed
fix: [scss] Remove func to get color for print
The color for media print was moved into `themed()` mixin to prevent repeating code. So there is no need for helper function `tp()` to get theme color for media print.
1 parent 5a6a152 commit e846b3b

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

assets/styles/_main.scss

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,10 @@ a {
143143
content: "(" attr(href) ")";
144144
text-decoration: underline;
145145
font-style: italic;
146-
color: tp($text);
146+
147+
@include themed {
148+
color: t($text);
149+
}
147150
}
148151
}
149152
}

assets/styles/_themes.scss

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,3 @@ $current-theme: null;
115115
@function t($key) {
116116
@return map-get($current-theme, $key);
117117
}
118-
119-
@function tp($key) {
120-
@return map-get(map-get($themes, "light"), "#{$key}");
121-
}

0 commit comments

Comments
 (0)