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

Unified Diff: Source/devtools/front_end/security/lockIcon.css

Issue 1215493002: Add a sidebar to the DevTools Security panel. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Fix lock icon in tree. Created 5 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 side-by-side diff with in-line comments
Download patch
Index: Source/devtools/front_end/security/lockIcon.css
diff --git a/Source/devtools/front_end/security/lockIcon.css b/Source/devtools/front_end/security/lockIcon.css
new file mode 100644
index 0000000000000000000000000000000000000000..ab5df9db20a83ecfffe32822fc2bf879d3841441
--- /dev/null
+++ b/Source/devtools/front_end/security/lockIcon.css
@@ -0,0 +1,58 @@
+/* Copyright (c) 2015 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.
+ */
+
+.lock-icon {
+ background-size: cover;
+ height: 16px;
+ width: 16px;
+}
+
+.lock-icon-unknown {
+ background-image: url(Images/securityStateHttp.png);
+}
+
+.lock-icon-http {
+ background-image: url(Images/securityStateHttp.png);
+}
+
+.lock-icon-insecure {
+ background-image: url(Images/securityStateInsecure.png);
+}
+
+.lock-icon-warning {
+ background-image: url(Images/securityStateWarning.png);
+}
+
+.lock-icon-secure {
+ background-image: url(Images/securityStateSecure.png);
+}
+
+
+@media (-webkit-min-device-pixel-ratio: 1.5) {
+ .lock-icon-unknown {
+ background-image: url(Images/securityStateHttp_2x.png);
+ }
+
+ .lock-icon-http {
+ background-image: url(Images/securityStateHttp_2x.png);
+ }
+
+ .lock-icon-insecure {
+ background-image: url(Images/securityStateInsecure_2x.png);
+ }
+
+ .lock-icon-warning {
+ background-image: url(Images/securityStateWarning_2x.png);
+ }
+
+ .lock-icon-secure {
+ background-image: url(Images/securityStateSecure_2x.png);
+ }
+}
+
+.sidebar-tree-item .lock-icon {
+ float: left;
+ margin-right: 2px;
+}

Powered by Google App Engine
This is Rietveld 408576698