@import url('./views-showcase/view-usage-render.css');

.page-views-showcase {
    flex: 1;
    display: flex;
    flex-direction: row;
    border: 1px solid rgba(170, 170, 170, 0.4);
    margin: 35px 40px 20px;
    padding: 0 !important;
    box-sizing: border-box;
    overflow: hidden;
    border-radius: 3px;
    background-color: rgba(255, 255, 255, .8);
    transition-property: background-color;
    transition-duration: .25s;
    transition-timing-function: ease-in;

}
.discovery-root-darkmode .page-views-showcase {
    background-color: rgba(36, 36, 36, .8);
}

.page-views-showcase > .sidebar {
    display: flex;
    flex-direction: column;
    width: 220px;
    border-right: 1px solid rgba(170, 170, 170, 0.2);
}

.page-views-showcase > .sidebar > .sidebar-header {
    display: flex;
    align-items: stretch;
    margin: 1px;
    gap: 1px;
}
.page-views-showcase > .sidebar > .sidebar-header .index-page-link {
    display: block;
    flex: 1;
    padding: 3px 11px;
    color: var(--discovery-color);
    text-decoration: none;
    font-size: 13px;
    text-align: center;
}
.page-views-showcase > .sidebar > .sidebar-header .index-page-link:not(.view-selected) {
    background-color: rgba(189, 120, 255, 25%);
    cursor: default;
}
.page-views-showcase > .sidebar >  .sidebar-header .index-page-link.view-selected:hover {
    background-color: rgba(131, 131, 131, 0.25);
    cursor: pointer;
}
.page-views-showcase > .sidebar >  .sidebar-header .index-page-link::before {
    content: '↑ ';
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Tahoma, sans-serif;
}
.page-views-showcase > .sidebar >  .sidebar-header .index-page-link:not(.view-selected)::before {
    content: '';
}
.page-views-showcase > .sidebar >  .sidebar-header .render-toggle {
    border-left: 1px solid rgba(170, 170, 170, 0.2);
    padding-left: 8px;
    font-size: 11px;
}
.page-views-showcase > .sidebar >  .sidebar-header .render-toggle .view-toggle {
    font-size: 11px;
    border-radius: 0;
    padding-top: 5px;
    padding-bottom: 5px;
}

.page-views-showcase > .sidebar .view-content-filter {
    flex: 1;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.page-views-showcase > .sidebar .view-content-filter > .view-input {
    margin: 0;
}
.page-views-showcase > .sidebar .view-content-filter > .view-input input {
    border: none;
    border-top: 1px solid rgba(170, 170, 170, 0.2);
    border-bottom: 1px solid rgba(170, 170, 170, 0.2);
    border-radius: 0;
    box-shadow: none;
}
.page-views-showcase > .sidebar .view-content-filter .view-block {
    flex: 1;
    overflow: hidden;
    overflow-y: scroll;
    padding: 1px;
}
.page-views-showcase > .sidebar .view-menu-item:not(.disabled) {
    color: var(--discovery-link-color, #0099DD);
}
.page-views-showcase > .sidebar .view-menu-item.selected {
    background-color: rgb(84 118 139 / 30%);
}
.page-views-showcase > .sidebar .view-menu-item:not(.selected):hover {
    color: var(--discovery-link-hover-color, #0077BB);
}

.page-views-showcase > .content {
    flex: 1;
    padding: 0 24px 20px;
    overflow: hidden;
    overflow-y: scroll;
}
.page-views-showcase > .content:not(:has(
    > .discovery-view-usage > .view-h1:first-child,
    > .view-h1:first-child
)) {
    padding-top: 20px;
}
.page-views-showcase > .content > .view-h1 {
    margin-top: 16px;
    font-family: Helvetica Neue, Helvetica, Tahoma, Arial, sans-serif;
    font-weight: 200;
}

.page-views-showcase .view-markdown .view-render {
    display: flex;
    gap: 2px;
    margin: 8px 0;
}
.page-views-showcase .view-markdown .view-render__source::before,
.page-views-showcase .view-markdown .view-render__result::before {
    content: 'Discovery.js view';
    display: block;
    border-bottom: 1px solid var(--discovery-background-color);
    background-color: color-mix(in srgb, currentcolor 15%, var(--discovery-background-color));
    padding: 4px 8px;
}
.page-views-showcase .view-markdown .view-render__result::before {
    content: 'Render result';
}
.page-views-showcase .view-markdown .view-render__source {
    display: flex;
    flex-direction: column;
    max-width: 49%;
    width: 510px;
}
.page-views-showcase .view-markdown .view-render__source > .view-source {
    flex: 1;
}
.page-views-showcase .view-markdown .view-render__result {
    display: flex;
    flex-direction: column;
    flex: 1;
}
.page-views-showcase .view-markdown .view-render__result > pre {
    padding: 8px 16px;
    flex: 1;
}
