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

Side by Side Diff: ui/webui/resources/css/tabs.css

Issue 15894032: Change Certificate Viewer WebUI to match new style. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 7 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 unified diff | Download patch
« no previous file with comments | « chrome/browser/ui/webui/certificate_viewer_webui.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 /* Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 * Use of this source code is governed by a BSD-style license that can be 2 * Use of this source code is governed by a BSD-style license that can be
3 * found in the LICENSE file. */ 3 * found in the LICENSE file. */
4 4
5 tabbox { 5 tabbox {
6 -webkit-box-orient: vertical; 6 -webkit-box-orient: vertical;
7 display: -webkit-box; 7 display: -webkit-box;
8 } 8 }
9 9
10 tabs { 10 tabs {
11 -webkit-padding-start: 8px; 11 -webkit-padding-start: 8px;
12 background: -webkit-linear-gradient(white, rgb(243, 243, 243)); 12 background: -webkit-linear-gradient(white, rgb(243, 243, 243));
13 border-bottom: 1px solid rgb(160, 160, 160); 13 border-bottom: 1px solid rgb(160, 160, 160);
14 display: -webkit-box; 14 display: -webkit-box;
15 margin: 0; 15 margin: 0;
16 } 16 }
17 17
18 tabs.new-style-tabs {
Evan Stade 2013/06/04 23:46:59 add docs about .new-style-tabs: do we want to move
Rune Fevang 2013/06/07 19:43:11 I talked to one of the UX people, and he said the
Rune Fevang 2013/06/07 21:23:39 Done.
19 -webkit-padding-start: 9px;
20 background: #fbfbfb;
21 border-bottom: 1px solid #c8c8c8;
22 padding-top: 14px;
23 }
24
18 tabs > * { 25 tabs > * {
19 -webkit-margin-start: 5px; 26 -webkit-margin-start: 5px;
20 -webkit-transition: border-color 150ms, background-color 150ms; 27 -webkit-transition: border-color 150ms, background-color 150ms;
21 background: rgba(160, 160, 160, .3); 28 background: rgba(160, 160, 160, .3);
22 border: 1px solid rgba(160, 160, 160, .3); 29 border: 1px solid rgba(160, 160, 160, .3);
23 border-bottom: 0; 30 border-bottom: 0;
24 border-top-left-radius: 3px; 31 border-top-left-radius: 3px;
25 border-top-right-radius: 3px; 32 border-top-right-radius: 3px;
26 cursor: default; 33 cursor: default;
27 display: block; 34 display: block;
28 min-width: 4em; 35 min-width: 4em;
29 padding: 2px 10px; 36 padding: 2px 10px;
30 text-align: center; 37 text-align: center;
31 } 38 }
32 39
40 tabs.new-style-tabs > * {
41 -webkit-margin-start: 0;
42 -webkit-transition: none;
43 background: #fbfbfb;
44 border: 1px solid #fbfbfb;
45 border-bottom: 0;
46 border-radius: 0;
47 min-width: 0;
48 padding: 4px 9px 4px 10px;
49 }
50
33 tabs > :not([selected]) { 51 tabs > :not([selected]) {
34 background: rgba(238, 238, 238, .3); 52 background: rgba(238, 238, 238, .3);
35 } 53 }
36 54
55 tabs.new-style-tabs > :not([selected]) {
56 background: #fbfbfb;
57 color: #646464;
58 }
59
37 tabs > :not([selected]):hover { 60 tabs > :not([selected]):hover {
38 background: rgba(247, 247, 247, .3); 61 background: rgba(247, 247, 247, .3);
39 } 62 }
40 63
64 tabs.new-style-tabs > :not([selected]):hover {
65 background: #fbfbfb;
66 color: black;
67 }
68
41 tabs > [selected] { 69 tabs > [selected] {
42 -webkit-transition: none; 70 -webkit-transition: none;
43 background: white; 71 background: white;
44 border-color: rgb(160, 160, 160); 72 border-color: rgb(160, 160, 160);
45 margin-bottom: -1px; 73 margin-bottom: -1px;
46 position: relative; 74 position: relative;
47 z-index: 0; 75 z-index: 0;
48 } 76 }
49 77
78 tabs.new-style-tabs > [selected] {
79 background: #fbfbfb;
80 border-color: #c8c8c8;
81 font-weight: bold;
82 }
83
50 tabs:focus { 84 tabs:focus {
51 outline: none; 85 outline: none;
52 } 86 }
53 87
54 html.focus-outline-visible tabs:focus > [selected] { 88 html.focus-outline-visible tabs:focus > [selected] {
55 outline: 5px auto -webkit-focus-ring-color; 89 outline: 5px auto -webkit-focus-ring-color;
56 outline-offset: -2px; 90 outline-offset: -2px;
57 } 91 }
58 92
59 tabpanels { 93 tabpanels {
60 -webkit-box-flex: 1; 94 -webkit-box-flex: 1;
61 background: white; 95 background: white;
62 box-shadow: 2px 2px 5px rgba(0, 0, 0, .2); 96 box-shadow: 2px 2px 5px rgba(0, 0, 0, .2);
63 display: -webkit-box; 97 display: -webkit-box;
64 padding: 5px 15px 0 15px; 98 padding: 5px 15px 0 15px;
65 } 99 }
66 100
101 tabpanels.new-style-tabs {
102 background: #fbfbfb;
103 box-shadow: none;
104 padding: 0 20px;
105 }
106
67 tabpanels > * { 107 tabpanels > * {
68 -webkit-box-flex: 1; 108 -webkit-box-flex: 1;
69 display: none; 109 display: none;
70 } 110 }
71 111
72 tabpanels > [selected] { 112 tabpanels > [selected] {
73 display: block; 113 display: block;
74 } 114 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/webui/certificate_viewer_webui.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698