MediaWiki:Common.css: Difference between revisions

MediaWiki interface page
No edit summary
Tag: Reverted
No edit summary
 
(36 intermediate revisions by 2 users not shown)
Line 10: Line 10:
}
}


.mainpage-title, .mainpage-edit, .mainpage-others {
body.page-Main_Page div#siteSub { display: none !important; }
    display: none;
 
 
.main-page-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  padding: 20px;
}
 
.main-page-box {
  background-color: #191e29;
  color: #ffffff;
  padding: 10px;
  border-radius: 10px;
  margin: 10px;
  flex: 1 1 300px;
  text-align: left;
  box-sizing: border-box;
}
.Rarity.Standard {
color: #319dff;
}
 
.Rarity.Rare {
color: #955bff;
}
 
.Rarity.Ultimate {
color: #ffbb4d;
}
 
.Rarity.Transcendent {
color: #ff7c70;
}
}


.page-Main_Page .mainpage-title,
@media (max-width: 900px) {
.page-Main_Page .mainpage-edit,
  .box {
.page-Main_Page .mainpage-others {
     flex: 1 1 100%; /* Each box takes full width in smaller viewports */
     display: block;
  }
    position: absolute; /* or relative if preferred */
    bottom: 0;
}
}

Latest revision as of 02:26, 1 July 2024

/* CSS placed here will be applied to all skins */
.image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 10px;
}
.image-grid img {
    max-width: 100%;
    height: auto;
}

body.page-Main_Page div#siteSub { display: none !important; }


.main-page-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  padding: 20px;
}

.main-page-box {
  background-color: #191e29;
  color: #ffffff;
  padding: 10px;
  border-radius: 10px;
  margin: 10px;
  flex: 1 1 300px;
  text-align: left;
  box-sizing: border-box;
}
.Rarity.Standard {
	color: #319dff;
}

.Rarity.Rare {
	color: #955bff;
}

.Rarity.Ultimate {
	color: #ffbb4d;
}

.Rarity.Transcendent {
	color: #ff7c70;
}

@media (max-width: 900px) {
  .box {
    flex: 1 1 100%; /* Each box takes full width in smaller viewports */
  }
}