All Downloads are FREE. Search and download functionalities are using the official Maven repository.

META-INF.resources.frontend.styles.components.list-item.css Maven / Gradle / Ivy

There is a newer version: 22.0.1
Show newest version
/*
 * Copyright (c) 2008 - 2020. - Broderick Labs.
 * Author: Broderick Johansson
 * E-mail: [email protected]
 * Modify date:2020-07-02 09:33:44
 * _____________________________
 * Project name: fluent-vaadin-flow
 * Class name:D:/broderick/develop/vaadin/16/fluent-vaadin-flow/frontend/styles/components/list-item.css
 * Copyright (c) 2008 - 2020. - Broderick Labs.
 */

.list-item {
    box-sizing: border-box;
    line-height: var(--lumo-line-height-m);
    overflow: hidden;
    position: relative;
}

/* Prefix */
.list-item__prefix {
    display: flex;
    flex-shrink: 0;
}

.list-item__prefix img {
    max-height: var(--lumo-icon-size-m);
    max-width: var(--lumo-icon-size-m);
}

/* Content */
.list-item__content {
    flex: 1;
    overflow: hidden;
}

.list-item__content label {
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Suffix */
.list-item__suffix {
    display: flex;
    flex-shrink: 0;
}

/* Divider */
.list-item[with-divider]::after {
    background-color: var(--lumo-contrast-10pct);
    bottom: 0;
    content: "";
    height: 1px;
    left: 0;
    position: absolute;
    right: 0;
}

.list-item[with-prefix][with-divider]::after {
    left: calc((var(--lumo-icon-size-m) + var(--lumo-space-l)) + var(--lumo-space-l));
}

/* Grid styling */
vaadin-grid .list-item label {
    pointer-events: none;
}

@media (max-width: 1023px) {
    .list-item[with-prefix][with-divider]::after {
        left: calc((var(--lumo-icon-size-m) + var(--lumo-space-l)) + var(--lumo-space-m));
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy