static cssTemplate()

in resources/perf.webkit.org/public/v3/components/combo-box.js [155:202]


    static cssTemplate()
    {
        return `
            div {
                position: relative;
                height: 1.4rem;
                left: 0;
            }

            ul:empty {
                display: none;
            }

            ul {
                transition: background 250ms ease-in;
                margin: 0;
                padding: 0.1rem 0.3rem;
                list-style: none;
                background: rgba(255, 255, 255, 0.95);
                border: solid 1px #ccc;
                top: 1.5rem;
                border-radius: 0.2rem;
                z-index: 10;
                position: absolute;
                min-width: 8.5rem;
                max-height: 10rem;
                overflow: auto;
            }

            li {
                text-align: left;
                margin: 0;
                padding: 0;
            }

            li:hover,
            li.selected {
                background: rgba(204, 153, 51, 0.1);
            }

            li a {
                text-decoration: none;
                font-size: 0.8rem;
                color: inherit;
                display: block;
            }
        `;
    }