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
No edit summary
Tag: Manual revert
No edit summary
 
(4 intermediate revisions by the same user not shown)
Line 1: Line 1:
/* Actions bar — escape any inherited box styles and force full-width row */
.mw-parser-output .lw-actions {
.mw-parser-output .lw-actions {
   /* hard reset of the wrapper */
   display:flex;
   background: transparent !important;
   justify-content:center;
   border: 0 !important;
   align-items:center;
   box-shadow: none !important;
   flex-wrap:wrap;
   padding: 0 !important;
   gap:12px;
  margin:18px 0 28px 0;
}


  /* layout */
.mw-parser-output .lw-actions .pill {
   display: flex;
   display:inline-flex;
   justify-content: center;
  align-items:center;
   align-items: center;
   justify-content:center;
   flex-wrap: wrap;
   padding:9px 14px;
   gap: 12px;
  min-width:13ch;
   width: 100%;
  border:1px solid #cfd7c9;
   max-width: 1080px;
   border-radius:999px;
   margin: 18px auto 32px auto;
   background:#fff;
   clear: both; /* in case something above is floating */
   color:#2d5016;
   font-weight:600;
   line-height:1.1;
   text-decoration:none;
}
}


/* Ghost pill buttons */
.mw-parser-output .lw-actions a {
.mw-parser-output .lw-actions a {
  display: inline-flex;
   text-decoration:none !important;
  align-items: center;
  justify-content: center;
  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 */
.mw-parser-output .lw-actions a:hover {
  background: #2d5016;
  color: #fff;
  border-color: #2d5016;
  box-shadow: 0 2px 8px rgba(45,80,22,.18);
  transform: translateY(-1px);
}
.mw-parser-output .lw-actions a:active {
  transform: translateY(0);
  box-shadow: 0 1px 3px rgba(0,0,0,.10) inset;
}
}
 
.mw-parser-output .lw-actions a:hover .pill {
/* Keep visited links styled as buttons */
   border-color:#9fb39a;
.mw-parser-output .lw-actions a:visited { color: #2d5016; }
   box-shadow:0 1px 4px rgba(0,0,0,.08);
.mw-parser-output .lw-actions a:hover:visited { color: #fff; }
 
/* Keyboard focus */
.mw-parser-output .lw-actions a:focus {
   outline: 2px solid #98c28b;
  outline-offset: 2px;
}
 
/* Neutralize MediaWiki redlink styling */
.mw-parser-output .lw-actions a.new,
.mw-parser-output .lw-actions a.new:visited { color: #2d5016; }
.mw-parser-output .lw-actions a.new:hover { color: #fff; }
 
/* Make the first action a subtle primary */
.mw-parser-output .lw-actions a:first-child {
   background: #2d5016;
  color: #fff;
  border-color: #2d5016;
}
 
/* Responsive wrap */
@media (max-width: 720px) {
  .mw-parser-output .lw-actions { gap: 10px; }
  .mw-parser-output .lw-actions a {
    flex: 1 1 calc(50% - 10px);
    min-width: auto;
    padding: 12px 14px;
    text-align: center;
  }
}
}

Latest revision as of 06:48, 26 August 2025

.mw-parser-output .lw-actions {
  display:flex;
  justify-content:center;
  align-items:center;
  flex-wrap:wrap;
  gap:12px;
  margin:18px 0 28px 0;
}

.mw-parser-output .lw-actions .pill {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  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;
}

.mw-parser-output .lw-actions a {
  text-decoration:none !important;
}
.mw-parser-output .lw-actions a:hover .pill {
  border-color:#9fb39a;
  box-shadow:0 1px 4px rgba(0,0,0,.08);
}