Jump to content

📢 Please make sure to read our Style Guide before editing. For questions, suggestions, or technical issues, please contact Noah. ✖

Template:ButtonBox/styles.css: Difference between revisions

From CrabCraft Wiki
added styles
 
updated css
Line 1: Line 1:
.buttonbox {
.buttonbox {
   width: 100%;
   margin: 1em auto;
  text-align: center;
   border-spacing: 1em;
   border-spacing: 1em;
   border-collapse: separate;
   border-collapse: separate;
  background: #f8f8f8;
}
}


/* Each individual entry box */
.buttonbox-entry {
.buttonbox-entry {
   display: inline-block;
   width: 120px;
   width: 100px;
  padding: 0.5em;
   max-width: 30vw;
   border: 1px solid #ccc;
   border-radius: 8px;
  background: #fff;
   text-align: center;
   text-align: center;
   transition: transform 0.2s ease;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
   transition: transform 0.2s ease, box-shadow 0.2s ease;
}
}


/* Image inside the entry */
.buttonbox-entry img {
.buttonbox-entry img {
   width: 100%;
   width: 100px;
   height: auto;
   height: 100px;
   border-radius: 6px;
  object-fit: cover;
   transition: transform 0.3s ease;
   border-radius: 4px;
  margin-bottom: 0.3em;
}
 
/* Label under the image */
.buttonbox-label {
   font-size: 0.9em;
  font-weight: bold;
  color: #333;
}
}


.buttonbox-entry:hover img {
/* Hover effect for interactivity */
   transform: scale(1.08);
.buttonbox-entry:hover {
   transform: scale(1.05);
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
  cursor: pointer;
}
}



Revision as of 22:08, 23 June 2025

.buttonbox {
  margin: 1em auto;
  border-spacing: 1em;
  border-collapse: separate;
  background: #f8f8f8;
}

/* Each individual entry box */
.buttonbox-entry {
  width: 120px;
  padding: 0.5em;
  border: 1px solid #ccc;
  border-radius: 8px;
  background: #fff;
  text-align: center;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* Image inside the entry */
.buttonbox-entry img {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 4px;
  margin-bottom: 0.3em;
}

/* Label under the image */
.buttonbox-label {
  font-size: 0.9em;
  font-weight: bold;
  color: #333;
}

/* Hover effect for interactivity */
.buttonbox-entry:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
  cursor: pointer;
}

.buttonbox-label {
  margin-top: 0.3em;
  font-size: 0.9em;
  word-wrap: break-word;
}