Jump to content

Template:Infobox Player/styles.css: Difference between revisions

From VeraciaWiki
No edit summary
No edit summary
Line 1: Line 1:
.infobox {
.infobox {
    background: #eee;
  background: #eee;
    border: 1px solid #aaa;
  border: 1px solid #aaa;
    margin: 0 0 0.5em 0.5em;
  margin: 0 0 0.5em 0.5em;
    padding: 0; /* Remove padding as cells have padding */
  padding: 0.5em;
    width: 250px;
  width: auto; /* Removed fixed width */
  }
}
 
 
  .infobox th, .infobox td {
.infobox th, .infobox td {
    padding: 0.5em; /* Add padding to cells */
  padding: 0.25em; /* Added padding for table cells */
  }
}
 
 
  .infobox-title {
.infobox-title {
    font-size: 1.5em;
  font-size: 1.5em;
    text-align: center;
  font-weight: bold;
    font-weight: bold;
   text-align: center;
   }
}
 
 
  .infobox-race, .infobox-class {
.infobox-race-class {
    text-align: center;
  text-align: center;
  }
}
 
 
  .infobox-image {
.infobox-image {
    text-align: center;
   /* Removed since image is now inside a cell */
  }
}
 
 
  .infobox-image-quote {
.infobox-image-quote {
    text-align: center;
  font-style: italic;
    font-style: italic;
}
   }
 
 
/* No changes needed for .infobox-table th and .infobox-table td  */
  .infobox th.infobox-title {
    text-align: left; /* Title should be left-aligned */
  }
 
  .infobox tr.infobox-image-quote {
    /* Remove bottom border for image quote row */
    border-bottom: none;
  }
 
  .infobox tr.infobox-image {
    /* Add some space above the image */
    margin-top: 0.5em;
  }
 
  .infobox tr.infobox-title {
    /* Remove top border for title row */
    border-top: none;
  }

Revision as of 16:48, 4 April 2024

.infobox {
  background: #eee;
  border: 1px solid #aaa;
  margin: 0 0 0.5em 0.5em;
  padding: 0.5em;
  width: auto;  /* Removed fixed width */
}

.infobox th, .infobox td {
  padding: 0.25em;  /* Added padding for table cells */
}

.infobox-title {
  font-size: 1.5em;
  font-weight: bold;
  text-align: center;
}

.infobox-race-class {
  text-align: center;
}

.infobox-image {
  /* Removed since image is now inside a cell */
}

.infobox-image-quote {
  font-style: italic;
}

/* No changes needed for .infobox-table th and .infobox-table td  */