MediaWiki:Common.css: Difference between revisions

From Citypedia Online
mNo edit summary
mNo edit summary
 
(14 intermediate revisions by 2 users not shown)
Line 1: Line 1:
/* CSS placed here will be applied to all skins */
/* ================================
/* Custom Styles for Citypedia Main Page */
  CITYPEDIA CORE THEME
  ================================ */


/* Yellow Important Communication Banner */
/* Base typography */
.comm-banner {
body {
    background-color: #ffc;
  font-family: system-ui, -apple-system, Roboto, Arial, sans-serif;
    border: 1px solid #e7d32e;
  background: #f3f4f6;
    padding: 10px;
    margin-bottom: 20px;
    text-align: center;
    font-weight: bold;
    color: #333;
}
}


/* Orange Navigation Tabs */
/* ================================
.nav-tabs {
  WELCOME / HERO CARD
    display: flex;
  ================================ */
    flex-wrap: wrap;
    justify-content: space-around;
    background-color: #f44336; /* Orange color */
    padding: 5px;
    border-radius: 5px;
    margin-bottom: 20px;
}
 
.nav-tabs a {
    color: white;
    padding: 10px 15px;
    text-decoration: none;
    font-weight: bold;
    flex-grow: 1;
    text-align: center;
}
 
.nav-tabs a:hover {
    background-color: #e64a19;
    border-radius: 4px;
}
 
/* 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 {
.cp-welcome-card {
    background: #ffffff;
  background: linear-gradient(135deg,#ffb45c,#b6e3b2);
    border: 1px solid #e5e7eb;
  border-radius: 16px;
    border-radius: 12px;
  padding: 40px;
    padding: 35px;
  margin: 20px 0;
    margin: 20px 0;
  box-shadow: 0 12px 25px rgba(0,0,0,0.15);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  text-align: center;
    text-align: center; /* Centers the button */
}
}


/* The Marathi Text */
.cp-welcome-text {
.cp-welcome-text {
    font-size: 19px;
  font-size: 18px;
    line-height: 1.8;
  line-height: 1.8;
    color: #1f2937;
  color: #1f2937;
    margin-bottom: 30px;
}
}


/* The Red Link */
/* Highlighted red links */
.cp-highlight a {
.cp-highlight a {
    color: #ef4444 !important;
  color: #dc2626 !important;
    font-weight: 800;
  font-weight: 700;
    text-decoration: underline;
  text-decoration: underline;
}
}


/* Styling the Link as a Button */
/* Buttons */
.cp-btn-style {
.cp-btn-style {
    background-color: #3b82f6;
  background: #2563eb;
    color: white !important;
  color: #fff !important;
    padding: 14px 35px;
  padding: 14px 32px;
    border-radius: 8px;
  border-radius: 10px;
    font-size: 18px;
  font-size: 16px;
    font-weight: bold;
  font-weight: 700;
    display: inline-block;
  display: inline-block;
    transition: transform 0.2s, background 0.2s;
  text-decoration: none !important;
    text-decoration: none !important;
  box-shadow: 0 4px 12px rgba(37,99,235,0.4);
}
}
.cp-btn-style:hover {
.cp-btn-style:hover {
    background-color: #2563eb;
  background: #1d4ed8;
    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 {
.mw-columns {
    font-weight: bold !important;
  column-count: 2;
    color: #2d3748 !important;
  column-gap: 16px;
}
}


/* Responsive adjustment for Mobile */
@media (max-width: 720px) {
@media (max-width: 768px) {
  .mw-columns {
    .cp-cat-header { flex-direction: column !important; text-align: center !important; }
    column-count: 1;
    .cp-cat-left { border-right: none !important; border-bottom: 1px solid #eee !important; padding: 0 0 20px 0 !important; }
  }
}
}

Latest revision as of 05:09, 1 February 2026

/* ================================
   CITYPEDIA CORE THEME
   ================================ */

/* Base typography */
body {
  font-family: system-ui, -apple-system, Roboto, Arial, sans-serif;
  background: #f3f4f6;
}

/* ================================
   WELCOME / HERO CARD
   ================================ */
.cp-welcome-card {
  background: linear-gradient(135deg,#ffb45c,#b6e3b2);
  border-radius: 16px;
  padding: 40px;
  margin: 20px 0;
  box-shadow: 0 12px 25px rgba(0,0,0,0.15);
  text-align: center;
}

.cp-welcome-text {
  font-size: 18px;
  line-height: 1.8;
  color: #1f2937;
}

/* Highlighted red links */
.cp-highlight a {
  color: #dc2626 !important;
  font-weight: 700;
  text-decoration: underline;
}

/* Buttons */
.cp-btn-style {
  background: #2563eb;
  color: #fff !important;
  padding: 14px 32px;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 700;
  display: inline-block;
  text-decoration: none !important;
  box-shadow: 0 4px 12px rgba(37,99,235,0.4);
}
.cp-btn-style:hover {
  background: #1d4ed8;
}

.mw-columns {
  column-count: 2;
  column-gap: 16px;
}

@media (max-width: 720px) {
  .mw-columns {
    column-count: 1;
  }
}