| OLD | NEW |
| (Empty) |
| 1 /* | |
| 2 Copyright (c) 2010 The Chromium Authors. All rights reserved. | |
| 3 Use of this source code is governed by a BSD-style license that can be | |
| 4 found in the LICENSE file. | |
| 5 */ | |
| 6 | |
| 7 .subpages-nav-tabs .tab { | |
| 8 position: relative; | |
| 9 padding: 4px 8px; | |
| 10 } | |
| 11 | |
| 12 .subpages-nav-tabs .active-tab { | |
| 13 position: relative; | |
| 14 background: white; | |
| 15 border: 1px solid #A0A0A0; /* light gray */ | |
| 16 border-bottom: 2px solid white; | |
| 17 border-top-left-radius: 3px; | |
| 18 border-top-right-radius: 3px; | |
| 19 } | |
| 20 | |
| 21 /* To avoid tabs changing size when they are clicked and their labels become | |
| 22 * bold, we actually put two labels inside each tab: an inactive label and an | |
| 23 * active label. Only one is visible at a time, but the bold label is used to | |
| 24 * size the tab even when it's not visible. This keeps the tab size constant. | |
| 25 */ | |
| 26 .subpages-nav-tabs .active-tab-label { | |
| 27 font-weight: bold; | |
| 28 } | |
| 29 | |
| 30 .subpages-nav-tabs .tab-label { | |
| 31 position: absolute; | |
| 32 top: 5px; | |
| 33 left: 9px; | |
| 34 } | |
| 35 | |
| 36 html[dir=rtl] .subpages-nav-tabs .tab-label { | |
| 37 right: 9px; | |
| 38 } | |
| 39 | |
| 40 .subpages-nav-tabs .active-tab-label, | |
| 41 .subpages-nav-tabs .active-tab .tab-label { | |
| 42 visibility: hidden; | |
| 43 } | |
| 44 | |
| 45 /* .tab is not removed when .active-tab is added, so we must | |
| 46 * override the hidden visibility above in the active tab case. | |
| 47 */ | |
| 48 .subpages-nav-tabs .active-tab .active-tab-label { | |
| 49 visibility: visible; | |
| 50 } | |
| 51 | |
| 52 .subpages-nav-tabs { | |
| 53 padding: 4px; | |
| 54 border-bottom: 1px solid #A0A0A0; /* light gray */ | |
| 55 background: -webkit-linear-gradient(white, #F3F3F3); /* very light gray */ | |
| 56 margin-bottom: 15px; | |
| 57 } | |
| 58 | |
| 59 .subpages-tab-contents { | |
| 60 display: none; | |
| 61 -webkit-padding-start: 10px; | |
| 62 } | |
| 63 | |
| 64 .active-tab-contents { | |
| 65 display: block; | |
| 66 } | |
| OLD | NEW |