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

Unified Diff: ui/webui/resources/cr_elements/cr_network_icon/cr_network_icon.css

Issue 954293003: Support badges and connecting animation in cr-network-icon element (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: More Feedback Created 5 years, 10 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: ui/webui/resources/cr_elements/cr_network_icon/cr_network_icon.css
diff --git a/ui/webui/resources/cr_elements/cr_network_icon/cr_network_icon.css b/ui/webui/resources/cr_elements/cr_network_icon/cr_network_icon.css
index 3406bcc38f2ee57dfa71f5127b8cc16db506c10f..1ba47291cea1697e309ebb62a29f82c0e79f3f72 100644
--- a/ui/webui/resources/cr_elements/cr_network_icon/cr_network_icon.css
+++ b/ui/webui/resources/cr_elements/cr_network_icon/cr_network_icon.css
@@ -4,8 +4,10 @@
:host {
display: inline-block;
+ height: 50px;
overflow: hidden;
position: relative;
+ width: 50px;
}
#icon {
@@ -38,10 +40,39 @@
top: -400%;
}
+/* Connecting animation */
+
+#icon.connecting {
+ -webkit-animation: levels 1s infinite;
+ -webkit-animation-timing-function: steps(4, start);
+}
+
+@-webkit-keyframes levels {
+ from {
+ top: 0%;
+ }
+ to {
+ top: -400%;
+ }
+}
+
+/* Badges. */
+/* Note: These use left/right because we do not reverse the badges for RTL. */
+
+/* Upper-left corner */
+#technology {
+ height: 40%;
+ left: 0px;
+ position: absolute;
+ top: 0px;
+}
+
+/* Lower-right corner */
+#roaming,
#secure {
height: 40%;
- margin-left: 60%;
- margin-top: 60%;
+ left: 60%;
position: absolute;
+ top: 60%;
width: 40%;
}

Powered by Google App Engine
This is Rietveld 408576698