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

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

Issue 2538653002: bluetooth: Add sidebar and page manager for chrome://bluetooth-internals. (Closed)
Patch Set: Change rgb gray values to hex, change text-align values to start or end 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 html { 6 :root {
7 --md-timing-function: cubic-bezier(.4, 0, .6, 1);
8 --sidebar-width: 155px;
9 --sidebar-neg-width: calc(var(--sidebar-width) * -1);
10 }
11
12 html,
13 body {
7 margin: 0; 14 margin: 0;
8 padding: 0; 15 padding: 0;
9 } 16 }
10 17
11 body { 18 h1 {
12 margin: 0; 19 color: rgb(92, 97, 102);
20 }
21
22 /* Page container */
23 #page-container {
24 -webkit-margin-start: var(--sidebar-width);
25 }
26
27 @media screen and (max-width: 600px) {
28 #page-container {
29 -webkit-margin-start: 0;
30 }
31 }
32
33 /* Page content */
34 #page-container section {
35 padding: 24px 16px;
36 }
37
38 /* Page header */
39 .page-header {
40 align-items: center;
41 background-color: white;
42 border-bottom: 1px solid #eee;
43 display: flex;
44 height: 48px;
45 padding-top: 8px;
46 position: sticky;
47 top: 0;
48 }
49
50 .page-header > h1 {
51 margin: 13px 0;
52 }
53
54 #menu-btn {
55 background-color: transparent;
56 background-image: url(../../../../ui/webui/resources/images/menu.svg);
57 background-position: center;
58 background-repeat: no-repeat;
59 border: 0;
60 display: none;
61 height: 48px;
62 margin: 0;
63 width: 48px;
64 }
65
66 @media screen and (max-width: 600px) {
67 #menu-btn {
68 display: block;
69 }
70
71 .page-header > h1 {
72 margin: 13px 0 13px 24px;
73 }
74 }
75
76 /* Sidebar */
77 #sidebar {
78 --transform-duration: 195ms;
79 bottom: 0;
80 left: 0;
81 position: fixed;
82 right: 0;
83 top: 0;
84 transition: visibility var(--transform-duration);
85 width: var(--sidebar-width);
86 }
87
88 @media screen and (max-width: 600px) {
89 #sidebar {
90 width: auto;
91 visibility: hidden;
92 }
93
94 #sidebar.open {
95 visibility: visible;
96 }
97 }
98
99 /* Sidebar Contents */
100 .sidebar-content {
101 background-color: white;
102 height: 100%;
103 transition-timing-function: var(--md-timing-function);
104 width: var(--sidebar-width);
105 }
106
107 .sidebar-content > header > h1 {
108 margin: 0;
109 padding: 21px 0 18px 23px;
110 }
111
112 .sidebar-content ul {
113 list-style-type: none;
13 padding: 0; 114 padding: 0;
14 } 115 }
15 116
16 117 .sidebar-content button {
17 /* Header bar */ 118 -webkit-padding-start: 16px;
18 119 background-color: transparent;
19 header { 120 border: 0;
20 align-items: center; 121 color: #999;
21 background-color: rgb(33, 150, 243); 122 cursor: pointer;
22 display: flex; 123 font: inherit;
23 flex-direction: row; 124 height: 40px;
24 font-size: 20pt; 125 text-align: start;
25 height: 56px; 126 width: 100%;
26 justify-content: flex-start; 127 }
27 padding: 0 16px; 128
28 } 129 .sidebar-content .selected button {
29 130 -webkit-border-start: 6px solid rgb(78, 87, 100);
30 .title { 131 -webkit-padding-start: 10px;
31 color: white; 132 color: rgb(70, 78, 90);
32 display: inline-block; 133 }
33 margin-left: 8px; 134
34 } 135 .sidebar-content button:hover {
35 136 background-color: #E0E0E0;
137 }
138
139 .overlay {
140 --fade-duration: 225ms;
141 background-color: rgba(0, 0, 0, .5);
142 bottom: 0;
143 left: 0;
144 opacity: 0;
145 position: absolute;
146 right: 0;
147 top: 0;
148 transition: visibility var(--fade-duration),
149 opacity var(--fade-duration) var(--md-timing-function);
150 visibility: hidden;
151 }
152
153 @media screen and (max-width: 600px) {
154 .sidebar-content {
155 transform: translate3d(var(--sidebar-neg-width), 0, 0);
156 transition: transform var(--transform-duration);
157 }
158
159 .open .sidebar-content {
160 transform: translate3d(0, 0, 0);
161 transition: transform var(--transform-duration);
162 }
163
164 .open .overlay {
165 opacity: 1;
166 visibility: visible;
167 }
168 }
36 169
37 /* Device table */ 170 /* Device table */
38
39 table { 171 table {
40 border: 1px solid #ccc;
41 border-collapse: collapse; 172 border-collapse: collapse;
42 margin: 0; 173 margin: 0;
43 padding: 0; 174 padding: 0;
44 width: 100%; 175 width: 100%;
45 } 176 }
46 177
47 table tr {
48 border: 1px solid #ddd;
49 padding: 5px;
50 }
51
52 table th, 178 table th,
53 table td { 179 table td {
54 padding: 10px; 180 border: 1px solid #D9D9D9;
55 text-align: center; 181 padding: 7px;
56 } 182 }
57 183
58 table th { 184 table th {
59 font-size: 14px; 185 background-color: #F0F0F0;
60 letter-spacing: 1px; 186 font-weight: normal;
61 text-transform: uppercase; 187 }
62 } 188
63 189 table .removed {
64 @media screen and (max-width: 600px) { 190 background-color: #BDBDBD;
65 table { 191 }
66 border: 0; 192
67 } 193 @media screen and (max-width: 600px) {
68 table thead { 194 table thead {
69 display: none; 195 display: none;
70 } 196 }
71 table tr { 197
72 border-bottom: 2px solid #ddd; 198 table td {
73 display: block; 199 display: block;
74 } 200 text-align: end;
75 table td { 201 }
76 border-bottom: 1px dotted #ccc; 202
77 display: block;
78 font-size: 13px;
79 text-align: right;
80 }
81 table td:last-child {
82 border-bottom: 0;
83 }
84 table td::before { 203 table td::before {
85 content: attr(data-label); 204 content: attr(data-label);
86 float: left; 205 float: left;
87 font-weight: bold; 206 font-weight: bold;
88 text-transform: uppercase; 207 }
89 } 208 }
90 }
91
92 /* Device Row */
93 table .removed {
94 background-color: #BDBDBD;
95 }
OLDNEW
« no previous file with comments | « chrome/browser/browser_resources.grd ('k') | chrome/browser/resources/bluetooth_internals/bluetooth_internals.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698