Skip to content

Instantly share code, notes, and snippets.

@rodorgas
Last active August 16, 2021 15:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rodorgas/9859ee7c85499aadc4263826d9b466b6 to your computer and use it in GitHub Desktop.
Save rodorgas/9859ee7c85499aadc4263826d9b466b6 to your computer and use it in GitHub Desktop.
Menu de navegação do eDisciplinas razoável
@-moz-document domain("edisciplinas.usp.br") {
.block_navigation .block_tree ul ul {
padding-left: 0;
}
.block_navigation .block_tree ul ul ul {
padding-left: 1rem;
}
.block_navigation .block_tree .tree_item.branch,
.block_settings .block_tree .tree_item.branch {
padding-left: 0;
display: block;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
}
.block_navigation .block_tree ul,
.block_settings .block_tree ul {
margin: 0;
}
.block_navigation ul {
position: relative;
}
.block_navigation ul ul ul ul:not(:first-child)::before {
content: "";
position: absolute;
top: -9px;
bottom: 7px;
left: 9px;
width: 2px;
background: #ddd;
}
}
@rodorgas
Copy link
Author

  • Remove margens exageradas dos itens do menu
  • Remove indentação do primeiro nível de ambiente
  • Força ícones dos itens na mesma linha do texto
  • Coloca uma régua guia acompanhando a indentação da árvore

@rodorgas
Copy link
Author

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment