[gtk+] gtk3-demo: Update css
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] gtk3-demo: Update css
- Date: Sun, 28 Feb 2016 03:39:51 +0000 (UTC)
commit a7a934a60cc9e1e52fc6ded89f41c4ab3efefa9a
Author: Matthias Clasen <mclasen redhat com>
Date: Sat Feb 27 22:39:09 2016 -0500
gtk3-demo: Update css
Clean up any deprecation warnings from the css examples in
gtk3-demo.
demos/gtk-demo/css_shadows.css | 4 +-
demos/gtk-demo/cssview.css | 10 +++---
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 b66b43e..ca7a041 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 5060c39..a3675c9 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 60410e4..7af3e7f 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;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]