Jump to content

Template:Navbox/styles.css: Difference between revisions

From TnPedia
No edit summary
No edit summary
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
/* Força os itens da lista como inline */
/* Estilização geral da navbox */
.tnlist li {
.navbox {
  font-size: 0.85em;
  border: 1px solid #ccc;
  border-radius: 12px;
  background-color: #fdfdfd;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  margin-top: 1em;
}
 
/* Título completo (em duas "colunas") com botão na segunda */
.navbox .navbox-title {
  display: table;
  width: 100%;
  background-color: #d9ecff;
  color: #003366;
  font-weight: bold;
  font-size: 1.1em;
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
}
 
.navbox .navbox-title .title-cell {
  display: table-cell;
  text-align: center;
  vertical-align: middle;
  padding: 0.4em;
  width: 95%;
}
 
.navbox .navbox-title .toggle-cell {
  display: table-cell;
  text-align: right;
  vertical-align: middle;
  padding: 0.4em 0.8em;
  width: 5%;
  white-space: nowrap;
}
 
/* Estilo do botão de expand/collapse */
.navbox .mw-collapsible-toggle {
  font-size: 90%;
  font-weight: normal;
  color: #003366;
  background: none;
  border: none;
  cursor: pointer;
}
 
/* Estilo dos grupos de itens */
.navbox .navbox-group {
  font-weight: bold;
  background-color: #f2f2f2;
  padding: 0.3em 0.6em;
  border-top: 1px solid #ddd;
  text-align: center;
}
 
/* Listas horizontais com separador personalizado */
.navbox .hlist li {
   display: inline;
   display: inline;
}
}


/* Adiciona ponto mediano em negrito entre os itens */
.navbox .hlist li:not(:last-child)::after {
.tnlist li:not(:last-child)::after {
   content: " |";
   content: " \00B7";
   font-weight: bold;
   font-weight: bold;
  color: #222;
   padding: 0 0.4em;
   padding: 0 0.4em;
  color: #444;
}
/* Links */
.navbox a {
  text-decoration: none;
}
.navbox a:hover {
  text-decoration: underline;
}
}


/* Opcional: embeleza o navbox */
.tn-title-bar {
.navbox {
   display: flex;
   border-radius: 10px;
  justify-content: space-between;
   border: 1px solid #ccc;
   align-items: center;
   background-color: #f9f9f9;
   background-color: #d9ecff;
   padding: 0.5em;
  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;
}
}


/* Espaçamento extra entre os links */
 
.tnlist a {
.tn-title-bar .mw-collapsible-toggle {
   margin: 0 0.2em;
   margin-left: auto;
  font-size: 90%;
  font-weight: bold;
  color: #003366;
  background: none;
  border: none;
  cursor: pointer;
}
}

Latest revision as of 19:35, 29 May 2025

/* Estilização geral da navbox */
.navbox {
  font-size: 0.85em;
  border: 1px solid #ccc;
  border-radius: 12px;
  background-color: #fdfdfd;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  margin-top: 1em;
}

/* Título completo (em duas "colunas") com botão na segunda */
.navbox .navbox-title {
  display: table;
  width: 100%;
  background-color: #d9ecff;
  color: #003366;
  font-weight: bold;
  font-size: 1.1em;
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
}

.navbox .navbox-title .title-cell {
  display: table-cell;
  text-align: center;
  vertical-align: middle;
  padding: 0.4em;
  width: 95%;
}

.navbox .navbox-title .toggle-cell {
  display: table-cell;
  text-align: right;
  vertical-align: middle;
  padding: 0.4em 0.8em;
  width: 5%;
  white-space: nowrap;
}

/* Estilo do botão de expand/collapse */
.navbox .mw-collapsible-toggle {
  font-size: 90%;
  font-weight: normal;
  color: #003366;
  background: none;
  border: none;
  cursor: pointer;
}

/* Estilo dos grupos de itens */
.navbox .navbox-group {
  font-weight: bold;
  background-color: #f2f2f2;
  padding: 0.3em 0.6em;
  border-top: 1px solid #ddd;
  text-align: center;
}

/* Listas horizontais com separador personalizado */
.navbox .hlist li {
  display: inline;
}

.navbox .hlist li:not(:last-child)::after {
  content: " |";
  font-weight: bold;
  padding: 0 0.4em;
  color: #444;
}

/* Links */
.navbox a {
  text-decoration: none;
}

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

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


.tn-title-bar .mw-collapsible-toggle {
  margin-left: auto;
  font-size: 90%;
  font-weight: bold;
  color: #003366;
  background: none;
  border: none;
  cursor: pointer;
}