Primiano Tucci | 21b91bf | 2018-08-06 16:42:07 +0100 | [diff] [blame] | 1 | // 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 Tucci | f4a0c0a | 2019-10-29 10:39:52 +0100 | [diff] [blame] | 14 | |
Primiano Tucci | 21b91bf | 2018-08-06 16:42:07 +0100 | [diff] [blame] | 15 | .sidebar { |
Primiano Tucci | f4a0c0a | 2019-10-29 10:39:52 +0100 | [diff] [blame] | 16 | --sidebar-padding-bottom: 40px; |
Primiano Tucci | d3a9983 | 2020-02-12 18:35:15 +0000 | [diff] [blame] | 17 | --sidebar-timing: 0.15s; |
Primiano Tucci | 21b91bf | 2018-08-06 16:42:07 +0100 | [diff] [blame] | 18 | grid-area: sidebar; |
Primiano Tucci | 425fd42 | 2019-01-24 10:48:31 +0000 | [diff] [blame] | 19 | z-index: 4; |
Primiano Tucci | 21b91bf | 2018-08-06 16:42:07 +0100 | [diff] [blame] | 20 | background-color: #262f3c; |
Isabelle Taylor | b102437 | 2020-02-25 17:47:54 +0000 | [diff] [blame] | 21 | overflow: hidden; |
Isabelle Taylor | f41b7c7 | 2019-07-24 13:55:43 +0100 | [diff] [blame] | 22 | width: var(--sidebar-width); |
Isabelle Taylor | f57b24f | 2019-07-31 11:06:41 +0100 | [diff] [blame] | 23 | display: flex; |
| 24 | flex-direction: column; |
Primiano Tucci | d3a9983 | 2020-02-12 18:35:15 +0000 | [diff] [blame] | 25 | transition: margin-left var(--anim-easing) var(--sidebar-timing), |
| 26 | visibility linear var(--sidebar-timing); |
Primiano Tucci | 21b91bf | 2018-08-06 16:42:07 +0100 | [diff] [blame] | 27 | >* { |
| 28 | border-bottom: 1px solid #404854; |
| 29 | } |
| 30 | input[type=file] { display:none; } |
| 31 | >header { |
Primiano Tucci | 32ea103 | 2020-01-07 13:53:23 +0000 | [diff] [blame] | 32 | font-family: 'Raleway', sans-serif; |
Primiano Tucci | 21b91bf | 2018-08-06 16:42:07 +0100 | [diff] [blame] | 33 | 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 Taylor | f41b7c7 | 2019-07-24 13:55:43 +0100 | [diff] [blame] | 41 | overflow: visible; |
Primiano Tucci | d3a9983 | 2020-02-12 18:35:15 +0000 | [diff] [blame] | 42 | .brand { |
| 43 | height: 40px; |
| 44 | margin-top: 4px; |
Primiano Tucci | 21b91bf | 2018-08-06 16:42:07 +0100 | [diff] [blame] | 45 | } |
Primiano Tucci | 63ac8b4 | 2021-02-16 11:50:08 +0100 | [diff] [blame] | 46 | &.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 Tucci | d3a9983 | 2020-02-12 18:35:15 +0000 | [diff] [blame] | 57 | } |
| 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 Tucci | d3a9983 | 2020-02-12 18:35:15 +0000 | [diff] [blame] | 64 | 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 Tucci | 21b91bf | 2018-08-06 16:42:07 +0100 | [diff] [blame] | 80 | } |
Primiano Tucci | f4a0c0a | 2019-10-29 10:39:52 +0100 | [diff] [blame] | 81 | .sidebar-scroll { |
Isabelle Taylor | f57b24f | 2019-07-31 11:06:41 +0100 | [diff] [blame] | 82 | overflow-y: auto; |
| 83 | flex: 1; |
Isabelle Taylor | f57b24f | 2019-07-31 11:06:41 +0100 | [diff] [blame] | 84 | &::-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 Tucci | f4a0c0a | 2019-10-29 10:39:52 +0100 | [diff] [blame] | 95 | >.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 Tucci | 32ea103 | 2020-01-07 13:53:23 +0000 | [diff] [blame] | 108 | font-family: 'Raleway', sans-serif; |
Primiano Tucci | f4a0c0a | 2019-10-29 10:39:52 +0100 | [diff] [blame] | 109 | 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 Tucci | 32ea103 | 2020-01-07 13:53:23 +0000 | [diff] [blame] | 163 | font-family: 'Raleway', sans-serif; |
Primiano Tucci | f4a0c0a | 2019-10-29 10:39:52 +0100 | [diff] [blame] | 164 | letter-spacing: 0.5px; |
| 165 | padding: 5px 24px; |
| 166 | text-decoration: none; |
| 167 | display: block; |
Primiano Tucci | 2923745 | 2021-02-19 13:17:36 +0100 | [diff] [blame^] | 168 | &.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 Tucci | f4a0c0a | 2019-10-29 10:39:52 +0100 | [diff] [blame] | 188 | &[disabled] { |
| 189 | text-decoration: line-through; |
| 190 | } |
| 191 | } |
| 192 | .material-icons { |
Primiano Tucci | f4a0c0a | 2019-10-29 10:39:52 +0100 | [diff] [blame] | 193 | margin-right: 10px; |
| 194 | } |
| 195 | &:hover { |
| 196 | background-color: #373f4b; |
| 197 | } |
Primiano Tucci | 6faa36e | 2020-05-04 21:54:51 +0100 | [diff] [blame] | 198 | .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 Tucci | f4a0c0a | 2019-10-29 10:39:52 +0100 | [diff] [blame] | 208 | } |
| 209 | } |
Isabelle Taylor | f57b24f | 2019-07-31 11:06:41 +0100 | [diff] [blame] | 210 | } |
Primiano Tucci | f4a0c0a | 2019-10-29 10:39:52 +0100 | [diff] [blame] | 211 | } |
| 212 | |
| 213 | .sidebar-footer { |
| 214 | position: absolute; |
| 215 | bottom: 0; |
Primiano Tucci | ec59013 | 2020-11-16 14:16:44 +0100 | [diff] [blame] | 216 | width: 100%; |
Primiano Tucci | f4a0c0a | 2019-10-29 10:39:52 +0100 | [diff] [blame] | 217 | 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 Tucci | 3552aaf | 2020-01-14 20:20:52 +0000 | [diff] [blame] | 234 | > .dbg-info-square { |
Primiano Tucci | f4a0c0a | 2019-10-29 10:39:52 +0100 | [diff] [blame] | 235 | 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 Tucci | 3552aaf | 2020-01-14 20:20:52 +0000 | [diff] [blame] | 244 | &.green { |
Primiano Tucci | f4a0c0a | 2019-10-29 10:39:52 +0100 | [diff] [blame] | 245 | background: #7aca75; |
| 246 | color: #12161b; |
| 247 | } |
Primiano Tucci | 3552aaf | 2020-01-14 20:20:52 +0000 | [diff] [blame] | 248 | &.amber { |
| 249 | background: #FFC107; |
| 250 | color: #333; |
| 251 | } |
| 252 | &.red { |
Primiano Tucci | c449fc1 | 2019-11-01 19:33:00 +0100 | [diff] [blame] | 253 | background: #d32f2f; |
| 254 | color: #fff; |
| 255 | } |
| 256 | > div { |
| 257 | font-size: 10px; |
| 258 | line-height: 11px; |
| 259 | } |
Isabelle Taylor | f57b24f | 2019-07-31 11:06:41 +0100 | [diff] [blame] | 260 | } |
Primiano Tucci | ec59013 | 2020-11-16 14:16:44 +0100 | [diff] [blame] | 261 | |
| 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 Tucci | 21b91bf | 2018-08-06 16:42:07 +0100 | [diff] [blame] | 274 | } |
Hector Dearman | 250376b | 2018-08-07 11:15:52 +0100 | [diff] [blame] | 275 | } |
Isabelle Taylor | f41b7c7 | 2019-07-24 13:55:43 +0100 | [diff] [blame] | 276 | |
Hector Dearman | f1f99eb | 2019-09-03 16:36:35 +0100 | [diff] [blame] | 277 | .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 | } |