Adwaita: Mistake in code related to scales with marks
marks {
color: gtkalpha(currentColor, 0.55);
@each $marks_class, $marks_pos, $marks_margin in (top, top, bottom),
(bottom, bottom, top),
(TOP, LEFT, RIGHT),
(BOTTOM, RIGHT, LEFT) {
&.#{$marks_class} {
margin-#{$marks_margin}: $_marks_distance;
margin-#{$marks_pos}: -($_marks_distance + $_marks_length);
}
}
}
&.fine-tune marks {
@each $marks_class, $marks_pos, $marks_margin in (top, top, bottom),
(bottom, bottom, top),
(TOP, LEFT, RIGHT),
(BOTTOM, RIGHT, LEFT) {
&.#{$marks_class} {
margin-#{$marks_margin}: $_marks_distance;
margin-#{$marks_pos}: -($_marks_distance + $_marks_length - 3px);
}
}
}
scale marks { color: alpha(currentColor,0.55); }
scale marks.top { margin-bottom: 6px; margin-top: -12px; }
scale marks.bottom { margin-top: 6px; margin-bottom: -12px; }
scale marks.top { margin-right: 6px; margin-left: -12px; }
scale marks.bottom { margin-left: 6px; margin-right: -12px; }
scale.fine-tune marks.top { margin-bottom: 6px; margin-top: -9px; }
scale.fine-tune marks.bottom { margin-top: 6px; margin-bottom: -9px; }
scale.fine-tune marks.top { margin-right: 6px; margin-left: -9px; }
scale.fine-tune marks.bottom { margin-left: 6px; margin-right: -9px; }
I assume instead of (top, left, right)
and (bottom, right, left)
should be something like (right, left, right)
, but I cant test it - never saw a vertical scale with marks. Changing left/right margin values doesnt affect marks on horizontal scales.