diff options
Diffstat (limited to 'gtk.css')
-rw-r--r-- | gtk.css | 113 |
1 files changed, 113 insertions, 0 deletions
diff --git a/gtk.css b/gtk.css new file mode 100644 index 000000000000..d0d2cb26a63b --- /dev/null +++ b/gtk.css @@ -0,0 +1,113 @@ +/************* + * CSD Fixes * + ************/ + +.window-frame, .window-frame:backdrop { + box-shadow: 0 0 0 black; + border-style: none; + margin: 0; + border-radius: 0; +} + +.titlebar { + border-radius: 0; +} + +.window-frame.csd.popup { + box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(0, 0, 0, 0.13); +} + +.header-bar { + background-image: none; + box-shadow: none; +} + +window.ssd headerbar.titlebar { + padding-top: 1px; + padding-bottom: 1px; + min-height: 0; +} + +window.ssd headerbar.titlebar button.titlebutton { + padding: 0px; + min-height: 0; + min-width: 0; +} + +.ssd .titlebar { + border-width: 0; + box-shadow: none; +} + +/* CSD / SSD minimization */ +/* shrink headebars */ +headerbar { + min-height: 0px; + padding-left: 2px; /* same as childrens vertical margins for nicer proportions */ + padding-right: 2px; +} + +headerbar entry, +headerbar spinbutton, +headerbar button, +headerbar separator { + margin-top: 2px; /* same as headerbar side padding for nicer proportions */ + margin-bottom: 2px; +} + +/* shrink ssd titlebars */ +.default-decoration { + min-height: 0; /* let the entry and button drive the titlebar size */ + padding: 2px +} + +.default-decoration .titlebutton { + min-height: 0px; /* tweak these two props to reduce button size */ + min-width: 0px; +} + +window.ssd headerbar.titlebar { + padding-top: 1px; + padding-bottom: 1px; + min-height: 0; +} + +window.ssd headerbar.titlebar button.titlebutton { + padding-top: 1px; + padding-bottom:1px; + min-height: 0; +} + +/* You may want to use this if you don't like the double title. */ +GtkLabel.title { + opacity: 0; +} + +/* From elementary css */ + +.titlebar.default-decoration { + padding: 0 3px; + min-height: 32px; +} + +dialog .titlebar.default-decoration, +messagedialog .titlebar, +messagedialog .titlebar.default-decoration { + min-height: 0; + padding: 3px; +} + +/********************* + * wingpanel support * + ********************/ + +.panel { +/* background-color: transparent; */ +/* background-color: black; */ + background-color: rgba(0,0,0,0.5); + transition: all 1s ease-in-out; +} + +.panel.maximized { + background-color: #000; +} |