aboutsummaryrefslogtreecommitdiffstats
path: root/src/gtk-3.0/scss/widgets/_entry.scss
diff options
context:
space:
mode:
authorJesús <heckyel@hyperbola.info>2019-08-23 23:50:54 -0500
committerJesús <heckyel@hyperbola.info>2019-08-23 23:50:54 -0500
commit033f79d5f73c0e3a15976e57fcf71c7d2e0aa79b (patch)
treed9351e6999294f3ed005e821695c3d081fe0b537 /src/gtk-3.0/scss/widgets/_entry.scss
downloadlibrix-033f79d5f73c0e3a15976e57fcf71c7d2e0aa79b.tar.lz
librix-033f79d5f73c0e3a15976e57fcf71c7d2e0aa79b.tar.xz
librix-033f79d5f73c0e3a15976e57fcf71c7d2e0aa79b.zip
first commit
Diffstat (limited to 'src/gtk-3.0/scss/widgets/_entry.scss')
-rw-r--r--src/gtk-3.0/scss/widgets/_entry.scss84
1 files changed, 84 insertions, 0 deletions
diff --git a/src/gtk-3.0/scss/widgets/_entry.scss b/src/gtk-3.0/scss/widgets/_entry.scss
new file mode 100644
index 0000000..e8d7562
--- /dev/null
+++ b/src/gtk-3.0/scss/widgets/_entry.scss
@@ -0,0 +1,84 @@
+/*********
+ ! Entry *
+**********/
+
+%linked_entry {
+ 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;
+ }
+}
+
+%entry {
+ padding: ($spacing - 1px) $spacing;
+ border-width: 1px;
+ border-style: solid;
+ border-radius: $roundness;
+ 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; }
+
+ &:selected, &:selected:focus {
+ background-color: $selected_bg_color;
+ color: $selected_fg_color;
+ }
+
+ &:insensitive { box-shadow: none; }
+
+ &.progressbar {
+ @include linear-gradient($selected_bg_color);
+
+ border-width: 0;
+ border-radius: $roundness;
+ color: $selected_fg_color;
+ }
+
+ &.image.left { padding-right: $spacing; }
+}
+
+@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") {
+ .entry {
+ @include entry($base_color, $text_color);
+
+ &.linked, .linked & { @extend %linked_entry; }
+ }
+}