From 4a5122de2640da1abe585558a73840093188de0e Mon Sep 17 00:00:00 2001 From: SeaDve Date: Tue, 27 Jul 2021 16:45:17 +0800 Subject: [PATCH 1/2] stylesheet: Add headerbar.flat --- src/stylesheet/widgets/_header-bar.scss | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/stylesheet/widgets/_header-bar.scss b/src/stylesheet/widgets/_header-bar.scss index fa813ada..469317f1 100644 --- a/src/stylesheet/widgets/_header-bar.scss +++ b/src/stylesheet/widgets/_header-bar.scss @@ -56,6 +56,11 @@ headerbar { } } + &.flat { + background: none; + box-shadow: none; + } + .solid-csd & { &:backdrop, & { &:dir(rtl), &:dir(ltr) { // specificity bump -- GitLab From 9e0e0d9d8ea168fee58919420acd96c40b33921d Mon Sep 17 00:00:00 2001 From: SeaDve Date: Tue, 27 Jul 2021 17:32:09 +0800 Subject: [PATCH 2/2] stylesheet: Compensate for the box-shadow --- src/stylesheet/widgets/_header-bar.scss | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/stylesheet/widgets/_header-bar.scss b/src/stylesheet/widgets/_header-bar.scss index 469317f1..b11c6dd2 100644 --- a/src/stylesheet/widgets/_header-bar.scss +++ b/src/stylesheet/widgets/_header-bar.scss @@ -59,6 +59,16 @@ headerbar { &.flat { background: none; box-shadow: none; + + min-height: 46px; + + > windowhandle > box { + padding-bottom: 0; + } + + &.default-decoration { + min-height: 36px; + } } .solid-csd & { -- GitLab