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 1: Line 1:
/* CSS placed here will be applied to all skins */
/* CSS placed here will be applied to all skins */


.carousel-container {
.card-carousel {
   display: flex;
   display: flex;
   overflow-x: auto;
   overflow-x: auto;
   gap: 1rem;
   gap: 1rem;
   padding: 1rem 0;
   padding: 1rem;
}
 
.card-carousel::-webkit-scrollbar {
  height: 6px;
}
.card-carousel::-webkit-scrollbar-thumb {
  background: #999;
  border-radius: 3px;
}
}
.card {
.card {
Line 17: Line 25:
   height: auto
   height: auto
}
}
.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: hidden;
  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 {
.image-wrapper img {
   max-width: 100%;
   max-width: 100%;
Line 22: Line 51:
   display: block;
   display: block;
}
}
.card-title {
 
  font-weight: bold;
  margin-top: 0.5rem;
}
.card-snippet {
  font-size: 0.9em;
  color: #444;
}
.no-display {
.no-display {
   display: none;
   display: none;
}
}

Revision as of 00:36, 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 {
  flex: 0 0 auto;
  width: 200px;
  border: 1px solid #ccc;
  border-radius: 8px;
  background: #f9f9f9;
  overflow: hidden;
  text-align: center;
  height: auto
}

.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: hidden;
  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;
}

.no-display {
  display: none;
}