style(mixins): format SCSS mixins for better readability

This commit is contained in:
Cell
2026-04-21 10:10:32 +08:00
parent 95644808a1
commit 4158ebffbd
2 changed files with 14 additions and 30 deletions
@@ -1,20 +1,4 @@
@mixin placeholder($color: fi-var(global-font-tertiary-color)) {
input::-webkit-input-placeholder {
color: $color;
}
input:-moz-placeholder {
color: $color;
}
input::-moz-placeholder {
color: $color;
}
input:-ms-input-placeholder {
color: $color;
}
input::placeholder {
color: $color;
}
+14 -14
View File
@@ -8,13 +8,13 @@
/// opacity: 0.8;
/// }
@mixin task-icon($color: null) {
> i {
// Set icon color (optional)
@if $color != null {
@include set-fi-var(task-icon-color, $color);
}
@content;
}
> i {
// Set icon color (optional)
@if $color != null {
@include set-fi-var(task-icon-color, $color);
}
@content;
}
}
/// Set task list text color and allow custom styles via @content
@@ -24,11 +24,11 @@
/// text-decoration: line-through fi-var(secondary);
/// }
@mixin task-text($color: null) {
> span {
// Set text color (optional)
@if $color != null {
@include set-fi-var(task-text-color, $color);
}
@content;
}
> span {
// Set text color (optional)
@if $color != null {
@include set-fi-var(task-text-color, $color);
}
@content;
}
}