MediaWiki:Common.css: Difference between revisions

From Citypedia Online
No edit summary
mNo edit summary
 
(24 intermediate revisions by 2 users not shown)
Line 1: Line 1:
/* CSS placed here will be applied to all skins */
/* ================================
/* Add icons to sidebar city links */
  CITYPEDIA CORE THEME
#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 {  
/* Base typography */
    background: url(https://citypedia.online/images/8/86/Pune.png) no-repeat left center;
body {
    padding-left: 25px !important;  
  font-family: system-ui, -apple-system, Roboto, Arial, sans-serif;
    background-size: 18px;
  background: #f3f4f6;
}
}


#n-Thane a {  
/* ================================
    background: url(https://citypedia.online/images/d/d0/Thane.png) no-repeat left center;  
  WELCOME / HERO CARD
    padding-left: 25px !important;  
  ================================ */
    background-size: 18px;
.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;
}
}


/* Global City Bar Styling */
.cp-welcome-text {
#global-city-bar {
  font-size: 18px;
    background-color: #202122; /* Dark professional background */
  line-height: 1.8;
    color: #ffffff;
  color: #1f2937;
    width: 100%;
    padding: 8px 0;
    font-family: 'Segoe UI', Roboto, sans-serif;
    border-bottom: 3px solid #36c; /* Blue accent line */
    z-index: 9999;
}
}


.city-bar-content {
/* Highlighted red links */
    max-width: 1200px;
.cp-highlight a {
    margin: 0 auto;
  color: #dc2626 !important;
    display: flex;
  font-weight: 700;
    justify-content: center;
  text-decoration: underline;
    gap: 30px;
}
}


.city-link {
/* Buttons */
    color: #ffffff !important;
.cp-btn-style {
    text-decoration: none !important;
  background: #2563eb;
    font-size: 14px;
  color: #fff !important;
    font-weight: bold;
  padding: 14px 32px;
    transition: 0.2s;
  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 {
.city-link:hover {
  background: #1d4ed8;
    color: #36c !important; /* Highlights blue on hover */
    transform: translateY(-1px);
}
}


.nav-icon {
.mw-columns {
    width: 20px;      /* Sets the width of your icon */
  column-count: 2;
    height: 20px;    /* Sets the height */
  column-gap: 16px;
    vertical-align: middle;
    margin-right: 5px; /* Space between icon and text */
    object-fit: contain;
}
}


/* Hide city names on very small phones to keep it clean */
@media (max-width: 720px) {
@media (max-width: 480px) {
  .mw-columns {
    .city-name { display: none; }
     column-count: 1;
     .city-bar-content { gap: 40px; font-size: 20px; }
  }
}
}

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;
  }
}