MediaWiki:Common.css: Difference between revisions

From Citypedia Online
No edit summary
mNo edit summary
 
(20 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 {  
/* Base typography */
    background: url(https://citypedia.online/images/0/0b/Mumbai.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-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;
}
}


/* Container Styling */
/* Highlighted red links */
.citypedia-welcome-box {
.cp-highlight a {
    background: #ffffff;
  color: #dc2626 !important;
    border: 1px solid #e2e8f0;
  font-weight: 700;
    border-radius: 8px;
  text-decoration: underline;
    padding: 25px;
    margin: 20px 0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}
}


/* Text Styling */
/* Buttons */
.welcome-text {
.cp-btn-style {
    font-size: 16px;
  background: #2563eb;
    line-height: 1.6;
  color: #fff !important;
    color: #2d3748;
  padding: 14px 32px;
    margin-bottom: 20px;
  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 {
.highlight-text {
  background: #1d4ed8;
    color: #e53e3e; /* Red color from your screenshot */
    font-weight: bold;
}
 
/* Form Layout */
.create-article-container {
    display: flex;
    justify-content: flex-start;
}
 
.create-form {
    display: flex;
    gap: 0; /* Creates the seamless look between input and button */
    width: 100%;
    max-width: 600px;
}
 
/* Input Box */
.create-input {
    flex-grow: 1;
    padding: 12px 15px;
    border: 1px solid #cbd5e0;
    border-right: none;
    border-radius: 4px 0 0 4px;
    font-size: 15px;
    outline: none;
}
 
.create-input:focus {
    border-color: #3182ce;
}
}


/* The "Switch" Button */
.mw-columns {
.create-button {
  column-count: 2;
    background-color: #3182ce; /* Professional blue */
  column-gap: 16px;
    color: white;
    padding: 12px 25px;
    border: none;
    border-radius: 0 4px 4px 0;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s;
    white-space: nowrap;
}
}


.create-button:hover {
@media (max-width: 720px) {
     background-color: #2b6cb0;
  .mw-columns {
     column-count: 1;
  }
}
}

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