Difference between revisions of "MediaWiki:Mobile.css"

From Wiki Knowledge Base | Teltonika GPS
 
Line 9: Line 9:
 
         display: block;
 
         display: block;
 
         margin-top: 10px;
 
         margin-top: 10px;
 +
    }
 +
    table.main-table.w-100 td {
 +
        display: inline-block;
 +
        width: 49.5% !important;
 +
    }
 +
    table.main-table.w-100 table {
 +
        display: table;
 +
    }
 +
    table.main-table.w-100 table td {
 +
        display: block;
 +
        width: 100% !important;
 
     }
 
     }
 
     .main-table td:nth-child(2n){
 
     .main-table td:nth-child(2n){
Line 15: Line 26:
 
}
 
}
  
 +
@media screen and (max-width: 500px) {
 +
    table.main-table.w-100 td {
 +
        display: block;
 +
        width: 100% !important;
 +
    }
 +
}
  
 
.header .branding-box h1{
 
.header .branding-box h1{

Latest revision as of 15:31, 27 April 2020

/* CSS placed here will affect users of the mobile site */
@media screen and (max-width: 800px){
    table.main-table{
            width: 100% !important;
            display: table !important;
    }
    .main-table td{
        text-align: center;
        display: block;
        margin-top: 10px;
    }
    table.main-table.w-100 td {
        display: inline-block;
        width: 49.5% !important;
    }
    table.main-table.w-100 table {
        display: table;
    }
    table.main-table.w-100 table td {
        display: block;
        width: 100% !important;
    }
    .main-table td:nth-child(2n){
        margin-bottom: 20px;
    }
}

@media screen and (max-width: 500px) {
    table.main-table.w-100 td {
        display: block;
        width: 100% !important;
    }
}

.header .branding-box h1{
    display: none !important;
}
.logo{
    margin-top:2px;
}
.logo img{
    max-width: 140px
}