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

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

Issue 2662513005: bluetooth: Change internal page style to increase contrast of UI elements (Closed)
Patch Set: Lighten removed row color to increase text contrast Created 3 years, 10 months 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 --expandable-list-item-border: 1px solid gray; 7 --dark-primary-color: rgb(25, 118, 210);
8 --darker-primary-color: rgb(13, 71, 161);
9 --divider-border: 1px solid #bdbdbd;
8 --fade-duration: 225ms; 10 --fade-duration: 225ms;
9 --header-height: 48px; 11 --header-height: 48px;
10 --md-timing-function: cubic-bezier(.4, 0, .6, 1); 12 --md-timing-function: cubic-bezier(.4, 0, .6, 1);
13 --primary-color: rgb(33, 150, 243);
14 --section-padding: 1em;
15 --sidebar-neg-width: calc(var(--sidebar-width) * -1);
11 --sidebar-width: 155px; 16 --sidebar-width: 155px;
12 --sidebar-neg-width: calc(var(--sidebar-width) * -1);
13 } 17 }
14 18
15 html, 19 html,
16 body { 20 body {
17 margin: 0; 21 margin: 0;
18 padding: 0; 22 padding: 0;
19 } 23 }
20 24
21 h1 { 25 h1 {
22 color: rgb(92, 97, 102); 26 color: rgb(92, 97, 102);
(...skipping 19 matching lines...) Expand all
42 46
43 list .spinner { 47 list .spinner {
44 height: 48px; 48 height: 48px;
45 margin: 0 auto; 49 margin: 0 auto;
46 pointer-events: none; 50 pointer-events: none;
47 width: 48px; 51 width: 48px;
48 } 52 }
49 53
50 .expandable-list-item .brief-content { 54 .expandable-list-item .brief-content {
51 align-items: center; 55 align-items: center;
52 background-color: whitesmoke; 56 border-bottom: var(--divider-border);
53 border-left: var(--expandable-list-item-border); 57 color: white;
54 border-right: var(--expandable-list-item-border);
55 border-top: var(--expandable-list-item-border);
56 cursor: pointer; 58 cursor: pointer;
57 display: flex; 59 display: flex;
58 font-weight: 600; 60 font-weight: 600;
59 height: 40px; 61 height: 40px;
60 padding: 8px; 62 padding: 8px;
61 } 63 }
62 64
63 .expandable-list-item.expanded > .brief-content { 65 .service-list-item > .brief-content {
64 border-bottom: var(--expandable-list-item-border); 66 background-color: var(--primary-color);
65 } 67 }
66 68
67 .expandable-list-item:nth-last-child(2) > .brief-content { 69 .characteristic-list-item > .brief-content {
68 border-bottom: var(--expandable-list-item-border); 70 background-color: var(--dark-primary-color);
71 }
72
73 .descriptor-list-item > .brief-content {
74 background-color: var(--darker-primary-color);
69 } 75 }
70 76
71 .expandable-list-item > .expanded-content { 77 .expandable-list-item > .expanded-content {
72 height: 0; 78 height: 0;
73 overflow: hidden; 79 overflow: hidden;
74 } 80 }
75 81
76 .expandable-list-item.expanded > .expanded-content { 82 .expandable-list-item.expanded > .expanded-content {
77 height: auto; 83 height: auto;
78 } 84 }
79 85
80 .expandable-list-item .info-container { 86 .expandable-list-item .info-container > h4,
81 padding: 0 0 8px; 87 .expandable-list-item .info-container > div {
88 margin: var(--section-padding);
89 }
90
91 .empty-message {
92 padding-left: calc(2 * var(--section-padding));
82 } 93 }
83 94
84 /* Page container */ 95 /* Page container */
85 #page-container { 96 #page-container {
86 -webkit-margin-start: var(--sidebar-width); 97 -webkit-margin-start: var(--sidebar-width);
87 } 98 }
88 99
89 @media screen and (max-width: 600px) { 100 @media screen and (max-width: 600px) {
90 #page-container { 101 #page-container {
91 -webkit-margin-start: 0; 102 -webkit-margin-start: 0;
92 } 103 }
93 } 104 }
94 105
95 /* Page content */ 106 /* Page content */
96 #page-container > section { 107 #page-container > section {
97 padding: 24px 16px; 108 padding: var(--section-padding);
109 }
110
111 #page-container .services {
112 margin: 0 calc(var(--section-padding) * -1);
98 } 113 }
99 114
100 #page-container .header-extras { 115 #page-container .header-extras {
101 -webkit-margin-end: 16px; 116 -webkit-margin-end: var(--section-padding);
102 -webkit-margin-start: var(--sidebar-width); 117 -webkit-margin-start: var(--sidebar-width);
103 align-items: flex-end; 118 align-items: flex-end;
104 display: flex; 119 display: flex;
105 height: var(--header-height); 120 height: var(--header-height);
106 justify-content: flex-end; 121 justify-content: flex-end;
107 left: 0; 122 left: 0;
108 position: fixed; 123 position: fixed;
109 right: 0; 124 right: 0;
110 top: 0; 125 top: 0;
111 } 126 }
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
186 margin: 0; 201 margin: 0;
187 padding: 21px 0 18px 23px; 202 padding: 21px 0 18px 23px;
188 } 203 }
189 204
190 .sidebar-content ul { 205 .sidebar-content ul {
191 list-style-type: none; 206 list-style-type: none;
192 padding: 0; 207 padding: 0;
193 } 208 }
194 209
195 .sidebar-content button { 210 .sidebar-content button {
196 -webkit-padding-start: 16px; 211 -webkit-padding-start: var(--section-padding);
197 background-color: transparent; 212 background-color: transparent;
198 border: 0; 213 border: 0;
199 color: #999; 214 color: #999;
200 cursor: pointer; 215 cursor: pointer;
201 font: inherit; 216 font: inherit;
202 height: 40px; 217 height: 40px;
203 text-align: start; 218 text-align: start;
204 width: 100%; 219 width: 100%;
205 } 220 }
206 221
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
252 width: 100%; 267 width: 100%;
253 } 268 }
254 269
255 table a { 270 table a {
256 font-size: 10pt; 271 font-size: 10pt;
257 padding: 6px; 272 padding: 6px;
258 } 273 }
259 274
260 table th, 275 table th,
261 table td { 276 table td {
262 border: 1px solid #d9d9d9; 277 border: var(--divider-border);
263 padding: 7px; 278 padding: 7px;
264 } 279 }
265 280
266 table th { 281 table th {
267 background-color: #f0f0f0; 282 background-color: #f0f0f0;
268 font-weight: normal; 283 font-weight: normal;
269 } 284 }
270 285
271 table .removed { 286 table .removed {
272 background-color: #bdbdbd; 287 background-color: #e0e0e0;
273 } 288 }
274 289
275 @media screen and (max-width: 600px) { 290 @media screen and (max-width: 600px) {
291 table {
292 border-collapse: separate;
293 border-spacing: 0 var(--section-padding);
294 }
295
276 table thead { 296 table thead {
277 display: none; 297 display: none;
278 } 298 }
279 299
280 table td { 300 table td {
281 display: block; 301 display: block;
282 text-align: end; 302 text-align: end;
283 } 303 }
284 304
285 table td::before { 305 table td::before {
286 content: attr(data-label); 306 content: attr(data-label);
287 float: left; 307 float: left;
288 font-weight: bold; 308 font-weight: bold;
289 } 309 }
310
311 table th,
312 table td {
313 border-bottom: 0;
314 }
315
316 table td:last-child {
317 border-bottom: var(--divider-border);
318 }
290 } 319 }
291 320
292 /* Snackbar */ 321 /* Snackbar */
293 .snackbar { 322 .snackbar {
294 background-color: #323232; 323 background-color: #323232;
295 border-radius: 2px; 324 border-radius: 2px;
296 bottom: 0; 325 bottom: 0;
297 color: #f1f1f1; 326 color: #f1f1f1;
298 display: flex; 327 display: flex;
299 font-size: 1.5em; 328 font-size: 1.5em;
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
392 .flex { 421 .flex {
393 display: flex; 422 display: flex;
394 } 423 }
395 } 424 }
396 425
397 /* Device Details Page */ 426 /* Device Details Page */
398 .device-details-page section, 427 .device-details-page section,
399 .info-container fieldset { 428 .info-container fieldset {
400 -webkit-margin-start: 1em; 429 -webkit-margin-start: 1em;
401 } 430 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698