Master-Brent (talk | contribs) No edit summary |
Master-Brent (talk | contribs) No edit summary |
||
Line 1: | Line 1: | ||
/* Basic Infobox with Modern Blue and Dark Gray Theme */ | /* Basic Infobox with Modern Blue and Dark Gray Theme using Divs */ | ||
. | .infobox { | ||
background-color: #444; /* | background-color: #444; /* Dark gray background */ | ||
border: 2px solid #5c85d6; /* Modern blue border */ | border: 2px solid #5c85d6; /* Modern blue border */ | ||
border-radius: 10px; /* Rounded corners */ | border-radius: 10px; /* Rounded corners */ | ||
Line 12: | Line 12: | ||
} | } | ||
. | .infobox-header { | ||
background-color: #5c85d6; /* Blue background for | background-color: #5c85d6; /* Blue background for header */ | ||
color: #FFFFFF; /* White text | color: #FFFFFF; /* White text */ | ||
padding: 10px; /* Padding for the header */ | padding: 10px; /* Padding for the header */ | ||
text-align: center; /* Center-align the header text */ | text-align: center; /* Center-align the header text */ | ||
font-size: 1.25em; /* Slightly larger text */ | font-size: 1.25em; /* Slightly larger text */ | ||
font-weight: bold; /* Bold header 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: | 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 */ | |||
padding: 5px 10px; /* Padding for each row */ | |||
border-top: 1px solid #5c85d6; /* Blue border separator */ | |||
} | |||
.infobox-label { | |||
font-weight: bold; /* Bold text for labels */ | 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 */ | color: #66ccff; /* Light blue for links */ | ||
text-decoration: none; /* Remove underline from links */ | text-decoration: none; /* Remove underline from links */ | ||
} | } | ||
. | .infobox-value a:hover { | ||
color: #3399ff; /* Bright blue for hovered links */ | color: #3399ff; /* Bright blue for hovered links */ | ||
text-decoration: underline; /* Underline on hover */ | text-decoration: underline; /* Underline on hover */ | ||
Line 42: | Line 57: | ||
/* Center the image within the infobox */ | /* Center the image within the infobox */ | ||
. | .infobox img { | ||
display: block; | display: block; | ||
margin: 0 auto; | margin: 0 auto; | ||
} | } |
Revision as of 21:11, 9 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;
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 */
padding: 5px 10px; /* 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;
}