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
No edit summary
Line 1: Line 1:
/* Actions bar container */
/* Actions bar — full width, no card chrome */
.lw-actions {
.lw-actions {
   display: flex;
   display: flex;
Line 5: Line 5:
   align-items: center;
   align-items: center;
   flex-wrap: wrap;
   flex-wrap: wrap;
   gap: 10px;
   gap: 12px;
   margin: 14px 0 30px 0;
  width: 100%;
  max-width: 1080px;
   margin: 18px auto 32px auto;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}
}


/* Button-style links */
/* Ghost pill buttons */
.lw-actions a {
.lw-actions a {
   display: inline-flex;
   display: inline-flex;
   align-items: center;
   align-items: center;
   justify-content: center;
   justify-content: center;
   padding: 10px 14px;
   padding: 9px 14px;
   min-width: 12ch;
   min-width: 13ch;
   border: 1px solid #cfd7c9;
   border: 1px solid #cfd7c9;
   border-radius: 999px; /* pill */
   border-radius: 999px;
   background: #ffffff;
   background: #fff;
  background-image: linear-gradient(180deg, #ffffff 0%, #f6faf3 100%);
   color: #2d5016;
   color: #2d5016;
   font-weight: 600;
   font-weight: 600;
   line-height: 1.1;
   line-height: 1.1;
   text-decoration: none;
   text-decoration: none;
   box-shadow:
   box-shadow: 0 1px 2px rgba(0,0,0,.05);
    0 1px 0 rgba(255,255,255,.9) inset,
    0 1px 2px rgba(0,0,0,.06);
   transition:
   transition:
     background-color .15s ease,
     background-color .15s ease,
Line 38: Line 41:
.lw-actions a:hover {
.lw-actions a:hover {
   background: #2d5016;
   background: #2d5016;
   color: #ffffff;
   color: #fff;
   border-color: #2d5016;
   border-color: #2d5016;
   box-shadow: 0 2px 8px rgba(45,80,22,.18);
   box-shadow: 0 2px 8px rgba(45,80,22,.18);
Line 45: Line 48:
.lw-actions a:active {
.lw-actions a:active {
   transform: translateY(0);
   transform: translateY(0);
   box-shadow:
   box-shadow: 0 1px 3px rgba(0,0,0,.10) inset;
    0 0 0 rgba(0,0,0,0),
    0 1px 3px rgba(0,0,0,.10) inset;
}
}


/* Keep visited links styled as buttons */
/* Keep visited links styled as buttons */
.lw-actions a:visited { color: #2d5016; }
.lw-actions a:visited { color: #2d5016; }
.lw-actions a:hover:visited { color: #ffffff; }
.lw-actions a:hover:visited { color: #fff; }


/* Keyboard focus ring */
/* Keyboard focus */
.lw-actions a:focus {
.lw-actions a:focus {
   outline: 2px solid #98c28b;
   outline: 2px solid #98c28b;
Line 60: Line 61:
}
}


/* Neutralize MediaWiki redlink styling inside this bar */
/* Neutralize MediaWiki redlink styling here */
.lw-actions a.new { color: #2d5016; }
.lw-actions a.new { color: #2d5016; }
.lw-actions a.new:visited { color: #2d5016; }
.lw-actions a.new:visited { color: #2d5016; }
.lw-actions a.new:hover { color: #ffffff; }
.lw-actions a.new:hover { color: #fff; }


/* Make first action a "primary" */
/* Make the first action a subtle primary */
.lw-actions a:first-child {
.lw-actions a:first-child {
   background: #2d5016;
   background: #2d5016;
   color: #ffffff;
   color: #fff;
   border-color: #2d5016;
   border-color: #2d5016;
}
}


/* Mobile layout */
/* Responsive wrap */
@media (max-width: 640px) {
@media (max-width: 720px) {
   .lw-actions { gap: 8px; }
   .lw-actions { gap: 10px; }
   .lw-actions a {
   .lw-actions a {
     flex: 1 1 calc(50% - 8px);
     flex: 1 1 calc(50% - 10px);
     min-width: auto;
     min-width: auto;
     padding: 12px 14px;
     padding: 12px 14px;

Revision as of 08:08, 24 August 2025

/* Actions bar — full width, no card chrome */
.lw-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  width: 100%;
  max-width: 1080px;
  margin: 18px auto 32px auto;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

/* Ghost pill buttons */
.lw-actions a {
  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;
  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 {
  background: #2d5016;
  color: #fff;
  border-color: #2d5016;
  box-shadow: 0 2px 8px rgba(45,80,22,.18);
  transform: translateY(-1px);
}
.lw-actions a:active {
  transform: translateY(0);
  box-shadow: 0 1px 3px rgba(0,0,0,.10) inset;
}

/* Keep visited links styled as buttons */
.lw-actions a:visited { color: #2d5016; }
.lw-actions a:hover:visited { color: #fff; }

/* Keyboard focus */
.lw-actions a:focus {
  outline: 2px solid #98c28b;
  outline-offset: 2px;
}

/* Neutralize MediaWiki redlink styling here */
.lw-actions a.new { color: #2d5016; }
.lw-actions a.new:visited { color: #2d5016; }
.lw-actions a.new:hover { color: #fff; }

/* Make the first action a subtle primary */
.lw-actions a:first-child {
  background: #2d5016;
  color: #fff;
  border-color: #2d5016;
}

/* Responsive wrap */
@media (max-width: 720px) {
  .lw-actions { gap: 10px; }
  .lw-actions a {
    flex: 1 1 calc(50% - 10px);
    min-width: auto;
    padding: 12px 14px;
    text-align: center;
  }
}