Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 /* Copyright 2014 The Chromium Authors. All rights reserved. | 1 /* Copyright 2014 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 * This is the stylesheet used by user pods row of account picker UI. | 5 * This is the stylesheet used by user pods row of account picker UI. |
| 6 */ | 6 */ |
| 7 | 7 |
| 8 podrow { | 8 podrow { |
| 9 /* Temporarily disabled because animation interferes with updating screen's | 9 /* Temporarily disabled because animation interferes with updating screen's |
| 10 size. */ | 10 size. */ |
| 11 height: 100%; | |
| 12 overflow: visible; | 11 overflow: visible; |
| 13 position: absolute; | 12 position: absolute; |
| 14 width: 100%; | |
| 15 } | 13 } |
| 16 | 14 |
| 17 /* Hide the pod row while images are loading. */ | 15 /* Hide the pod row while images are loading. */ |
| 18 podrow.images-loading { | 16 podrow.images-loading { |
| 19 visibility: hidden; | 17 visibility: hidden; |
| 20 } | 18 } |
| 21 | 19 |
| 22 pin-keyboard { | 20 pin-keyboard { |
| 23 display: block; | 21 display: block; |
| 24 } | 22 } |
| 25 | 23 |
| 26 .pod { | 24 .pod { |
| 27 -webkit-tap-highlight-color: transparent; | 25 -webkit-tap-highlight-color: transparent; |
| 28 border-radius: 2px; | 26 border-radius: 2px; |
| 29 cursor: pointer; | 27 cursor: pointer; |
| 30 height: 346px; | 28 opacity: 0.64; |
| 31 outline: none; | 29 outline: none; |
| 32 position: absolute; | 30 position: absolute; |
| 33 top: 0; | |
| 34 transform: scale3d(0.9, 0.9, 0.9); | |
| 35 width: 306px; | |
| 36 z-index: 0; | 31 z-index: 0; |
| 37 } | 32 } |
| 38 | 33 |
| 39 .account-picker.flying-pods .pod { | 34 .account-picker.flying-pods .pod { |
| 40 transition: all 180ms; | 35 transition: all 180ms; |
| 41 } | 36 } |
| 42 | 37 |
| 43 .pod.pin-enabled { | 38 .pod.pin-enabled { |
| 44 height: 417px; | 39 height: 417px; |
| 45 top: -87px !important; | 40 top: -87px !important; |
| 46 } | 41 } |
| 47 | 42 |
| 48 .pod .pin-container { | 43 .pod .pin-container { |
| 49 left: 36px; | 44 left: 36px; |
| 50 position: absolute; | 45 position: absolute; |
| 51 top: 300px; | 46 top: 300px; |
| 52 width: 234px; | 47 width: 234px; |
| 53 z-index: 3; | 48 z-index: 3; |
| 54 } | 49 } |
| 55 | 50 |
| 56 .pod.faded { | 51 .pod.faded { |
| 57 opacity: .75; | 52 opacity: .75; |
| 58 } | 53 } |
| 59 | 54 |
| 60 podrow[ncolumns='6'] .pod { | |
| 61 transform: scale3d(0.8, 0.8, 0.8); | |
| 62 } | |
| 63 | |
| 64 .pod.focused { | 55 .pod.focused { |
| 65 /* Focused pod has the same size no matter how many pods. */ | |
| 66 cursor: default; | 56 cursor: default; |
| 67 transform: scale3d(1, 1, 1) !important; | 57 opacity: 1; |
| 68 z-index: 1; | 58 z-index: 1; |
| 69 } | 59 } |
| 70 | 60 |
| 71 .pod.focused[auth-type='userClick'] { | 61 .pod.focused[auth-type='userClick'] { |
| 72 cursor: pointer; | 62 cursor: pointer; |
| 73 } | 63 } |
| 74 | 64 |
| 65 .pod.hovered { | |
| 66 opacity: 1; | |
| 67 } | |
| 68 | |
| 75 .user-image-pane { | 69 .user-image-pane { |
| 76 height: 96px; | 70 height: 96px; |
| 77 left: 105px; | 71 left: 105px; |
| 78 position: absolute; | 72 position: absolute; |
| 79 top: 54px; | 73 top: 54px; |
| 80 transition: height 180ms ease-in-out, | 74 transition: height 180ms ease-in-out, |
| 81 left 180ms ease-in-out, | 75 left 180ms ease-in-out, |
| 82 right 180ms ease-in-out, | 76 right 180ms ease-in-out, |
| 83 top 180ms ease-in-out, | 77 top 180ms ease-in-out, |
| 84 width 180ms ease-in-out; | 78 width 180ms ease-in-out; |
| (...skipping 22 matching lines...) Expand all Loading... | |
| 107 | 101 |
| 108 .pod .user-image { | 102 .pod .user-image { |
| 109 flex: none; | 103 flex: none; |
| 110 } | 104 } |
| 111 | 105 |
| 112 /* TODO(noms): Refactor this out into a CrOS-specific file and simplify the | 106 /* TODO(noms): Refactor this out into a CrOS-specific file and simplify the |
| 113 style rule once it is included on CrOS only. crbug.com/397638 */ | 107 style rule once it is included on CrOS only. crbug.com/397638 */ |
| 114 html:not([screen=login-add-user]) .pod .user-image { | 108 html:not([screen=login-add-user]) .pod .user-image { |
| 115 max-height: 160px; | 109 max-height: 160px; |
| 116 max-width: 160px; | 110 max-width: 160px; |
| 117 opacity: 0.7; | |
| 118 position: absolute; | 111 position: absolute; |
| 119 } | 112 } |
| 120 | 113 |
| 121 html:not([screen=login-add-user]) .pod.focused .user-image { | 114 html:not([screen=login-add-user]) .pod.focused .user-image { |
| 122 opacity: 1; | 115 opacity: 1; |
| 123 } | 116 } |
| 124 | 117 |
| 125 .pod.multiprofiles-policy-applied .user-image { | 118 .pod.multiprofiles-policy-applied .user-image { |
| 126 -webkit-filter: grayscale(100%); | 119 -webkit-filter: grayscale(100%); |
| 127 } | 120 } |
| (...skipping 518 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 646 | 639 |
| 647 .action-box-menu-remove { | 640 .action-box-menu-remove { |
| 648 border-top: 0.25px solid grey; | 641 border-top: 0.25px solid grey; |
| 649 color: #7BAAF7; | 642 color: #7BAAF7; |
| 650 outline: none; | 643 outline: none; |
| 651 padding: 18px 14px; | 644 padding: 18px 14px; |
| 652 } | 645 } |
| 653 | 646 |
| 654 .action-box-menu-remove:hover, | 647 .action-box-menu-remove:hover, |
| 655 .action-box-menu-remove:focus { | 648 .action-box-menu-remove:focus { |
| 656 background-color: grey; | 649 font-weight: bold; |
| 657 color: white; | |
| 658 } | 650 } |
| 659 | 651 |
| 660 .action-box-remove-user-warning { | 652 .action-box-remove-user-warning { |
| 661 border-top: 0.25px solid grey; | 653 border-top: 0.25px solid grey; |
| 662 color: white; | 654 color: white; |
| 663 font-size: 13px; | 655 font-size: 13px; |
| 664 line-height: 18px; | 656 line-height: 18px; |
| 665 padding: 13px 14px 18px; | 657 padding: 13px 14px 18px; |
| 666 } | 658 } |
| 667 | 659 |
| (...skipping 347 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1015 animation: ellipsis-component2 1.5s infinite; | 1007 animation: ellipsis-component2 1.5s infinite; |
| 1016 } | 1008 } |
| 1017 | 1009 |
| 1018 @keyframes ellipsis-component2 { | 1010 @keyframes ellipsis-component2 { |
| 1019 0% { opacity: 0; } | 1011 0% { opacity: 0; } |
| 1020 25% { opacity: 0; } | 1012 25% { opacity: 0; } |
| 1021 50% { opacity: 0; } | 1013 50% { opacity: 0; } |
| 1022 75% { opacity: 1; } | 1014 75% { opacity: 1; } |
| 1023 100% { opacity: 0; } | 1015 100% { opacity: 0; } |
| 1024 } | 1016 } |
| 1017 | |
| 1018 .large-pod { | |
|
jdufault
2017/05/23 20:34:32
As FYI, I've been using the naming convention 'few
rkc
2017/05/23 21:25:59
These could be defined functionally instead of vis
Wenzhao (Colin) Zang
2017/05/24 00:29:20
Discussed offline. We can keep them until we have
| |
| 1019 height: 346px; | |
| 1020 width: 306px; | |
| 1021 } | |
| 1022 | |
| 1023 .small-pod { | |
| 1024 height: 74px; | |
| 1025 width: 304px; | |
| 1026 } | |
| 1027 | |
| 1028 .small-pod.extra-small { | |
| 1029 height: 60px; | |
| 1030 width: 282px; | |
| 1031 } | |
| 1032 | |
| 1033 .small-user-image-container { | |
| 1034 align-items: center; | |
| 1035 height: 74px; | |
| 1036 justify-content: center; | |
| 1037 position: absolute; | |
| 1038 transition: height 180ms ease-in-out, | |
| 1039 left 180ms ease-in-out, | |
| 1040 right 180ms ease-in-out, | |
| 1041 top 180ms ease-in-out, | |
| 1042 width 180ms ease-in-out; | |
| 1043 width: 74px; | |
| 1044 } | |
| 1045 | |
| 1046 .small-pod.extra-small .small-user-image-container { | |
| 1047 height: 60px; | |
| 1048 width: 60px; | |
| 1049 } | |
| 1050 | |
| 1051 .small-pod-image { | |
| 1052 border-radius: 50%; | |
| 1053 height: 100%; | |
| 1054 width: 100%; | |
| 1055 } | |
| 1056 | |
| 1057 .small-pod-name { | |
| 1058 color: #FFFFFF; | |
| 1059 flex: auto; | |
| 1060 font-family: "Roboto"; | |
| 1061 font-size: 20px; | |
| 1062 height: 28px; | |
| 1063 left: 90px; | |
| 1064 opacity: 1; | |
| 1065 outline: none; | |
| 1066 overflow: hidden; | |
| 1067 padding: 23px 0; | |
| 1068 position: absolute; | |
| 1069 text-overflow: ellipsis; | |
| 1070 white-space: nowrap; | |
| 1071 width: 214px; | |
| 1072 } | |
| 1073 | |
| 1074 .small-pod.extra-small .small-pod-name { | |
| 1075 left: 76px; | |
| 1076 padding: 16px 0; | |
| 1077 width: 190px; | |
| 1078 } | |
| 1079 | |
| 1080 .small-pod-container.scroll { | |
| 1081 background-color: rgba(20, 29, 40, .2); | |
| 1082 } | |
| 1083 | |
| 1084 .small-pod-container-mask { | |
| 1085 background: linear-gradient(#00B0FF, transparent); | |
| 1086 box-shadow: 0 0 3px transparent; | |
| 1087 height: 112px; | |
| 1088 opacity: 0.6; | |
| 1089 position: absolute; | |
| 1090 width: 100%; | |
| 1091 z-index: 2; | |
| 1092 } | |
| 1093 | |
| 1094 .small-pod-container-mask.rotate { | |
| 1095 transform: rotate(180deg); | |
| 1096 } | |
| OLD | NEW |