Commit 7b8980f4 authored by yoshiki@chromium.org's avatar yoshiki@chromium.org

[Files.app] Fix the z-indexes of special elements (2)

This patch fixes an 'autocomplete-suggest' element which wasn't fixed in the previous patch(r220270) and adds some comment.

BUG=280928
TEST=manual
R=hirono@chromium.org

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@221672 0039d316-1c4b-4281-b951-d872f2087c98
parent aacbc52f
...@@ -2,6 +2,18 @@ ...@@ -2,6 +2,18 @@
* Use of this source code is governed by a BSD-style license that can be * Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file. */ * found in the LICENSE file. */
/* The order of z-index:
* - 2: drag-selection-bodrder
* - 3: preview-panel
* - 500: scrollbar
* - 500: splitter
* - 550: autocomplete-suggestions
* - 600: menus
* - 600: tooltip
* - 1000: preview thumbnail popup
* - 1000: overlay panel (ie. image editor)
*/
/* Special attribute used in HTML to hide elements. */ /* Special attribute used in HTML to hide elements. */
body[type='folder'] [invisibleif~='folder'], body[type='folder'] [invisibleif~='folder'],
body[type='upload-folder'] [invisibleif~='upload-folder'], body[type='upload-folder'] [invisibleif~='upload-folder'],
...@@ -1137,7 +1149,7 @@ input.rename { ...@@ -1137,7 +1149,7 @@ input.rename {
opacity: 0; opacity: 0;
pointer-events: none; pointer-events: none;
position: absolute; position: absolute;
z-index: 1; z-index: 1; /* will be overridden with 1000 by script. */
} }
.preview-thumbnails > .popup > img { .preview-thumbnails > .popup > img {
...@@ -1752,7 +1764,7 @@ list.autocomplete-suggestions { ...@@ -1752,7 +1764,7 @@ list.autocomplete-suggestions {
padding: 5px 0; padding: 5px 0;
position: fixed; position: fixed;
width: 300px !important; /* This overrides the value specified by script. */ width: 300px !important; /* This overrides the value specified by script. */
z-index: 3; z-index: 550;
} }
list.autocomplete-suggestions > li { list.autocomplete-suggestions > li {
......
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