Jump to content

Module:Navbox/styles.css: Difference between revisions

From TnPedia
No edit summary
No edit summary
Line 43: Line 43:




 
/* Barra do título com duas "colunas" simuladas */
/* Estiliza o título da esquerda */
.tn-title-bar {
.navbox-title-left {
  display: flex;
  justify-content: space-between;
  align-items: center;
   background-color: #d9ecff;
   background-color: #d9ecff;
   color: #003366;
   color: #003366;
   font-weight: bold;
   font-weight: bold;
   font-size: 115%;
   font-size: 120%;
   padding: 0.4em;
   padding: 0.3em 0.8em;
   text-align: center;
   border-radius: 0.8em 0.8em 0 0;
   width: 100%;
   width: 100%;
   border-radius: 0.5em 0 0 0;
   box-sizing: border-box;
}
}


/* Estiliza o botão à direita */
/* Texto do título */
.navbox-title-right {
.tn-title-text {
   background-color: #d9ecff;
   flex: 1;
   text-align: right;
   text-align: center;
  padding: 0.4em;
  border-radius: 0 0.5em 0 0;
  vertical-align: middle;
}
}


/* Estilo do botão [collapse]/[expand] */
/* Botão expand/collapse */
.navbox .mw-collapsible-toggle {
.mw-collapsible-toggle {
   font-size: 90%;
   font-size: 90%;
  font-weight: bold;
  color: #003366;
   background: none;
   background: none;
   border: none;
   border: none;
  color: #003366;
  font-weight: bold;
  padding: 0.2em 0.4em;
   cursor: pointer;
   cursor: pointer;
}
}

Revision as of 19:26, 29 May 2025

/* Reduz o tamanho da fonte geral */
.navbox {
  font-size: 0.80em;
  border: 1px solid #ccc;
  border-radius: 12px;
  padding: 0.5em;
  background-color: #fdfdfd;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

/* Força os itens da lista como inline */
.navbox .hlist li {
  display: inline;
}

/* Adiciona barra vertical entre itens da lista */
.navbox .hlist li:not(:last-child)::after {
  content: " |";
  font-weight: bold;
  padding: 0 0.4em;
  color: #444;
}

/* Estilo do título do grupo */
.navbox .navbox-group {
  font-weight: bold;
  background-color: #f2f2f2;
  padding: 0.3em 0.6em;
  border-bottom: 1px solid #ddd;
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
}

/* Ajustes de link */
.navbox a {
  text-decoration: none;
}

.navbox a:hover {
  text-decoration: underline;
}



/* Barra do título com duas "colunas" simuladas */
.tn-title-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #d9ecff;
  color: #003366;
  font-weight: bold;
  font-size: 120%;
  padding: 0.3em 0.8em;
  border-radius: 0.8em 0.8em 0 0;
  width: 100%;
  box-sizing: border-box;
}

/* Texto do título */
.tn-title-text {
  flex: 1;
  text-align: center;
}

/* Botão expand/collapse */
.mw-collapsible-toggle {
  font-size: 90%;
  font-weight: bold;
  color: #003366;
  background: none;
  border: none;
  cursor: pointer;
}