Template:ButtonBox/styles.css: Difference between revisions
Appearance
No edit summary |
No edit summary |
||
| Line 21: | Line 21: | ||
height: 70px; | height: 70px; | ||
object-fit: cover; | object-fit: cover; | ||
margin-bottom: 0.3em; | margin-bottom: 0.3em; | ||
} | } | ||
Revision as of 15:18, 24 June 2025
.buttonbox {
margin: 1em auto;
border-spacing: 1em;
border-collapse: separate;
}
/* Each individual entry box */
.buttonbox-entry {
width: 120px;
padding: 0.5em;
border: 1px solid #ccc;
background: #fff;
text-align: center;
/* box-shadow: 0 2px 4px rgba(0,0,0,0.1); */
transition: background-color 0.2s ease, box-shadow 0.2s ease;
}
/* Image inside the entry */
.buttonbox-entry img {
width: 70px;
height: 70px;
object-fit: cover;
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 {
background-color: #e0e0e0;
cursor: pointer;
}
.buttonbox-label {
margin-top: 0.3em;
font-size: 0.9em;
word-wrap: break-word;
}