From 3a41c93ff4243e203ac68cebe35a4dc09b58ab88 Mon Sep 17 00:00:00 2001 From: Horst3180 Date: Tue, 5 Apr 2016 23:45:23 +0200 Subject: style textview border --- common/gtk-3.0/3.20/sass/_common.scss | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) (limited to 'common/gtk-3.0/3.20/sass') diff --git a/common/gtk-3.0/3.20/sass/_common.scss b/common/gtk-3.0/3.20/sass/_common.scss index e57988c..2c8d750 100644 --- a/common/gtk-3.0/3.20/sass/_common.scss +++ b/common/gtk-3.0/3.20/sass/_common.scss @@ -87,6 +87,32 @@ textview { } } +textview border { + background-color: mix($bg_color, $base_color, 50%); + background-image: image(transparentize(black, 0.8)); // HACK: the border node just draws background so, + background-repeat: no-repeat; // using a background-image to draw the border + + &.bottom { + background-size: 100% 1px; + background-position: top; + } + + &.top { + background-size: 100% 1px; + background-position: bottom; + } + + &.left { + background-size: 1px 100%; + background-position: right; + } + + &.right { + background-size: 1px 100%; + background-position: left; + } +} + iconview { @extend .view; } rubberband, -- cgit v1.2.3