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

Unified Diff: chrome/browser/resources/local_ntp/local_ntp_fast.css

Issue 997223003: New fast NTP that uses a single iframe (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 9 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/local_ntp/local_ntp_fast.css
diff --git a/chrome/browser/resources/local_ntp/local_ntp_fast.css b/chrome/browser/resources/local_ntp/local_ntp_fast.css
new file mode 100644
index 0000000000000000000000000000000000000000..10cb1db98662ea5804a67fac6d9eb4d8770e8d41
--- /dev/null
+++ b/chrome/browser/resources/local_ntp/local_ntp_fast.css
@@ -0,0 +1,321 @@
+/* Copyright 2015 The Chromium Authors. All rights reserved.
+ * Use of this source code is governed by a BSD-style license that can be
+ * found in the LICENSE file. */
+
+/* TODO: Need to discuss with NTP folks before we remove font-family from the
+ * body tag. */
+body {
+ background-attachment: fixed !important;
+ background-color: white;
+ cursor: default;
+ font-family: arial, sans-serif;
+ font-size: small;
+ margin: 0;
+ overflow-x: hidden;
+}
+
+#ntp-contents {
+ text-align: -webkit-center;
+}
+
+.non-google-page #ntp-contents {
+ position: absolute;
+ top: calc(50% - 155px);
+ width: 100%;
+}
+
+body.hide-fakebox-logo #logo,
+body.hide-fakebox-logo #fakebox {
+ visibility: hidden;
+}
+
+body.fakebox-disable #fakebox {
+ border-color: rgb(238, 238, 238);
+ cursor: default;
+}
+
+body.fakebox-disable #fakebox > input {
+ cursor: default;
+}
+
+#logo {
+ background-image: url(images/google_logo.png@2x);
+ background-repeat: no-repeat;
+ background-size: 269px 95px;
+ height: 95px;
+ margin-bottom: 24px;
+ margin-top: 157px;
+ width: 269px;
+}
+
+body.alternate-logo #logo {
+ -webkit-mask-image: url(images/google_logo.png@2x);
+ -webkit-mask-repeat: no-repeat;
+ -webkit-mask-size: 100%;
+ background: #eee;
+}
+
+#fakebox {
+ -webkit-transform: translate3d(0, 0, 0);
+ -webkit-transition: -webkit-transform 100ms linear, border-color 100ms linear;
+ background-color: #fff;
+ border: 1px solid rgb(185, 185, 185);
+ border-radius: 1px;
+ border-top-color: rgb(160, 160, 160);
+ cursor: text;
+ font-size: 18px;
+ height: 36px;
+ line-height: 36px;
+ max-width: 672px;
+ position: relative;
+ width: 298px;
+}
+
+#fakebox:hover {
+ border: 1px solid rgb(169, 169, 169);
+ border-top-color: rgb(144, 144, 144);
+}
+
+body.fakebox-focused #fakebox {
+ border: 1px solid rgb(77, 144, 254);
+}
+
+#fakebox > input {
+ bottom: 0;
+ box-sizing: border-box;
+ left: 0;
+ margin: 0;
+ opacity: 0;
+ padding-left: 8px;
+ position: absolute;
+ top: 0;
+ width: 100%;
+}
+
+html[dir=rtl] #fakebox > input {
+ padding-left: 0;
+ padding-right: 8px;
+ right: 0;
+}
+
+#fakebox-text {
+ bottom: 0;
+ color: #bbb;
+ font-family: arial, sans-serif;
+ font-size: 16px;
+ left: 9px;
+ margin-top: 1px;
+ overflow: hidden;
+ position: absolute;
+ right: 9px;
+ text-align: initial;
+ text-overflow: ellipsis;
+ top: 0;
+ vertical-align: middle;
+ visibility: inherit;
+ white-space: nowrap;
+}
+
+html[dir=rtl] #fakebox-text {
+ left: auto;
+ right: 9px;
+}
+
+#cursor {
+ background: #333;
+ bottom: 5px;
+ left: 9px;
+ position: absolute;
+ top: 5px;
+ visibility: hidden;
+ width: 1px;
+}
+
+html[dir=rtl] #cursor {
+ left: auto;
+ right: 9px;
+}
+
+@-webkit-keyframes blink {
+ 0% {
+ opacity: 1;
+ }
+ 61.55% {
+ opacity: 0;
+ }
+}
+
+body.fakebox-drag-focused #fakebox-text,
+body.fakebox-focused #fakebox-text {
+ visibility: hidden;
+}
+
+body.fakebox-drag-focused #cursor {
+ visibility: inherit;
+}
+
+body.fakebox-focused #cursor {
+ -webkit-animation: blink 1.3s step-end infinite;
+ visibility: inherit;
+}
+
+#most-visited {
+ -webkit-user-select: none;
+ margin-top: 64px;
+ text-align: -webkit-center;
+}
+
+/* Non-Google pages have no Fakebox, so don't need top margin. */
+.non-google-page #most-visited {
+ margin-top: 0;
+}
+
+#mv-tiles {
huangs 2015/03/12 06:29:19 Remove tile-related stuff that got moved?
fserb 2015/03/12 17:06:55 Done.
+ height: calc(2 * 146px);
+ line-height: 146px;
+ margin: 0;
+ position: relative;
+ text-align: left;
+}
+
+html[dir=rtl] #mv-tiles {
+ text-align: right;
+}
+
+.mv-page-ready {
+ -webkit-transition-duration: 200ms;
+ -webkit-transition-property: -webkit-transform, margin, opacity, width;
+ cursor: pointer;
+ outline: none;
+}
+
+.mv-tile-inner {
+ visibility: hidden;
+}
+
+.mv-page-ready .mv-tile-inner {
+ visibility: visible;
+}
+
+#mv-notice-x {
+ -webkit-mask-image: -webkit-image-set(
+ url(chrome-search://local-ntp/images/close_3_mask.png) 1x,
+ url(chrome-search://local-ntp/images/close_3_mask.png@2x) 2x);
+ -webkit-mask-position: 3px 3px;
+ -webkit-mask-repeat: no-repeat;
+ -webkit-mask-size: 10px 10px;
+ background-color: rgba(90,90,90,0.7);
+ cursor: pointer;
+ display: inline-block;
+ height: 16px;
+ margin-left: 20px;
+ outline: none;
+ vertical-align: middle;
+ width: 16px;
+}
+
+html[dir=rtl] #mv-notice-x {
+ margin-left: 0;
+ margin-right: 20px;
+}
+
+#mv-notice-x:hover {
+ background-color: rgba(90,90,90, 1.0);
+}
+
+#mv-notice-x:active {
+ background-color: rgb(66,133,244);
+}
+
+/* The notification shown when a tile is blacklisted. */
+#mv-notice {
+ font-size: 12px;
+ font-weight: bold;
+ opacity: 1;
+ padding: 10px 0;
+}
+
+#mv-notice span {
+ cursor: default;
+ display: inline-block;
+ height: 16px;
+ line-height: 16px;
+ vertical-align: top;
+}
+
+/* Links in the notification. */
+#mv-notice-links span {
+ -webkit-margin-start: 6px;
+ color: rgb(17, 85, 204);
+ cursor: pointer;
+ outline: none;
+ padding: 0 4px;
+}
+
+#mv-notice-links span:hover,
+#mv-notice-links span:focus,
+#recent-tabs:hover {
+ text-decoration: underline;
+}
+
+.default-theme.dark #mv-msg {
+ color: #fff;
+}
+
+.default-theme.dark #mv-notice-links span {
+ color: #fff;
+}
+
+#mv-notice.mv-notice-delayed-hide {
+ -webkit-transition-delay: 10s;
+ -webkit-transition-property: opacity;
+ opacity: 0;
+}
+
+#mv-notice.mv-notice-hide {
+ display: none;
+}
+
+#attribution {
+ -webkit-user-select: none;
+ bottom: 0;
+ color: #fff;
+ cursor: default;
+ display: inline-block;
+ font-size: 13px;
+ position: fixed;
+ right: 8px;
+ text-align: left;
+ z-index: -1;
+}
+
+html[dir=rtl] #attribution {
+ text-align: right;
+}
+
+#recent-tabs {
+ background: #fff;
+ border: 1px solid #c0c0c0;
+ border-radius: 2px;
+ bottom: 0;
+ color: rgb(17, 85, 204);
+ cursor: pointer;
+ font-family: Arial;
+ font-size: 14px;
+ opacity: 0.9;
+ padding: 3px;
+ position: fixed;
+ right: 8px;
+}
+
+html[dir=rtl] #attribution,
+html[dir=rtl] #recent-tabs {
+ left: 8px;
+ right: auto;
+}
+
+#mv-single {
+ border: 0;
+ height: 100%;
+ width: 100%;
+}

Powered by Google App Engine
This is Rietveld 408576698