Template:ButtonBox/styles.css: Difference between revisions
Appearance
added styles  |
updated css |
||
| Line 1: | Line 1: | ||
.buttonbox { | .buttonbox { | ||
  |   margin: 1em auto; | ||
  border-spacing: 1em; |   border-spacing: 1em; | ||
  border-collapse: separate; |   border-collapse: separate; | ||
 background: #f8f8f8; | |||
} | } | ||
/* Each individual entry box */ | |||
.buttonbox-entry { | .buttonbox-entry { | ||
  |   width: 120px; | ||
  |  padding: 0.5em; | ||
  |   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: |   width: 100px; | ||
  height: |   height: 100px; | ||
  border-radius: |  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; | |||
} | } | ||
.buttonbox-entry:hover | /* Hover effect for interactivity */ | ||
  transform: scale(1. | .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;
}