diff options
author | Matthias Clasen <mclasen@redhat.com> | 2016-02-27 22:39:09 -0500 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2016-02-27 22:39:09 -0500 |
commit | a7a934a60cc9e1e52fc6ded89f41c4ab3efefa9a (patch) | |
tree | 34762be8db6c7cd52962358631b1ba996f9209c6 | |
parent | 9b71a9b4aec27aac3e11f0a2725e3bc9359952e1 (diff) | |
download | gtk+-a7a934a60cc9e1e52fc6ded89f41c4ab3efefa9a.tar.gz |
gtk3-demo: Update css
Clean up any deprecation warnings from the css examples in
gtk3-demo.
-rw-r--r-- | demos/gtk-demo/css_shadows.css | 4 | ||||
-rw-r--r-- | demos/gtk-demo/cssview.css | 10 | ||||
-rw-r--r-- | demos/gtk-demo/reset.css | 57 |
3 files changed, 8 insertions, 63 deletions
diff --git a/demos/gtk-demo/css_shadows.css b/demos/gtk-demo/css_shadows.css index b66b43e205..ca7a0416c2 100644 --- a/demos/gtk-demo/css_shadows.css +++ b/demos/gtk-demo/css_shadows.css @@ -29,7 +29,7 @@ button { button:hover { text-shadow: 3px 3px 5px alpha(black, 0.75); - icon-shadow: 3px 3px 5px alpha(black, 0.75); + -gtk-icon-shadow: 3px 3px 5px alpha(black, 0.75); box-shadow: 3px 3px 5px alpha(black, 0.5) inset; border: solid 1px alpha(black, 0.75); } @@ -37,7 +37,7 @@ button:hover { button:active { padding: 11px 9px 9px 11px; text-shadow: 1px 1px 2.5px alpha(black, 0.6); - icon-shadow: 1px 1px 2.5px alpha(black, 0.6); + -gtk-icon-shadow: 1px 1px 2.5px alpha(black, 0.6); } diff --git a/demos/gtk-demo/cssview.css b/demos/gtk-demo/cssview.css index 5060c396b4..a3675c9c91 100644 --- a/demos/gtk-demo/cssview.css +++ b/demos/gtk-demo/cssview.css @@ -10,12 +10,12 @@ background-color: #4a90d9; } -.scrollbar.trough, +scrollbar trough, .scrollbars-junction { background-color: alpha(white, 0.80); } -.scrollbar.slider { +scrollbar slider { border-width: 3px; border-style: solid; border-radius: 10px; @@ -24,11 +24,11 @@ background-color: #999; } -.scrollbar.slider:prelight { +scrollbar slider:hover { background-color: #555; } -.pane-separator { +paned separator { background-color: alpha(white, 0.80); background-image: linear-gradient(transparent, transparent 1px, #999 1px, #999 4px, transparent 4px); background-size: 40px auto; @@ -36,6 +36,6 @@ background-position: center; } -.pane-separator:prelight { +paned separator:hover { background-image: linear-gradient(transparent, transparent 1px, #555 1px, #555 4px, transparent 4px); } diff --git a/demos/gtk-demo/reset.css b/demos/gtk-demo/reset.css index 60410e4222..7af3e7f28f 100644 --- a/demos/gtk-demo/reset.css +++ b/demos/gtk-demo/reset.css @@ -7,60 +7,5 @@ */ * { - color: inherit; - font-size: inherit; - background-color: initial; - font-family: inherit; - font-style: inherit; - font-variant: inherit; - font-weight: inherit; - text-shadow: inherit; - icon-shadow: inherit; - box-shadow: initial; - margin-top: initial; - margin-left: initial; - margin-bottom: initial; - margin-right: initial; - padding-top: initial; - padding-left: initial; - padding-bottom: initial; - padding-right: initial; - border-top-style: initial; - border-top-width: initial; - border-left-style: initial; - border-left-width: initial; - border-bottom-style: initial; - border-bottom-width: initial; - border-right-style: initial; - border-right-width: initial; - border-top-left-radius: initial; - border-top-right-radius: initial; - border-bottom-right-radius: initial; - border-bottom-left-radius: initial; - outline-style: initial; - outline-width: initial; - outline-offset: initial; - background-clip: initial; - background-origin: initial; - background-size: initial; - background-position: initial; - border-top-color: initial; - border-right-color: initial; - border-bottom-color: initial; - border-left-color: initial; - outline-color: initial; - background-repeat: initial; - background-image: initial; - border-image-source: initial; - border-image-repeat: initial; - border-image-slice: initial; - border-image-width: initial; - transition-property: initial; - transition-duration: initial; - transition-timing-function: initial; - transition-delay: initial; - engine: initial; - gtk-key-bindings: initial; - - -GtkNotebook-initial-gap: 0; + all: unset; } |