MediaWiki:Common.css: Difference between revisions

No edit summary
No edit summary
 
(29 intermediate revisions by the same user not shown)
Line 608: Line 608:
   padding-top: 16px;
   padding-top: 16px;
   padding-bottom: 16px;
   padding-bottom: 16px;
}
#siteNotice.icelist-donate-notice {
  display: flex;
  align-items: center;
  gap: 16px;
}
#siteNotice.icelist-donate-notice .donate-btn {
  margin-left: auto;
  align-self: center;
}
#siteNotice.icelist-donate-notice {
  display: flex;
  align-items: center;
  gap: 16px;
}
#siteNotice.icelist-donate-notice .donate-btn {
  margin-left: auto;
}
#siteNotice.icelist-donate-notice .icelist-notice-close {
  margin-left: 8px;
}
#siteNotice {
  display: flex;
  align-items: center;
  gap: 16px;
}
#siteNotice .donate-btn {
  margin-left: auto;
}
#siteNotice .icelist-notice-close {
  margin-left: 8px;
}
/* ICE List – anon donate banner (scoped) */
#siteNotice.icelist-anon-donate {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 16px;
  background: #f3f3f3;
  border: 1px solid #d8d8d8;
  border-radius: 10px;
}
/* Keep the text as a flexible left column */
#siteNotice.icelist-anon-donate .icelist-donate-cta {
  margin-left: auto; /* pushes donate to the right */
  flex: 0 0 auto;
}
/* Style the Donate link as a button */
#siteNotice.icelist-anon-donate a.icelist-donate-btn {
  display: inline-block;
  padding: 10px 18px;
  border-radius: 10px;
  background: #e44335;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
}
#siteNotice.icelist-anon-donate a.icelist-donate-btn:hover {
  filter: brightness(0.95);
}
/* Close button */
#siteNotice.icelist-anon-donate .icelist-notice-close {
  margin-left: 10px;
  background: transparent;
  border: 0;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  opacity: 0.7;
}
#siteNotice.icelist-anon-donate .icelist-notice-close:hover {
  opacity: 1;
}
/* Prevent empty notice bars if other CSS exists */
#siteNotice:empty {
  display: none;
}
#siteNotice.icelist-anon-donate {
  position: relative;
}
#siteNotice.icelist-anon-donate .icelist-notice-close{
  position: absolute;
  top: 8px;
  right: 10px;
  z-index: 9999;
  border: 0;
  background: transparent;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  padding: 6px 8px;
}
/* ICE List anon notice — ONLY when JS marks it */
#siteNotice.icelist-anon-donate{
  margin: 12px auto;
  padding: 14px 16px;
  border-radius: 12px;
  background: #f3f3f3;
  border: 1px solid rgba(0,0,0,0.08);
  position: relative;
}
/* Make your table behave like a clean banner row */
#siteNotice.icelist-anon-donate .icelist-notice-table{
  width: 100%;
  border-collapse: collapse;
}
#siteNotice.icelist-anon-donate .icelist-notice-table > tbody > tr{
  display: flex;
  gap: 16px;
  align-items: center;
}
#siteNotice.icelist-anon-donate .icelist-notice-table > tbody > tr > td:first-child{
  flex: 1;
  padding-right: 12px;
}
/* Donate button */
#siteNotice.icelist-anon-donate .icelist-donate-btn{
  display: inline-block;
  padding: 10px 16px;
  border-radius: 10px;
  background: #e53935;
  color: #fff !important;
  text-decoration: none !important;
  font-weight: 700;
  white-space: nowrap;
}
/* Close button (top right) */
#siteNotice.icelist-anon-donate .icelist-notice-close{
  position: absolute;
  top: 6px;
  right: 10px;
  border: 0;
  background: transparent;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  padding: 6px 8px;
}
/* Baseline anon notice styling (only when JS marks it) */
#siteNotice.icelist-anon-donate{
  background: #f3f3f3;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 12px;
  padding: 14px 16px;
  margin: 12px auto;
  position: relative;
}
/* Close button always visible */
#siteNotice.icelist-anon-donate .icelist-notice-close{
  position: absolute;
  top: 6px;
  right: 10px;
  border: 0;
  background: transparent;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  padding: 6px 8px;
}
#mw-dismissable-notice-dismiss {
  all: unset;                /* wipe inherited button styles */
  cursor: pointer;
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
  color: #999;
  padding: 6px;
}
#mw-dismissable-notice-dismiss:hover {
  color: #000;
}
#mw-dismissable-notice-dismiss {
  position: absolute;
  top: 10px;
  right: 12px;
}
#mw-dismissable-notice-dismiss {
  background: none !important;
  border: none !important;
  box-shadow: none !important;
  color: #999 !important;
  padding: 6px !important;
  font-size: 20px !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  border-radius: 0 !important;
  cursor: pointer;
}
#mw-dismissable-notice-dismiss:hover {
  color: #000 !important;
}
#mw-dismissable-notice-dismiss {
  opacity: 0.6 !important;
}
#mw-dismissable-notice-dismiss:hover {
  opacity: 1 !important;
}
/* Kill ALL visual styling on dismiss link */
#mw-dismissable-notice-dismiss {
  background: none !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin: 0 !important;
  width: auto !important;
  height: auto !important;
  color: transparent !important;
  font-size: 0 !important;
  line-height: 0 !important;
}
/* Replace it visually with a pseudo-element */
#mw-dismissable-notice-dismiss::after {
  content: "×";
  color: #999;
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
}
/* Hover state */
#mw-dismissable-notice-dismiss:hover::after {
  color: #000;
}
.mw-dismissable-notice-close a {
  background: none;
  border: none;
  box-shadow: none;
  padding: 0;
  margin: 0;
  color: #999;
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
}
#siteNotice .mw-dismissable-notice-close > a {
  background: none !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  color: #999 !important;
  font-size: 20px !important;
}
#siteNotice.mw-dismissed {
  display: none;
}
/* When DismissableSiteNotice hides the notice with visibility:hidden,
  also collapse the layout so no grey bar remains. */
#siteNotice .mw-dismissable-notice-close[style*="visibility: hidden"] {
  display: none !important;
}
/* If the notice wrapper is otherwise empty/hidden, kill its spacing */
#siteNotice {
  min-height: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
}
/* Rounded corners + subtle elevation for dismissable site notice */
#siteNotice > .mw-dismissable-notice {
  border-radius: 10px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  background: #f3f3f3;
  overflow: hidden;
}
#siteNotice {
  background: transparent !important;
  padding: 0 !important;
  margin: 0 !important;
  gap: 0 !important;
}
/* Make the dismissable notice be the single full-width visual box */
#siteNotice {
  background: transparent !important;
  padding: 0 !important;
  margin: 0 !important;
  gap: 0 !important;
}
#siteNotice > .mw-dismissable-notice {
  width: 100% !important;
  box-sizing: border-box !important;
  margin: 12px 0 !important;            /* no auto-centering gaps */
  padding: 18px 20px !important;
  background: #f3f3f3 !important;
  border-radius: 12px !important;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08) !important;
  position: relative !important;        /* anchor X positioning */
  overflow: hidden !important;          /* keeps corners clean */
}
/* Put the X in the top-right of the BOX (not the page/grid) */
#siteNotice > .mw-dismissable-notice .mw-dismissable-notice-close {
  position: absolute !important;
  top: 10px !important;
  right: 12px !important;
  z-index: 5 !important;
}
/* Make sure the close link isn't inheriting your Donate button styles */
#siteNotice > .mw-dismissable-notice .mw-dismissable-notice-close a {
  all: unset !important;
  cursor: pointer !important;
  font-size: 20px !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  color: #888 !important;
  padding: 6px !important;
}
#siteNotice > .mw-dismissable-notice .mw-dismissable-notice-close a:hover {
  color: #222 !important;
}
/* Optional: stop the text running under the X */
#siteNotice > .mw-dismissable-notice .mw-dismissable-notice-body {
  padding-right: 40px !important;
}
/* ===============================
  Printable version (screen)
  =============================== */
body.mw-printable-view #mw-content-text > * {
  display: none !important;
}
/* Re-show the agent infobox */
body.mw-printable-view #mw-content-text table.ic-infobox {
  display: table !important;
  float: right;
  width: 35% !important;
}
/* Ensure the title stays visible */
body.mw-printable-view #firstHeading {
  display: block !important;
}
/* Optional: remove leftover UI noise */
body.mw-printable-view .toc,
body.mw-printable-view .mw-editsection,
body.mw-printable-view #siteNotice {
  display: none !important;
}
}