OLD | NEW |
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; | 7 margin: 0; |
8 padding: 0; | 8 padding: 0; |
9 } | 9 } |
10 | 10 |
11 body { | 11 body { |
12 margin: 0; | 12 margin: 0; |
13 padding: 0; | 13 padding: 0; |
14 } | 14 } |
15 | 15 |
| 16 h1 { |
| 17 -webkit-margin-start: 23px; |
| 18 color: rgb(92, 97, 102); |
| 19 margin-bottom: 1em; |
| 20 margin-top: 21px; |
| 21 } |
| 22 |
| 23 /* Page container */ |
| 24 #page-container { |
| 25 bottom: 0; |
| 26 overflow-y: auto; |
| 27 position: absolute; |
| 28 top: 56px; |
| 29 } |
| 30 |
| 31 #page-container > * { |
| 32 margin: 18px; |
| 33 } |
| 34 |
| 35 @media screen and (min-width: 601px) { |
| 36 #page-container { |
| 37 left: 155px; |
| 38 width: calc(100% - 155px); |
| 39 } |
| 40 } |
| 41 |
| 42 @media screen and (max-width: 600px) { |
| 43 #page-container { |
| 44 width: 100%; |
| 45 } |
| 46 } |
16 | 47 |
17 /* Header bar */ | 48 /* Header bar */ |
18 | |
19 header { | 49 header { |
20 align-items: center; | 50 background-image: linear-gradient( |
21 background-color: rgb(33, 150, 243); | 51 white, white 40%, rgba(255, 255, 255, 0.92)); |
22 display: flex; | 52 border-bottom: 1px solid #eee; |
23 flex-direction: row; | 53 position: fixed; |
24 font-size: 20pt; | 54 right: 0; |
25 height: 56px; | 55 top: 0; |
26 justify-content: flex-start; | 56 z-index: 1; |
27 padding: 0 16px; | 57 } |
28 } | 58 |
29 | 59 header > h1 { |
30 .title { | 60 margin: 0; |
31 color: white; | 61 padding: 21px 0 13px; |
32 display: inline-block; | 62 } |
33 margin-left: 8px; | 63 |
34 } | 64 @media screen and (min-width: 601px) { |
35 | 65 header { |
| 66 left: 155px; |
| 67 width: calc(100% - 155px); |
| 68 } |
| 69 |
| 70 #menu-btn { |
| 71 display: none; |
| 72 } |
| 73 } |
| 74 |
| 75 @media screen and (max-width: 600px) { |
| 76 header { |
| 77 left: 0; |
| 78 width: 100%; |
| 79 } |
| 80 |
| 81 header > h1 { |
| 82 padding-left: 80px; |
| 83 } |
| 84 } |
| 85 |
| 86 #menu-btn { |
| 87 cursor: pointer; |
| 88 height: 24px; |
| 89 left: 18px; |
| 90 position: absolute; |
| 91 top: 18px; |
| 92 width: 24px; |
| 93 z-index: 2; |
| 94 } |
| 95 |
| 96 #menu-btn::before { |
| 97 background: rgb(92, 97, 102); |
| 98 box-shadow: 0 0.5em 0 0 rgb(92, 97, 102), 0 1em 0 0 rgb(92, 97, 102); |
| 99 content: ''; |
| 100 height: 3px; |
| 101 position: absolute; |
| 102 top: 3px; |
| 103 width: 24px; |
| 104 } |
| 105 |
| 106 /* Sidebar */ |
| 107 #sidebar { |
| 108 background-color: white; |
| 109 bottom: 0; |
| 110 left: 0; |
| 111 position: fixed; |
| 112 top: 0; |
| 113 width: 155px; |
| 114 } |
| 115 |
| 116 #sidebar ul { |
| 117 list-style-type: none; |
| 118 padding: 0; |
| 119 } |
| 120 |
| 121 #overlay { |
| 122 display: none; |
| 123 } |
| 124 |
| 125 @media screen and (min-width: 601px) { |
| 126 #sidebar li { |
| 127 line-height: 30px; |
| 128 } |
| 129 |
| 130 #sidebar li.selected { |
| 131 cursor: default; |
| 132 pointer-events: none; |
| 133 } |
| 134 } |
| 135 |
| 136 @media screen and (max-width: 600px) { |
| 137 #sidebar { |
| 138 left: -155px; |
| 139 transition: left 195ms; |
| 140 transition-timing-function: cubic-bezier(0.4, 0, 0.6, 1); |
| 141 z-index: 4; |
| 142 } |
| 143 |
| 144 #sidebar li { |
| 145 line-height: 48px; |
| 146 } |
| 147 |
| 148 #sidebar.open { |
| 149 bottom: 0; |
| 150 left: 0; |
| 151 top: 0; |
| 152 transition: left 225ms; |
| 153 transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); |
| 154 } |
| 155 |
| 156 #overlay.open { |
| 157 background-color: black; |
| 158 bottom: 0; |
| 159 display: block; |
| 160 left: 0; |
| 161 opacity: 0.5; |
| 162 position: absolute; |
| 163 right: 0; |
| 164 top: 0; |
| 165 z-index: 3; |
| 166 } |
| 167 } |
| 168 |
| 169 #sidebar li { |
| 170 -webkit-border-start: 6px solid transparent; |
| 171 -webkit-padding-start: 18px; |
| 172 cursor: pointer; |
| 173 margin: 6px 0; |
| 174 } |
| 175 |
| 176 #sidebar li.selected { |
| 177 -webkit-border-start-color: rgb(78, 87, 100); |
| 178 } |
| 179 |
| 180 #sidebar li:hover { |
| 181 background-color: #E0E0E0; |
| 182 } |
36 | 183 |
37 /* Device table */ | 184 /* Device table */ |
38 | |
39 table { | 185 table { |
40 border: 1px solid #ccc; | |
41 border-collapse: collapse; | 186 border-collapse: collapse; |
42 margin: 0; | 187 margin: 0; |
43 padding: 0; | 188 padding: 0; |
44 width: 100%; | 189 width: 100%; |
45 } | 190 } |
46 | 191 |
47 table tr { | |
48 border: 1px solid #ddd; | |
49 padding: 5px; | |
50 } | |
51 | |
52 table th, | 192 table th, |
53 table td { | 193 table td { |
54 padding: 10px; | 194 border: 1px solid rgb(217, 217, 217); |
55 text-align: center; | 195 padding: 7px; |
56 } | 196 } |
57 | 197 |
58 table th { | 198 table th { |
59 font-size: 14px; | 199 background-color: rgb(240, 240, 240); |
60 letter-spacing: 1px; | 200 font-weight: normal; |
61 text-transform: uppercase; | 201 } |
62 } | 202 |
63 | 203 @media screen and (max-width: 600px) { |
64 @media screen and (max-width: 600px) { | |
65 table { | |
66 border: 0; | |
67 } | |
68 table thead { | 204 table thead { |
69 display: none; | 205 display: none; |
70 } | 206 } |
71 table tr { | 207 |
72 border-bottom: 2px solid #ddd; | 208 table td { |
73 display: block; | 209 display: block; |
74 } | |
75 table td { | |
76 border-bottom: 1px dotted #ccc; | |
77 display: block; | |
78 font-size: 13px; | |
79 text-align: right; | 210 text-align: right; |
80 } | 211 } |
81 table td:last-child { | 212 |
82 border-bottom: 0; | |
83 } | |
84 table td::before { | 213 table td::before { |
85 content: attr(data-label); | 214 content: attr(data-label); |
86 float: left; | 215 float: left; |
87 font-weight: bold; | 216 font-weight: bold; |
88 text-transform: uppercase; | |
89 } | 217 } |
90 } | 218 } |
91 | 219 |
92 /* Device Row */ | 220 /* Device Row */ |
93 table .removed { | 221 table .removed { |
94 background-color: #BDBDBD; | 222 background-color: #BDBDBD; |
95 } | 223 } |
OLD | NEW |