Chromium Code Reviews| Index: chrome/browser/resources/bluetooth_internals/bluetooth_internals.css |
| diff --git a/chrome/browser/resources/bluetooth_internals/bluetooth_internals.css b/chrome/browser/resources/bluetooth_internals/bluetooth_internals.css |
| index b33ee950239a13b9d5f9ec8226ea3ddc89a26896..d958cc6807ac83fa4009f61c27351d851ef3727d 100644 |
| --- a/chrome/browser/resources/bluetooth_internals/bluetooth_internals.css |
| +++ b/chrome/browser/resources/bluetooth_internals/bluetooth_internals.css |
| @@ -4,6 +4,7 @@ |
| */ |
| :root { |
| + --fade-duration: 225ms; |
| --md-timing-function: cubic-bezier(.4, 0, .6, 1); |
| --sidebar-width: 155px; |
| --sidebar-neg-width: calc(var(--sidebar-width) * -1); |
| @@ -137,7 +138,6 @@ h1 { |
| } |
| .overlay { |
| - --fade-duration: 225ms; |
| background-color: rgba(0, 0, 0, .5); |
| bottom: 0; |
| left: 0; |
| @@ -206,3 +206,71 @@ table .removed { |
| font-weight: bold; |
| } |
| } |
| + |
| +/** Snackbar */ |
|
Dan Beam
2016/12/16 08:42:58
nit: /** is for jsdoc
/* Snackbar */ is fine i su
mbrunson
2016/12/16 21:42:30
Since there are a lot of CSS rules in this file, t
|
| +.snackbar { |
| + background-color: #323232; |
| + border-radius: 2px; |
| + bottom: 0; |
| + color: #F1F1F1; |
| + display: flex; |
| + font-size: 14pt; |
|
Dan Beam
2016/12/16 08:42:58
in theory font-size should be in scalable units, i
mbrunson
2016/12/16 21:42:30
Done.
|
| + justify-content: center; |
| + left: 0; |
| + margin: 0 auto; |
| + max-width: 568px; |
| + min-height: 20px; |
| + min-width: 288px; |
| + padding: 14px 24px; |
| + position: fixed; |
| + right: 0; |
| + transform: translate3d(0, 48px, 0); |
| + transition: transform var(--fade-duration), visibility var(--fade-duration); |
| + transition-timing-function: var(--md-timing-function); |
| + visibility: hidden; |
| +} |
| + |
| +.snackbar a { |
| + -webkit-margin-start: auto; |
| + display: flex; |
| + flex-direction: column; |
| + justify-content: center; |
| + text-transform: uppercase; |
| +} |
| + |
| +@media screen and (max-width: 600px) { |
| + .snackbar { |
| + border-radius: 0; |
| + max-width: unset; |
| + min-width: unset; |
| + } |
| +} |
| + |
| +.snackbar div { |
| + align-self: flex-start; |
| +} |
| + |
| +.snackbar a { |
| + color: rgb(238, 255, 65); |
| +} |
| + |
| +.snackbar.success { |
| + background-color: rgb(76, 175, 80); |
| +} |
| + |
| +.snackbar.warning { |
| + background-color: rgb(255, 152, 0); |
| +} |
| + |
| +.snackbar.warning a { |
| + color: rgb(17, 85, 204); |
| +} |
| + |
| +.snackbar.error { |
| + background-color: rgb(244, 67, 54); |
| +} |
| + |
| +.snackbar.open { |
| + transform: translate3d(0, 0, 0); |
| + visibility: visible; |
| +} |