summaryrefslogtreecommitdiffstats
path: root/chrome
diff options
context:
space:
mode:
authorestade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-06-20 20:30:18 +0000
committerestade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-06-20 20:30:18 +0000
commit07f3c6ea0de882f4a116ee82b017dc59f04660d9 (patch)
tree9fdafa024a9e52953529495b179c4e948034b1ca /chrome
parent679782384a0cb99c6a496bf0acbb7fee246ec5be (diff)
downloadchromium_src-07f3c6ea0de882f4a116ee82b017dc59f04660d9.zip
chromium_src-07f3c6ea0de882f4a116ee82b017dc59f04660d9.tar.gz
chromium_src-07f3c6ea0de882f4a116ee82b017dc59f04660d9.tar.bz2
Limit width of Recently Closed menu items on NTP
The changes to menu.css are just sorting. I avoided adding a width limit to menu.css because it might not always make sense (and most context menus probably don't contain dynamic content; rather they just show predefined strings which naturally have a length limit). BUG=85759 TEST=manual Review URL: http://codereview.chromium.org/7146004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@89722 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome')
-rw-r--r--chrome/browser/resources/new_tab.css1
-rw-r--r--chrome/browser/resources/ntp4/recently_closed.css1
-rw-r--r--chrome/browser/resources/shared/css/menu.css26
3 files changed, 15 insertions, 13 deletions
diff --git a/chrome/browser/resources/new_tab.css b/chrome/browser/resources/new_tab.css
index 5273492..ab1c174 100644
--- a/chrome/browser/resources/new_tab.css
+++ b/chrome/browser/resources/new_tab.css
@@ -182,6 +182,7 @@ html[anim=false] *,
background-color: hsla(213, 63%, 93%, 0);
display: block;
line-height: 20px;
+ max-width: 600px;
box-sizing: border-box;
white-space: nowrap;
overflow: hidden;
diff --git a/chrome/browser/resources/ntp4/recently_closed.css b/chrome/browser/resources/ntp4/recently_closed.css
index fa42575..6054737 100644
--- a/chrome/browser/resources/ntp4/recently_closed.css
+++ b/chrome/browser/resources/ntp4/recently_closed.css
@@ -28,6 +28,7 @@
font-size: 100%;
line-height: 20px;
margin: 4px;
+ max-width: 600px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
diff --git a/chrome/browser/resources/shared/css/menu.css b/chrome/browser/resources/shared/css/menu.css
index b28af86..01c4611 100644
--- a/chrome/browser/resources/shared/css/menu.css
+++ b/chrome/browser/resources/shared/css/menu.css
@@ -1,16 +1,16 @@
menu {
- display: none;
- position: fixed;
- border: 1px solid rgba(0, 0, 0, .50);
-webkit-box-shadow: 0px 2px 4px rgba(0, 0, 0, .50);
- color: black;
background: -webkit-linear-gradient(#fff, #eee);
+ border-radius: 3px;
+ border: 1px solid rgba(0, 0, 0, .50);
+ color: black;
+ cursor: default;
+ display: none;
left: 0;
- white-space: nowrap;
- padding: 8px 0;
margin: 0;
- cursor: default;
- border-radius: 3px;
+ padding: 8px 0;
+ position: fixed;
+ white-space: nowrap;
z-index: 3;
}
@@ -25,11 +25,11 @@ menu > * {
menu > :not(hr) {
-webkit-appearance: none;
background: transparent;
- font: inherit;
border: 0;
+ font: inherit;
line-height: 18px;
- padding: 0 19px;
overflow: hidden;
+ padding: 0 19px;
text-overflow: ellipsis;
}
@@ -61,11 +61,11 @@ menu > :not(hr)[selected]:active {
menu > [checked]:before {
content: url("../images/checkbox_black.png");
- width: 9px;
- height: 9px;
display: inline-block;
- vertical-align: 50%;
+ height: 9px;
margin: 0 5px;
+ vertical-align: 50%;
+ width: 9px;
}
menu > [checked] {