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

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

Issue 7124002: ntp4: notification area (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: notification area Created 9 years, 6 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
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 a090358da72136c4b01385988275d25aac08dc95..f67bcafc413eb2c3170fa216f4f3ad04acad83a5 100644
--- a/chrome/browser/resources/ntp4/new_tab.css
+++ b/chrome/browser/resources/ntp4/new_tab.css
@@ -17,6 +17,7 @@ html {
body {
background-size: auto 100%;
margin: 0;
+ text-align: center;
/* 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;
@@ -28,6 +29,62 @@ body {
display: none !important;
}
+#notification {
+ background-color: #FFF199;
+ border: 1px solid lightGrey;
+ border-radius: 6px;
+ color: black;
+ display: inline-block;
+ font-weight: bold;
+ margin-top: 2px;
+ opacity: 100%;
+ padding: 7px 15px;
+ position: relative;
+ z-index: 100;
+ -webkit-transition-duration: 0.1s;
+ -webkit-transition-property: opacity;
+}
+
+#notification.inactive {
+ display: inline-block;
+ opacity: 0;
+ -webkit-transition-duration: 0.2s;
+}
+
+#notification * {
+ display: inline-block;
Rick Byers 2011/06/08 20:41:10 This seems unusual to me. You really want to set
Evan Stade 2011/06/08 23:54:52 yes, this is what I want, but I can understand you
+}
+
+#notification button {
+ background: no-repeat;
+ background-color: transparent;
+ /* TODO(estade): this should animate between states. */
+ background-image: url('chrome://theme/IDR_CLOSE_BAR');
+ border: 0;
+ height: 16px;
+ padding: 0;
+ vertical-align: middle;
+ width: 16px;
+ -webkit-margin-start: 0.5em;
+}
+
+#notification button:hover,
+#notification button:focus {
+ background-image: url('chrome://theme/IDR_CLOSE_BAR_H');
+}
+
+#notification button:active {
+ background-image: url('chrome://theme/IDR_CLOSE_BAR_P');
+}
+
+.linkButton {
+ color: #06C;
+ cursor: pointer;
+ display: inline-block;
+ text-decoration: underline;
+ -webkit-margin-start: 0.5em;
+}
+
#card-slider-frame {
/* Must match #footer height. */
bottom: 50px;

Powered by Google App Engine
This is Rietveld 408576698