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

Side by Side Diff: chrome/browser/resources/bluetooth_internals/bluetooth_internals.css

Issue 2568283003: bluetooth: Add notification system to internals page. (Closed)
Patch Set: Fix snackbar bug with contentfocus/contentblur Created 4 years 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 unified diff | Download patch
OLDNEW
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 113 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
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: #F0F0F0;
213 border-radius: 2px;
214 bottom: 0;
215 display: flex;
216 font-size: 14pt;
217 justify-content: center;
218 left: 0;
219 margin: 0 auto;
220 max-width: 568px;
221 min-height: 20px;
222 min-width: 288px;
223 padding: 14px 24px;
224 position: fixed;
225 right: 0;
226 transform: translate3d(0, 48px, 0);
227 transition: transform var(--fade-duration), visibility var(--fade-duration);
228 transition-timing-function: var(--md-timing-function);
229 visibility: hidden;
230 }
231
232 .snackbar a {
233 -webkit-margin-start: auto;
234 display: flex;
235 flex-direction: column;
236 justify-content: center;
237 }
238
239 @media screen and (max-width: 600px) {
240 .snackbar {
241 border-radius: 0;
242 max-width: unset;
243 min-width: unset;
244 }
245 }
246
247 .snackbar div {
248 align-self: flex-start;
249 color: white;
250 }
251
252 .snackbar.info div {
253 color: black;
254 }
255
256 .snackbar.success {
257 background-color: rgb(76, 175, 80);
258 }
259
260 .snackbar.warning {
261 background-color: rgb(255, 152, 0);
262 }
263
264 .snackbar.danger {
265 background-color: rgb(244, 67, 54);
266 }
267
268 .snackbar.open {
269 transform: translate3d(0, 0, 0);
270 visibility: visible;
271 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698