Files
numix-blue-gtk-theme/gtk-3.0/scss/widgets/_entry.scss
T

85 lines
1.5 KiB
SCSS
Raw Normal View History

2014-12-20 16:42:58 +05:30
/*********
! Entry *
**********/
2014-07-06 01:24:53 +05:30
2014-12-20 16:42:58 +05:30
%linked_entry {
2014-07-06 01:24:53 +05:30
border-width: 1px;
border-radius: 0;
border-right-width: 0;
border-left-width: 0;
&:first-child {
border-width: 1px;
border-radius: $roundness;
border-right-width: 0;
border-bottom-right-radius: 0;
border-top-right-radius: 0;
}
&:last-child {
border-width: 1px;
border-radius: $roundness;
border-left-width: 0;
border-bottom-left-radius: 0;
border-top-left-radius: 0;
}
&:only-child {
border-width: 1px;
border-radius: $roundness;
}
}
2015-05-31 21:50:35 +05:30
%entry {
2014-12-14 17:52:13 +05:30
padding: ($spacing - 1px) $spacing;
2014-07-06 01:24:53 +05:30
border-width: 1px;
border-style: solid;
border-radius: $roundness;
2015-05-31 21:50:35 +05:30
transition: border 150ms ease;
box-shadow: inset 1px 1px alpha($dark_shadow, .06),
inset -1px 0 alpha($dark_shadow, .06);
&:focus, &:hover, &:active { transition: none; }
2014-07-06 01:24:53 +05:30
&:selected, &:selected:focus {
background-color: $selected_bg_color;
color: $selected_fg_color;
}
2015-05-31 21:50:35 +05:30
&:insensitive { box-shadow: none; }
2014-07-06 01:24:53 +05:30
&.progressbar {
@include linear-gradient($selected_bg_color);
border-width: 0;
border-radius: $roundness;
color: $selected_fg_color;
}
2014-12-14 18:16:10 +05:30
&.image.left { padding-right: $spacing; }
2014-07-06 01:24:53 +05:30
}
2015-05-31 21:50:35 +05:30
@mixin entry($bg, $fg) {
@extend %entry;
@include linear-gradient($bg, to top);
@include border($bg);
color: $fg;
&:focus, &:active { border-color: $selected_bg_color; }
&:insensitive {
@include linear-gradient(shade($bg, .9), to top);
color: mix($bg, $fg, .5);
}
}
@include exports("entry") {
2014-12-20 16:42:58 +05:30
.entry {
@include entry($base_color, $text_color);
&.linked, .linked & { @extend %linked_entry; }
}
}