MediaWiki:Common.css: Difference between revisions

From Tigerjek
Jump to navigation Jump to search
Created page with "CSS placed here will be applied to all skins: .footer-ads { display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; margin-top: 20px; } .content-ad { margin: 20px 0; text-align: center; } .adsbygoogle { max-width: 100%; }"
 
No edit summary
Line 1: Line 1:
/* CSS placed here will be applied to all skins */
/* ===== Global Ad Styling ===== */
.adsbygoogle {
  max-width: 100%;
  margin: 10px auto;
  display: block;
}
 
/* ===== Sidebar Ads ===== */
#mw-panel .adsbygoogle {
  margin: 8px 0;
  text-align: center;
}
#p-Sponsored {
  border-top: 1px solid #ccc;
  margin-top: 10px;
  padding-top: 10px;
}
 
/* ===== Content Ads (after every 2 <h2>) ===== */
.content-ad {
  margin: 20px 0;
  text-align: center;
}
 
/* ===== Footer Ads ===== */
.footer-ads {
.footer-ads {
   display: flex;
   display: flex;
   justify-content: center;
   justify-content: center;
  flex-wrap: wrap;
   gap: 20px;
   gap: 20px;
  flex-wrap: wrap;
   margin-top: 20px;
   margin-top: 20px;
  padding-top: 10px;
  border-top: 1px solid #ddd;
}
.footer-ads .adsbygoogle {
  flex: 1 1 250px;
}
}
.content-ad { margin: 20px 0; text-align: center; }
.adsbygoogle { max-width: 100%; }

Revision as of 13:47, 16 October 2025

/* ===== Global Ad Styling ===== */
.adsbygoogle {
  max-width: 100%;
  margin: 10px auto;
  display: block;
}

/* ===== Sidebar Ads ===== */
#mw-panel .adsbygoogle {
  margin: 8px 0;
  text-align: center;
}
#p-Sponsored {
  border-top: 1px solid #ccc;
  margin-top: 10px;
  padding-top: 10px;
}

/* ===== Content Ads (after every 2 <h2>) ===== */
.content-ad {
  margin: 20px 0;
  text-align: center;
}

/* ===== Footer Ads ===== */
.footer-ads {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 20px;
  padding-top: 10px;
  border-top: 1px solid #ddd;
}
.footer-ads .adsbygoogle {
  flex: 1 1 250px;
}