blob: c039f497a1ec37c531646613420e765212b13e52 [file] [edit]
// 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.
.pf-widgets-page {
display: flex;
height: 100%;
overflow: hidden;
h1 {
margin: 24px 0 0 0;
font-size: 28px;
}
h2 {
margin: 16px 0 0 0;
font-size: 24px;
}
h3 {
margin: 12px 0 0 0;
font-size: var(--pf-font-size-xxl);
}
p,
ul {
margin: 8px 0 0 0;
}
li {
margin-bottom: 4px;
}
strong {
font-weight: 400;
}
&__showcase {
margin-top: 16px;
display: flex;
flex-direction: row;
gap: 10px;
}
&__options {
overflow: hidden;
flex: 0;
min-width: 250px;
overflow: hidden;
padding-inline: 16px;
background: var(--pf-color-background-secondary);
border-radius: 3px;
padding-block: 16px;
label {
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
}
}
&__options-title {
margin-bottom: 8px;
font-size: larger;
font-weight: bolder;
}
&__widget-container {
min-height: 300px;
max-height: 500px;
border-radius: 3px;
box-shadow: inset 2px 2px 10px var(--pf-color-box-shadow);
border: dashed 1px var(--pf-color-border);
padding: 24px;
overflow: hidden;
flex: 1;
&--no-padding {
padding: 0;
}
}
&__menu {
width: 200px;
border-right: 1px solid var(--pf-color-border);
overflow-y: auto;
padding: 8px;
flex-shrink: 0;
}
&__menu-item {
padding: 4px 8px;
cursor: pointer;
border-radius: 4px;
margin-bottom: 2px;
background-color: transparent;
&:hover {
background-color: color_hover(transparent);
}
&.pf-active {
background-color: color_active(transparent);
font-weight: 500;
}
}
&__content-container {
flex: 1;
overflow-y: auto;
}
&__content {
flex: 1;
padding-inline: 16px;
max-width: 900px;
padding-bottom: 32px;
}
}