Commit 6919ef73 authored by mtomasz@chromium.org's avatar mtomasz@chromium.org

Enlarge clickable area of the Files.app's butter bar's close action (x).

The previous (x) button was very tiny - 16x16 pixels, which may be too small when using a touchpad.
This patch modifies css so the x button's clickable area is extended to the surrounding paddings. As a result, it is much easier to cancel an operation.
Along the way, simplified css for actions.

TEST=Copy a large file and try to cancel. Also delete to check if Undo link is not broken.
BUG=175950

Review URL: https://codereview.chromium.org/12218135

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@182373 0039d316-1c4b-4281-b951-d872f2087c98
parent 7542684f
...@@ -90,12 +90,12 @@ body.loaded { ...@@ -90,12 +90,12 @@ body.loaded {
-webkit-box-pack: end; -webkit-box-pack: end;
-webkit-margin-start: 6px; -webkit-margin-start: 6px;
display: -webkit-box; display: -webkit-box;
height: 20px;
} }
#butter-bar .actions a { #butter-bar .actions a {
color: rgb(17, 85, 204); color: rgb(17, 85, 204);
cursor: pointer; cursor: pointer;
vertical-align: middle;
} }
#butter-bar .actions a.x { #butter-bar .actions a.x {
...@@ -104,17 +104,13 @@ body.loaded { ...@@ -104,17 +104,13 @@ body.loaded {
url('../images/files/ui/close_bar.png') 1x, url('../images/files/ui/close_bar.png') 1x,
url('../images/files/ui/2x/close_bar.png') 2x); url('../images/files/ui/2x/close_bar.png') 2x);
display: inline-block; display: inline-block;
height: 12px; height: 35px; /* #butter-bar .content's min-height. */
padding: 4px 2px; margin-right: -12px;
width: 12px; width: 35px;
}
#butter-bar .actions a:first-child {
margin-left: 2px;
} }
#butter-bar .actions a:last-child { #butter-bar .actions a.x:first-child {
margin-right: -2px; /* Overlap the padding with butter-bar padding. */ margin-left: -6px;
} }
#butter-bar.error { #butter-bar.error {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment