Jump to content

Template:MainPageBanner/styles.css: Difference between revisions

From nUSA Wiki
No edit summary
Tag: Reverted
No edit summary
Tag: Reverted
Line 32: Line 32:
     color: #6c757d;
     color: #6c757d;
     margin-top: 10px;
     margin-top: 10px;
}
/* Search Bar Styling */
#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;
}
}


Line 40: Line 76:
     gap: 20px;
     gap: 20px;
     margin-top: 20px;
     margin-top: 20px;
    flex-wrap: wrap;
}
}


/* General section styling */
/* General section styling */
.mp-section {
.mp-card {
     width: 48%;
     width: 48%;
     padding: 25px;
     padding: 25px;
Line 53: Line 90:
}
}


/* Card design for content */
.mp-card {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 600px;
}
/* Title styling inside the card */
.mp-card h2 {
.mp-card h2 {
     font-size: 2em;
     font-size: 1.8em;
     font-weight: 700;
     font-weight: 700;
     color: #343a40;
     color: #343a40;
Line 71: Line 97:
     text-transform: uppercase;
     text-transform: uppercase;
     letter-spacing: 1px;
     letter-spacing: 1px;
    padding-bottom: 10px;
    border-bottom: 3px solid #007bff; /* Blue border below title */
}
}


/* Text styling inside the card */
/* Styling for the text inside the sections */
.mp-card p {
.mp-card p {
     font-size: 1.1em;
     font-size: 1.1em;
Line 82: Line 106:
}
}


/* Hover effects for the cards */
/* Hover effects for the sections */
.mp-card:hover {
.mp-card:hover {
    box-shadow: 0px 6px 20px rgba(0, 0, 0, 0.1);
     transform: translateY(-5px);
     transform: translateY(-5px);
     transition: transform 0.3s ease, box-shadow 0.3s ease;
     box-shadow: 0px 6px 20px rgba(0, 0, 0, 0.15);
}
}


Line 92: Line 115:
#mp-leftsection {
#mp-leftsection {
     background-color: #f7f8fa;
     background-color: #f7f8fa;
     padding: 20px;
     border: 1px solid #e0e0e0;
     border-radius: 12px;
     border-radius: 10px;
    box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.1);
}
}


Line 100: Line 122:
#mp-rightsection {
#mp-rightsection {
     background-color: #f7f8fa;
     background-color: #f7f8fa;
     padding: 20px;
     border: 1px solid #e0e0e0;
     border-radius: 12px;
     border-radius: 10px;
    box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.1);
}
}


/* Hover effect for the sections */
/* Responsive Design */
#mp-leftsection:hover, #mp-rightsection:hover {
@media (max-width: 768px) {
    background-color: #f1f3f5;
    #mp-container {
    transform: translateY(-4px);
        flex-direction: column;
     transition: background-color 0.3s ease;
        align-items: center;
}
     }
 
    .mp-card {
/* Remove default borders */
        width: 90%;
#mp-leftsection, #mp-rightsection {
        margin-bottom: 20px;
    border: none;
    }
}
    #mp-searchbar {
 
        flex-direction: column;
/* Clean up the layout and make it more dynamic */
     }
#mp-container {
    #search-input {
    display: flex;
        width: 100%;
     justify-content: space-between;
        margin-bottom: 10px;
    gap: 30px;
    }
    margin-top: 20px;
}
}

Revision as of 20:00, 2 January 2025

/* General styles for sections */
#mp-topbanner {
    background-color: #f8f9fa;
    padding: 30px;
    border-radius: 10px;
    margin-bottom: 20px;
    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 {
    font-size: 1.2em;
    margin-top: 5px;
    color: #495057;
}

#articlecount {
    font-size: 1.1em;
    color: #6c757d;
    margin-top: 10px;
}

/* Search Bar Styling */
#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 {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-top: 20px;
    flex-wrap: wrap;
}

/* General section styling */
.mp-card {
    width: 48%;
    padding: 25px;
    border-radius: 12px;
    background-color: #ffffff;
    box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.1);
    box-sizing: border-box;
    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 {
    transform: translateY(-5px);
    box-shadow: 0px 6px 20px rgba(0, 0, 0, 0.15);
}

/* Styling for the "About the Wiki" section */
#mp-leftsection {
    background-color: #f7f8fa;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
}

/* Styling for the "Report Problems" section */
#mp-rightsection {
    background-color: #f7f8fa;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
}

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