* Implement entry vertical code.

pull/435/head
Megax 2016-05-14 17:11:26 +02:00
parent 7692d47c02
commit da1083cca2
1 changed files with 35 additions and 7 deletions

View File

@ -30,6 +30,34 @@
} }
} }
%linked_vertical_entry {
border-width: 1px;
border-radius: 0;
border-top-width: 0;
border-bottom-width: 0;
&:first-child {
border-width: 1px;
border-radius: $roundness;
border-bottom-width: 0;
border-bottom-left-radius: 0;
border-bottom-right-radius: 0;
}
&:last-child {
border-width: 1px;
border-radius: $roundness;
border-top-width: 0;
border-top-left-radius: 0;
border-top-right-radius: 0;
}
&:only-child {
border-width: 1px;
border-radius: $roundness;
}
}
%entry { %entry {
padding: $spacing; padding: $spacing;
border-width: 1px; border-width: 1px;
@ -48,7 +76,7 @@
&:disabled { box-shadow: none; } &:disabled { box-shadow: none; }
& progressbar { progressbar {
@include linear-gradient($selected_bg_color); @include linear-gradient($selected_bg_color);
border-width: 0; border-width: 0;
@ -56,13 +84,11 @@
color: $selected_fg_color; color: $selected_fg_color;
} }
& image.left { padding-right: $spacing; } image.left { padding-right: $spacing; }
& image.right { padding-left: $spacing; }
selection { image.right { padding-left: $spacing; }
background-color: $selected_bg_color;
color: $selected_fg_color; selection { &:focus, & { @extend %selected_items; } }
}
} }
@mixin entry($bg, $fg) { @mixin entry($bg, $fg) {
@ -87,5 +113,7 @@
@include entry($base_color, $text_color); @include entry($base_color, $text_color);
&.linked, .linked & { @extend %linked_entry; } &.linked, .linked & { @extend %linked_entry; }
&.linked.vertical, .linked.vertical & { @extend %linked_vertical_entry; }
} }
} }