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

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: Remove more css rules 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 html,
7 margin: 0;
8 padding: 0;
9 }
10
11 body { 7 body {
12 margin: 0; 8 margin: 0;
13 padding: 0; 9 padding: 0;
14 } 10 }
15 11
16 12 h1 {
17 /* Header bar */ 13 color: rgb(92, 97, 102);
18
19 header {
20 align-items: center;
21 background-color: rgb(33, 150, 243);
22 display: flex;
23 flex-direction: row;
24 font-size: 20pt;
25 height: 56px;
26 justify-content: flex-start;
27 padding: 0 16px;
28 } 14 }
29 15
30 .title { 16 /* Page container */
31 color: white; 17 #page-container {
32 display: inline-block; 18 margin-left: 155px;
33 margin-left: 8px;
34 } 19 }
35 20
21 @media screen and (max-width: 600px) {
22 #page-container {
23 margin-left: 0;
24 }
25 }
26
27 /* Page content */
28 #page-container section {
29 padding: 24px 16px;
30 }
31
32 /* Page header */
33 .page-header {
34 align-items: center;
35 background-color: white;
36 border-bottom: 1px solid #eee;
37 display: flex;
38 height: 48px;
39 padding-top: 8px;
40 position: sticky;
41 top: 0;
42 }
43
44 .page-header > h1 {
45 margin: 13px 0;
46 }
47
48 #menu-btn {
49 background-color: transparent;
50 background-image: url(../../../../ui/webui/resources/images/menu.svg);
ortuno 2016/12/07 03:01:16 nit: I think we use the grey icons not the black o
mbrunson 2016/12/07 04:26:07 Done.
51 background-position: center;
52 background-repeat: no-repeat;
53 border: 0;
54 display: none;
55 height: 48px;
56 margin: 0;
57 width: 48px;
58 }
59
60 @media screen and (max-width: 600px) {
61 #menu-btn {
62 display: block;
63 }
64
65 .page-header > h1 {
66 margin: 13px 0 13px 28px;
ortuno 2016/12/07 02:58:17 Q: Why such a big margin on the left?
mbrunson 2016/12/07 04:26:07 This should be 24px actually. My math was off a li
67 }
68 }
69
70 /* Sidebar */
71 #sidebar {
72 bottom: 0;
73 left: 0;
74 position: fixed;
75 right: 0;
76 top: 0;
77 transition: visibility 200ms cubic-bezier(.4, 0, .6, 1);
78 width: 155px;
79 }
80
81 @media screen and (max-width: 600px) {
82 #sidebar {
83 width: auto;
84 visibility: hidden;
85 }
86
87 #sidebar.open {
88 visibility: visible;
89 }
90 }
91
92 /* Sidebar Contents */
93 .sidebar-content {
94 background-color: white;
95 height: 100%;
96 width: 155px;
97 }
98
99 .sidebar-content > header > h1 {
100 margin: 0;
101 padding: 21px 0 18px 23px;
102 }
103
104 .sidebar-content ul {
105 list-style-type: none;
106 padding: 0;
107 }
108
109 .sidebar-content button {
110 background-color: transparent;
111 border: 0;
112 color: #999;
113 cursor: pointer;
114 font: inherit;
115 height: 40px;
116 padding: 0 0 0 16px;
117 text-align: left;
118 width: 100%;
119 }
120
121 .sidebar-content .selected button {
122 border-left: 6px solid rgb(78, 87, 100);
123 color: rgb(70, 78, 90);
124 padding: 0 0 0 10px;
125 }
126
127 .sidebar-content button:hover {
128 background-color: #E0E0E0;
129 }
130
131 .overlay {
132 background-color: rgba(0, 0, 0, .5);
133 bottom: 0;
134 left: 0;
135 position: absolute;
136 right: 0;
137 top: 0;
138 transition: visibility 225ms;
139 visibility: hidden;
140 }
141
142 @media screen and (max-width: 600px) {
143 .sidebar-content {
144 transform: translate3d(-155px, 0, 0);
145 transition: transform 195ms cubic-bezier(.4, 0, .6, 1);
146 }
147
148 .open .sidebar-content {
149 transform: translate3d(0, 0, 0);
150 transition: transform 195ms cubic-bezier(.4, 0, .6, 1);
151 }
152
153 .open .overlay {
154 visibility: visible;
155 }
156 }
36 157
37 /* Device table */ 158 /* Device table */
38
39 table { 159 table {
40 border: 1px solid #ccc;
41 border-collapse: collapse; 160 border-collapse: collapse;
42 margin: 0; 161 margin: 0;
43 padding: 0; 162 padding: 0;
44 width: 100%; 163 width: 100%;
45 } 164 }
46 165
47 table tr {
48 border: 1px solid #ddd;
49 padding: 5px;
50 }
51
52 table th, 166 table th,
53 table td { 167 table td {
54 padding: 10px; 168 border: 1px solid rgb(217, 217, 217);
55 text-align: center; 169 padding: 7px;
56 } 170 }
57 171
58 table th { 172 table th {
59 font-size: 14px; 173 background-color: rgb(240, 240, 240);
60 letter-spacing: 1px; 174 font-weight: normal;
61 text-transform: uppercase; 175 }
176
177 table .removed {
178 background-color: #BDBDBD;
62 } 179 }
63 180
64 @media screen and (max-width: 600px) { 181 @media screen and (max-width: 600px) {
65 table {
66 border: 0;
67 }
68 table thead { 182 table thead {
69 display: none; 183 display: none;
70 } 184 }
71 table tr { 185
72 border-bottom: 2px solid #ddd; 186 table td {
73 display: block; 187 display: block;
74 }
75 table td {
76 border-bottom: 1px dotted #ccc;
77 display: block;
78 font-size: 13px;
79 text-align: right; 188 text-align: right;
80 } 189 }
81 table td:last-child { 190
82 border-bottom: 0;
83 }
84 table td::before { 191 table td::before {
85 content: attr(data-label); 192 content: attr(data-label);
86 float: left; 193 float: left;
87 font-weight: bold; 194 font-weight: bold;
88 text-transform: uppercase;
89 } 195 }
90 } 196 }
91
92 /* Device Row */
93 table .removed {
94 background-color: #BDBDBD;
95 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698