MediaWiki:Common.css: Difference between revisions

From Citypedia Online
mNo edit summary
mNo edit summary
 
(22 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
  ================================ */


 
/* Base typography */
 
body {
#n-Mumbai a {
  font-family: system-ui, -apple-system, Roboto, Arial, sans-serif;
    background: url(https://citypedia.online/images/0/0b/Mumbai.png) no-repeat left center;
  background: #f3f4f6;
    padding-left: 25px !important;  
    background-size: 18px;
}
}


#n-Pune a {  
/* ================================
    background: url(https://citypedia.online/images/8/86/Pune.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;
}
}


#n-Thane a {  
.cp-welcome-text {
    background: url(https://citypedia.online/images/d/d0/Thane.png) no-repeat left center;  
  font-size: 18px;
    padding-left: 25px !important;  
  line-height: 1.8;
    background-size: 18px;
  color: #1f2937;
}
}


.city-link {
/* Highlighted red links */
    display: flex !important;
.cp-highlight a {
    align-items: center !important; /* Vertically centers text with icons */
  color: #dc2626 !important;
    line-height: 1 !important;
  font-weight: 700;
    text-decoration: none !important;
  text-decoration: underline;
}
}


.nav-icon {
/* Buttons */
    height: 28px !important; /* Slightly smaller looks more elegant */
.cp-btn-style {
    width: auto !important;
  background: #2563eb;
    margin-right: 8px;
  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 {
/* Global City Bar Styling */
  background: #1d4ed8;
#global-city-bar {
    background-color: #202122; /* Dark professional background */
    color: #ffffff;
    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 {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    gap: 30px;
}
 
.city-link {
    color: #ffffff !important;
    text-decoration: none !important;
    font-size: 14px;
    font-weight: bold;
    transition: 0.2s;
}
 
.city-link:hover {
    color: #36c !important; /* Highlights blue on hover */
    transform: translateY(-1px);
}
 
/* Container for the whole bar */
#global-city-bar {
    background-color: #202122; /* Dark background */
    width: 100%;
    padding: 10px 0;
    border-bottom: 3px solid #36c;
}
 
/* Horizontal row for the links */
.city-bar-content {
    display: flex;
    justify-content: center; /* Centers the whole group */
    align-items: center;    /* Centers items vertically */
    gap: 25px;              /* Space between each city block */
}
 
/* Individual link container */
.city-link {
    display: flex;          /* Makes icon and text sit side-by-side */
    align-items: center;    /* Perfectly aligns icon and text vertically */
    color: #ffffff !important;
    text-decoration: none !important;
    font-weight: bold;
    font-family: sans-serif;
    font-size: 15px;
}
 
/* Icon styling */
.nav-icon {
    width: 24px;            /* Size of the icon */
    height: 24px;
    margin-right: 8px;      /* Gap between icon and city name */
    object-fit: contain;
}
}


.city-link:hover {
.mw-columns {
    color: #36c !important;
  column-count: 2;
  column-gap: 16px;
}
}


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