summaryrefslogtreecommitdiffstats
path: root/chrome/browser/resources/options/subpages_tab_controls.css
diff options
context:
space:
mode:
authorjhawkins@chromium.org <jhawkins@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-08-18 23:29:35 +0000
committerjhawkins@chromium.org <jhawkins@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-08-18 23:29:35 +0000
commite107ad4ea932d963aea5dcbd2fac901c920f8ed2 (patch)
tree0b59b8d530e840b8e5e343496e84b0d7a7bdcadb /chrome/browser/resources/options/subpages_tab_controls.css
parent7852c59a0634f32719b738d465cc310f28c34b9c (diff)
downloadchromium_src-e107ad4ea932d963aea5dcbd2fac901c920f8ed2.zip
chromium_src-e107ad4ea932d963aea5dcbd2fac901c920f8ed2.tar.gz
chromium_src-e107ad4ea932d963aea5dcbd2fac901c920f8ed2.tar.bz2
Options: Rename chrome/browser/resources/options2 -> chrome/browser/resources/options.
BUG=none TEST=none R=csilv Review URL: https://chromiumcodereview.appspot.com/10809005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@152267 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/resources/options/subpages_tab_controls.css')
-rw-r--r--chrome/browser/resources/options/subpages_tab_controls.css74
1 files changed, 74 insertions, 0 deletions
diff --git a/chrome/browser/resources/options/subpages_tab_controls.css b/chrome/browser/resources/options/subpages_tab_controls.css
new file mode 100644
index 0000000..c49c077
--- /dev/null
+++ b/chrome/browser/resources/options/subpages_tab_controls.css
@@ -0,0 +1,74 @@
+/* Copyright (c) 2012 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. */
+
+.subpages-nav-tabs .tab {
+ padding: 4px 8px;
+ position: relative;
+}
+
+.subpages-nav-tabs .active-tab {
+ -webkit-box-shadow: 8px -8px 12px -6px rgb(240, 240, 240);
+ background: white;
+ border: 1px solid #ddd;
+ border-bottom: 2px solid white;
+ border-top-left-radius: 3px;
+ border-top-right-radius: 3px;
+ position: relative;
+}
+
+/* To avoid tabs changing size when they are clicked and their labels become
+ * bold, we actually put two labels inside each tab: an inactive label and an
+ * active label. Only one is visible at a time, but the bold label is used to
+ * size the tab even when it's not visible. This keeps the tab size constant.
+ */
+.subpages-nav-tabs .active-tab-label,
+.subpages-nav-tabs .tab-label:hover {
+ font-weight: bold;
+}
+
+.subpages-nav-tabs .tab-label {
+ left: 9px;
+ position: absolute;
+ top: 5px;
+}
+
+html[dir=rtl] .subpages-nav-tabs .tab-label {
+ right: 9px;
+}
+
+.subpages-nav-tabs .active-tab-label,
+.subpages-nav-tabs .active-tab .tab-label {
+ visibility: hidden;
+}
+
+/* .tab is not removed when .active-tab is added, so we must
+ * override the hidden visibility above in the active tab case.
+ */
+.subpages-nav-tabs .active-tab .active-tab-label {
+ visibility: visible;
+}
+
+.subpages-nav-tabs {
+ background-image: -webkit-gradient(
+ linear,
+ left top,
+ left bottom,
+ color-stop(0, rgb(255,255,255)),
+ color-stop(0.6, rgb(255,255,255)),
+ color-stop(0.8, rgb(250, 250, 250)),
+ color-stop(1.0, rgb(242,242,242))
+ );
+ border-bottom: 1px solid #ddd;
+ padding: 4px 20px;
+}
+
+.subpages-tab-contents {
+ -webkit-padding-start: 10px;
+ display: none;
+ padding-top: 15px;
+}
+
+.active-tab-contents {
+ display: block;
+}