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

Unified Diff: chrome/browser/resources/new_new_tab.css

Issue 3455007: Make it possible to hide "most visited" on nnnnnnntp (Closed)
Patch Set: fix revert reasons Created 10 years, 3 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/dom_ui/shown_sections_handler.cc ('k') | chrome/browser/resources/new_new_tab.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/new_new_tab.css
diff --git a/chrome/browser/resources/new_new_tab.css b/chrome/browser/resources/new_new_tab.css
index b3bfd359a6ac1fde96c7f98ded66e588c90b083c..9d72dff39ce742211218dd729431d22175f5249c 100644
--- a/chrome/browser/resources/new_new_tab.css
+++ b/chrome/browser/resources/new_new_tab.css
@@ -279,7 +279,8 @@ html[anim=true][enable-section-animations=true] .section {
-webkit-transition: top .15s;
}
-.section.disabled {
+.section.disabled,
+#closed-sections-bar .disabled {
display: none !important;
}
@@ -313,7 +314,7 @@ html[anim=true] .section > h2 > .disclosure {
}
.section:not(.hidden) > h2 > .disclosure {
- -webkit-transform:rotate(90deg);
+ -webkit-transform: rotate(90deg);
}
.section > h2 .back {
@@ -331,6 +332,67 @@ html[anim=true] .section > h2 > .disclosure {
z-index: 2;
}
+.section-close-button {
+ -webkit-appearance: none;
+ -webkit-transition: opacity .15s;
+ background-color: transparent;
+ background-image: url(chrome://theme/IDR_CLOSE_BAR);
+ background-position: center center;
+ background-repeat no-repeat;
+ border: 0;
+ height: 21px;
+ margin-top: -10px;
+ position: absolute;
+ right: -21px;
+ top: 50%;
+ width: 21px;
+ opacity: 0;
+ z-index: 3;
+}
+
+html[dir=rtl] .section-close-button {
+ left: -21px;
+ right: auto;
+}
+
+.section > h2:hover .section-close-button,
+.section-close-button:hover {
+ opacity: 1;
+}
+
+.section-close-button:hover {
+ background-image: url(chrome://theme/IDR_CLOSE_BAR_H);
+}
+
+#closed-sections-bar {
+ position: fixed;
+ bottom: 5px;
+}
+
+#closed-sections-bar > button {
+ -webkit-appearance: none;
+ background: none;
+ border: 0;
+ cursor: pointer;
+ font: inherit;
+ margin: 0;
+ margin-right: 1.5em;
+ padding: 0;
+
+ /* Note: The font here should end up the same as .section > h2. A different
+ percentage is needed because the parent element here has a different size. */
+ font-family: Helvetica, Arial, sans-serif;
+ font-size: 122%;
+ font-weight: normal;
+}
+
+#closed-sections-bar > button > img {
+ -webkit-transform: rotate(90deg);
+ position: relative;
+ top: -2px;
+ margin-left: 1px;
+}
+
.maxiview {
padding: 5px 0 30px;
position: absolute;
« no previous file with comments | « chrome/browser/dom_ui/shown_sections_handler.cc ('k') | chrome/browser/resources/new_new_tab.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698