MediaWiki:Common.css: Difference between revisions

Jump to navigation Jump to search
no edit summary
No edit summary
No edit summary
Line 280: Line 280:
}
}
.card {
.card {
  width: calc(20% - 2px);
    position: relative; /* Ensure z-index works */
  box-sizing: border-box;
    width: calc(20% - 2px);
  border: 1px solid black;
    box-sizing: border-box;
  height: fit-content;
    border: 1px solid black;
  padding: 5px 7px 2px 7px;
    height: fit-content;
  margin-bottom: 30px;
    padding: 5px 7px 2px 7px;
  font-size: 12pt;
    margin-bottom: 30px;
  line-height: 25px;
    font-size: 12pt;
  letter-spacing: 0.4px;
    line-height: 25px;
  cursor: pointer;
    letter-spacing: 0.4px;
    cursor: pointer;
}
}


Line 884: Line 885:
}
}
#community-featured {
#community-featured {
     width: calc(20% - 2px);
    position: relative; /* Ensure z-index works */
    z-index: 2; /* Higher than .card elements */
     width: calc(20% + 2px); /* Slightly wider */
     box-sizing: border-box;
     box-sizing: border-box;
     height: fit-content;
     height: fit-content;
     margin-bottom: 30px;
     margin-bottom: 30px;
    margin-left: -1px; /* Adjust for overlap */
    margin-right: -1px; /* Adjust for overlap */
     font-size: 12pt;
     font-size: 12pt;
     line-height: 25px;
     line-height: 25px;
Line 893: Line 898:
     cursor: pointer;
     cursor: pointer;
}
}
.community-home-card {
.community-home-card {
background: black;
    background: black;
color: white;
    color: white;
padding: 10px;
    padding: 10px;
}
}

Navigation menu