Master-Brent (talk | contribs) No edit summary |
Master-Brent (talk | contribs) No edit summary |
||
Line 45: | Line 45: | ||
.infobox-value { | .infobox-value { | ||
flex: 2; /* Flex to take more space */ | flex: 2; /* Flex to take more space */ | ||
text-align: | text-align: right; /* Align text to the right */ | ||
} | } | ||
Revision as of 09:22, 11 June 2024
/* Basic Infobox with Modern Blue and Dark Gray Theme using Divs */
.infobox {
background-color: #444; /* Dark gray background */
border: 2px solid #5c85d6; /* Modern blue border */
border-radius: 10px; /* Rounded corners */
color: #ffffff; /* White text */
font-family: 'Arial', sans-serif; /* Modern, clean font */
box-shadow: 0 0 10px rgba(0, 0, 0, 0.5); /* Subtle shadow */
margin: 10px;
clear: right; /* Prevent overlap and allow stacking */
float: right; /* Float to the right */
width: 300px; /* Fixed width */
}
.infobox-header {
background-color: #5c85d6; /* Blue background for header */
color: #FFFFFF; /* White text */
padding: 10px; /* Padding for the header */
text-align: center; /* Center-align the header text */
font-size: 1.25em; /* Slightly larger text */
font-weight: bold; /* Bold header text */
border-top-left-radius: 8px; /* Match container rounding */
border-top-right-radius: 8px; /* Match container rounding */
}
.infobox-image {
text-align: center; /* Center the image */
padding: 10px; /* Padding for the image area */
}
.infobox-row {
display: flex; /* Use flexbox to layout label and value */
justify-content: space-between; /* Space out the label and value */
flex-basis: auto;
padding: 2px 4px; /* Padding for each row */
border-top: 1px solid #5c85d6; /* Blue border separator */
}
.infobox-label {
font-weight: bold; /* Bold text for labels */
flex: 1; /* Flex to take up space */
text-align: left; /* Align text to the left */
}
.infobox-value {
flex: 2; /* Flex to take more space */
text-align: right; /* Align text to the right */
}
.infobox-value a {
color: #66ccff; /* Light blue for links */
text-decoration: none; /* Remove underline from links */
}
.infobox-value a:hover {
color: #3399ff; /* Bright blue for hovered links */
text-decoration: underline; /* Underline on hover */
}
/* Center the image within the infobox */
.infobox img {
display: block;
margin: 0 auto;
}
.skin-citizen-light .infobox {
background-color: #ffffff; /* White background */
border: 2px solid #5c85d6; /* Modern blue border */
border-radius: 10px; /* Rounded corners */
color: #444; /* Grey Text*/
font-family: 'Arial', sans-serif; /* Modern, clean font */
box-shadow: 0 0 10px rgba(0, 0, 0, 0.5); /* Subtle shadow */
margin: 10px;
clear: right; /* Prevent overlap and allow stacking */
float: right; /* Float to the right */
width: 300px; /* Fixed width */
}