MediaWiki:Common.css: Difference between revisions

From Arisepedia
No edit summary
Tag: Reverted
No edit summary
Tag: Manual revert
Line 1: Line 1:
/* MediaWiki:Common.css */
/* MediaWiki:Common.css */
/* Main Page*/
body {
    font-family: 'Arial', sans-serif;
    color: #333;
    background-color: #f9f9f9;
    margin: 0;
    padding: 0;
}


/* Featured Articles Section */
/* Hero Section */
.featured-articles {
.hero {
     background: var(--card-bg);
     background: #fc5351;
     border-radius: 15px;
    color: #ffffff;
     box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
    padding: 60px 20px;
     padding: 20px;
     border-radius: 20px;
     box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
     text-align: center;
     margin-bottom: 40px;
     margin-bottom: 40px;
    overflow: hidden; /* Hide scrollbar by default */
}
}


.featured-articles h2 {
.hero h1 {
     font-size: 2em;
     font-size: 2.5em;
    color: var(--heading-color);
    border-bottom: 3px solid var(--card-border);
    padding-bottom: 10px;
    margin-bottom: 20px;
     font-weight: 700;
     font-weight: 700;
    margin: 0;
}
}


.article-grid {
.hero p {
     display: flex;
     font-size: 1.25em;
    gap: 20px;
     margin: 20px 0;
    overflow-x: auto;
     font-weight: 300;
     padding-bottom: 20px; /* Space for scrollbar */
     scroll-behavior: smooth; /* Smooth scrolling */
    -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
}
}


.article-card {
.hero a {
     flex: 0 0 250px;
     display: inline-block;
     background: var(--card-bg);
     background: #ffffff;
     border-radius: 10px;
    color: #fc5351;
     padding: 15px;
    padding: 15px 30px;
     box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
     border-radius: 30px;
     display: flex;
     text-decoration: none;
     flex-direction: column;
     font-size: 1.2em;
     transition: transform 0.3s ease, box-shadow 0.3s ease;
     font-weight: 600;
     cursor: pointer;
     margin-top: 20px;
     transition: background 0.3s, color 0.3s;
     border: 2px solid #fc5351;
}
}


.article-card:hover {
.hero a:hover {
     transform: translateY(-5px);
     background: #fc5351;
     box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
     color: #ffffff;
}
}


.article-card img {
/* Info Cards */
     width: 100%;
.card {
     height: 150px;
     background: #ffffff;
     object-fit: cover;
     border-radius: 15px;
     border-radius: 10px;
     box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
     margin-bottom: 10px;
    padding: 20px;
    transition: filter 0.3s ease;
     border: 1px solid #e0e0e0;
     margin-bottom: 20px;
}
}


.article-card:hover img {
.card h2 {
     filter: brightness(1.1);
    font-size: 2em;
    color: #6c0cec;
    border-bottom: 3px solid #e0e0e0;
    padding-bottom: 10px;
    margin-bottom: 20px;
     font-weight: 700;
}
}


.article-card h3 {
.card p {
     font-size: 1.2em;
     font-size: 1.2em;
     margin-bottom: 10px;
     color: #555;
     color: var(--text-color);
     line-height: 1.6;
    transition: color 0.3s ease;
}
}


.article-card:hover h3 {
/* CTA Section */
     color: var(--link-color);
.cta {
    background: #f4f4f4;
    color: #333;
    padding: 40px;
    border-radius: 15px;
     box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
    text-align: center;
    margin-top: 40px;
}
}


.article-card p {
.cta h2 {
    flex-grow: 1;
     font-size: 2.2em;
     font-size: 0.9em;
     font-weight: 700;
     line-height: 1.4;
     color: #fc5351;
     margin-bottom: 10px;
     margin: 0;
     overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}
}


.read-more {
.cta p {
    display: inline-block;
     font-size: 1.2em;
    background: var(--link-color);
     margin-top: 15px;
    color: var(--hero-text);
    padding: 8px 15px;
    border-radius: 20px;
    text-decoration: none;
     font-size: 0.9em;
     font-weight: 600;
    transition: background 0.3s ease, transform 0.3s ease;
    align-self: flex-start;
}
}


.read-more:hover {
.cta a {
     background: var(--link-hover);
     color: #fc5351;
     transform: scale(1.05);
    font-weight: 600;
    text-decoration: underline;
     transition: color 0.3s;
}
}


/* Scrollbar Styles */
.cta a:hover {
.article-grid::-webkit-scrollbar {
     color: #b03a30;
     height: 8px;
}
}


.article-grid::-webkit-scrollbar-track {
/* Footer */
     background: var(--card-bg);
.footer {
     border-radius: 4px;
    text-align: center;
    padding: 20px;
     background: #ffffff;
    border-top: 1px solid #ddd;
    margin-top: 40px;
     box-shadow: 0 -2px 4px rgba(0, 0, 0, 0.1);
}
}


.article-grid::-webkit-scrollbar-thumb {
.footer p {
     background: var(--link-color);
     margin: 0;
     border-radius: 4px;
    color: #777;
     font-size: 1.1em;
}
}


.article-grid::-webkit-scrollbar-thumb:hover {
/* Media Queries */
     background: var(--link-hover);
@media (max-width: 768px) {
    .hero h1 {
        font-size: 1.8em;
    }
    .hero p {
        font-size: 1em;
    }
    .hero a {
        font-size: 1em;
        padding: 10px 20px;
    }
    .card h2 {
        font-size: 1.5em;
    }
    .card p {
        font-size: 1em;
    }
    .cta h2 {
        font-size: 1.8em;
     }
    .cta p {
        font-size: 1em;
    }
}
}


/* Show scrollbar on hover */
@media (max-width: 480px) {
.featured-articles:hover .article-grid {
    .hero h1 {
    overflow-x: auto;
        font-size: 1.5em;
}
    }
 
    .hero p {
/* Animation for card appearance */
        font-size: 0.9em;
@keyframes fadeInUp {
    }
     from {
    .hero a {
         opacity: 0;
        font-size: 0.9em;
         transform: translateY(20px);
        padding: 8px 15px;
    }
    .card h2 {
        font-size: 1.3em;
    }
     .card p {
         font-size: 0.9em;
    }
    .cta h2 {
         font-size: 1.5em;
     }
     }
     to {
     .cta p {
         opacity: 1;
         font-size: 0.9em;
        transform: translateY(0);
     }
     }
}
}


.article-card {
#ca-viewsource {
     animation: fadeInUp 0.5s ease-out forwards;
     display: none;
    opacity: 0;
}
}
.article-card:nth-child(1) { animation-delay: 0.1s; }
.article-card:nth-child(2) { animation-delay: 0.2s; }
.article-card:nth-child(3) { animation-delay: 0.3s; }
.article-card:nth-child(4) { animation-delay: 0.4s; }

Revision as of 18:44, 5 October 2024

/* MediaWiki:Common.css */
/* Main Page*/
body {
    font-family: 'Arial', sans-serif;
    color: #333;
    background-color: #f9f9f9;
    margin: 0;
    padding: 0;
}

/* Hero Section */
.hero {
    background: #fc5351;
    color: #ffffff;
    padding: 60px 20px;
    border-radius: 20px;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
    text-align: center;
    margin-bottom: 40px;
}

.hero h1 {
    font-size: 2.5em;
    font-weight: 700;
    margin: 0;
}

.hero p {
    font-size: 1.25em;
    margin: 20px 0;
    font-weight: 300;
}

.hero a {
    display: inline-block;
    background: #ffffff;
    color: #fc5351;
    padding: 15px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-size: 1.2em;
    font-weight: 600;
    margin-top: 20px;
    transition: background 0.3s, color 0.3s;
    border: 2px solid #fc5351;
}

.hero a:hover {
    background: #fc5351;
    color: #ffffff;
}

/* Info Cards */
.card {
    background: #ffffff;
    border-radius: 15px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
    padding: 20px;
    border: 1px solid #e0e0e0;
    margin-bottom: 20px;
}

.card h2 {
    font-size: 2em;
    color: #6c0cec;
    border-bottom: 3px solid #e0e0e0;
    padding-bottom: 10px;
    margin-bottom: 20px;
    font-weight: 700;
}

.card p {
    font-size: 1.2em;
    color: #555;
    line-height: 1.6;
}

/* CTA Section */
.cta {
    background: #f4f4f4;
    color: #333;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
    text-align: center;
    margin-top: 40px;
}

.cta h2 {
    font-size: 2.2em;
    font-weight: 700;
    color: #fc5351;
    margin: 0;
}

.cta p {
    font-size: 1.2em;
    margin-top: 15px;
}

.cta a {
    color: #fc5351;
    font-weight: 600;
    text-decoration: underline;
    transition: color 0.3s;
}

.cta a:hover {
    color: #b03a30;
}

/* Footer */
.footer {
    text-align: center;
    padding: 20px;
    background: #ffffff;
    border-top: 1px solid #ddd;
    margin-top: 40px;
    box-shadow: 0 -2px 4px rgba(0, 0, 0, 0.1);
}

.footer p {
    margin: 0;
    color: #777;
    font-size: 1.1em;
}

/* Media Queries */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 1.8em;
    }
    .hero p {
        font-size: 1em;
    }
    .hero a {
        font-size: 1em;
        padding: 10px 20px;
    }
    .card h2 {
        font-size: 1.5em;
    }
    .card p {
        font-size: 1em;
    }
    .cta h2 {
        font-size: 1.8em;
    }
    .cta p {
        font-size: 1em;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.5em;
    }
    .hero p {
        font-size: 0.9em;
    }
    .hero a {
        font-size: 0.9em;
        padding: 8px 15px;
    }
    .card h2 {
        font-size: 1.3em;
    }
    .card p {
        font-size: 0.9em;
    }
    .cta h2 {
        font-size: 1.5em;
    }
    .cta p {
        font-size: 0.9em;
    }
}

#ca-viewsource {
    display: none;
}