MediaWiki:Common.css: Difference between revisions

From Arisepedia
No edit summary
Tag: Reverted
No edit summary
Tag: Manual revert
 
(15 intermediate revisions by the same user not shown)
Line 1: Line 1:
#ca-viewsource {
    display: none;
}
/* MediaWiki:Common.css */
/* MediaWiki:Common.css */
/* Main Page */
body {
    font-family: 'Arial', sans-serif;
    color: #333;
    background-color: #f9f9f9;
    margin: 0;
    padding: 0;
}
/* Hero Section */
.hero {
    background: #ffffff;
    color: #333;
    padding: 60px 20px;
    border-radius: 20px;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
    text-align: center;
    margin-bottom: 40px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.hero:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}
.hero h1 {
    font-size: 2.5em;
    font-weight: 700;
    margin: 0 0 20px 0;
    text-transform: uppercase;
    color: #333;
}
.hero p {
    font-size: 1.25em;
    margin: 20px 0;
    font-weight: 300;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: #333;
}
.contact-message {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 10px;
    padding: 15px;
    margin-top: 30px;
}
.contact-message p {
    font-size: 1.1em;
    margin: 0;
    font-style: italic;
    color: #333;
}


/* Featured Articles Section */
/* Featured Articles Section */
.featured-articles {
.featured-articles {
     background: var(--card-bg);
     background: #ffffff;
     border-radius: 15px;
     border-radius: 15px;
     box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
     box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
     padding: 20px;
     padding: 20px;
     margin-bottom: 40px;
     margin-bottom: 40px;
     overflow: hidden; /* Hide scrollbar by default */
     overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
 
.featured-articles:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}
}


.featured-articles h2 {
.featured-articles h2 {
     font-size: 2em;
     font-size: 2em;
     color: var(--heading-color);
     color: #333;
     border-bottom: 3px solid var(--card-border);
     border-bottom: 3px solid #e0e0e0;
     padding-bottom: 10px;
     padding-bottom: 10px;
     margin-bottom: 20px;
     margin-bottom: 20px;
Line 20: Line 87:
}
}


.article-grid {
.article-carousel {
     display: flex;
     display: flex;
    gap: 20px;
     overflow-x: auto;
     overflow-x: auto;
     padding-bottom: 20px; /* Space for scrollbar */
     scroll-snap-type: x mandatory;
     scroll-behavior: smooth; /* Smooth scrolling */
     scroll-behavior: smooth;
     -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
     -webkit-overflow-scrolling: touch;
    padding-bottom: 20px;
}
 
.article-carousel::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}
 
.article-carousel::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 10px;
}
 
.article-carousel::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}
}


.article-card {
.article-card {
     flex: 0 0 250px;
     flex: 0 0 300px;
     background: var(--card-bg);
     margin-right: 20px;
    scroll-snap-align: start;
    background: #ffffff;
     border-radius: 10px;
     border-radius: 10px;
    padding: 15px;
     box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
     box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
     overflow: hidden;
     display: flex;
    flex-direction: column;
     transition: transform 0.3s ease, box-shadow 0.3s ease;
     transition: transform 0.3s ease, box-shadow 0.3s ease;
     cursor: pointer;
     border: 1px solid #e0e0e0;
}
}


.article-card:hover {
.article-card:hover {
     transform: translateY(-5px);
     transform: translateY(-5px);
     box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
     box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}
}


Line 50: Line 132:
     height: 150px;
     height: 150px;
     object-fit: cover;
     object-fit: cover;
    border-radius: 10px;
    margin-bottom: 10px;
    transition: filter 0.3s ease;
}
.article-card:hover img {
    filter: brightness(1.1);
}
}


.article-card h3 {
.article-card h3 {
     font-size: 1.2em;
     font-size: 1.2em;
    margin-bottom: 10px;
     color: #333;
     color: var(--text-color);
     margin: 10px 15px;
     transition: color 0.3s ease;
}
 
.article-card:hover h3 {
    color: var(--link-color);
}
}


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


.read-more {
.article-card a {
     display: inline-block;
     display: inline-block;
     background: var(--link-color);
     background: #333;
     color: var(--hero-text);
     color: #ffffff;
     padding: 8px 15px;
     padding: 8px 15px;
     border-radius: 20px;
     border-radius: 20px;
Line 90: Line 156:
     font-size: 0.9em;
     font-size: 0.9em;
     font-weight: 600;
     font-weight: 600;
     transition: background 0.3s ease, transform 0.3s ease;
    margin: 0 15px 15px;
     align-self: flex-start;
     transition: background 0.3s, color 0.3s;
}
 
.article-card a:hover {
    background: #555;
}
 
/* 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;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
 
.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}
 
.card h2 {
    font-size: 2em;
    color: #333;
    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;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}
 
.cta:hover {
     transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    background-color: #ffffff;
}
 
.cta h2 {
    font-size: 2.2em;
    font-weight: 700;
    color: #333;
    margin: 0;
}
}


.read-more:hover {
.cta p {
     background: var(--link-hover);
     font-size: 1.2em;
     transform: scale(1.05);
     margin-top: 15px;
}
}


/* Scrollbar Styles */
.cta a {
.article-grid::-webkit-scrollbar {
    color: #333;
     height: 8px;
    font-weight: 600;
    text-decoration: underline;
     transition: color 0.3s;
}
}


.article-grid::-webkit-scrollbar-track {
.cta a:hover {
     background: var(--card-bg);
     color: #555;
    border-radius: 4px;
}
}


.article-grid::-webkit-scrollbar-thumb {
/* Footer */
     background: var(--link-color);
.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);
     transition: transform 0.3s ease, box-shadow 0.3s ease;
}
}


.article-grid::-webkit-scrollbar-thumb:hover {
.footer:hover {
     background: var(--link-hover);
     transform: translateY(-3px);
    box-shadow: 0 -5px 10px rgba(0, 0, 0, 0.15);
}
}


/* Show scrollbar on hover */
.footer p {
.featured-articles:hover .article-grid {
    margin: 0;
     overflow-x: auto;
    color: #777;
     font-size: 1.1em;
}
}


/* Animation for card appearance */
/* Media Queries */
@keyframes fadeInUp {
@media (max-width: 768px) {
     from {
     .hero h1 {
         opacity: 0;
         font-size: 2em;
        transform: translateY(20px);
     }
     }
     to {
     .hero p {
         opacity: 1;
         font-size: 1.1em;
         transform: translateY(0);
    }
    .contact-message p {
        font-size: 1em;
    }
    .featured-articles h2, .card h2, .cta h2 {
        font-size: 1.5em;
    }
    .article-card {
         flex: 0 0 250px;
    }
    .card p, .cta p {
        font-size: 1em;
     }
     }
}
}


.article-card {
@media (max-width: 480px) {
     animation: fadeInUp 0.5s ease-out forwards;
    .hero h1 {
     opacity: 0;
        font-size: 1.8em;
    }
    .hero p {
        font-size: 1em;
     }
    .contact-message p {
        font-size: 0.9em;
    }
    .featured-articles h2, .card h2, .cta h2 {
        font-size: 1.3em;
     }
    .article-card {
        flex: 0 0 200px;
    }
    .card p, .cta p {
        font-size: 0.9em;
    }
}
}
.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; }

Latest revision as of 20:07, 5 October 2024

#ca-viewsource {
    display: none;
}

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

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

.hero:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.hero h1 {
    font-size: 2.5em;
    font-weight: 700;
    margin: 0 0 20px 0;
    text-transform: uppercase;
    color: #333;
}

.hero p {
    font-size: 1.25em;
    margin: 20px 0;
    font-weight: 300;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: #333;
}

.contact-message {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 10px;
    padding: 15px;
    margin-top: 30px;
}

.contact-message p {
    font-size: 1.1em;
    margin: 0;
    font-style: italic;
    color: #333;
}

/* Featured Articles Section */
.featured-articles {
    background: #ffffff;
    border-radius: 15px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
    padding: 20px;
    margin-bottom: 40px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.featured-articles:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

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

.article-carousel {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 20px;
}

.article-carousel::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

.article-carousel::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 10px;
}

.article-carousel::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.article-card {
    flex: 0 0 300px;
    margin-right: 20px;
    scroll-snap-align: start;
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #e0e0e0;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.article-card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.article-card h3 {
    font-size: 1.2em;
    color: #333;
    margin: 10px 15px;
}

.article-card p {
    font-size: 0.9em;
    color: #555;
    margin: 0 15px 15px;
    line-height: 1.4;
}

.article-card a {
    display: inline-block;
    background: #333;
    color: #ffffff;
    padding: 8px 15px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.9em;
    font-weight: 600;
    margin: 0 15px 15px;
    transition: background 0.3s, color 0.3s;
}

.article-card a:hover {
    background: #555;
}

/* 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;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.card h2 {
    font-size: 2em;
    color: #333;
    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;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}

.cta:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    background-color: #ffffff;
}

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

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

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

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

/* 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);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.footer:hover {
    transform: translateY(-3px);
    box-shadow: 0 -5px 10px rgba(0, 0, 0, 0.15);
}

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

/* Media Queries */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2em;
    }
    .hero p {
        font-size: 1.1em;
    }
    .contact-message p {
        font-size: 1em;
    }
    .featured-articles h2, .card h2, .cta h2 {
        font-size: 1.5em;
    }
    .article-card {
        flex: 0 0 250px;
    }
    .card p, .cta p {
        font-size: 1em;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.8em;
    }
    .hero p {
        font-size: 1em;
    }
    .contact-message p {
        font-size: 0.9em;
    }
    .featured-articles h2, .card h2, .cta h2 {
        font-size: 1.3em;
    }
    .article-card {
        flex: 0 0 200px;
    }
    .card p, .cta p {
        font-size: 0.9em;
    }
}