Skip to content

Commit

Permalink
Bug 1054889 - Update images for touch caret and selection carets. r=r…
Browse files Browse the repository at this point in the history
…oc, f=mtseng, ui-r=chuang

Update images provided in bug 1024930, and make touch caret uses the
same images as selection carets.
  • Loading branch information
aethanyc committed Aug 19, 2014
1 parent 5a46ceb commit aecd542
Show file tree
Hide file tree
Showing 18 changed files with 13 additions and 45 deletions.
3 changes: 0 additions & 3 deletions b2g/installer/package-manifest.in
Original file line number Diff line number Diff line change
Expand Up @@ -695,9 +695,6 @@
@BINPATH@/res/[email protected]
@BINPATH@/res/[email protected]
@BINPATH@/res/[email protected]
@BINPATH@/res/text_selection_handle.png
@BINPATH@/res/[email protected]
@BINPATH@/res/[email protected]
@BINPATH@/res/grabber.gif
#ifdef XP_MACOSX
@BINPATH@/res/cursors/*
Expand Down
3 changes: 0 additions & 3 deletions editor/composer/moz.build
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,4 @@ RESOURCE_FILES += [
'res/[email protected]',
'res/[email protected]',
'res/[email protected]',
'res/text_selection_handle.png',
'res/[email protected]',
'res/[email protected]',
]
Binary file modified editor/composer/res/text_caret.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified editor/composer/res/[email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified editor/composer/res/[email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified editor/composer/res/[email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified editor/composer/res/text_caret_tilt_left.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified editor/composer/res/[email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified editor/composer/res/[email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified editor/composer/res/[email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified editor/composer/res/text_caret_tilt_right.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified editor/composer/res/[email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified editor/composer/res/[email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified editor/composer/res/[email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed editor/composer/res/text_selection_handle.png
Binary file not shown.
Binary file removed editor/composer/res/[email protected]
Binary file not shown.
Binary file removed editor/composer/res/[email protected]
Binary file not shown.
52 changes: 13 additions & 39 deletions layout/style/ua.css
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
display: table-row !important;
}

/* The ::-moz-table-column pseudo-element is for extra columns at the end
/* The ::-moz-table-column pseudo-element is for extra columns at the end
of a table. */
*|*::-moz-table-column {
display: table-column !important;
Expand All @@ -62,7 +62,7 @@
*|*::-moz-table-column-group {
display: table-column-group !important;
}

*|*::-moz-table-row-group {
display: table-row-group !important;
}
Expand Down Expand Up @@ -183,7 +183,7 @@
%endif
}

*|*::-moz-column-content {
*|*::-moz-column-content {
/* the column boxes inside a column-flowed block */
/* make unicode-bidi inherit, otherwise it has no effect on column boxes */
unicode-bidi: inherit;
Expand Down Expand Up @@ -304,51 +304,33 @@ parsererror|sourcetext {
font-size: 12pt;
}

div[\_moz_anonclass="mozTouchCaret"].moz-touchcaret {
background-image: url("resource://gre/res/text_selection_handle.png");
position: absolute;
width: 19px;
height: 24px;
margin-left: -10px;
background-position: center center;
z-index: 2147483647;
}

div[\_moz_anonclass="mozTouchCaret"].moz-touchcaret,
div[\_moz_anonclass="mozTouchCaret"].moz-selectioncaret-left,
div[\_moz_anonclass="mozTouchCaret"].moz-selectioncaret-right {
background-image: url("resource://gre/res/text_caret.png");
position: absolute;
width: 21px;
height: 26px;
margin-left: -11px;
width: 29px;
height: 31px;
margin-left: -15px;
background-position: center center;
background-size: 100% 100%;
z-index: 2147483647;
}

div[\_moz_anonclass="mozTouchCaret"].moz-selectioncaret-left.tilt {
background-image: url("resource://gre/res/text_caret_tilt_left.png");
margin-left: -22px;
width: 22px;
margin-left: -29px;
width: 29px;
}

div[\_moz_anonclass="mozTouchCaret"].moz-selectioncaret-right.tilt {
background-image: url("resource://gre/res/text_caret_tilt_right.png");
margin-left: 0px;
width: 22px;
width: 29px;
}

@media (min-resolution: 1.5dppx) {
div[\_moz_anonclass="mozTouchCaret"].moz-touchcaret {
background-image: url("resource://gre/res/[email protected]");
position: absolute;
width: 29px;
height: 36px;
margin-left: -15px;
background-position: center center;
z-index: 2147483647;
}

div[\_moz_anonclass="mozTouchCaret"].moz-touchcaret,
div[\_moz_anonclass="mozTouchCaret"].moz-selectioncaret-left,
div[\_moz_anonclass="mozTouchCaret"].moz-selectioncaret-right {
background-image: url("resource://gre/res/[email protected]");
Expand All @@ -364,16 +346,7 @@ div[\_moz_anonclass="mozTouchCaret"].moz-selectioncaret-right.tilt {
}

@media (min-resolution: 2dppx) {
div[\_moz_anonclass="mozTouchCaret"].moz-touchcaret {
background-image: url("resource://gre/res/[email protected]");
position: absolute;
width: 38px;
height: 48px;
margin-left: -19px;
background-position: center center;
z-index: 2147483647;
}

div[\_moz_anonclass="mozTouchCaret"].moz-touchcaret,
div[\_moz_anonclass="mozTouchCaret"].moz-selectioncaret-left,
div[\_moz_anonclass="mozTouchCaret"].moz-selectioncaret-right {
background-image: url("resource://gre/res/[email protected]");
Expand All @@ -389,6 +362,7 @@ div[\_moz_anonclass="mozTouchCaret"].moz-selectioncaret-right.tilt {
}

@media (min-resolution: 2.25dppx) {
div[\_moz_anonclass="mozTouchCaret"].moz-touchcaret,
div[\_moz_anonclass="mozTouchCaret"].moz-selectioncaret-left
div[\_moz_anonclass="mozTouchCaret"].moz-selectioncaret-right {
background-image: url("resource://gre/res/[email protected]");
Expand Down

0 comments on commit aecd542

Please sign in to comment.