Template:Vertical thumbnail/styles.css

Revision as of 20:45, 4 January 2026 by Wikilah admin (talk | contribs) (Created page with "Base card style: .vertical-thumb { vertical-align: top; width: 150px; padding: 0 20px 20px 0; background: transparent !important; border: 0; box-sizing: border-box; display: inline-block; } Alignment Modifier Classes: .vertical-thumb--align-center { text-align: center; } .vertical-thumb--align-left { text-align: left; } .vertical-thumb--align-right { text-align: right; } .vertical-thumb__imgwrap { width: 100%; height: 130px; display:...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
/* Base card style */
.vertical-thumb {
  vertical-align: top;
  width: 150px;
  padding: 0 20px 20px 0; 
  background: transparent !important;
  border: 0;
  box-sizing: border-box;
  display: inline-block;
}

/* Alignment Modifier Classes */
.vertical-thumb--align-center { text-align: center; }
.vertical-thumb--align-left   { text-align: left; }
.vertical-thumb--align-right  { text-align: right; }

.vertical-thumb__imgwrap {
  width: 100%;
  height: 130px; 
  display: flex;
  align-items: center;
  justify-content: center; /* Centered image within the wrapper */
  overflow: hidden;
  margin-bottom: 8px;
}

.vertical-thumb__imgwrap img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
}

/* Unified Text Area */
.vertical-thumb__content {
  font-size: 0.85em;
  line-height: 1.2;
  color: #202122;
}

/* Styling the wikitext links within the content */
.vertical-thumb__content a {
  font-weight: bold;
  text-decoration: none;
  color: #0645ad; /* Standard MediaWiki link color */
}

.vertical-thumb__content a:hover {
  text-decoration: underline;
}