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 /* Page container */ |
| 17 #page-container { |
| 18 max-height: calc(100% - 56px); |
| 19 overflow-y: auto; |
| 20 position: absolute; |
| 21 top: 56px; |
| 22 } |
| 23 |
| 24 @media screen and (min-width: 601px) { |
| 25 #page-container { |
| 26 left: 320px; |
| 27 width: calc(100% - 320px); |
| 28 } |
| 29 } |
| 30 |
| 31 @media screen and (max-width: 600px) { |
| 32 #page-container { |
| 33 width: 100%; |
| 34 } |
| 35 } |
16 | 36 |
17 /* Header bar */ | 37 /* Header bar */ |
18 | |
19 header { | 38 header { |
20 align-items: center; | 39 align-items: center; |
21 background-color: rgb(33, 150, 243); | 40 background-color: rgb(33, 150, 243); |
22 display: flex; | 41 display: flex; |
23 flex-direction: row; | 42 flex-direction: row; |
24 font-size: 20pt; | 43 font-size: 20pt; |
25 height: 56px; | 44 height: 56px; |
26 justify-content: flex-start; | 45 justify-content: flex-start; |
27 padding: 0 16px; | 46 padding: 0 16px; |
| 47 position: fixed; |
| 48 top: 0; |
| 49 width: 100%; |
28 } | 50 } |
29 | 51 |
30 .title { | 52 .title { |
31 color: white; | 53 color: white; |
32 display: inline-block; | 54 display: inline-block; |
33 margin-left: 8px; | 55 margin-left: 8px; |
34 } | 56 } |
35 | 57 |
| 58 @media screen and (min-width: 601px) { |
| 59 #menu-btn { |
| 60 display: none; |
| 61 } |
| 62 } |
| 63 |
| 64 #menu-btn { |
| 65 cursor: pointer; |
| 66 height: 24px; |
| 67 position: relative; |
| 68 width: 24px; |
| 69 } |
| 70 |
| 71 #menu-btn::before { |
| 72 background: white; |
| 73 box-shadow: |
| 74 0 0.25em 0 0 white, |
| 75 0 0.5em 0 0 white; |
| 76 content: ''; |
| 77 height: 3px; |
| 78 position: absolute; |
| 79 top: 3px; |
| 80 width: 24px; |
| 81 } |
| 82 |
| 83 /* Sidebar */ |
| 84 #sidebar ul { |
| 85 background-color: #F5F5F5; |
| 86 border-right: 1px solid #ddd; |
| 87 list-style-type: none; |
| 88 margin: 0; |
| 89 padding: 8px 0 0 0; |
| 90 position: absolute; |
| 91 width: 320px; |
| 92 } |
| 93 |
| 94 #overlay { |
| 95 display: none; |
| 96 } |
| 97 |
| 98 @media screen and (min-width: 601px) { |
| 99 #sidebar ul { |
| 100 bottom: 0; |
| 101 left: 0; |
| 102 top: 56px; |
| 103 } |
| 104 } |
| 105 |
| 106 @media screen and (max-width: 600px) { |
| 107 #sidebar ul { |
| 108 bottom: 0; |
| 109 left: -320px; |
| 110 top: 0; |
| 111 transition: left 195ms; |
| 112 transition-timing-function: cubic-bezier(0.4, 0, 0.6, 1); |
| 113 z-index: 2; |
| 114 } |
| 115 |
| 116 #sidebar ul.open { |
| 117 bottom: 0; |
| 118 left: 0; |
| 119 top: 0; |
| 120 transition: left 225ms; |
| 121 transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); |
| 122 } |
| 123 |
| 124 #overlay.open { |
| 125 background-color: black; |
| 126 bottom: 0; |
| 127 display: block; |
| 128 left: 0; |
| 129 opacity: 0.5; |
| 130 position: absolute; |
| 131 right: 0; |
| 132 top: 0; |
| 133 z-index: 1; |
| 134 } |
| 135 } |
| 136 |
| 137 #sidebar li { |
| 138 display: block; |
| 139 font-size: 16px; |
| 140 height: 48px; |
| 141 line-height: 48px; |
| 142 } |
| 143 |
| 144 #sidebar li.active { |
| 145 background-color: #BDBDBD; |
| 146 } |
| 147 |
| 148 #sidebar li { |
| 149 padding: 0 16px; |
| 150 } |
| 151 |
| 152 #sidebar li:hover { |
| 153 background-color: #E0E0E0; |
| 154 } |
36 | 155 |
37 /* Device table */ | 156 /* Device table */ |
38 | |
39 table { | 157 table { |
40 border: 1px solid #ccc; | 158 border: 1px solid #ccc; |
41 border-collapse: collapse; | 159 border-collapse: collapse; |
42 margin: 0; | 160 margin: 0; |
43 padding: 0; | 161 padding: 0; |
44 width: 100%; | 162 width: 100%; |
45 } | 163 } |
46 | 164 |
47 table tr { | 165 table tr { |
48 border: 1px solid #ddd; | 166 border: 1px solid #ddd; |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
85 content: attr(data-label); | 203 content: attr(data-label); |
86 float: left; | 204 float: left; |
87 font-weight: bold; | 205 font-weight: bold; |
88 text-transform: uppercase; | 206 text-transform: uppercase; |
89 } | 207 } |
90 } | 208 } |
91 | 209 |
92 /* Device Row */ | 210 /* Device Row */ |
93 table .removed { | 211 table .removed { |
94 background-color: #BDBDBD; | 212 background-color: #BDBDBD; |
95 } | 213 } |
OLD | NEW |