MediaWiki:Common.css: Difference between revisions
Appearance
No edit summary |
No edit summary |
||
Line 41: | Line 41: | ||
text-align: left; | text-align: left; | ||
box-sizing: border-box; | box-sizing: border-box; | ||
box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1); | box-shadow: 0 3px 8px rgba(0,0,0,0.1); | ||
display: flex; | display: flex; | ||
flex-direction: column; | flex-direction: column; | ||
justify-content: | justify-content: flex-start; | ||
border: 1px solid #f0f0f0; | border: 1px solid #f0f0f0; | ||
transition: transform 0.2s ease, box-shadow 0.2s ease; | transition: transform 0.2s ease, box-shadow 0.2s ease; | ||
align-items: center; | |||
} | } | ||
Line 52: | Line 53: | ||
.middle-section .column:hover { | .middle-section .column:hover { | ||
transform: translateY(-3px); | transform: translateY(-3px); | ||
box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15); | box-shadow: 0 5px 15px rgba(0,0,0,0.15); | ||
background: #fafafa; | background: #fafafa; | ||
} | |||
/* Icon Styling */ | |||
.icon { | |||
font-size: 30px; | |||
text-align: center; | |||
margin-bottom: 5px; | |||
} | } | ||
/* Optimized Section Title */ | /* Optimized Section Title */ | ||
.section-title { | .section-title { | ||
font-size: 18px; | font-size: 18px; | ||
font-weight: bold; | font-weight: bold; | ||
color: # | color: #444; | ||
text-transform: uppercase; | text-transform: uppercase; | ||
text-align: center; | |||
letter-spacing: 0.5px; | letter-spacing: 0.5px; | ||
display: inline-block; | display: inline-block; | ||
margin-bottom: 10px; | |||
} | } | ||
/* | /* Section Content */ | ||
. | .section-content { | ||
text-align: left; | |||
width: 100%; | |||
} | } | ||
Revision as of 10:15, 20 March 2025
/* Main Container: Full Width */ .main-container { width: 100%; margin: 0; padding: 0; } /* HERO SECTION (Full-width, centered) */ .hero-section { width: 100%; padding: 40px 20px; background: linear-gradient(135deg, #ffefd5, #ffe4b5); text-align: center; border-bottom: 3px solid #ffcc80; border-radius: 5px; box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); } .hero-title { font-size: 28px; font-weight: bold; color: #333; margin-bottom: 10px; } /* Middle Section (Using CSS Grid) */ .middle-section { display: grid; grid-template-columns: 1fr; /* Default: 1 column on mobile */ gap: 20px; width: 100%; padding: 20px; box-sizing: border-box; } /* Ensure All Columns Have Equal Width */ .middle-section .column { width: 100%; padding: 20px; border-radius: 12px; background: #fff; text-align: left; box-sizing: border-box; box-shadow: 0 3px 8px rgba(0,0,0,0.1); display: flex; flex-direction: column; justify-content: flex-start; border: 1px solid #f0f0f0; transition: transform 0.2s ease, box-shadow 0.2s ease; align-items: center; } /* Hover effect */ .middle-section .column:hover { transform: translateY(-3px); box-shadow: 0 5px 15px rgba(0,0,0,0.15); background: #fafafa; } /* Icon Styling */ .icon { font-size: 30px; text-align: center; margin-bottom: 5px; } /* Optimized Section Title */ .section-title { font-size: 18px; font-weight: bold; color: #444; text-transform: uppercase; text-align: center; letter-spacing: 0.5px; display: inline-block; margin-bottom: 10px; } /* Section Content */ .section-content { text-align: left; width: 100%; } /* Footer Section */ .footer-section { width: 100%; padding: 20px; border-top: 2px solid #ddd; background: #f9f9f9; text-align: center; box-sizing: border-box; border-radius: 5px; } /* Responsive Design: Ensure Equal Width Columns */ @media screen and (min-width: 768px) { .middle-section { grid-template-columns: repeat(3, 1fr); } }