Template:Main Page/styles.css: Difference between revisions
Appearance
EkramHossen (talk | contribs) No edit summary |
EkramHossen (talk | contribs) No edit summary |
||
Line 160: | Line 160: | ||
.feature- | /* Wrapper for all 4 sections */ | ||
border: | .all-feature-sections { | ||
background-color: # | border: 2px solid #a2a9b1; | ||
margin-bottom: | background-color: #fefefe; | ||
padding: 20px; | |||
margin-bottom: 30px; | |||
border-radius: 8px; | |||
} | } | ||
/* Each section header */ | |||
.feature-box-title { | .feature-box-title { | ||
background-color: # | background-color: #e2f3f5; /* Light teal for clean feel */ | ||
border: | border-left: 6px solid #36c; /* Blue bar like Wikipedia */ | ||
padding: 8px 12px; | padding: 8px 12px; | ||
font-weight: bold; | font-weight: bold; | ||
font-family: sans-serif; | font-family: sans-serif; | ||
font-size: 17px; | font-size: 17px; | ||
margin | margin: 25px 0 12px; | ||
color: #202122; | |||
} | } | ||
/* Grid layout for profiles */ | |||
.feature-grid { | .feature-grid { | ||
display: flex; | display: flex; | ||
flex-wrap: wrap; | flex-wrap: wrap; | ||
gap: | gap: 15px; | ||
justify-content: space-between; | justify-content: space-between; | ||
} | } | ||
/* Individual profile box */ | |||
.feature-item { | .feature-item { | ||
width: 19%; | width: 19%; | ||
background-color: # | background-color: #f4f8fb; /* Light background */ | ||
border: 1px solid # | border: 1px solid #ccd6dd; | ||
padding: 10px; | padding: 10px; | ||
box-sizing: border-box; | box-sizing: border-box; | ||
Line 193: | Line 199: | ||
font-size: 13px; | font-size: 13px; | ||
font-family: sans-serif; | font-family: sans-serif; | ||
border-radius: | border-radius: 6px; | ||
box-shadow: 0 2px 4px rgba(0,0,0,0.05); | |||
transition: transform 0.2s ease; | |||
} | |||
.feature-item:hover { | |||
transform: translateY(-3px); | |||
} | } | ||
/* Image */ | |||
.feature-item img { | .feature-item img { | ||
width: 100%; | width: 100%; | ||
height: auto; | height: auto; | ||
max-height: | max-height: 130px; | ||
object-fit: cover; | object-fit: cover; | ||
border-radius: 4px; | border-radius: 4px; | ||
margin-bottom: 8px; | |||
} | } | ||
/* Name */ | |||
.feature-name { | .feature-name { | ||
font-weight: bold; | font-weight: bold; | ||
margin: 4px | margin-bottom: 4px; | ||
font-size: 14px; | font-size: 14px; | ||
color: #202122; | |||
} | } | ||
/* Description */ | |||
.feature-desc { | .feature-desc { | ||
font-size: 12px; | font-size: 12px; | ||
color: # | color: #54595d; | ||
} | } |
Revision as of 03:02, 28 July 2025
/* Welcome box */ .fp-welcome-box { background-color: #1f2937; padding: 2em 1em; margin-bottom: 0.3em; text-align: center; border: 1px solid #374151; font-family: Georgia; } /* Welcome title */ .fp-welcome-title { font-size: 2.5em; font-weight: 400; color: #f9fafb; } /* Subtext under the welcome line */ .fp-welcome-subtext { font-size: 1em; color: #38bdf8; margin-top: 0.3em; display: block; } /* Styled link imitation */ .fp-welcome-subtext .fp-link { color: #60a5fa; text-decoration: none; } .fp-welcome-subtext .fp-link:hover { text-decoration: underline; } /* End Welcome Box */ /* Container for top boxes */ .mp-main-container { display: flex; gap: 0.3em; margin-bottom: 0.25em; } /* Box styling */ .green-box, .blue-box { padding: 1em; border: 1px solid #a2a9b1; background-color: #f8f9fa; flex: 1; } /* Specific colors */ .green-box { background-color: #f5fff5; border-left: 10px solid #a7d7a7; } .blue-box { background-color: #f5faff; border-left: 10px solid #aaccee; } /* Lower section (Did you know, On this day) */ .mp-lower-container { display: flex; gap: 0.3em; } .mp-lower-box { flex: 1; padding: 1em; border: 1px solid #a2a9b1; } /* Headings inside boxes */ .green-box > h3, .blue-box > h3 { margin-top: 0; font-size: 1.2em; border-bottom: 1px solid #ccc; } /* Link styling */ a { color: #0645ad; text-decoration: none; } a:hover { text-decoration: underline; } /* End Four Box */ .fp-info-box { background-color: #f1f5f9; border-left: 5px solid #3b82f6; padding: 1em; border-radius: 6px; margin-bottom: 1em; font-size: 1em; } .fp-grid-box { display: flex; gap: 1em; justify-content: space-around; margin-bottom: 1em; } .fp-grid-card { flex: 1; background: #ffffff; border: 1px solid #e2e8f0; border-radius: 8px; padding: 1em; text-align: center; font-size: 1.1em; box-shadow: 0 2px 6px rgba(0,0,0,0.03); } .fp-box-purple { background-color: #f3e8fd; border-left: 5px solid #9b51e0; padding: 2em; border-radius: 8px; line-height: 1.7; font-size: 1em; margin-bottom: 2em; } /* Wrapper for all 4 sections */ .all-feature-sections { border: 2px solid #a2a9b1; background-color: #fefefe; padding: 20px; margin-bottom: 30px; border-radius: 8px; } /* Each section header */ .feature-box-title { background-color: #e2f3f5; /* Light teal for clean feel */ border-left: 6px solid #36c; /* Blue bar like Wikipedia */ padding: 8px 12px; font-weight: bold; font-family: sans-serif; font-size: 17px; margin: 25px 0 12px; color: #202122; } /* Grid layout for profiles */ .feature-grid { display: flex; flex-wrap: wrap; gap: 15px; justify-content: space-between; } /* Individual profile box */ .feature-item { width: 19%; background-color: #f4f8fb; /* Light background */ border: 1px solid #ccd6dd; padding: 10px; box-sizing: border-box; text-align: center; font-size: 13px; font-family: sans-serif; border-radius: 6px; box-shadow: 0 2px 4px rgba(0,0,0,0.05); transition: transform 0.2s ease; } .feature-item:hover { transform: translateY(-3px); } /* Image */ .feature-item img { width: 100%; height: auto; max-height: 130px; object-fit: cover; border-radius: 4px; margin-bottom: 8px; } /* Name */ .feature-name { font-weight: bold; margin-bottom: 4px; font-size: 14px; color: #202122; } /* Description */ .feature-desc { font-size: 12px; color: #54595d; }