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

Side by Side Diff: third_party/WebKit/Source/devtools/front_end/security/mainView.css

Issue 2229443005: DevTools Security Panel: Use the new security indicators. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add source SVG. Created 4 years, 4 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
OLDNEW
1 /* Copyright (c) 2015 The Chromium Authors. All rights reserved. 1 /* Copyright (c) 2015 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 5
6 .security-main-view { 6 .security-main-view {
7 -webkit-user-select: text; 7 -webkit-user-select: text;
8 overflow-x: hidden; 8 overflow-x: hidden;
9 overflow-y: auto; 9 overflow-y: auto;
10 background-color: #f9f9f9; 10 background-color: #f9f9f9;
11 } 11 }
12 12
13 .security-main-view > div { 13 .security-main-view > div {
14 flex-shrink: 0; 14 flex-shrink: 0;
15 } 15 }
16 16
17 .security-summary { 17 .security-summary {
18 background-color: #fff; 18 background-color: #fff;
19 } 19 }
20 20
21 .security-summary-section-title { 21 .security-summary-section-title {
22 font-size: 14px; 22 font-size: 14px;
23 margin: 12px 24px; 23 margin: 12px 16px;
24 } 24 }
25 25
26 .lock-spectrum { 26 .lock-spectrum {
27 min-width: 180px; 27 margin: 8px 16px;
28 max-width: 240px;
29 margin: 6px 12px;
30 display: flex; 28 display: flex;
31 align-items: center; 29 align-items: flex-start;
32 } 30 }
33 31
34 .security-summary .lock-icon { 32 .security-summary .lock-icon {
35 flex: none; 33 flex: none;
36 width: 32px; 34 width: 16px;
37 height: 32px; 35 height: 16px;
38 margin: 0 12px; 36 margin: 0 0;
39 background-position: center center;
40
41 /* Defaults for dynamic properties. */
42 opacity: 0.5;
43 } 37 }
44 38
45 /* Shrink the margin for the page lock icon. */ 39 /* Separate the middle icon from the other two. */
46 .security-summary .lock-icon-neutral { 40 .security-summary .lock-icon-neutral {
47 margin: 0 6px; 41 margin: 0 16px;
48 } 42 }
49 43
50 .security-summary-secure .lock-icon-secure, 44 .security-summary:not(.security-summary-secure) .lock-icon-secure,
51 .security-summary-neutral .lock-icon-neutral, 45 .security-summary:not(.security-summary-neutral) .lock-icon-neutral,
52 .security-summary-insecure .lock-icon-insecure { 46 .security-summary:not(.security-summary-insecure) .lock-icon-insecure {
53 opacity: 1; 47 background-color: rgba(90, 90, 90, 0.25);
54 }
55
56 .security-summary-lock-spacer {
57 flex: 1 1 auto;
58 height: 1px;
59 background: rgb(217, 217, 217);
60 } 48 }
61 49
62 .triangle-pointer-container { 50 .triangle-pointer-container {
63 /* Let (lock width) = (horizonal width of 1 lock icon, including both margin s) */ 51 margin: 8px 24px 0;
64 /* Horizontal margin is (lock width)/2 + (lock-spectrum horizontal margin) * / 52 padding: 0 0;
65 margin: 8px 40px 0px;
66 /* Width is (lock spectrum width) - (lock width) */
67 min-width: 124px;
68 max-width: 184px;
69 } 53 }
70 54
71 .triangle-pointer-wrapper { 55 .triangle-pointer-wrapper {
72 /* Defaults for dynamic properties. */ 56 /* Defaults for dynamic properties. */
73 transform: translateX(50%); 57 transform: translateX(0);
74 transition: transform 0.3s; 58 transition: transform 0.3s;
75 } 59 }
76 60
77 .triangle-pointer { 61 .triangle-pointer {
78 width: 12px; 62 width: 12px;
79 height: 12px; 63 height: 12px;
80 margin-bottom: -6px; 64 margin-bottom: -6px;
81 margin-left: -6px; 65 margin-left: -6px;
82 transform: rotate(-45deg); 66 transform: rotate(-45deg);
83 border-style: solid; 67 border-style: solid;
84 border-width: 1px 1px 0 0; 68 border-width: 1px 1px 0 0;
85 69
86 /* Defaults for dynamic properties. */ 70 /* Defaults for dynamic properties. */
87 background: rgb(243, 243, 243); 71 background: rgb(243, 243, 243);
88 border-color: rgb(217, 217, 217); 72 border-color: rgb(217, 217, 217);
89 } 73 }
90 74
91 .security-summary-secure .triangle-pointer-wrapper { 75 .security-summary-secure .triangle-pointer-wrapper {
92 transform: translateX(0%); 76 transform: translateX(0px);
93 } 77 }
94 78
95 .security-summary-neutral .triangle-pointer-wrapper { 79 .security-summary-neutral .triangle-pointer-wrapper {
96 transform: translateX(50%); 80 transform: translateX(32px);
97 } 81 }
98 82
99 .security-summary-insecure .triangle-pointer-wrapper { 83 .security-summary-insecure .triangle-pointer-wrapper {
100 transform: translateX(100%); 84 transform: translateX(64px);
101 } 85 }
102 86
103 .security-summary-text { 87 .security-summary-text {
104 padding: 12px 24px; 88 padding: 12px 24px;
105 border-style: solid; 89 border-style: solid;
106 border-width: 1px 0; 90 border-width: 1px 0;
107 91
108 /* Defaults for dynamic properties. */ 92 /* Defaults for dynamic properties. */
109 background: rgb(243, 243, 243); 93 background: rgb(243, 243, 243);
110 border-color: rgb(217, 217, 217); 94 border-color: rgb(217, 217, 217);
(...skipping 15 matching lines...) Expand all
126 } 110 }
127 111
128 .security-summary-insecure .triangle-pointer, 112 .security-summary-insecure .triangle-pointer,
129 .security-summary-insecure .security-summary-text { 113 .security-summary-insecure .security-summary-text {
130 background: rgb(253, 245, 245); 114 background: rgb(253, 245, 245);
131 border-color: rgb(243, 157, 151); 115 border-color: rgb(243, 157, 151);
132 color: rgb(216, 70, 60); 116 color: rgb(216, 70, 60);
133 } 117 }
134 118
135 .security-explanation { 119 .security-explanation {
136 padding: 12px; 120 padding: 16px;
137 border-bottom: 1px solid rgb(230, 230, 230); 121 border-bottom: 1px solid rgb(230, 230, 230);
138 background-color: #fff; 122 background-color: #fff;
139 123
140 display: flex; 124 display: flex;
141 white-space: nowrap; 125 white-space: nowrap;
142 } 126 }
143 127
144 .security-explanation-text { 128 .security-explanation-text {
145 flex: auto; 129 flex: auto;
146 white-space: normal; 130 white-space: normal;
147 max-width: 400px; 131 max-width: 400px;
148 } 132 }
149 133
150 .security-explanations-extra .security-explanation { 134 .security-explanations-extra .security-explanation {
151 background-color: transparent; 135 background-color: transparent;
152 } 136 }
153 137
154 .security-explanations-extra .security-explanation:only-child { 138 .security-explanations-extra .security-explanation:only-child {
155 border-bottom: none; 139 border-bottom: none;
156 } 140 }
157 141
158 .security-certificate-button { 142 .security-certificate-button {
159 margin-top: 8px; 143 margin-top: 8px;
160 } 144 }
161 145
162 .security-explanation .security-property { 146 .security-explanation .security-property {
163 flex: none; 147 flex: none;
164 width: 18px; 148 width: 16px;
165 height: 18px; 149 height: 16px;
166 margin-left: 10px; 150 margin-right: 16px;
167 margin-right: 18px;
168 } 151 }
169 152
170 .security-explanation-title { 153 .security-explanation-title {
171 color: rgb(90, 90, 90); 154 color: rgb(90, 90, 90);
172 margin-top: 1px; 155 margin-top: 1px;
173 margin-bottom: 8px; 156 margin-bottom: 8px;
174 } 157 }
175 158
176 .security-explanation-neutral .security-section-title, 159 .security-explanation-neutral .security-section-title,
177 .security-explanation-warning .security-section-title 160 .security-explanation-warning .security-section-title
178 { 161 {
179 color: rgb(253, 177, 48); 162 color: rgb(253, 177, 48);
180 font-weight: bold; 163 font-weight: bold;
181 } 164 }
182 .security-explanation-insecure .security-section-title 165 .security-explanation-insecure .security-section-title
183 { 166 {
184 color: rgb(216, 71, 60); 167 color: rgb(216, 71, 60);
185 font-weight: bold; 168 font-weight: bold;
186 } 169 }
187 170
188 .security-mixed-content { 171 .security-mixed-content {
189 margin-top: 8px; 172 margin-top: 8px;
190 } 173 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698