| OLD | NEW |
| 1 /* Copyright 2016 The Chromium Authors. All rights reserved. | 1 /* Copyright 2016 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 | 5 |
| 6 :root { | 6 :root { |
| 7 --fade-duration: 225ms; |
| 7 --md-timing-function: cubic-bezier(.4, 0, .6, 1); | 8 --md-timing-function: cubic-bezier(.4, 0, .6, 1); |
| 8 --sidebar-width: 155px; | 9 --sidebar-width: 155px; |
| 9 --sidebar-neg-width: calc(var(--sidebar-width) * -1); | 10 --sidebar-neg-width: calc(var(--sidebar-width) * -1); |
| 10 } | 11 } |
| 11 | 12 |
| 12 html, | 13 html, |
| 13 body { | 14 body { |
| 14 margin: 0; | 15 margin: 0; |
| 15 padding: 0; | 16 padding: 0; |
| 16 } | 17 } |
| (...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 126 width: 100%; | 127 width: 100%; |
| 127 } | 128 } |
| 128 | 129 |
| 129 .sidebar-content .selected button { | 130 .sidebar-content .selected button { |
| 130 -webkit-border-start: 6px solid rgb(78, 87, 100); | 131 -webkit-border-start: 6px solid rgb(78, 87, 100); |
| 131 -webkit-padding-start: 10px; | 132 -webkit-padding-start: 10px; |
| 132 color: rgb(70, 78, 90); | 133 color: rgb(70, 78, 90); |
| 133 } | 134 } |
| 134 | 135 |
| 135 .sidebar-content button:hover { | 136 .sidebar-content button:hover { |
| 136 background-color: #E0E0E0; | 137 background-color: #e0e0e0; |
| 137 } | 138 } |
| 138 | 139 |
| 139 .overlay { | 140 .overlay { |
| 140 --fade-duration: 225ms; | |
| 141 background-color: rgba(0, 0, 0, .5); | 141 background-color: rgba(0, 0, 0, .5); |
| 142 bottom: 0; | 142 bottom: 0; |
| 143 left: 0; | 143 left: 0; |
| 144 opacity: 0; | 144 opacity: 0; |
| 145 position: absolute; | 145 position: absolute; |
| 146 right: 0; | 146 right: 0; |
| 147 top: 0; | 147 top: 0; |
| 148 transition: visibility var(--fade-duration), | 148 transition: visibility var(--fade-duration), |
| 149 opacity var(--fade-duration) var(--md-timing-function); | 149 opacity var(--fade-duration) var(--md-timing-function); |
| 150 visibility: hidden; | 150 visibility: hidden; |
| (...skipping 19 matching lines...) Expand all Loading... |
| 170 /* Device table */ | 170 /* Device table */ |
| 171 table { | 171 table { |
| 172 border-collapse: collapse; | 172 border-collapse: collapse; |
| 173 margin: 0; | 173 margin: 0; |
| 174 padding: 0; | 174 padding: 0; |
| 175 width: 100%; | 175 width: 100%; |
| 176 } | 176 } |
| 177 | 177 |
| 178 table th, | 178 table th, |
| 179 table td { | 179 table td { |
| 180 border: 1px solid #D9D9D9; | 180 border: 1px solid #d9d9d9; |
| 181 padding: 7px; | 181 padding: 7px; |
| 182 } | 182 } |
| 183 | 183 |
| 184 table th { | 184 table th { |
| 185 background-color: #F0F0F0; | 185 background-color: #f0f0f0; |
| 186 font-weight: normal; | 186 font-weight: normal; |
| 187 } | 187 } |
| 188 | 188 |
| 189 table .removed { | 189 table .removed { |
| 190 background-color: #BDBDBD; | 190 background-color: #bdbdbd; |
| 191 } | 191 } |
| 192 | 192 |
| 193 @media screen and (max-width: 600px) { | 193 @media screen and (max-width: 600px) { |
| 194 table thead { | 194 table thead { |
| 195 display: none; | 195 display: none; |
| 196 } | 196 } |
| 197 | 197 |
| 198 table td { | 198 table td { |
| 199 display: block; | 199 display: block; |
| 200 text-align: end; | 200 text-align: end; |
| 201 } | 201 } |
| 202 | 202 |
| 203 table td::before { | 203 table td::before { |
| 204 content: attr(data-label); | 204 content: attr(data-label); |
| 205 float: left; | 205 float: left; |
| 206 font-weight: bold; | 206 font-weight: bold; |
| 207 } | 207 } |
| 208 } | 208 } |
| 209 |
| 210 /* Snackbar */ |
| 211 .snackbar { |
| 212 background-color: #323232; |
| 213 border-radius: 2px; |
| 214 bottom: 0; |
| 215 color: #f1f1f1; |
| 216 display: flex; |
| 217 font-size: 1.5em; |
| 218 justify-content: center; |
| 219 left: 0; |
| 220 margin: 0 auto; |
| 221 max-height: 52px; |
| 222 min-height: 20px; |
| 223 opacity: 0; |
| 224 padding: 14px 24px; |
| 225 position: fixed; |
| 226 right: 0; |
| 227 transform: translate3d(0, 80px, 0); |
| 228 transition: opacity var(--fade-duration), transform var(--fade-duration), |
| 229 visibility var(--fade-duration); |
| 230 transition-timing-function: var(--md-timing-function); |
| 231 visibility: hidden; |
| 232 } |
| 233 |
| 234 .snackbar a { |
| 235 -webkit-margin-start: auto; |
| 236 display: flex; |
| 237 flex-direction: column; |
| 238 justify-content: center; |
| 239 text-transform: uppercase; |
| 240 } |
| 241 |
| 242 @media screen and (min-width: 601px) { |
| 243 .snackbar { |
| 244 max-width: 568px; |
| 245 min-width: 288px; |
| 246 } |
| 247 } |
| 248 |
| 249 @media screen and (max-width: 600px) { |
| 250 .snackbar { |
| 251 border-radius: 0; |
| 252 margin: 0; |
| 253 right: 0; |
| 254 } |
| 255 } |
| 256 |
| 257 .snackbar div { |
| 258 -webkit-margin-end: 24px; |
| 259 align-self: flex-start; |
| 260 } |
| 261 |
| 262 .snackbar a { |
| 263 color: rgb(238, 255, 65); |
| 264 } |
| 265 |
| 266 .snackbar.success { |
| 267 background-color: rgb(76, 175, 80); |
| 268 } |
| 269 |
| 270 .snackbar.warning { |
| 271 background-color: rgb(255, 152, 0); |
| 272 } |
| 273 |
| 274 .snackbar.warning a { |
| 275 color: rgb(17, 85, 204); |
| 276 } |
| 277 |
| 278 .snackbar.error { |
| 279 background-color: rgb(244, 67, 54); |
| 280 } |
| 281 |
| 282 .snackbar.open { |
| 283 opacity: 1; |
| 284 transform: translate3d(0, 0, 0); |
| 285 visibility: visible; |
| 286 } |
| OLD | NEW |