Difference between revisions of "MediaWiki:Common.css"

From FOnline 3 wiki
Jump to navigation Jump to search
(Undo revision 8231 by Boom2 (talk))
(Tag: Undo)
Line 5: Line 5:
 
   display: flex;
 
   display: flex;
 
   flex-wrap: wrap;
 
   flex-wrap: wrap;
   gap: 20px;
+
   justify-content: center;
   justify-content: left;
+
   gap: 10px;
 
}
 
}
.perk-grid .perk {
+
 
   box-sizing: border-box;
+
.perk {
   text-align: left;
+
   flex: 1 1 calc(33.333% - 10px);
   flex: 1 1 380px;      /* Minimum width before wrapping */
+
   max-width: calc(33.333% - 10px);
  max-width: 440px;     /* Prevent too-wide blocks */
+
   text-align: center;
 
}
 
}
.perk-grid .perk table {
+
 
  margin-left: auto;
+
@media screen and (max-width: 800px) {
  margin-right: auto;
+
   .perk {
}
+
     flex: 1 1 100%;
@media (min-width: 12800px) {
+
     max-width: 100%;
   .perk-grid .perk {
 
     flex: 1 1 calc(33.333% - 12px); /* 3 per row on big screens */
 
     max-width: none;
 
 
   }
 
   }
 
}
 
}

Revision as of 17:54, 12 August 2025

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


.perk-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.perk {
  flex: 1 1 calc(33.333% - 10px);
  max-width: calc(33.333% - 10px);
  text-align: center;
}

@media screen and (max-width: 800px) {
  .perk {
    flex: 1 1 100%;
    max-width: 100%;
  }
}