Jump to content

Template:Worldbox/styles.css: Difference between revisions

From Sun Keeperverse Wiki
Set corners to straight sharp, adjust border lines to be further from text edges
Padding between text and border lines
 
Line 3: Line 3:
.worldbox {
.worldbox {
   float: right;
   float: right;
   width: 340px;           /* sidebar width */
   width: 340px;
   max-width: 42%;
   max-width: 42%;
   margin: 0 0 12px 18px; /* space from body text */
   margin: 0 0 14px 20px;   /* a bit more gap from body text */
   border: 1px solid #c6b480;
   border: 1px solid #c6b480;
   background: #f8f5e9;
   background: #f8f5e9;
   color: #2b2414;
   color: #2b2414;
   border-radius: 0;       /* square corners */
   border-radius: 0;
   box-shadow: 0 1px 3px rgba(0,0,0,.08);
   box-shadow: 0 1px 3px rgba(0,0,0,.08);
  line-height: 1.55;      /* looser line height inside the box */
}
}


/* Inherit global link colors (blue + mossy hover + redlinks) */
.wb-wrap { padding: 16px 18px 12px 18px; }   /* more inner padding */
/* .worldbox a styles removed on purpose */
 
.wb-wrap { padding: 14px 16px 10px 16px; } /* extra breathing room */
.wb-media { text-align: center; }
.wb-media { text-align: center; }
.wb-cap { font-size: 80%; color: #7d6b38; text-align: center; margin-top: 4px; }
.wb-cap { font-size: 80%; color: #7d6b38; text-align: center; margin-top: 6px; }


.wb-title { font-size: 140%; font-weight: 700; color: #5b4a22; line-height: 1.25; }
.wb-title { font-size: 140%; font-weight: 700; color: #5b4a22; line-height: 1.3; }
.wb-tag  { font-size: 100%; color: #7d6b38; margin-top: 2px; }
.wb-tag  { font-size: 100%; color: #7d6b38; margin-top: 4px; }
.wb-fields { margin-top: 12px; border-top: 1px solid #e4d9b0; padding-top: 10px; }
.wb-fields { margin-top: 14px; border-top: 1px solid #e4d9b0; padding-top: 12px; }


/* Optional sticky sidebar */
/* Optional sticky sidebar */
.worldbox.sticky { position: sticky; top: 12px; }
.worldbox.sticky { position: sticky; top: 12px; }


/* Mobile / narrow screens: stop floating and go full-width */
/* Mobile */
@media (max-width: 900px) {
@media (max-width: 900px) {
   .worldbox {
   .worldbox { float: none; width: auto; max-width: 720px; margin: 10px auto; }
    float: none;
    width: auto;
    max-width: 720px;
    margin: 8px auto;
  }
}
}

Latest revision as of 07:31, 30 October 2025

/* Right-column infobox for Vector 2022; collapses on mobile */

.worldbox {
  float: right;
  width: 340px;
  max-width: 42%;
  margin: 0 0 14px 20px;   /* a bit more gap from body text */
  border: 1px solid #c6b480;
  background: #f8f5e9;
  color: #2b2414;
  border-radius: 0;
  box-shadow: 0 1px 3px rgba(0,0,0,.08);
  line-height: 1.55;       /* looser line height inside the box */
}

.wb-wrap { padding: 16px 18px 12px 18px; }   /* more inner padding */
.wb-media { text-align: center; }
.wb-cap { font-size: 80%; color: #7d6b38; text-align: center; margin-top: 6px; }

.wb-title { font-size: 140%; font-weight: 700; color: #5b4a22; line-height: 1.3; }
.wb-tag   { font-size: 100%; color: #7d6b38; margin-top: 4px; }
.wb-fields { margin-top: 14px; border-top: 1px solid #e4d9b0; padding-top: 12px; }

/* Optional sticky sidebar */
.worldbox.sticky { position: sticky; top: 12px; }

/* Mobile */
@media (max-width: 900px) {
  .worldbox { float: none; width: auto; max-width: 720px; margin: 10px auto; }
}