@@ -143,52 +143,10 @@ footer .lang-select .select2-chosen { color: #333!important; }
143143}
144144
145145/* ── ORGANIZACIONES / GRUPOS ──
146- /organization usa el árbol de ckanext-hierarchy (hierarchy_theme.css: bullets,
147- líneas punteadas, link teal) en vez del grid de tarjetas del resto del sitio.
148- /group usa el grid nativo de CKAN (.media-grid), sin estilo propio. Ambos se
149- llevan acá a la línea visual de tarjetas del theme. */
150- # publisher-tree {
151- background : var (--gobar-blanco );
152- border : 1px solid # E0E0E0 ;
153- border-radius : 8px ;
154- padding : .25rem 1rem ;
155- }
156- ul .hierarchy-tree-top ,
157- ul .hierarchy-tree {
158- list-style : none !important ;
159- background : none !important ;
160- margin : 0 ;
161- padding : 0 ;
162- }
163- ul .hierarchy-tree { margin-left : 1.25rem ; }
164- ul .hierarchy-tree-top > li ,
165- ul .hierarchy-tree li {
166- background : none !important ;
167- padding : 0 !important ;
168- border-bottom : 1px solid var (--gobar-gris-bg );
169- }
170- ul .hierarchy-tree-top > li : last-child { border-bottom : none; }
171- ul .hierarchy-tree-top li > a ,
172- ul .hierarchy-tree li > a {
173- display : block;
174- padding : .6rem .25rem ;
175- font-family : var (--font-cuerpo );
176- font-weight : 500 ;
177- color : var (--gobar-primary ) !important ;
178- text-decoration : none;
179- text-shadow : none !important ;
180- }
181- ul .hierarchy-tree-top li > a : hover ,
182- ul .hierarchy-tree li > a : hover {
183- color : var (--gobar-primary-dark ) !important ;
184- background : var (--gobar-gris-bg );
185- border-radius : 6px ;
186- }
187- ul .hierarchy-tree-top li .highlighted > a ,
188- ul .hierarchy-tree li .highlighted > a {
189- font-weight : 700 ;
190- }
191-
146+ El índice de /organization lo dibuja el árbol propio de más abajo
147+ (.gobar-org-tree, override del snippet de ckanext-hierarchy).
148+ .media-grid es el grid genérico de CKAN que sigue usándose en otros
149+ listados (dashboard, featured), se lleva a la línea visual del theme. */
192150.media-grid {
193151 list-style : none;
194152 display : grid;
@@ -251,11 +209,37 @@ body.one-column .primary { width: 100%; max-width: 100%; float: none; }
251209/* ── Listados de /organization (árbol de organismos) y /group (temas) ── */
252210.gobar-temas-grid { margin-top : 24px ; }
253211
254- .gobar-org-tree { list-style : none; padding : 0 ; margin : 24px 0 0 ; max-width : 780px ; }
255- .gobar-org-tree ul .hierarchy-tree { list-style : none; margin : 0 0 8px 24px ; padding-left : 20px ; border-left : 2px solid # DEE2E6 ; }
256- .gobar-org-row { display : flex; align-items : center; gap : 14px ; padding : 12px 18px ; margin-bottom : 8px ; background : var (--gobar-blanco ); border : 1px solid # DEE2E6 ; border-radius : 4px ; color : var (--gobar-navy ) !important ; text-decoration : none !important ; transition : border-color .15s , box-shadow .15s ; }
257- .gobar-org-row : hover { border-color : var (--gobar-primary ); box-shadow : 0 1px 3px rgba (33 , 45 , 81 , .1 ); }
258- .gobar-org-row-name { flex : 1 ; font-family : var (--font-cuerpo ); font-size : 15px ; font-weight : 600 ; line-height : 1.35 ; }
259- .gobar-org-row-count { font-family : var (--font-cuerpo ); font-size : 13px ; color : var (--gobar-gris-oscuro ); white-space : nowrap; }
212+ /* Árbol de organismos tipo explorador de directorios (handoff diseño 3d, sin
213+ la tarjeta contenedora del mock): padres colapsables (<details> nativo),
214+ guía vertical fina + conector horizontal por hijo, count como badge pegado
215+ al nombre y filas fit-content (no se estiran a lo ancho). Tokens del
216+ handoff; la tipografía queda la del portal (Montserrat), no IBM Plex. */
217+ .gobar-org-tree { margin : 24px 0 0 ; }
218+ .gobar-org-tree , .gobar-org-children { list-style : none; padding : 0 ; }
219+ .gobar-org-children { margin : 0 ; }
220+ .gobar-org-branch { margin : 0 ; }
221+ .gobar-org-row { display : flex; align-items : center; gap : 8px ; padding : 12px 4px ; width : fit-content; font-family : var (--font-cuerpo ); }
222+ .gobar-org-row ::before { content : "\25B8" ; color : # 9CA0B5 ; font-size : 11px ; line-height : 1 ; flex : none; }
223+ summary .gobar-org-row { cursor : pointer; list-style : none; user-select : none; }
224+ summary .gobar-org-row ::-webkit-details-marker { display : none; }
225+ /* Foco solo cuando se navega con teclado; el click no deja el recuadro azul */
226+ summary .gobar-org-row : focus : not (: focus-visible ) { outline : none; box-shadow : none; }
227+ details [open ] > summary .gobar-org-row ::before { content : "\25BE" ; color : # 372F86 ; }
228+ .gobar-org-row-name { font-size : 14.5px ; font-weight : 700 ; color : # 312E3D ; text-decoration : none; transition : color .15s ; }
229+ .gobar-org-row-name : hover { color : # 372F86 ; text-decoration : underline; }
230+ .gobar-org-row-count { background : # F1EFFA ; color : # 7A76A8 ; font-size : 11px ; font-weight : 600 ; padding : 2px 7px ; border-radius : 5px ; white-space : nowrap; }
231+ /* Hijos: guía vertical dibujada por fila (::after) en vez de border-left del
232+ ul, así en la última fila corta justo en su conector y no sigue de largo */
233+ .gobar-org-children { margin-left : 15px ; padding-left : 22px ; }
234+ .gobar-org-children > li { position : relative; }
235+ .gobar-org-children > li ::before { content : "" ; position : absolute; left : -22px ; top : 50% ; width : 16px ; height : 1.5px ; background : # E4E2F0 ; }
236+ .gobar-org-children > li ::after { content : "" ; position : absolute; left : -22px ; top : 0 ; bottom : 0 ; width : 1.5px ; background : # E4E2F0 ; }
237+ .gobar-org-children > li : last-child ::after { bottom : auto; height : 50% ; }
238+ .gobar-org-children .gobar-org-row { padding : 11px 4px ; }
239+ .gobar-org-children .gobar-org-row ::before { content : none; }
240+ .gobar-org-children summary .gobar-org-row ::before { content : "\25B8" ; }
241+ .gobar-org-children details [open ] > summary .gobar-org-row ::before { content : "\25BE" ; }
242+ .gobar-org-children .gobar-org-row-name { font-size : 13.5px ; font-weight : 600 ; color : # 372F86 ; }
260243/* Resultado resaltado por la búsqueda del árbol (hierarchy) */
261- .gobar-org-tree li .highlighted > .gobar-org-row { border-color : var (--gobar-primary ); box-shadow : 0 1px 3px rgba (33 , 45 , 81 , .15 ); }
244+ .gobar-org-tree li .highlighted > .gobar-org-row .gobar-org-row-name ,
245+ .gobar-org-tree li .highlighted > details > summary .gobar-org-row-name { color : # 372F86 ; text-decoration : underline; }
0 commit comments