MediaWiki:Common.css: Difference between revisions
From Citypedia Online
No edit summary |
No edit summary |
||
| Line 144: | Line 144: | ||
/* Info box cards */ | /* Info box cards */ | ||
.citypedia-card { | .citypedia-card { | ||
background: #ffffff; | background: linear-gradient(180deg, #ffffff, #fafafa); | ||
border-radius: | border-radius: 14px; | ||
padding: | padding: 14px; | ||
margin-bottom: | margin-bottom: 16px; | ||
box-shadow: 0 2px 8px rgba(0,0,0,0. | |||
/* clean outline */ | |||
border: 1px solid rgba(0,0,0,0.08); | |||
/* modern shadow */ | |||
box-shadow: | |||
0 2px 6px rgba(0,0,0,0.08), | |||
0 8px 24px rgba(0,0,0,0.04); | |||
transition: transform 0.15s ease, box-shadow 0.15s ease; | |||
} | } | ||
.citypedia-card | /* subtle hover lift (desktop only) */ | ||
@media (hover: hover) { | |||
.citypedia-card:hover { | |||
transform: translateY(-2px); | |||
box-shadow: | |||
0 4px 10px rgba(0,0,0,0.12), | |||
0 12px 28px rgba(0,0,0,0.08); | |||
} | |||
} | } | ||
Revision as of 12:28, 9 January 2026
/* CSS placed here will be applied to all skins */
/* City/District Tabs (Smaller size, different color) */
.city-tabs {
display: flex;
flex-wrap: wrap;
justify-content: space-around;
background-color: #003366; /* Deep blue color */
padding: 5px;
border-radius: 5px;
margin-bottom: 20px;
}
.city-tabs a {
color: white;
padding: 8px 10px;
text-decoration: none;
flex-grow: 1;
text-align: center;
font-size: 0.9em;
}
.city-tabs a:hover {
background-color: #004080;
border-radius: 4px;
}
/* Bottom Content Boxes */
.bottom-container {
display: flex;
gap: 20px;
}
.bottom-box {
flex: 1;
border: 1px solid #ddd;
padding: 15px;
border-radius: 5px;
}
/* Add icons to sidebar city links */
#n-Mumbai a {
background: url(https://citypedia.online/images/0/0b/Mumbai.png) no-repeat left center;
padding-left: 25px !important;
background-size: 18px;
}
#n-Pune a {
background: url(https://citypedia.online/images/8/86/Pune.png) no-repeat left center;
padding-left: 25px !important;
background-size: 18px;
}
#n-Thane a {
background: url(https://citypedia.online/images/d/d0/Thane.png) no-repeat left center;
padding-left: 25px !important;
background-size: 18px;
}
/* The Card */
.cp-welcome-card {
background: #ffffff;
border: 1px solid #e5e7eb;
border-radius: 12px;
padding: 35px;
margin: 20px 0;
box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
text-align: center; /* Centers the button */
}
/* The Marathi Text */
.cp-welcome-text {
font-size: 19px;
line-height: 1.8;
color: #1f2937;
margin-bottom: 30px;
}
/* The Red Link */
.cp-highlight a {
color: #ef4444 !important;
font-weight: 800;
text-decoration: underline;
}
/* Styling the Link as a Button */
.cp-btn-style {
background-color: #3b82f6;
color: white !important;
padding: 14px 35px;
border-radius: 8px;
font-size: 18px;
font-weight: bold;
display: inline-block;
transition: transform 0.2s, background 0.2s;
text-decoration: none !important;
}
.cp-btn-style:hover {
background-color: #2563eb;
transform: translateY(-2px);
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
/* --- CATEGORY HEADER CARD --- */
.cp-cat-header {
display: flex !important;
background: #fdfdfd !important;
border: 1px solid #d1d5db !important;
border-radius: 15px !important;
padding: 30px !important;
margin-bottom: 30px !important;
gap: 30px !important;
box-shadow: 0 4px 10px rgba(0,0,0,0.05) !important;
}
/* Two-column responsive layout */
.citypedia-row {
display: flex;
gap: 16px;
align-items: flex-start;
}
.citypedia-main {
width: 70%;
}
.citypedia-side {
width: 30%;
}
/* Stack on mobile */
@media screen and (max-width: 768px) {
.citypedia-row {
flex-direction: column;
}
.citypedia-main,
.citypedia-side {
width: 100%;
}
}
/* Info box cards */
.citypedia-card {
background: linear-gradient(180deg, #ffffff, #fafafa);
border-radius: 14px;
padding: 14px;
margin-bottom: 16px;
/* clean outline */
border: 1px solid rgba(0,0,0,0.08);
/* modern shadow */
box-shadow:
0 2px 6px rgba(0,0,0,0.08),
0 8px 24px rgba(0,0,0,0.04);
transition: transform 0.15s ease, box-shadow 0.15s ease;
}
/* subtle hover lift (desktop only) */
@media (hover: hover) {
.citypedia-card:hover {
transform: translateY(-2px);
box-shadow:
0 4px 10px rgba(0,0,0,0.12),
0 12px 28px rgba(0,0,0,0.08);
}
}
