Skip to content
This repository was archived by the owner on Oct 8, 2021. It is now read-only.

Commit 2049baf

Browse files
committed
Icons: Added new bars (nav) and edit icons
1 parent aabedd2 commit 2049baf

File tree

6 files changed

+21
-8
lines changed

6 files changed

+21
-8
lines changed
56.3 KB
Loading
55.6 KB
Loading
61.3 KB
Loading
61.6 KB
Loading

css/themes/default/jquery.mobile.theme.css

Lines changed: 17 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -852,20 +852,21 @@ a.ui-link-inherit {
852852
/* HD/"retina" sprite
853853
-----------------------------------------------------------------------------------------------------------*/
854854

855-
@media only screen and (-webkit-min-device-pixel-ratio: 1.5),
856-
only screen and (min--moz-device-pixel-ratio: 1.5),
857-
only screen and (min-resolution: 240dpi) {
855+
@media only screen and (-webkit-min-device-pixel-ratio: 1.3),
856+
only screen and (min--moz-device-pixel-ratio: 1.3),
857+
only screen and (min-resolution: 200dpi) {
858858

859859
.ui-icon-plus, .ui-icon-minus, .ui-icon-delete, .ui-icon-arrow-r,
860860
.ui-icon-arrow-l, .ui-icon-arrow-u, .ui-icon-arrow-d, .ui-icon-check,
861861
.ui-icon-gear, .ui-icon-refresh, .ui-icon-forward, .ui-icon-back,
862-
.ui-icon-grid, .ui-icon-star, .ui-icon-alert, .ui-icon-info, .ui-icon-home, .ui-icon-search, .ui-icon-searchfield:after,
862+
.ui-icon-grid, .ui-icon-star, .ui-icon-alert, .ui-icon-info, .ui-icon-home, .ui-icon-bars, .ui-icon-edit, .ui-icon-search, .ui-icon-searchfield:after,
863863
.ui-icon-checkbox-off, .ui-icon-checkbox-on, .ui-icon-radio-off, .ui-icon-radio-on {
864864
background-image: url(images/icons-36-white.png);
865-
-moz-background-size: 776px 18px;
866-
-o-background-size: 776px 18px;
867-
-webkit-background-size: 776px 18px;
868-
background-size: 776px 18px;
865+
/* Set the background size 2px larger to avoid rounding errors in chrome */
866+
-moz-background-size: 842px 18px;
867+
-o-background-size: 842px 18px;
868+
-webkit-background-size: 842px 18px;
869+
background-size: 842px 18px;
869870
}
870871
.ui-icon-alt {
871872
background-image: url(images/icons-36-black.png);
@@ -930,6 +931,14 @@ a.ui-link-inherit {
930931
.ui-icon-home {
931932
background-position: -576px 50%;
932933
}
934+
.ui-icon-bars {
935+
background-position: -785px 50%;
936+
937+
}.ui-icon-edit {
938+
background-position: -824px 50%;
939+
}
940+
941+
933942
.ui-icon-search,
934943
.ui-icon-searchfield:after {
935944
background-position: -612px 50%;

docs/buttons/buttons-icons.html

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,10 @@ <h2>Icon set</h2>
4545

4646
<p>The following <code> data-icon</code> attributes can be referenced to create the icons shown below:</p>
4747

48+
<p><strong>Bars</strong> - data-icon="bars"</p>
49+
<a href="index.html" data-role="button" data-icon="bars">My button</a>
50+
<p><strong>Edit</strong> - data-icon="edit"</p>
51+
<a href="index.html" data-role="button" data-icon="edit">My button</a>
4852
<p><strong>Left arrow</strong> - data-icon="arrow-l"</p>
4953
<a href="index.html" data-role="button" data-icon="arrow-l">My button</a>
5054
<p><strong>Right arrow</strong> - data-icon="arrow-r"</p>

0 commit comments

Comments
 (0)