Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3494)

Unified Diff: chrome/browser/resources/ntp4/new_tab.css

Issue 9318017: [NTP4] Redesign of notification promo. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 8 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/resources/ntp4/apps_page.css ('k') | chrome/browser/resources/ntp4/new_tab.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/ntp4/new_tab.css
diff --git a/chrome/browser/resources/ntp4/new_tab.css b/chrome/browser/resources/ntp4/new_tab.css
index f8f4b56b7b8225507c1d3c7760c3443e4761ba92..80276e1e80096c7a7af6186396c0e00663d0d7d3 100644
--- a/chrome/browser/resources/ntp4/new_tab.css
+++ b/chrome/browser/resources/ntp4/new_tab.css
@@ -12,7 +12,7 @@ html {
}
body {
- /* Don't highlight links when they're tapped. Safari has bugs here that
+ /* Don't highlight links when they're tapped. Safari has bugs here that
show up as flicker when dragging in some situations */
-webkit-tap-highlight-color: transparent;
/* Don't allow selecting text - can occur when dragging */
@@ -27,28 +27,33 @@ body {
}
#notification-container {
- -webkit-transition-duration: 100ms;
- -webkit-transition-property: opacity;
+ -webkit-transition: opacity 200ms, margin-left 200ms;
+ bottom: 31px;
display: block;
- margin-top: 2px;
+ float: left;
position: relative;
- text-align: center;
+ text-align: start;
z-index: 15;
}
+html[dir='rtl'] #notification-container {
+ float: right;
+}
+
+#notification-container.card-changed {
+ -webkit-transition: none;
+ opacity: 0;
+}
+
#notification-container.inactive {
- -webkit-transition-duration: 200ms;
+ -webkit-transition: opacity 200ms;
opacity: 0;
}
#notification {
- background-color: rgb(255, 241, 153);
- border: 1px solid lightGrey;
- border-radius: 6px;
color: black;
display: inline-block;
font-weight: bold;
- padding: 7px 15px;
}
#notification > div > div,
@@ -56,6 +61,12 @@ body {
display: inline-block;
}
+/* NOTE: This is in the probable case that we start stuffing 16x16 data URI'd
+ * icons in the promo notification responses. */
+#notification > span > img {
+ margin-bottom: -3px;
+}
+
#notification .close-button {
-webkit-margin-start: 0.5em;
vertical-align: middle;
« no previous file with comments | « chrome/browser/resources/ntp4/apps_page.css ('k') | chrome/browser/resources/ntp4/new_tab.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698