Welcome to Wars Wiki!
Welcome to Wars Wiki. Please log in or create an account to make changes.

Template:Nav/styles.css: Difference between revisions

From Wars Wiki
Jump to navigationJump to search
m (fix margin)
(Updated nav styling to match infobox)
Line 1: Line 1:
/* Wars Wiki navbox styling */
.t_nav {
.t_nav {
clear: both;
  clear: both;
border: 1px solid #88a;
  background: #FFF;
border-collapse: collapse;
  border: 3px solid #88a;
box-shadow: 0px 0px 5px 5px rgba(136, 136, 170, 0.8);
  margin: 1em auto;
margin: 2em auto;
  max-width: 800px;
max-width: 800px;
  text-align: center;
text-align: center;
}
}
.t_nav .t_nav_title {
.t_nav .t_nav_title {
background-color: #ccccff;
  background-color: #ccccff;
font-weight: bold;
  font-weight: bold;
padding: 0.75em 0 .5em 0;
  padding: .4em;
}
}
.t_nav tr {
.t_nav tr {
border: 1px solid #fff;
  border: 2px solid #fff;
}
}
.t_nav td {
.t_nav td {
background-color: #e6e6ff;
  background-color: #e6e6ff;
padding: 0.5em 1em;
  padding: .4em;
}
}
.t_nav td.t_nav_header {
.t_nav td.t_nav_header {
background-color: #ddddff;
  background-color: #ddddff;
}
}


.t_nav ul > li {
/* there should be global hlist styling instead */
display: inline;
.t_nav ul {
white-space: nowrap;
  margin: 2px;
}
}
 
.t_nav ul>li {
.t_nav ul > li:before {
  display: inline;
content: "\00B7\0020";
  white-space: nowrap;
font-weight: bold;
}
.t_nav ul>li:before {
  content: "· ";
  font-weight: bold;
}
}
 
.t_nav ul>li:first-child:before {
.t_nav ul > li:first-child:before {
  content: "";
content: "";
}
}

Revision as of 16:16, 11 December 2023

/* Wars Wiki navbox styling */
.t_nav {
  clear: both;
  background: #FFF;
  border: 3px solid #88a;
  margin: 1em auto;
  max-width: 800px;
  text-align: center;
}
.t_nav .t_nav_title {
  background-color: #ccccff;
  font-weight: bold;
  padding: .4em;
}
.t_nav tr {
  border: 2px solid #fff;
}
.t_nav td {
  background-color: #e6e6ff;
  padding: .4em;
}
.t_nav td.t_nav_header {
  background-color: #ddddff;
}

/* there should be global hlist styling instead */
.t_nav ul {
  margin: 2px;
}
.t_nav ul>li {
  display: inline;
  white-space: nowrap;
}
.t_nav ul>li:before {
  content: "· ";
  font-weight: bold;
}
.t_nav ul>li:first-child:before {
  content: "";
}