blob: 75c6af978025cb6271c6360dc85567eecc77dccb [file] [log] [blame]
// Copyright (C) 2023 The Android Open Source Project
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
@import "theme";
.pf-details-shell {
font-family: $pf-font;
display: flex;
flex-direction: column;
min-height: 100%;
&.pf-match-parent {
height: 100%;
}
.pf-header-bar {
z-index: 1; // HACK: Make the header bar appear above the content
position: sticky;
top: 0;
left: 0;
display: flex;
flex-direction: row;
align-items: baseline;
gap: 6px;
background-color: white;
color: black;
padding: 8px 8px 5px 8px;
box-shadow: 0px 1px 4px rgba(0, 0, 0, 0.2);
border-bottom: 1px solid rgba(0, 0, 0, 0.2);
.pf-header-title {
font-size: 18px;
min-width: min-content;
white-space: nowrap;
}
.pf-header-description {
font-size: 14px;
flex-grow: 1;
flex-shrink: 1;
white-space: nowrap;
text-overflow: ellipsis;
overflow: hidden;
}
.pf-header-buttons {
display: flex;
min-width: min-content;
gap: 4px;
}
}
.pf-content {
font-size: smaller;
flex-grow: 1;
font-weight: 300;
table {
@include transition(0.1s);
@include table-font-size;
width: 100%;
// Aggregation panel uses multiple table elements that need to be aligned,
// which is done by using fixed table layout.
table-layout: fixed;
word-wrap: break-word;
padding: 0 10px;
tr:hover {
td,
th {
background-color: $table-hover-color;
&.no-highlight {
background-color: white;
}
}
}
th {
text-align: left;
width: 30%;
font-weight: normal;
vertical-align: top;
}
td.value {
white-space: pre-wrap;
}
td.padding {
min-width: 10px;
}
.array-index {
text-align: right;
}
}
.auto-layout {
table-layout: auto;
}
}
}