Template:GameContent/NavTables.css: Difference between revisions

(Test)
 
mNo edit summary
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
 
.content-container {
__CONTENTMODEL__ Sanitized CSS
/* Main container */
.container {
     display: flex;
     display: flex;
     flex-wrap: wrap;
     flex-wrap: wrap;
     gap: 10px;
     gap: 10px;
    padding: 10px;
     border: 1px solid #ccc;
     border: 1px solid #ccc;
     border-radius: 10px;
     border-radius: 10px;
    margin: 0px;
     background-color: #f9f9f9;
     background-color: #f9f9f9;
    padding: 10px;
}
}


/* Each table container */
.content-box {
.table-container {
     flex: 1 1 22%;
     flex: 1 1 22%;
    min-width: 200px;
     padding: 5px;
     padding: 5px;
    min-width: 200px;
     border: 1px solid #ccc;
     border: 1px solid #ccc;
     border-radius: 10px;
     border-radius: 10px;
     background-color: #f9f9f9;
     background-color: #f9f9f9;
    box-sizing: border-box;
}
/* Make tables responsive inside boxes */
.table-wrapper {
    overflow-x: auto;
}
}


/* Table styling */
.table {
.table {
    width: 100%;
     border-spacing: 0;
     border-spacing: 0;
    width: 100%;
}
}


/* Table header */
.table th,
.table th {
    border-bottom: 1px solid;
    text-align: left;
    padding: 5px;
}
 
/* Table cell */
.table td {
.table td {
     padding: 5px;
     padding: 5px;
    border-bottom: 1px solid #ccc;
    text-align: left;
}
}


/* Table header icons */
.table th img,
.table th img {
.table td img {
    width: 25px;
}
 
/* Specific padding adjustments for elements */
.table .table-header img {
     width: 25px;
     width: 25px;
}
}


.table .item-icon img {
/* Mobile: stack boxes vertically */
    width: 25px;
}
 
/* Larger padding for specific links or images */
.table .large-padding {
    padding: 10px;
}
 
/* Desktop/tablet default */
.navtables-container {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  border: 1px solid #ccc;
  border-radius: 10px;
  background-color: #f9f9f9;
  padding: 10px;
}
 
/* Each box */
.navtables-section {
  flex: 1 1 22%;
  min-width: 200px;
  padding: 5px;
  border: 1px solid #ccc;
  border-radius: 10px;
  background-color: #f9f9f9;
}
 
/* Mobile layout */
@media screen and (max-width: 768px) {
@media screen and (max-width: 768px) {
  .navtables-container {
    .content-container {
    flex-direction: column;
        flex-direction: column;
  }
    }


  .navtables-section {
    .content-box {
    flex: 1 1 100%;
        flex: 1 1 100%;
    width: 100%;
        width: 100%;
  }
    }
}
}

Latest revision as of 06:36, 13 October 2025

.content-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 10px;
    background-color: #f9f9f9;
}

.content-box {
    flex: 1 1 22%;
    min-width: 200px;
    padding: 5px;
    border: 1px solid #ccc;
    border-radius: 10px;
    background-color: #f9f9f9;
    box-sizing: border-box;
}

/* Make tables responsive inside boxes */
.table-wrapper {
    overflow-x: auto;
}

.table {
    width: 100%;
    border-spacing: 0;
}

.table th,
.table td {
    padding: 5px;
    border-bottom: 1px solid #ccc;
    text-align: left;
}

.table th img,
.table td img {
    width: 25px;
}

/* Mobile: stack boxes vertically */
@media screen and (max-width: 768px) {
    .content-container {
        flex-direction: column;
    }

    .content-box {
        flex: 1 1 100%;
        width: 100%;
    }
}