diff --git a/gtk/theme/Adwaita/_common.scss b/gtk/theme/Adwaita/_common.scss index 9d675ef134..af20b46217 100644 --- a/gtk/theme/Adwaita/_common.scss +++ b/gtk/theme/Adwaita/_common.scss @@ -1925,7 +1925,7 @@ notebook { } } - > stack { + > stack:not(:only-child) { // the :not(:only-child) is for "hidden" notebooks background-color: $base_color; &:backdrop { background-color: $backdrop_base_color; } diff --git a/gtk/theme/Adwaita/gtk-contained-dark.css b/gtk/theme/Adwaita/gtk-contained-dark.css index dfe955da25..7f1611e780 100644 --- a/gtk/theme/Adwaita/gtk-contained-dark.css +++ b/gtk/theme/Adwaita/gtk-contained-dark.css @@ -2368,9 +2368,9 @@ notebook > header { margin-bottom: 4px; } notebook > header.left tabs tab.reorderable-page, notebook > header.right tabs tab.reorderable-page { border-style: solid none; } -notebook > stack { +notebook > stack:not(:only-child) { background-color: #292929; } - notebook > stack:backdrop { + notebook > stack:not(:only-child):backdrop { background-color: #2c2c2c; } /************** diff --git a/gtk/theme/Adwaita/gtk-contained.css b/gtk/theme/Adwaita/gtk-contained.css index 3e610176ab..53678f9208 100644 --- a/gtk/theme/Adwaita/gtk-contained.css +++ b/gtk/theme/Adwaita/gtk-contained.css @@ -2378,9 +2378,9 @@ notebook > header { margin-bottom: 4px; } notebook > header.left tabs tab.reorderable-page, notebook > header.right tabs tab.reorderable-page { border-style: solid none; } -notebook > stack { +notebook > stack:not(:only-child) { background-color: #ffffff; } - notebook > stack:backdrop { + notebook > stack:not(:only-child):backdrop { background-color: white; } /**************