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;
}
}