MediaWiki:Common.css: Difference between revisions
From Citypedia Online
Super Admin (talk | contribs) No edit summary |
Super Admin (talk | contribs) No edit summary |
||
| Line 65: | Line 65: | ||
} | } | ||
/* | /* --- CATEGORY HEADER CARD --- */ | ||
.cp-cat-header { | .cp-cat-header { | ||
display: flex; | display: flex !important; | ||
background: # | background: #fdfdfd !important; | ||
border: 1px solid #d1d5db; | border: 1px solid #d1d5db !important; | ||
border-radius: | border-radius: 15px !important; | ||
padding: | padding: 30px !important; | ||
margin-bottom: | margin-bottom: 30px !important; | ||
gap: 30px; | gap: 30px !important; | ||
box-shadow: 0 4px 10px rgba(0,0,0,0.05) !important; | |||
} | } | ||
/* Left Section */ | /* Left Section: Welcome Text */ | ||
.cp-cat-left { | .cp-cat-left { | ||
flex: 1; | flex: 1.2 !important; | ||
text-align: center; | text-align: center !important; | ||
border-right: 1px solid # | border-right: 1px solid #eee !important; | ||
padding-right: 20px; | padding-right: 20px !important; | ||
} | } | ||
.cp-cat-welcome { | .cp-cat-welcome { | ||
font-size: | font-size: 26px !important; | ||
font-weight: | font-weight: 700 !important; | ||
color: # | color: #333 !important; | ||
line-height: 1.4 !important; | |||
} | } | ||
.cp-cat-title { | .cp-cat-title { | ||
color: # | color: #c53030 !important; /* Professional Dark Red */ | ||
} | } | ||
/* Right Section: Instructions & Links */ | |||
/* Right Section */ | |||
.cp-cat-right { | .cp-cat-right { | ||
flex: 1; | flex: 1 !important; | ||
} | } | ||
.cp-cat-desc { | .cp-cat-desc { | ||
font-size: | font-size: 16px !important; | ||
line-height: 1.6; | line-height: 1.6 !important; | ||
color: # | color: #4a5568 !important; | ||
margin-bottom: | margin-bottom: 20px !important; | ||
} | } | ||
/* Links | /* Yellow Box for Related Links */ | ||
.cp-cat-links { | .cp-cat-links { | ||
background: # | background: #fffdf2 !important; /* Subtle Yellow */ | ||
border: 1.5px dashed # | border: 1.5px dashed #a0aec0 !important; | ||
padding: | padding: 12px 18px !important; | ||
border-radius: | border-radius: 10px !important; | ||
font-size: | font-size: 15px !important; | ||
} | } | ||
.cp-link-label { | .cp-link-label { | ||
font-weight: bold; | font-weight: bold !important; | ||
color: #2d3748 !important; | |||
} | |||
/* Responsive adjustment for Mobile */ | |||
@media (max-width: 768px) { | |||
.cp-cat-header { flex-direction: column !important; text-align: center !important; } | |||
.cp-cat-left { border-right: none !important; border-bottom: 1px solid #eee !important; padding: 0 0 20px 0 !important; } | |||
} | } | ||
Revision as of 17:17, 2 January 2026
/* CSS placed here will be applied to all skins */
/* 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;
}
/* Left Section: Welcome Text */
.cp-cat-left {
flex: 1.2 !important;
text-align: center !important;
border-right: 1px solid #eee !important;
padding-right: 20px !important;
}
.cp-cat-welcome {
font-size: 26px !important;
font-weight: 700 !important;
color: #333 !important;
line-height: 1.4 !important;
}
.cp-cat-title {
color: #c53030 !important; /* Professional Dark Red */
}
/* Right Section: Instructions & Links */
.cp-cat-right {
flex: 1 !important;
}
.cp-cat-desc {
font-size: 16px !important;
line-height: 1.6 !important;
color: #4a5568 !important;
margin-bottom: 20px !important;
}
/* Yellow Box for Related Links */
.cp-cat-links {
background: #fffdf2 !important; /* Subtle Yellow */
border: 1.5px dashed #a0aec0 !important;
padding: 12px 18px !important;
border-radius: 10px !important;
font-size: 15px !important;
}
.cp-link-label {
font-weight: bold !important;
color: #2d3748 !important;
}
/* Responsive adjustment for Mobile */
@media (max-width: 768px) {
.cp-cat-header { flex-direction: column !important; text-align: center !important; }
.cp-cat-left { border-right: none !important; border-bottom: 1px solid #eee !important; padding: 0 0 20px 0 !important; }
}
