blob: 73fee20fc81e180c9dfa9eed05fb0dcad8c1e0d4 [file] [log] [blame]
Primiano Tucci21b91bf2018-08-06 16:42:07 +01001// Copyright (C) 2018 The Android Open Source Project
2//
3// Licensed under the Apache License, Version 2.0 (the "License");
4// you may not use this file except in compliance with the License.
5// You may obtain a copy of the License at
6//
7// http://www.apache.org/licenses/LICENSE-2.0
8//
9// Unless required by applicable law or agreed to in writing, software
10// distributed under the License is distributed on an "AS IS" BASIS,
11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12// See the License for the specific language governing permissions and
13// limitations under the License.
Primiano Tuccif4a0c0a2019-10-29 10:39:52 +010014
Primiano Tucci21b91bf2018-08-06 16:42:07 +010015.sidebar {
Primiano Tuccif4a0c0a2019-10-29 10:39:52 +010016 --sidebar-padding-bottom: 40px;
Primiano Tuccid3a99832020-02-12 18:35:15 +000017 --sidebar-timing: 0.15s;
Primiano Tucci21b91bf2018-08-06 16:42:07 +010018 grid-area: sidebar;
Primiano Tucci425fd422019-01-24 10:48:31 +000019 z-index: 4;
Primiano Tucci21b91bf2018-08-06 16:42:07 +010020 background-color: #262f3c;
Isabelle Taylorb1024372020-02-25 17:47:54 +000021 overflow: hidden;
Isabelle Taylorf41b7c72019-07-24 13:55:43 +010022 width: var(--sidebar-width);
Isabelle Taylorf57b24f2019-07-31 11:06:41 +010023 display: flex;
24 flex-direction: column;
Primiano Tuccid3a99832020-02-12 18:35:15 +000025 transition: margin-left var(--anim-easing) var(--sidebar-timing),
26 visibility linear var(--sidebar-timing);
Primiano Tucci21b91bf2018-08-06 16:42:07 +010027 >* {
28 border-bottom: 1px solid #404854;
29 }
30 input[type=file] { display:none; }
31 >header {
Primiano Tucci32ea1032020-01-07 13:53:23 +000032 font-family: 'Raleway', sans-serif;
Primiano Tucci21b91bf2018-08-06 16:42:07 +010033 height: var(--topbar-height);
34 line-height: var(--topbar-height);
35 vertical-align: middle;
36 padding: 0 20px;
37 color: #fff;
38 font-weight: 400;
39 font-size: 24px;
40 letter-spacing: 0.5px;
Isabelle Taylorf41b7c72019-07-24 13:55:43 +010041 overflow: visible;
Primiano Tuccid3a99832020-02-12 18:35:15 +000042 .brand {
43 height: 40px;
44 margin-top: 4px;
Primiano Tucci21b91bf2018-08-06 16:42:07 +010045 }
Primiano Tucci63ac8b42021-02-16 11:50:08 +010046 &.canary::before {
47 content: 'CANARY';
48 display: block;
49 color: gold;
50 position: absolute;
51 font-size: 10px;
52 line-height: 10px;
53 font-family: 'Roboto', sans-serif;
54 left: 155px;
55 top: 7px;
56 }
Primiano Tuccid3a99832020-02-12 18:35:15 +000057 }
58 .sidebar-button {
59 position: absolute;
60 z-index: 5;
61 background-color: #262f3c;
62 height: var(--topbar-height);
63 left: calc(var(--sidebar-width) - 50px);
Primiano Tuccid3a99832020-02-12 18:35:15 +000064 border-radius: 0 5px 5px 0;
65 border-bottom: inherit;
66 visibility: visible; // So stays visible when the sidebar is hidden.
67 transition: left var(--anim-easing) var(--sidebar-timing);
68 width: 48px;
69 overflow: hidden;
70 >button {
71 vertical-align: middle;
72 }
73 }
74 &.hide-sidebar {
75 visibility: hidden;
76 margin-left: calc(var(--sidebar-width) * -1);
77 .sidebar-button {
78 left: 0;
79 }
Primiano Tucci21b91bf2018-08-06 16:42:07 +010080 }
Primiano Tuccif4a0c0a2019-10-29 10:39:52 +010081 .sidebar-scroll {
Isabelle Taylorf57b24f2019-07-31 11:06:41 +010082 overflow-y: auto;
83 flex: 1;
Isabelle Taylorf57b24f2019-07-31 11:06:41 +010084 &::-webkit-scrollbar {
85 width: 0.5em;
86 }
87 &::-webkit-scrollbar-track {
88 background-color: #19212b;
89 border-radius: 2px;
90 }
91 &::-webkit-scrollbar-thumb {
92 background: #b4b7ba6e;
93 border-radius: 2px;
94 }
Primiano Tuccif4a0c0a2019-10-29 10:39:52 +010095 >.sidebar-scroll-container {
96 position: relative;
97 min-height: 100%;
98 padding-bottom: var(--sidebar-padding-bottom);
99
100 >section {
101 @include transition();
102 padding: 20px 0;
103 max-height: 80px;
104 .section-header {
105 cursor: pointer;
106 >h1,
107 >h2 {
Primiano Tucci32ea1032020-01-07 13:53:23 +0000108 font-family: 'Raleway', sans-serif;
Primiano Tuccif4a0c0a2019-10-29 10:39:52 +0100109 letter-spacing: 0.25px;
110 overflow: hidden;
111 text-overflow: ellipsis;
112 white-space: nowrap;
113 margin: 0 24px;
114 }
115 >h1 {
116 color: #fff;
117 font-size: 15px;
118 font-weight: 500;
119 }
120 >h2 {
121 @include transition();
122 color: rgba(255, 255, 255, 0.5);
123 font-size: 12px;
124 margin-top: 8px;
125 font-weight: 400;
126 }
127 }
128 &:hover {
129 background-color: #373f4b;
130 }
131 &.expanded {
132 background-color: #19212b;
133 max-height: unset;
134 .section-header h2 {
135 opacity: 0;
136 }
137 .section-content {
138 pointer-events: inherit;
139 opacity: 1;
140 }
141 }
142 }
143
144 .section-content {
145 pointer-events: none;
146 @include transition();
147 opacity: 0;
148 color: #b4b7ba;
149 a {
150 color: #b4b7ba;
151 }
152 ul {
153 list-style-type: none;
154 margin: 0;
155 padding: 0;
156 }
157 li {
158 @include transition();
159 a {
160 line-height: 24px;
161 font-size: 14px;
162 font-weight: 400;
Primiano Tucci32ea1032020-01-07 13:53:23 +0000163 font-family: 'Raleway', sans-serif;
Primiano Tuccif4a0c0a2019-10-29 10:39:52 +0100164 letter-spacing: 0.5px;
165 padding: 5px 24px;
166 text-decoration: none;
167 display: block;
Primiano Tucci29237452021-02-19 13:17:36 +0100168 &.pending {
169 color: rgba(255, 255, 255, 0.3);
170 &::after {
171 content: ' ';
172 display: inline-block;
173 vertical-align: middle;
174 box-sizing: border-box;
175 width: 18px;
176 height: 18px;
177 margin-left: 10px;
178 border-radius: 50%;
179 border: 2px solid #b4b7ba;
180 border-color: #b4b7ba transparent #b4b7ba transparent;
181 animation: pending-spinner 1.25s linear infinite;
182 }
183 @keyframes pending-spinner {
184 0% { transform: rotate(0deg); }
185 100% { transform: rotate(360deg); }
186 }
187 }
Primiano Tuccif4a0c0a2019-10-29 10:39:52 +0100188 &[disabled] {
189 text-decoration: line-through;
190 }
191 }
192 .material-icons {
Primiano Tuccif4a0c0a2019-10-29 10:39:52 +0100193 margin-right: 10px;
194 }
195 &:hover {
196 background-color: #373f4b;
197 }
Primiano Tucci6faa36e2020-05-04 21:54:51 +0100198 .trace-file-name {
199 white-space: break-spaces;
200 font-family: 'Roboto Condensed', sans-serif;
201 word-break: break-all;
202 user-select: text;
203 font-weight: 300;
204 letter-spacing: 0;
205 margin-top: -10px;
206 color: #fff;
207 }
Primiano Tuccif4a0c0a2019-10-29 10:39:52 +0100208 }
209 }
Isabelle Taylorf57b24f2019-07-31 11:06:41 +0100210 }
Primiano Tuccif4a0c0a2019-10-29 10:39:52 +0100211 }
212
213 .sidebar-footer {
214 position: absolute;
215 bottom: 0;
Primiano Tucciec590132020-11-16 14:16:44 +0100216 width: 100%;
Primiano Tuccif4a0c0a2019-10-29 10:39:52 +0100217 padding: 2px 10px;
218 display: grid;
219 height: - var(--sidebar-padding-bottom);
220 grid-template-columns: repeat(4, min-content);
221 grid-gap: 10px;
222
223 > button {
224 color: hsl(217, 39%, 94%);
225 i {
226 font-size: 24px;
227 }
228
229 &:hover {
230 color: hsl(45, 100%, 48%);
231 }
232 }
233
Primiano Tucci3552aaf2020-01-14 20:20:52 +0000234 > .dbg-info-square {
Primiano Tuccif4a0c0a2019-10-29 10:39:52 +0100235 width: 24px;
236 height: 22px;
237 line-height: 22px;
238 margin: 1px 0;
239 background: #12161b;
240 color: #4e71b3;
241 border-radius: 5px;
242 font-size: 12px;
243 text-align: center;
Primiano Tucci3552aaf2020-01-14 20:20:52 +0000244 &.green {
Primiano Tuccif4a0c0a2019-10-29 10:39:52 +0100245 background: #7aca75;
246 color: #12161b;
247 }
Primiano Tucci3552aaf2020-01-14 20:20:52 +0000248 &.amber {
249 background: #FFC107;
250 color: #333;
251 }
252 &.red {
Primiano Tuccic449fc12019-11-01 19:33:00 +0100253 background: #d32f2f;
254 color: #fff;
255 }
256 > div {
257 font-size: 10px;
258 line-height: 11px;
259 }
Isabelle Taylorf57b24f2019-07-31 11:06:41 +0100260 }
Primiano Tucciec590132020-11-16 14:16:44 +0100261
262 .version {
263 position: absolute;
264 right: 8px;
265 bottom: 3px;
266 font-size: 12px;
267 font-family: 'Roboto Condensed', 'Roboto', sans-serif;
268 a {
269 color: rgba(255, 255, 255, 0.5);
270 text-decoration: none;
271 }
272 margin-top: 11px;
273 }
Primiano Tucci21b91bf2018-08-06 16:42:07 +0100274 }
Hector Dearman250376b2018-08-07 11:15:52 +0100275}
Isabelle Taylorf41b7c72019-07-24 13:55:43 +0100276
Hector Dearmanf1f99eb2019-09-03 16:36:35 +0100277.keycap {
278 background-color: #fafbfc;
279 border: 1px solid #d1d5da;
280 border-bottom-color: #c6cbd1;
281 border-radius: 3px;
282 box-shadow: inset 0 -1px 0 #c6cbd1;
283 color: #444d56;
284 display: inline-block;
285 font-family: var(--monospace-font);
286 vertical-align: middle;
287
288 line-height: 20px;
289 padding: 3px 7px;
290}