1
resposta

Como faço para abrir um menu apenas posicionando o mouse?

Tenho uma tela de dispositivos e na lateral tem um menu. Nesse menu gostaria de passar o mouse em cima e abrir em baixo um campo que mostra a descrição do produto sem ter que clicar. Tenho que usar o event hover no css?

Estou usando o react.

@import 'assets/scss/_functions.scss';

.inline-menu {
    background-color: transparent;

    p {
        padding: 0;
        margin: 0;
    }

    .instrument-search {
        padding: 15px 25px;
    }

    &.instrument-container {
        margin-bottom: 0px !important;
        background-color: transparent;
    }

    .instrument-header {
        background-color: getColor(param-sidebar-instrument-header-bg);
        color: getColor(param-sidebar-instrument-header-text);
        border-radius: 4px !important;
        background-position: center;
        transition: background 0.8s;

        &:hover {
            background: #00504b
                radial-gradient(
                    circle,
                    transparent 1%,
                    getColor(param-sidebar-instrument-header-bg) 1%
                )
                center/15000%;
        }

        &:active {
            background-color: getColor(param-sidebar-instrument-header-bg);
            background-color: getColor(param-sidebar-instrument-header-text);
            background-size: 100%;
            transition: background 0s;
        }

        &.empty-item {
            background-color: #181818;

            &:hover {
                background: #181818
                    radial-gradient(circle, transparent 1%, #181818 1%)
                    center/15000%;
            }

            &:active {
                background-color: #5c5b5b;
                background-size: 100%;
                transition: background 0s;
            }
        }
    }

    .instrument-item {
        height: 50px;
        margin-top: 0px !important;
        display: flex !important;
        align-items: center !important;
        background-color: getColor(param-sidebar-instrument-bg);
        color: getColor(param-sidebar-instrument-text);
        border-radius: 4px;
        padding-left: 30px;
        transition: background-color 0.5s ease-in-out;

        &.active {
            background-color: getColor(param-sidebar-instrument-active-bg);
            color: getColor(param-sidebar-instrument-active-text);
        }
    }

    .instrument-item-text {
        text-indent: 35px;
    }
}
1 resposta

componente datagrid

common-styles.scss

@import 'assets/scss/init.scss';

.datagrid-cutom-button{
    color: getColor(table-heading-text);
    border: 1px solid getColor(table-row-toolbar-button-bg);
    background-color: getColor(table-row-toolbar-button-bg);
    box-shadow: none;
}

.inputs-filter{
    min-width: 40px;
    height: 30px;
    border: none;
    background: getColor(param-sidebar-search-bg);
    outline: none;
    color: getColor(param-sidebar-search-text);
    box-shadow: none;
    margin-left: 0;
    border-top-left-radius: 4px;
    border-bottom-left-radius: 4px;  
}

.datagrid-out-range-row{
    background-color: getColor(header-in-connecting-bg) !important;
}

.datagrid-not-default-row {    
    font-weight: getColor(table-font-weight);
    color: getColor(table-row-text);
}