mirror of
https://github.com/hugo-fixit/FixIt.git
synced 2026-08-24 23:38:56 +00:00
style(mixins): format SCSS mixins for better readability
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user