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

Unified Diff: ui/webui/resources/cr_elements/network/cr_network_list_item_css.html

Issue 2069323002: Add support for custom entries in <cr_network_select/>. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@604119--Implement-Chrome-OS-out-of-box-flow-in-Material-Design--ImplementNetworkSelectionScreen
Patch Set: Split cr-network-list into two dom-repeat objects/. Removed list_item_base. Created 4 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: ui/webui/resources/cr_elements/network/cr_network_list_item_css.html
diff --git a/ui/webui/resources/cr_elements/network/cr_network_list_item_css.html b/ui/webui/resources/cr_elements/network/cr_network_list_item_css.html
new file mode 100644
index 0000000000000000000000000000000000000000..ff78d31b319b55f418c2891bee5acced82c3ab03
--- /dev/null
+++ b/ui/webui/resources/cr_elements/network/cr_network_list_item_css.html
@@ -0,0 +1,86 @@
+<!-- Common styles <cr-network-list/> items. -->
+<dom-module id="cr-network-list-item-css">
+ <template>
+ <style>
+ :host {
+ display: inline-block;
+ }
+
+ span {
+ cursor: pointer;
+ }
+
+ #divOuter {
+ border-style: none;
+ display: flex;
+ flex-direction: row;
+ margin: 0;
+ padding: 4px;
+ }
+
+ #divOuter[hoverable]:hover {
+ background-color: lightgrey;
+ }
+
+ #divIcon {
+ display: flex;
+ flex: 0 0 auto;
+ flex-direction: column;
+ justify-content: center;
+ }
+
+ #icon {
+ height: 32px;
+ width: 32px;
+
+ @apply(--cr-network-icon-mixin);
+ }
+
+ #divDetail {
+ display: flex;
+ flex: 1 0 auto;
+ flex-direction: row;
+ }
+
+ #divText {
+ display: flex;
+ flex: 1 0 auto;
+ flex-direction: column;
+ justify-content: center;
+ }
+
+ #itemName {
+ -webkit-margin-start: 8px;
+ font-size: 16px;
+
+ @apply(--cr-network-name-mixin);
+ }
+
+ #networkStateText {
+ -webkit-margin-start: 8px;
+ color: grey;
+ font-size: 14px;
+
+ @apply(--cr-network-state-mixin);
+ }
+
+ .buttons {
+ align-items: center;
+ display: flex;
+ flex-direction: row;
+ }
+
+ .buttons paper-icon-button {
+ text-align: center;
+ }
+
+ .known paper-icon-button {
+ width: 60px;
+ }
+
+ .connected {
+ font-weight: bold;
+ }
+ </style>
+ </template>
+</dom-module>

Powered by Google App Engine
This is Rietveld 408576698