mdbook-files 0.2.0

Preprocessor for mdbook which renders files from a directory as an interactive widget
Documentation
/* style for mdbook-files */

.mdbook-files {
    display: flex;
    background-color: var(--sidebar-bg);
    margin: 1em 0;
}

.mdbook-files ul {
    list-style-type: none;
    padding: 2mm;
    margin: 0;
}

.mdbook-files li > ul {
    padding-top: 0;
    padding-bottom: 0;
}

.mdbook-files .mdbook-files-folder > span {
    font-weight: 600;
}

.mdbook-files ul .active {
    font-weight: 600;
}

.mdbook-files ul > li.mdbook-files-button {
    cursor: pointer;
}

.mdbook-files ul > li.mdbook-files-button:hover {
    color: var(--links);
}

.mdbook-files-left {
    width: 150px;
    min-width: 150px;
    overflow: scroll;
}

.mdbook-files-right {
    flex-grow: 1;
    overflow: scroll;
}

.mdbook-file {
    display: none;
}

.mdbook-file pre {
    margin: 0;
    height: 100%;
}

.mdbook-file pre code {
    height: 100%;
}

.mdbook-file.visible {
    display: block;
    height: 100%;
}