diff options
author | bartfab@chromium.org <bartfab@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-01-15 21:23:16 +0000 |
---|---|---|
committer | bartfab@chromium.org <bartfab@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-01-15 21:23:16 +0000 |
commit | e6cf4130f84b49d075e9b22d2b5f52992051d15b (patch) | |
tree | cdde6492315102f5e3bdc34508f33c1f7ce8dd5a | |
parent | 0f04ce965886b027eb13a9234a9a6563f3a987be (diff) | |
download | chromium_src-e6cf4130f84b49d075e9b22d2b5f52992051d15b.zip chromium_src-e6cf4130f84b49d075e9b22d2b5f52992051d15b.tar.gz chromium_src-e6cf4130f84b49d075e9b22d2b5f52992051d15b.tar.bz2 |
Bubble CSS: Replace relative positioning trickery with a margin
The bubble contents is supposed to be inset 1px from the bubble border.
This can be achieved by setting a 1px margin on the content. No need for
any relative positioning trickery.
BUG=134849
TEST=Manual
Review URL: https://chromiumcodereview.appspot.com/11857022
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@176973 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r-- | chrome/browser/resources/shared/css/bubble.css | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/chrome/browser/resources/shared/css/bubble.css b/chrome/browser/resources/shared/css/bubble.css index 2befbf6..5104232 100644 --- a/chrome/browser/resources/shared/css/bubble.css +++ b/chrome/browser/resources/shared/css/bubble.css @@ -12,13 +12,10 @@ .bubble-content { color: black; - left: 1px; line-height: 150%; + margin: 1px; padding: 8px 11px 12px; position: relative; - right: 1px; - top: 1px; - width: 298px; z-index: 3; } @@ -66,7 +63,7 @@ html[dir='rtl'] .bubble-close { } .bubble-shadow { - bottom: -2px; + bottom: 0; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15); left: 0; position: absolute; |