MediaWiki:Common.css: Difference between revisions

From Citypedia Online
mNo edit summary
mNo edit summary
Line 19: Line 19:
}
}


#city-nav-bar {
/* Global City Bar Styling */
     background-color: #f8f9fa;
#global-city-bar {
     border-bottom: 1px solid #a2a9b1;
     background-color: #202122; /* Dark professional background */
     padding: 5px 20px;
     color: #ffffff;
     font-size: 13px;
    width: 100%;
     text-align: center;
     padding: 8px 0;
     font-family: sans-serif;
     font-family: 'Segoe UI', Roboto, sans-serif;
     border-bottom: 3px solid #36c; /* Blue accent line */
     z-index: 9999;
}
}


#city-nav-bar a {
.city-bar-content {
     margin: 0 15px;
    max-width: 1200px;
     color: #0645ad;
     margin: 0 auto;
     text-decoration: none;
    display: flex;
    justify-content: center;
    gap: 30px;
}
 
.city-link {
     color: #ffffff !important;
     text-decoration: none !important;
    font-size: 14px;
     font-weight: bold;
     font-weight: bold;
    transition: 0.2s;
}
.city-link:hover {
    color: #36c !important; /* Highlights blue on hover */
    transform: translateY(-1px);
}
}


#city-nav-bar a:hover {
/* Hide city names on very small phones to keep it clean */
     text-decoration: underline;
@media (max-width: 480px) {
    .city-name { display: none; }
     .city-bar-content { gap: 40px; font-size: 20px; }
}
}

Revision as of 15:59, 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;
}

/* Global City Bar Styling */
#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);
}

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