From 1586db0c11b1e9fb2f0d679bc6bc89b760d0e413 Mon Sep 17 00:00:00 2001 From: Pau Giner Date: Sat, 25 May 2013 10:35:49 +0200 Subject: [PATCH] vector: Add SVG versions of collapsible menu icons SVG with a PNG fallback is added for the collapsible tab icon. It allows SVG-capable browsers to view images at full resolution while keeping backwards compatibility with browsers that don't support SVG. Implementation similar to I914da06494. Change-Id: I0448e34bd10aa5cf83f1530a44b1555caee271b1 --- skins/vector/images/arrow-down-focus-icon.svg | 37 +++++++++++++++++++ skins/vector/images/arrow-down-icon.svg | 37 +++++++++++++++++++ skins/vector/screen.css | 12 ++++++ 3 files changed, 86 insertions(+) create mode 100644 skins/vector/images/arrow-down-focus-icon.svg create mode 100644 skins/vector/images/arrow-down-icon.svg diff --git a/skins/vector/images/arrow-down-focus-icon.svg b/skins/vector/images/arrow-down-focus-icon.svg new file mode 100644 index 0000000000..f2edf26363 --- /dev/null +++ b/skins/vector/images/arrow-down-focus-icon.svg @@ -0,0 +1,37 @@ + + + + + + + + + image/svg+xml + + + + + + + + + diff --git a/skins/vector/images/arrow-down-icon.svg b/skins/vector/images/arrow-down-icon.svg new file mode 100644 index 0000000000..9218ff28d4 --- /dev/null +++ b/skins/vector/images/arrow-down-icon.svg @@ -0,0 +1,37 @@ + + + + + + + + + image/svg+xml + + + + + + + + + diff --git a/skins/vector/screen.css b/skins/vector/screen.css index eb4a4dda64..32c4c937e5 100644 --- a/skins/vector/screen.css +++ b/skins/vector/screen.css @@ -219,6 +219,12 @@ div.vectorMenu { float: left; /* @embed */ background-image: url(images/arrow-down-icon.png); + /* SVG support using a transparent gradient to guarantee cross-browser + * compatibility (browsers able to understand gradient syntax support also SVG) */ + /* @embed */ + background-image: -webkit-linear-gradient(transparent, transparent), url(images/arrow-down-icon.svg); + /* @embed */ + background-image: linear-gradient(transparent, transparent), url(images/arrow-down-icon.svg); background-position: 100% 60%; background-repeat: no-repeat; cursor: pointer; @@ -226,6 +232,12 @@ div.vectorMenu { div.vectorMenuFocus { /* @embed */ background-image: url(images/arrow-down-focus-icon.png); + /* SVG support using a transparent gradient to guarantee cross-browser + * compatibility (browsers able to understand gradient syntax support also SVG) */ + /* @embed */ + background-image: -webkit-linear-gradient(transparent, transparent), url(images/arrow-down-focus-icon.svg); + /* @embed */ + background-image: linear-gradient(transparent, transparent), url(images/arrow-down-focus-icon.svg); background-position: 100% 60%; } /* @noflip */ -- 2.20.1