annotate gtk-3.24/Adwaita-override.css @ 112:bba406abe07c

Add Adwaita/Handy overrides for view switcher This gets us back to a reasonable match for the normal Adwaita/Handy view switcher in older apps
author IBBoard <dev@ibboard.co.uk>
date Sun, 01 May 2022 11:32:36 +0100
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
112
bba406abe07c Add Adwaita/Handy overrides for view switcher
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1 window.csd.unified:not(.solid-csd):not(.fullscreen):not(.tiled):not(.tiled-top):not(.tiled-bottom):not(.tiled-left):not(.tiled-right):not(.maximized), window.csd.unified:not(.solid-csd):not(.fullscreen):not(.tiled):not(.tiled-top):not(.tiled-bottom):not(.tiled-left):not(.tiled-right):not(.maximized) > decoration, window.csd.unified:not(.solid-csd):not(.fullscreen):not(.tiled):not(.tiled-top):not(.tiled-bottom):not(.tiled-left):not(.tiled-right):not(.maximized) > decoration-overlay { border-radius: 8px; }
bba406abe07c Add Adwaita/Handy overrides for view switcher
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2
bba406abe07c Add Adwaita/Handy overrides for view switcher
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
3 viewswitcher, viewswitcher button { margin: 0; padding: 0; }
bba406abe07c Add Adwaita/Handy overrides for view switcher
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
4
bba406abe07c Add Adwaita/Handy overrides for view switcher
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
5 viewswitcher button { border-radius: 0; border-top: 0; border-bottom: 0; box-shadow: none; font-size: 1rem; }
bba406abe07c Add Adwaita/Handy overrides for view switcher
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
6
bba406abe07c Add Adwaita/Handy overrides for view switcher
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
7 headerbar:not(.selection-mode) viewswitcher button:not(:backdrop) { box-shadow: inset 0 2px #4c4c4c, inset 0 1px #303030; background-color: #3D3D3D; background-origin: border-box; }
bba406abe07c Add Adwaita/Handy overrides for view switcher
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
8
bba406abe07c Add Adwaita/Handy overrides for view switcher
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
9 viewswitcher button:not(:checked):not(:hover) { background: transparent; }
bba406abe07c Add Adwaita/Handy overrides for view switcher
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
10
bba406abe07c Add Adwaita/Handy overrides for view switcher
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
11 viewswitcher button:not(:only-child):not(:last-child):not(:hover) { border-right-width: 0px; }
bba406abe07c Add Adwaita/Handy overrides for view switcher
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
12
bba406abe07c Add Adwaita/Handy overrides for view switcher
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
13 viewswitcher button:not(only-child):first-child:not(:checked):not(:hover), viewswitcher button:not(:checked):not(:hover) + button:not(:checked):not(:hover) { border-left-color: transparent; }
bba406abe07c Add Adwaita/Handy overrides for view switcher
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
14
bba406abe07c Add Adwaita/Handy overrides for view switcher
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
15 viewswitcher button:not(only-child):last-child:not(:checked):not(:hover) { border-right-color: transparent; }
bba406abe07c Add Adwaita/Handy overrides for view switcher
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
16 /*
bba406abe07c Add Adwaita/Handy overrides for view switcher
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
17 viewswitcher button:not(only-child):first-child:not(:checked):hover, viewswitcher button:not(:checked):hover + button:not(:checked):not(:hover), viewswitcher button:not(:checked):not(:hover) + button:not(:checked):hover { border-left-color: shade(#cdc7c2, 1.15); }
bba406abe07c Add Adwaita/Handy overrides for view switcher
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
18
bba406abe07c Add Adwaita/Handy overrides for view switcher
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
19 viewswitcher button:not(only-child):last-child:not(:checked):hover { border-right-color: shade(#cdc7c2, 1.15); }
bba406abe07c Add Adwaita/Handy overrides for view switcher
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
20
bba406abe07c Add Adwaita/Handy overrides for view switcher
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
21 viewswitcher button:not(:checked):hover:backdrop { background-image: image(#f6f5f4); }
bba406abe07c Add Adwaita/Handy overrides for view switcher
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
22
bba406abe07c Add Adwaita/Handy overrides for view switcher
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
23 headerbar viewswitcher button:not(:checked):hover:not(:backdrop) { background-image: linear-gradient(to top, shade(alpha(#f6f5f4, 0.7), 0.96) 2px, alpha(#f6f5f4, 0.7)); }
bba406abe07c Add Adwaita/Handy overrides for view switcher
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
24
bba406abe07c Add Adwaita/Handy overrides for view switcher
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
25 headerbar viewswitcher button:not(:checked):not(only-child):first-child:hover, headerbar viewswitcher button:not(:checked):hover + button:not(:checked):not(:hover), headerbar viewswitcher button:not(:checked):not(:hover) + button:not(:checked):hover { border-left-color: #cdc7c2; }
bba406abe07c Add Adwaita/Handy overrides for view switcher
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
26
bba406abe07c Add Adwaita/Handy overrides for view switcher
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
27 headerbar viewswitcher button:not(:checked):not(only-child):last-child:hover { border-right-color: #cdc7c2; }
bba406abe07c Add Adwaita/Handy overrides for view switcher
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
28
bba406abe07c Add Adwaita/Handy overrides for view switcher
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
29 headerbar viewswitcher button:not(:checked):hover:backdrop { background-image: image(#f6f5f4); }
bba406abe07c Add Adwaita/Handy overrides for view switcher
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
30 */
bba406abe07c Add Adwaita/Handy overrides for view switcher
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
31 viewswitcher button > stack > box.narrow { font-size: 0.75rem; padding-top: 7px; padding-bottom: 5px; }
bba406abe07c Add Adwaita/Handy overrides for view switcher
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
32
bba406abe07c Add Adwaita/Handy overrides for view switcher
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
33 viewswitcher button > stack > box.narrow image, viewswitcher button > stack > box.narrow label { padding-left: 8px; padding-right: 8px; }
bba406abe07c Add Adwaita/Handy overrides for view switcher
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
34
bba406abe07c Add Adwaita/Handy overrides for view switcher
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
35 viewswitcher button > stack > box.wide { padding: 8px 12px; }
bba406abe07c Add Adwaita/Handy overrides for view switcher
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
36
bba406abe07c Add Adwaita/Handy overrides for view switcher
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
37 viewswitcher button > stack > box.wide image:dir(ltr) { padding-left: 7px; }
bba406abe07c Add Adwaita/Handy overrides for view switcher
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
38
bba406abe07c Add Adwaita/Handy overrides for view switcher
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
39 viewswitcher button > stack > box.wide image:dir(rtl) { padding-right: 7px; }
bba406abe07c Add Adwaita/Handy overrides for view switcher
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
40
bba406abe07c Add Adwaita/Handy overrides for view switcher
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
41 viewswitcher button > stack > box.wide label:dir(ltr) { padding-right: 7px; }
bba406abe07c Add Adwaita/Handy overrides for view switcher
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
42
bba406abe07c Add Adwaita/Handy overrides for view switcher
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
43 viewswitcher button > stack > box.wide label:dir(rtl) { padding-left: 7px; }
bba406abe07c Add Adwaita/Handy overrides for view switcher
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
44
bba406abe07c Add Adwaita/Handy overrides for view switcher
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
45 viewswitcher button > stack > box label.active { font-weight: bold; }
bba406abe07c Add Adwaita/Handy overrides for view switcher
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
46
bba406abe07c Add Adwaita/Handy overrides for view switcher
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
47 viewswitcher button.needs-attention:active > stack > box label, viewswitcher button.needs-attention:checked > stack > box label { animation: none; background-image: none; }
bba406abe07c Add Adwaita/Handy overrides for view switcher
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
48
bba406abe07c Add Adwaita/Handy overrides for view switcher
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
49 viewswitcher button.needs-attention > stack > box label { animation: needs_attention 150ms ease-in; background-image: -gtk-gradient(radial, center center, 0, center center, 0.5, to(#5E7F3E), to(transparent)), -gtk-gradient(radial, center center, 0, center center, 0.5, to(rgba(255, 255, 255, 0.769231)), to(transparent)); background-size: 6px 6px, 6px 6px; background-repeat: no-repeat; background-position: right 0px, right 1px; }
bba406abe07c Add Adwaita/Handy overrides for view switcher
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
50
bba406abe07c Add Adwaita/Handy overrides for view switcher
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
51 viewswitcher button.needs-attention > stack > box label:backdrop { background-size: 6px 6px, 0 0; }
bba406abe07c Add Adwaita/Handy overrides for view switcher
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
52
bba406abe07c Add Adwaita/Handy overrides for view switcher
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
53 viewswitcher button.needs-attention > stack > box label:dir(rtl) { background-position: left 0px, left 1px; }