Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

MediaWiki:Common.css: Difference between revisions

MediaWiki interface page
No edit summary
No edit summary
Line 43: Line 43:


.card-description {
.card-description {
   font-size: 0.4em;
   font-size: 0.75em;
   color: #444;
   color: #444;
   margin-top: 0.5rem;
   margin-top: 0.5rem;
   text-align: center;
   text-align: center;
  padding: 0 0.5rem;
   white-space: normal;
   white-space: normal;
   overflow-wrap: break-word;
   overflow-wrap: break-word;
   word-wrap: break-word;
   word-break: break-word;
  padding: 0 0.5rem;
  max-width: 100%;
  box-sizing: border-box;


   /* These are likely causing the scroll — let's explicitly unset them */
   display: -webkit-box;
   height: auto;           /* Allow height to grow */
   -webkit-line-clamp: 5;
   overflow: visible;       /* Remove scrollbars */
   -webkit-box-orient: vertical;
   max-height: none;       /* Allow full expansion */
   overflow: hidden;
}
}



Revision as of 01:27, 25 May 2025

/* CSS placed here will be applied to all skins */

.card-carousel {
  display: flex;
  overflow-x: auto;
  gap: 1rem;
  padding: 1rem;
}

.card-carousel::-webkit-scrollbar {
  height: 6px;
}
.card-carousel::-webkit-scrollbar-thumb {
  background: #999;
  border-radius: 3px;
}

.card {
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem; /* or adjust spacing between elements */
  border: 1px solid #ccc;
  border-radius: 6px;
  overflow: visible;
  background-color: #fff;
  width: 200px; /* or your desired width */
}

.image-wrapper {
  padding: 0;
  margin: 0;
  line-height: 0; /* removes spacing from inline image rendering */
}

.image-wrapper img {
  max-width: 100%;
  height: auto;
  display: block;
}

.card-description {
  font-size: 0.75em;
  color: #444;
  margin-top: 0.5rem;
  text-align: center;
  padding: 0 0.5rem;
  white-space: normal;
  overflow-wrap: break-word;
  word-break: break-word;

  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.no-display {
  display: none;
}