| OLD | NEW |
| (Empty) |
| 1 <link rel="import" href="chrome://md-user-manager/shared_styles.html"> | |
| 2 | |
| 3 <dom-module id="user-manager-styles"> | |
| 4 <template> | |
| 5 <style include="shared-styles"> | |
| 6 body { | |
| 7 background-color: var(--paper-grey-100); | |
| 8 } | |
| 9 | |
| 10 user-manager-pages, | |
| 11 #login-header-bar { | |
| 12 bottom: 0; | |
| 13 left: 0; | |
| 14 position: absolute; | |
| 15 right: 0; | |
| 16 } | |
| 17 | |
| 18 user-manager-pages { | |
| 19 top: 0; | |
| 20 } | |
| 21 | |
| 22 #login-header-bar.shadow { | |
| 23 box-shadow: 0 -1px 3px rgba(0, 0, 0, .2); | |
| 24 } | |
| 25 | |
| 26 /* Overrides src/ui/login/screen_container.css for the desktop user | |
| 27 * manager. */ | |
| 28 | |
| 29 #outer-container { | |
| 30 min-height: 0; | |
| 31 overflow-x: hidden; | |
| 32 overflow-y: auto; | |
| 33 padding: 40px 0 30px; | |
| 34 z-index: initial; | |
| 35 } | |
| 36 | |
| 37 .bubble.faded { | |
| 38 opacity: 0; | |
| 39 } | |
| 40 | |
| 41 .pod { | |
| 42 box-shadow: 0 2px 2px 0 rgba(0, 0, 0, .24), | |
| 43 0 0 2px 0 rgba(0, 0, 0, .12); | |
| 44 color: var(--primary-text-color); | |
| 45 cursor: default; | |
| 46 height: auto; | |
| 47 transform: none; | |
| 48 width: auto; | |
| 49 } | |
| 50 | |
| 51 .pod.faded { | |
| 52 opacity: .6; | |
| 53 } | |
| 54 | |
| 55 .pod.focused { | |
| 56 box-shadow: 0 10px 10px 0 rgba(0, 0, 0, .26), | |
| 57 0 14px 28px 0 rgba(0, 0, 0, .25); | |
| 58 } | |
| 59 | |
| 60 .pod .user-image-gradient-area, | |
| 61 .pod .user-image-pane { | |
| 62 border-top-left-radius: 2px; | |
| 63 border-top-right-radius: 2px; | |
| 64 } | |
| 65 | |
| 66 .pod .user-image-pane { | |
| 67 overflow: hidden; | |
| 68 position: static; | |
| 69 } | |
| 70 | |
| 71 .pod .user-image { | |
| 72 height: 160px; | |
| 73 width: 160px; | |
| 74 } | |
| 75 | |
| 76 .pod .main-pane { | |
| 77 line-height: 20px; | |
| 78 padding: 10px; | |
| 79 position: static; | |
| 80 } | |
| 81 | |
| 82 .pod .main-pane .name-container { | |
| 83 display: block; | |
| 84 position: static; | |
| 85 width: auto; | |
| 86 } | |
| 87 | |
| 88 .pod .main-pane .name-container .name, | |
| 89 .reauth-hint-container .reauth-name-hint { | |
| 90 color: inherit; | |
| 91 font-size: inherit; | |
| 92 margin: 0; | |
| 93 padding: 0; | |
| 94 text-align: initial; | |
| 95 width: 120px; | |
| 96 } | |
| 97 | |
| 98 .pod .indicator-container { | |
| 99 bottom: 10px; | |
| 100 height: 20px; | |
| 101 left: auto; | |
| 102 position: absolute; | |
| 103 right: 10px; | |
| 104 top: auto; | |
| 105 width: 20px; | |
| 106 } | |
| 107 | |
| 108 html[dir='rtl'] .pod .indicator-container { | |
| 109 left: 10px; | |
| 110 right: auto; | |
| 111 } | |
| 112 | |
| 113 /* Using -webkit-mask on the indicators allows us to tweak the color. */ | |
| 114 .pod .indicator-container > .indicator { | |
| 115 -webkit-mask-position: center; | |
| 116 -webkit-mask-repeat: no-repeat; | |
| 117 -webkit-mask-size: 16px; | |
| 118 background: var(--paper-grey-600); | |
| 119 display: none; | |
| 120 height: 100%; | |
| 121 } | |
| 122 | |
| 123 .pod.locked .locked-indicator { | |
| 124 -webkit-mask-image: url(../../../../ui/webui/resources/images/lock.svg); | |
| 125 display: block; | |
| 126 } | |
| 127 | |
| 128 .pod.legacy-supervised .legacy-supervised-indicator { | |
| 129 -webkit-mask-image: | |
| 130 url(../../../../ui/webui/resources/images/supervisor_account.svg); | |
| 131 display: block; | |
| 132 } | |
| 133 | |
| 134 .pod.child .child-indicator { | |
| 135 -webkit-mask-image: | |
| 136 url(../../../../ui/webui/resources/images/account_child_invert.svg); | |
| 137 display: block; | |
| 138 } | |
| 139 | |
| 140 .action-box-area:focus ~ .user-image-gradient-area, | |
| 141 .action-box-area.hovered ~ .user-image-gradient-area { | |
| 142 background-image: linear-gradient(rgba(0, 0, 0, .2), transparent 100%); | |
| 143 display: initial; | |
| 144 height: 40px; | |
| 145 position: absolute; | |
| 146 top: 0; | |
| 147 width: 100%; | |
| 148 } | |
| 149 | |
| 150 .action-box-area { | |
| 151 background-color: transparent; | |
| 152 } | |
| 153 | |
| 154 .action-box-area.menu-moved-up { | |
| 155 transform: none; | |
| 156 } | |
| 157 | |
| 158 .action-box-area .action-box-button { | |
| 159 display: none; | |
| 160 } | |
| 161 | |
| 162 .action-box-area .action-box-icon { | |
| 163 color: white; | |
| 164 display: inline-flex; | |
| 165 margin-top: 4px; | |
| 166 } | |
| 167 | |
| 168 .pod.focused:not(.locked) .auth-container { | |
| 169 display: none; | |
| 170 } | |
| 171 | |
| 172 .pod.focused:not(.multiprofiles-policy-applied) .auth-container { | |
| 173 left: 0; | |
| 174 } | |
| 175 | |
| 176 .pod .auth-container input[type='password'] { | |
| 177 font: inherit; | |
| 178 line-height: inherit; | |
| 179 padding: 10px; | |
| 180 top: 0; | |
| 181 width: 140px; | |
| 182 } | |
| 183 | |
| 184 .pod .auth-container input[type='password']:focus { | |
| 185 outline: 0; | |
| 186 } | |
| 187 | |
| 188 .pod[auth-type='onlineSignIn'] .reauth-hint-container { | |
| 189 flex-direction: row-reverse; | |
| 190 margin: 0; | |
| 191 padding: 10px; | |
| 192 } | |
| 193 | |
| 194 .reauth-hint-container .reauth-warning { | |
| 195 -webkit-mask-size: 16px; | |
| 196 height: 20px; | |
| 197 width: 20px; | |
| 198 } | |
| 199 | |
| 200 .action-box-area.active .action-box-button { | |
| 201 display: none; | |
| 202 } | |
| 203 | |
| 204 .action-box-area.active ~ .action-box-menu:not(.menu-moved-up) { | |
| 205 top: 8px; | |
| 206 } | |
| 207 | |
| 208 .action-box-area.active ~ .action-box-menu { | |
| 209 border: none; | |
| 210 box-shadow: 0 10px 20px 0 rgba(0, 0, 0, .19); | |
| 211 right: 8px; | |
| 212 width: 224px; | |
| 213 } | |
| 214 | |
| 215 html[dir=rtl] .action-box-area.active ~ .action-box-menu { | |
| 216 left: 8px; | |
| 217 right: auto; | |
| 218 } | |
| 219 | |
| 220 .action-box-menu-title { | |
| 221 color: inherit; | |
| 222 padding: 16px 12px; | |
| 223 } | |
| 224 | |
| 225 .action-box-menu-title-name, | |
| 226 .action-box-menu-title-email { | |
| 227 height: auto; | |
| 228 } | |
| 229 | |
| 230 .action-box-menu-title-email { | |
| 231 color: var(--paper-grey-600); | |
| 232 } | |
| 233 | |
| 234 .action-box-menu-remove { | |
| 235 border-top: var(--user-manager-separator-line); | |
| 236 line-height: 32px; | |
| 237 padding: 8px 12px; | |
| 238 } | |
| 239 | |
| 240 .action-box-remove-user-warning { | |
| 241 align-items: center; | |
| 242 border-top: var(--user-manager-separator-line); | |
| 243 display: flex; | |
| 244 flex-direction: column; | |
| 245 font-size: inherit; | |
| 246 line-height: 20px; | |
| 247 padding: 12px; | |
| 248 } | |
| 249 | |
| 250 .action-box-remove-user-warning > * { | |
| 251 word-wrap: break-word; | |
| 252 } | |
| 253 | |
| 254 .total-count, | |
| 255 .pod:not(.synced) .action-box-remove-user-warning-text { | |
| 256 font-weight: 500; | |
| 257 } | |
| 258 | |
| 259 .action-box-remove-user-warning .remove-warning-button { | |
| 260 --paper-button: { | |
| 261 background: var(--google-red-700); | |
| 262 color: white; | |
| 263 font-weight: 500; | |
| 264 }; | |
| 265 --paper-button-flat-keyboard-focus: { | |
| 266 background: rgb(173, 50, 36); | |
| 267 }; | |
| 268 @apply(--action-button); | |
| 269 } | |
| 270 </style> | |
| 271 </template> | |
| 272 </dom-module> | |
| OLD | NEW |