From 875de47a400bccb16f51213435a9e43fa63c6c5e Mon Sep 17 00:00:00 2001 From: maki Date: Fri, 8 Mar 2024 13:16:21 -0300 Subject: [PATCH] fix: estilos de details --- app/assets/stylesheets/application.scss | 29 +++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/app/assets/stylesheets/application.scss b/app/assets/stylesheets/application.scss index a9bdb997..8846b368 100644 --- a/app/assets/stylesheets/application.scss +++ b/app/assets/stylesheets/application.scss @@ -599,3 +599,32 @@ $bezier: cubic-bezier(0.75, 0, 0.25, 1); hr { border-bottom: 1px solid #dee2e6; } + +details { + summary { + .show-when-open { + display: none; + } + + .hide-when-open { + display: block; + } + } + + &[open] { + summary { + .show-when-open { + display: block; + } + + .hide-when-open { + display: none; + } + } + } + + & > summary { + list-style: none; + &::-webkit-details-marker { display: none; } + } +}