Jump to content

Template:MainPageBanner/styles.css: Difference between revisions

From nUSA Wiki
No edit summary
Tag: Reverted
No edit summary
Tag: Reverted
Line 1: Line 1:
/* General styles for sections */
/* Top Banner Styles */
#mp-topbanner {
#mp-topbanner {
     background-color: #f8f9fa;
     background-color: #3a3f47;
     padding: 30px;
     color: white;
     border-radius: 10px;
     padding: 20px;
    margin-bottom: 20px;
     text-align: center;
     text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
#mp-welcomecount {
    font-size: 1.2em;
    color: #333;
    font-weight: bold;
}
#mp-welcome h1 {
    font-size: 3em;
    font-weight: bold;
    color: #343a40;
    margin: 10px 0;
}
}


#mp-free {
#mp-topbanner h1 {
     font-size: 1.2em;
     font-size: 36px;
     margin-top: 5px;
     margin: 0;
    color: #495057;
}
}


#articlecount {
#mp-free, #articlecount {
     font-size: 1.1em;
     font-size: 18px;
    color: #6c757d;
     margin: 5px 0;
     margin-top: 10px;
}
}


/* Search Bar Styling */
/* Main Container */
#mp-searchbar {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 10px;
}
 
#search-input {
    padding: 10px;
    font-size: 1.1em;
    width: 300px;
    border: 1px solid #ccc;
    border-radius: 25px;
    outline: none;
    transition: 0.3s ease;
}
 
#search-input:focus {
    border-color: #007bff;
}
 
#search-btn {
    background-color: #007bff;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: 0.3s ease;
}
 
#search-btn:hover {
    background-color: #0056b3;
}
 
/* Main container for the left and right sections */
#mp-container {
#mp-container {
     display: flex;
     display: flex;
     justify-content: space-between;
     justify-content: space-between;
    padding: 20px;
     gap: 20px;
     gap: 20px;
    margin-top: 20px;
    flex-wrap: wrap;
}
}


/* General section styling */
.mp-card {
.mp-card {
     width: 48%;
     background-color: #f9f9f9;
    padding: 25px;
     border-radius: 10px;
     border-radius: 12px;
     padding: 20px;
     background-color: #ffffff;
     box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
     box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.1);
     flex: 1;
     box-sizing: border-box;
     transition: all 0.3s ease;
     transition: all 0.3s ease;
}
}


.mp-card h2 {
    font-size: 1.8em;
    font-weight: 700;
    color: #343a40;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}
/* Styling for the text inside the sections */
.mp-card p {
    font-size: 1.1em;
    color: #495057;
    line-height: 1.6;
}
/* Hover effects for the sections */
.mp-card:hover {
.mp-card:hover {
    transform: translateY(-5px);
     box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
     box-shadow: 0px 6px 20px rgba(0, 0, 0, 0.15);
}
}


/* Styling for the "About the Wiki" section */
.section-header h2 {
#mp-leftsection {
     font-size: 22px;
     background-color: #f7f8fa;
     color: #333;
     border: 1px solid #e0e0e0;
     margin: 0;
     border-radius: 10px;
     padding-bottom: 10px;
}
     border-bottom: 2px solid #eee;
 
     font-weight: bold;
/* Styling for the "Report Problems" section */
#mp-rightsection {
     background-color: #f7f8fa;
     border: 1px solid #e0e0e0;
     border-radius: 10px;
}
}


/* Responsive Design */
/* Responsive Adjustments */
@media (max-width: 768px) {
@media (max-width: 768px) {
     #mp-container {
     #mp-container {
         flex-direction: column;
         flex-direction: column;
        align-items: center;
     }
     }
   
     .mp-card {
     .mp-card {
        width: 90%;
         margin-bottom: 20px;
         margin-bottom: 20px;
    }
    #mp-searchbar {
        flex-direction: column;
    }
    #search-input {
        width: 100%;
        margin-bottom: 10px;
     }
     }
}
}

Revision as of 20:04, 2 January 2025

/* Top Banner Styles */
#mp-topbanner {
    background-color: #3a3f47;
    color: white;
    padding: 20px;
    text-align: center;
}

#mp-topbanner h1 {
    font-size: 36px;
    margin: 0;
}

#mp-free, #articlecount {
    font-size: 18px;
    margin: 5px 0;
}

/* Main Container */
#mp-container {
    display: flex;
    justify-content: space-between;
    padding: 20px;
    gap: 20px;
}

.mp-card {
    background-color: #f9f9f9;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    flex: 1;
    transition: all 0.3s ease;
}

.mp-card:hover {
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.section-header h2 {
    font-size: 22px;
    color: #333;
    margin: 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #eee;
    font-weight: bold;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    #mp-container {
        flex-direction: column;
    }
    
    .mp-card {
        margin-bottom: 20px;
    }
}