From: Pau Giner Date: Sat, 25 May 2013 08:35:49 +0000 (+0200) Subject: vector: Add SVG versions of collapsible menu icons X-Git-Tag: 1.31.0-rc.0~19395^2 X-Git-Url: http://git.cyclocoop.org/%7B%24admin_url%7Dmembres/cotisations/gestion/rappel_supprimer.php?a=commitdiff_plain;h=1586db0c11b1e9fb2f0d679bc6bc89b760d0e413;p=lhc%2Fweb%2Fwiklou.git 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 --- 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 */