Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:Home/Actions.css: Difference between revisions

Template page
Undo revision 214 by Eloise Zomia (talk)
Tags: Undo Reverted
No edit summary
 
(4 intermediate revisions by the same user not shown)
Line 1: Line 1:
/* Actions bar — full width, no card chrome */
/* Actions bar — STRONG OVERRIDE for all conflicting styles */
.lw-actions {
.lw-actions {
   display: flex;
  /* Aggressive reset */
   justify-content: center;
  background: transparent !important;
   align-items: center;
  border: 0 !important;
   flex-wrap: wrap;
  box-shadow: none !important;
   gap: 12px;
  padding: 0 !important;
   width: 100%;
 
   max-width: 1080px;
  /* Force horizontal layout */
   margin: 18px auto 32px auto;
   display: flex !important;
   padding: 0;
   justify-content: center !important;
   background: transparent;
   align-items: center !important;
   border: 0;
   flex-wrap: wrap !important;
   box-shadow: none;
  flex-direction: row !important; /* Override any column forcing */
   gap: 12px !important;
   width: 100% !important;
   max-width: 1080px !important;
   margin: 18px auto 32px auto !important;
  clear: both !important;
}
 
/* Override ANY styles that might affect the action buttons */
.lw-actions a,
.lw-cons-panel .lw-actions a,
.mw-parser-output .lw-actions a {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
   padding: 10px 16px !important;
  min-width: 13ch !important;
  border: 1px solid #c1d1bb !important;
  border-radius: 999px !important;
  background: #fff !important;
  color: #2d5016 !important;
  font-weight: 600 !important;
  font-size: 13px !important;
  line-height: 1.1 !important;
  text-decoration: none !important;
  box-shadow: 0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.04) !important;
  transition: all .15s ease !important;
 
  /* Force inline display, not block */
  flex-direction: row !important;
  width: auto !important;
  max-width: none !important;
}
 
/* Hover states with strong specificity */
.lw-actions a:hover,
.lw-cons-panel .lw-actions a:hover,
.mw-parser-output .lw-actions a:hover {
   background: #2d5016 !important;
  color: #fff !important;
   border-color: #2d5016 !important;
  box-shadow: 0 2px 8px rgba(45,80,22,.18) !important;
  transform: translateY(-1px) !important;
}
 
.lw-actions a:active,
.lw-cons-panel .lw-actions a:active,
.mw-parser-output .lw-actions a:active {
  transform: translateY(0) !important;
   box-shadow: 0 1px 3px rgba(0,0,0,.10) inset !important;
}
}


/* Ghost pill buttons */
/* Fix visited links */
.lw-actions a {
.lw-actions a:visited,
  display: inline-flex;
.lw-cons-panel .lw-actions a:visited,
  align-items: center;
.mw-parser-output .lw-actions a:visited {
  justify-content: center;
   color: #2d5016 !important;  
  padding: 9px 14px;
  min-width: 13ch;
  border: 1px solid #cfd7c9;
  border-radius: 999px;
  background: #fff;
   color: #2d5016;
  font-weight: 600;
  line-height: 1.1;
  text-decoration: none;
  box-shadow: 0 1px 2px rgba(0,0,0,.05);
  transition:
    background-color .15s ease,
    color .15s ease,
    border-color .15s ease,
    box-shadow .15s ease,
    transform .08s ease;
}
}


/* Hover / active */
.lw-actions a:hover:visited,
.lw-actions a:hover {
.lw-cons-panel .lw-actions a:hover:visited,
  background: #2d5016;
.mw-parser-output .lw-actions a:hover:visited {
  color: #fff;
   color: #fff !important;  
  border-color: #2d5016;
  box-shadow: 0 2px 8px rgba(45,80,22,.18);
   transform: translateY(-1px);
}
}
.lw-actions a:active {
 
   transform: translateY(0);
/* Focus states */
   box-shadow: 0 1px 3px rgba(0,0,0,.10) inset;
.lw-actions a:focus,
.lw-cons-panel .lw-actions a:focus,
.mw-parser-output .lw-actions a:focus {
   outline: 2px solid #98c28b !important;
   outline-offset: 2px !important;
}
}


/* Keep visited links styled as buttons */
/* Fix MediaWiki redlinks */
.lw-actions a:visited { color: #2d5016; }
.lw-actions a.new,
.lw-actions a:hover:visited { color: #fff; }
.lw-actions a.new:visited,
.lw-cons-panel .lw-actions a.new,
.lw-cons-panel .lw-actions a.new:visited,
.mw-parser-output .lw-actions a.new,
.mw-parser-output .lw-actions a.new:visited {  
  color: #2d5016 !important;  
}


/* Keyboard focus */
.lw-actions a.new:hover,
.lw-actions a:focus {
.lw-cons-panel .lw-actions a.new:hover,
   outline: 2px solid #98c28b;
.mw-parser-output .lw-actions a.new:hover {  
  outline-offset: 2px;
   color: #fff !important;  
}
}


/* Neutralize MediaWiki redlink styling here */
/* Primary button (first child) */
.lw-actions a.new { color: #2d5016; }
.lw-actions a:first-child,
.lw-actions a.new:visited { color: #2d5016; }
.lw-cons-panel .lw-actions a:first-child,
.lw-actions a.new:hover { color: #fff; }
.mw-parser-output .lw-actions a:first-child {
  background: #2d5016 !important;
  color: #fff !important;
  border-color: #2d5016 !important;
}


/* Make the first action a subtle primary */
.lw-actions a:first-child:hover,
.lw-actions a:first-child {
.lw-cons-panel .lw-actions a:first-child:hover,
   background: #2d5016;
.mw-parser-output .lw-actions a:first-child:hover {
  color: #fff;
   background: #3d6b1f !important;
   border-color: #2d5016;
   border-color: #3d6b1f !important;
}
}


/* Responsive wrap */
/* Responsive - maintain horizontal layout */
@media (max-width: 720px) {
@media (max-width: 720px) {
   .lw-actions { gap: 10px; }
   .lw-actions,
   .lw-actions a {
  .lw-cons-panel .lw-actions,
     flex: 1 1 calc(50% - 10px);
  .mw-parser-output .lw-actions {  
     min-width: auto;
    gap: 10px !important;
     padding: 12px 14px;
    flex-direction: row !important; /* Force horizontal even on mobile */
     text-align: center;
  }
 
   .lw-actions a,
  .lw-cons-panel .lw-actions a,
  .mw-parser-output .lw-actions a {
     flex: 1 1 calc(50% - 10px) !important;
     min-width: auto !important;
     padding: 12px 14px !important;
     text-align: center !important;
    max-width: 200px !important; /* Prevent buttons from getting too wide */
  }
}
 
/* Very small screens - still try to maintain horizontal */
@media (max-width: 480px) {
  .lw-actions a,
  .lw-cons-panel .lw-actions a,
  .mw-parser-output .lw-actions a {
    flex: 1 1 calc(50% - 5px) !important;
    padding: 10px 8px !important;
    font-size: 12px !important;
    min-width: 0 !important;
   }
   }
}
}

Latest revision as of 09:08, 24 August 2025

/* Actions bar — STRONG OVERRIDE for all conflicting styles */
.lw-actions {
  /* Aggressive reset */
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;

  /* Force horizontal layout */
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  flex-direction: row !important; /* Override any column forcing */
  gap: 12px !important;
  width: 100% !important;
  max-width: 1080px !important;
  margin: 18px auto 32px auto !important;
  clear: both !important;
}

/* Override ANY styles that might affect the action buttons */
.lw-actions a,
.lw-cons-panel .lw-actions a,
.mw-parser-output .lw-actions a {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 10px 16px !important;
  min-width: 13ch !important;
  border: 1px solid #c1d1bb !important;
  border-radius: 999px !important;
  background: #fff !important;
  color: #2d5016 !important;
  font-weight: 600 !important;
  font-size: 13px !important;
  line-height: 1.1 !important;
  text-decoration: none !important;
  box-shadow: 0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.04) !important;
  transition: all .15s ease !important;
  
  /* Force inline display, not block */
  flex-direction: row !important;
  width: auto !important;
  max-width: none !important;
}

/* Hover states with strong specificity */
.lw-actions a:hover,
.lw-cons-panel .lw-actions a:hover,
.mw-parser-output .lw-actions a:hover {
  background: #2d5016 !important;
  color: #fff !important;
  border-color: #2d5016 !important;
  box-shadow: 0 2px 8px rgba(45,80,22,.18) !important;
  transform: translateY(-1px) !important;
}

.lw-actions a:active,
.lw-cons-panel .lw-actions a:active,
.mw-parser-output .lw-actions a:active {
  transform: translateY(0) !important;
  box-shadow: 0 1px 3px rgba(0,0,0,.10) inset !important;
}

/* Fix visited links */
.lw-actions a:visited,
.lw-cons-panel .lw-actions a:visited,
.mw-parser-output .lw-actions a:visited { 
  color: #2d5016 !important; 
}

.lw-actions a:hover:visited,
.lw-cons-panel .lw-actions a:hover:visited,
.mw-parser-output .lw-actions a:hover:visited { 
  color: #fff !important; 
}

/* Focus states */
.lw-actions a:focus,
.lw-cons-panel .lw-actions a:focus,
.mw-parser-output .lw-actions a:focus {
  outline: 2px solid #98c28b !important;
  outline-offset: 2px !important;
}

/* Fix MediaWiki redlinks */
.lw-actions a.new,
.lw-actions a.new:visited,
.lw-cons-panel .lw-actions a.new,
.lw-cons-panel .lw-actions a.new:visited,
.mw-parser-output .lw-actions a.new,
.mw-parser-output .lw-actions a.new:visited { 
  color: #2d5016 !important; 
}

.lw-actions a.new:hover,
.lw-cons-panel .lw-actions a.new:hover,
.mw-parser-output .lw-actions a.new:hover { 
  color: #fff !important; 
}

/* Primary button (first child) */
.lw-actions a:first-child,
.lw-cons-panel .lw-actions a:first-child,
.mw-parser-output .lw-actions a:first-child {
  background: #2d5016 !important;
  color: #fff !important;
  border-color: #2d5016 !important;
}

.lw-actions a:first-child:hover,
.lw-cons-panel .lw-actions a:first-child:hover,
.mw-parser-output .lw-actions a:first-child:hover {
  background: #3d6b1f !important;
  border-color: #3d6b1f !important;
}

/* Responsive - maintain horizontal layout */
@media (max-width: 720px) {
  .lw-actions,
  .lw-cons-panel .lw-actions,
  .mw-parser-output .lw-actions { 
    gap: 10px !important;
    flex-direction: row !important; /* Force horizontal even on mobile */
  }
  
  .lw-actions a,
  .lw-cons-panel .lw-actions a,
  .mw-parser-output .lw-actions a {
    flex: 1 1 calc(50% - 10px) !important;
    min-width: auto !important;
    padding: 12px 14px !important;
    text-align: center !important;
    max-width: 200px !important; /* Prevent buttons from getting too wide */
  }
}

/* Very small screens - still try to maintain horizontal */
@media (max-width: 480px) {
  .lw-actions a,
  .lw-cons-panel .lw-actions a,
  .mw-parser-output .lw-actions a {
    flex: 1 1 calc(50% - 5px) !important;
    padding: 10px 8px !important;
    font-size: 12px !important;
    min-width: 0 !important;
  }
}