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 22: Line 22:


.card {
.card {
   flex: 0 0 250px;
   flex: 0 0 200px;
   background: var(--card-bg);
   background: var(--card-bg);
   color: var(--card-text);
   color: var(--card-text);
Line 41: Line 41:
.image-wrapper {
.image-wrapper {
   width: 100%;
   width: 100%;
   height: 200px;
   height: 160px;
   overflow: hidden;
   overflow: hidden;
   display: flex;
   display: flex;
Line 53: Line 53:
   max-width: 100%;
   max-width: 100%;
   object-fit: contain;
   object-fit: contain;
}
.card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
}


.card-content {
.card-content {
   padding: 0.8rem;
   padding: 0.7rem;
   display: flex;
   display: flex;
   flex-direction: column;
   flex-direction: column;
   gap: 0.5rem;
   gap: 0.4rem;
}
}


.card-title {
.card-title {
   font-weight: bold;
   font-weight: bold;
   font-size: 1.1rem;
   font-size: 1rem;
   color: var(--card-link);
   color: var(--card-link);
}
.card-title a {
  color: var(--card-link);
  text-decoration: none;
}
.card-title a:hover {
  text-decoration: underline;
}
}


.card-description {
.card-description {
   font-size: 0.9rem;
   font-size: 0.85rem;
   color: var(--card-text);
   color: var(--card-text);
   line-height: 1.4;
   line-height: 1.4;

Revision as of 20:47, 29 May 2025

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

html.skin-citizen-light {
  --card-bg: rgb(221, 229, 242);
  --card-text: #222222;
  --card-link: #007acc;
}

html.skin-citizen-dark {
  --card-bg: rgb(7, 10, 15);
  --card-text: #dddddd;
  --card-link: #66c0ff;
}

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

.card {
  flex: 0 0 200px;
  background: var(--card-bg);
  color: var(--card-text);
  border: 1px solid var(--card-border);
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  scroll-snap-align: start;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease-in-out;
}

.card:hover {
  transform: translateY(-5px);
}

.image-wrapper {
  width: 100%;
  height: 160px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #00000020;
}

.image-wrapper img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
}

.card-content {
  padding: 0.7rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.card-title {
  font-weight: bold;
  font-size: 1rem;
  color: var(--card-link);
}

.card-description {
  font-size: 0.85rem;
  color: var(--card-text);
  line-height: 1.4;
}

.no-display {
  display: none;
}