Template:GameContent/NavTables.css: Difference between revisions

From Soul's Remnant Wiki
Jump to navigation Jump to search
m (New)
mNo edit summary
 
Line 1: Line 1:
/* Main container for all sections */
.content-container {
.content-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: 0;
     background-color: #f9f9f9;
     background-color: #f9f9f9;
    padding: 10px;
}
}


/* Each section/box */
.content-box {
.content-box {
     flex: 1 1 22%;
     flex: 1 1 22%;
Line 20: Line 16:
     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;
}
}


/* Tables inside each box */
.table {
.content-box table {
    width: 100%;
     border-spacing: 0;
     border-spacing: 0;
    width: 100%;
}
}


/* Table headers and cells */
.table th,
.content-box th,
.table td {
.content-box td {
     padding: 5px;
     padding: 5px;
     border-bottom: 1px solid #ccc;
     border-bottom: 1px solid #ccc;
}
.content-box th {
     text-align: left;
     text-align: left;
}
}


.content-box td:last-child {
.table th img,
    text-align: right;
.table td img {
}
 
/* Icons in headers and cells */
.content-box th img,
.content-box td img {
     width: 25px;
     width: 25px;
}
}


/* Larger padding for special links/images */
/* Mobile: stack boxes vertically */
.content-box .large-padding {
    padding: 10px;
}
 
/* Mobile layout: stack sections vertically */
@media screen and (max-width: 768px) {
@media screen and (max-width: 768px) {
     .content-container {
     .content-container {
         flex-direction: column;
         flex-direction: column;
     }
     }
     .content-box {
     .content-box {
         flex: 1 1 100%;
         flex: 1 1 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%;
    }
}