From b1c1fe6a8f26927fc22357b3f67b9e80ea3a58c6 Mon Sep 17 00:00:00 2001 From: Csaba Jakosa Date: Mon, 22 Aug 2016 19:28:35 +0200 Subject: [PATCH] [GTK 3.20] Issue #484 fixed --- gtk-3.20/scss/widgets/_notebook.scss | 70 ++++++++++++++++++++++++---- 1 file changed, 62 insertions(+), 8 deletions(-) diff --git a/gtk-3.20/scss/widgets/_notebook.scss b/gtk-3.20/scss/widgets/_notebook.scss index 2129d3f..dbd16a7 100644 --- a/gtk-3.20/scss/widgets/_notebook.scss +++ b/gtk-3.20/scss/widgets/_notebook.scss @@ -191,14 +191,6 @@ &:hover { background-color: mix($bg_color, $base_color, .6); } - - &:not(:first-child):not(:only-child){ - box-shadow: -1px 0 1px 0 rgba(0,0,0,0.1); - } - - &:not(:last-child):not(:only-child) { - box-shadow: 1px 0 1px 0 rgba(0,0,0,0.1); - } } label { @@ -211,6 +203,68 @@ } } + &.top tab, + &.bottom tab { + &:hover { + &:not(:first-child):not(:last-child):not(:only-child) { + box-shadow: 1px 0 1px shade($base_color, .85), -1px 0 1px shade($base_color, .85); + } + + &:last-child:not(:only-child) { + box-shadow: -1px 0 1px shade($base_color, .85); + } + + &:first-child:not(:only-child) { + box-shadow: 1px 0 1px shade($base_color, .85); + } + } + + &:checked { + &:not(:first-child):not(:last-child):not(:only-child) { + box-shadow: 1px 0 1px shade($base_color, .8), -1px 0 1px shade($base_color, .8); + } + + &:last-child:not(:only-child) { + box-shadow: -1px 0 1px shade($base_color, .8); + } + + &:first-child:not(:only-child) { + box-shadow: 1px 0 1px shade($base_color, .8); + } + } + } + + &.right tab, + &.left tab { + &:hover { + &:not(:first-child):not(:last-child):not(:only-child) { + box-shadow: 0 1px 1px shade($base_color, .85), 0 -1px 1px shade($base_color, .85); + } + + &:last-child:not(:only-child) { + box-shadow: 0 -1px 1px shade($base_color, .85); + } + + &:first-child:not(:only-child) { + box-shadow: 0 1px 1px shade($base_color, .85); + } + } + + &:checked { + &:not(:first-child):not(:last-child):not(:only-child) { + box-shadow: 0 1px 1px shade($base_color, .8), 0 -1px 1px shade($base_color, .8); + } + + &:last-child:not(:only-child) { + box-shadow: 0 -1px 1px shade($base_color, .8); + } + + &:first-child:not(:only-child) { + box-shadow: 0 1px 1px shade($base_color, .8); + } + } + } + &.top tab { padding: ($spacing + 1) 0 0; // top | left/right | bottom border-style: solid;