view default/static/file.css @ 123:44b838bcc0d6

file/overview: display tumbnails when available
author Goffi <goffi@goffi.org>
date Wed, 14 Mar 2018 08:43:30 +0100
parents 9d95b58200df
children 4f27ce980ced
line wrap: on
line source

#files {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
}

.file {
    padding: 0 0 0.5em;
    width: 100px;
    text-overflow: ellipsis;
    overflow: hidden;
    text-align: center;
    overflow-wrap: break-word;
}

.file:hover {
    background: #ddd;
    overflow: visible;
}

.file a {
    text-decoration: none;
    outline: none;
}

.file a:focus img {
    outline: 3px solid #bbb;
}

.file__icon {
    height: 3em;
    display: block;
    margin: 0 auto;
}

.file__thumbnail {
    max-width: 300px;
    height: 125px;
    display: block;
    margin: 0 auto;
}

.icon--soft {
    fill: #777;
}

@media (min-width: 500px) {
    .file {
        padding: 1em;
        width: 170px;
    }
}