MediaWiki:LandingPage.css: Difference between revisions

From The Seven Sages of Rome
No edit summary
No edit summary
 
Line 1: Line 1:
/* =========================================
  1. Page Layout & Containers
  ========================================= */
/* Hide default header on Main Page */
.page-Main_Page .contentHeader {
.page-Main_Page .contentHeader {
display: none;
    display: none;
}
}


/* Hero Wrapper */
#hero-container {
#hero-container {
padding-bottom: 2rem;
    padding-bottom: 2rem;
padding-left: 0 !important;
    padding-left: 0 !important;
padding-right: 0 !important;
    padding-right: 0 !important;
}
}


.mix-blend-multiply {
/* Main Content Wrapper */
mix-blend-mode: multiply;
.content-container {
transition: opacity 0.5s ease;
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    padding: 20px;
}
}


.hero-section {
position: relative;
display: flex;
align-items: center;
justify-content: center;
overflow: hidden;
border-radius: 0.25rem;
box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
height: calc(100dvh - 150px);
width: 100%;
transition: transform 0.3s ease;
}


.hero-section:hover img {
/* =========================================
transform: scale(1.05);
  2. Hero Section (Structure & Imagery)
}
  ========================================= */


.hero-section:hover .mix-blend-multiply {
/* Main Hero Card */
opacity: 0.75;
.hero-section {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 0.25rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    height: calc(100dvh - 150px);
    width: 100%;
    transition: transform 0.3s ease;
}
}


/* Background Image styling */
.hero-section img {
.hero-section img {
transition: transform 0.3s ease;
    transition: transform 0.3s ease;
object-fit: cover;
    object-fit: cover;
object-position: center;
    object-position: center;
inset: 0;
    inset: 0;
position: absolute;
    position: absolute;
height: 100%;
    height: 100%;
width: 100%;
    width: 100%;
}
}


/* Dark Overlay */
.hero-overlay {
.hero-overlay {
position: absolute;
    position: absolute;
height: 100%;
    height: 100%;
width: 100%;
    width: 100%;
inset: 0;
    inset: 0;
background-color: black;
    background-color: black;
opacity: 0.7;
    opacity: 0.7;
}
}


.hero-text-container {
/* Blend Mode Utility */
position: relative;
.mix-blend-multiply {
display: flex;
    mix-blend-mode: multiply;
flex-direction: column;
    transition: opacity 0.5s ease;
align-items: center;
padding: 1rem;
}
}


.hero-title {
/* Hover Effects */
text-align: center;
.hero-section:hover img {
color: white;
    transform: scale(1.05);
font-weight: 600;
font-family: 'Prata', 'serif';
font-size: 3rem;
line-height: 1;
}
}


.hero-subtitle {
.hero-section:hover .mix-blend-multiply {
text-align: center;
    opacity: 0.75;
color: white;
font-size: 1.3rem;
line-height: 1;
max-width: 70%;
}
}


.caret {
 
position: absolute;
/* =========================================
bottom: 20px;
  3. Hero Typography
left: 50%;
  ========================================= */
transform: translateX(-50%);
 
font-size: 2rem;
.hero-text-container {
color: white;
    position: relative;
cursor: pointer;
    display: flex;
animation: bounce 2s infinite;
    flex-direction: column;
    align-items: center;
    padding: 1rem;
}
}


@keyframes bounce {
.hero-title {
0%,
    text-align: center;
20%,
    color: white;
50%,
    font-weight: 600;
80%,
    font-family: 'Prata', 'serif';
100% {
    font-size: 3rem;
transform: translateY(0) translateX(-50%);
    line-height: 1;
}
}


40% {
#hero-title-database {
transform: translateY(-10px) translateX(-50%);
    font-weight: 900;
}
}


60% {
.hero-subtitle {
transform: translateY(-5px) translateX(-50%);
    text-align: center;
}
    color: white;
    font-size: 1.3rem;
    line-height: 1;
    max-width: 70%;
}
}


/* Responsive Typography */
@media (max-width: 400px) {
@media (max-width: 400px) {
.hero-title {
    .hero-title {
font-size: 1.8rem;
        font-size: 1.8rem;
}
    }
    .hero-subtitle {
        font-size: 1rem;
    }
}


.hero-subtitle {
@media (min-width: 768px) {
font-size: 1rem;
    .hero-title {
}
        font-size: 4rem;
    }
    .hero-subtitle {
        font-size: 1.8rem;
    }
}
}


@media (min-width: 768px) {
.hero-title {
font-size: 4rem;
}


.hero-subtitle {
/* =========================================
font-size: 1.8rem;
  4. Hero Animations (Caret)
}
  ========================================= */
 
.caret {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 2rem;
    color: white;
    cursor: pointer;
    animation: bounce 2s infinite;
}
}


.content-container {
@keyframes bounce {
width: 100%;
    0%, 20%, 50%, 80%, 100% {
max-width: 1600px;
        transform: translateY(0) translateX(-50%);
margin: 0 auto;
    }
padding: 20px;
    40% {
        transform: translateY(-10px) translateX(-50%);
    }
    60% {
        transform: translateY(-5px) translateX(-50%);
    }
}
}


/* =========================================
  5. Content Components
  ========================================= */
/* Landing Page Row */
.landing-page-row {
.landing-page-row {
border-radius: 0.25rem;
    border-radius: 0.25rem;
background: oklch(0.374 0.01 67.558);
    background: oklch(0.374 0.01 67.558);
color: white;
    color: white;
padding: 1.5rem;
    padding: 1.5rem;
margin-bottom: 5rem;
    margin-bottom: 5rem;
}


ul {
.landing-page-row ul {
list-style: none;
    list-style: none;
text-align: left;
    text-align: left;
}
}
}


/* Image Utility */
.fit-img img {
.fit-img img {
border-radius: 0.25rem;
    border-radius: 0.25rem;
}
}


#hero-title-database {
font-weight: 900;
}


/* =========================================
  6. Decorative Elements
  ========================================= */
/* Fancy Underline (SVG) */
.fancy-underline {
.fancy-underline {
position: relative;
    position: relative;
}
}


.fancy-underline::after {
.fancy-underline::after {
  content: '';
    content: '';
  position: absolute;
    position: absolute;
  left: -5%;
    left: -5%;
  bottom: -1px;
    bottom: -1px;
  width: 110%;
    width: 110%;
  height: 12px;
    height: 12px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 8' fill='none'%3E%3Cpath d='M1 4C50 7 100 1 199 4' stroke='%234B96FF' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E");
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 8' fill='none'%3E%3Cpath d='M1 4C50 7 100 1 199 4' stroke='%234B96FF' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
    background-repeat: no-repeat;
  background-size: 100% 100%;
    background-size: 100% 100%;
}
}
/* =========================================
  7. Widgets (Tag/Word Cloud)
  ========================================= */


.srf-tagcloud-wordcloud {
.srf-tagcloud-wordcloud {
  display: flex;
    display: flex;
  justify-content: center;
    justify-content: center;
  align-items: center;
    align-items: center;
 
    width: 100%;
  width: 100%;
    height: auto;
  height: auto;
}
}
 
 
.srf-container {
.srf-container {
  max-width: 400px !important;
    max-width: 400px !important;
  width: 100% !important;
    width: 100% !important;
  overflow: hidden !important;
    overflow: hidden !important;
}
}


.srf-container svg {
.srf-container svg {
  transform: scale(1) !important;
    transform: scale(1) !important;
  transform-origin: top left !important;
    transform-origin: top left !important;
}
}


@media (max-width: 600px) {
@media (max-width: 600px) {
  .srf-container svg {
    .srf-container svg {
    transform: scale(0.65) !important;
        transform: scale(0.65) !important;
  }
    }
}
}

Latest revision as of 12:12, 23 January 2026

/* =========================================
   1. Page Layout & Containers
   ========================================= */

/* Hide default header on Main Page */
.page-Main_Page .contentHeader {
    display: none;
}

/* Hero Wrapper */
#hero-container {
    padding-bottom: 2rem;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* Main Content Wrapper */
.content-container {
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    padding: 20px;
}


/* =========================================
   2. Hero Section (Structure & Imagery)
   ========================================= */

/* Main Hero Card */
.hero-section {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 0.25rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    height: calc(100dvh - 150px);
    width: 100%;
    transition: transform 0.3s ease;
}

/* Background Image styling */
.hero-section img {
    transition: transform 0.3s ease;
    object-fit: cover;
    object-position: center;
    inset: 0;
    position: absolute;
    height: 100%;
    width: 100%;
}

/* Dark Overlay */
.hero-overlay {
    position: absolute;
    height: 100%;
    width: 100%;
    inset: 0;
    background-color: black;
    opacity: 0.7;
}

/* Blend Mode Utility */
.mix-blend-multiply {
    mix-blend-mode: multiply;
    transition: opacity 0.5s ease;
}

/* Hover Effects */
.hero-section:hover img {
    transform: scale(1.05);
}

.hero-section:hover .mix-blend-multiply {
    opacity: 0.75;
}


/* =========================================
   3. Hero Typography
   ========================================= */

.hero-text-container {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem;
}

.hero-title {
    text-align: center;
    color: white;
    font-weight: 600;
    font-family: 'Prata', 'serif';
    font-size: 3rem;
    line-height: 1;
}

#hero-title-database {
    font-weight: 900;
}

.hero-subtitle {
    text-align: center;
    color: white;
    font-size: 1.3rem;
    line-height: 1;
    max-width: 70%;
}

/* Responsive Typography */
@media (max-width: 400px) {
    .hero-title {
        font-size: 1.8rem;
    }
    .hero-subtitle {
        font-size: 1rem;
    }
}

@media (min-width: 768px) {
    .hero-title {
        font-size: 4rem;
    }
    .hero-subtitle {
        font-size: 1.8rem;
    }
}


/* =========================================
   4. Hero Animations (Caret)
   ========================================= */

.caret {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 2rem;
    color: white;
    cursor: pointer;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0) translateX(-50%);
    }
    40% {
        transform: translateY(-10px) translateX(-50%);
    }
    60% {
        transform: translateY(-5px) translateX(-50%);
    }
}


/* =========================================
   5. Content Components
   ========================================= */

/* Landing Page Row */
.landing-page-row {
    border-radius: 0.25rem;
    background: oklch(0.374 0.01 67.558);
    color: white;
    padding: 1.5rem;
    margin-bottom: 5rem;
}

.landing-page-row ul {
    list-style: none;
    text-align: left;
}

/* Image Utility */
.fit-img img {
    border-radius: 0.25rem;
}


/* =========================================
   6. Decorative Elements
   ========================================= */

/* Fancy Underline (SVG) */
.fancy-underline {
    position: relative;
}

.fancy-underline::after {
    content: '';
    position: absolute;
    left: -5%;
    bottom: -1px;
    width: 110%;
    height: 12px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 8' fill='none'%3E%3Cpath d='M1 4C50 7 100 1 199 4' stroke='%234B96FF' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: 100% 100%;
}


/* =========================================
   7. Widgets (Tag/Word Cloud)
   ========================================= */

.srf-tagcloud-wordcloud {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: auto;
}

.srf-container {
    max-width: 400px !important;
    width: 100% !important;
    overflow: hidden !important;
}

.srf-container svg {
    transform: scale(1) !important;
    transform-origin: top left !important;
}

@media (max-width: 600px) {
    .srf-container svg {
        transform: scale(0.65) !important;
    }
}