Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

MediaWiki:Citizen.css: Difference between revisions

MediaWiki interface page
No edit summary
Tag: Reverted
No edit summary
Tag: Reverted
Line 127: Line 127:
.mw-collapsible {
.mw-collapsible {
     margin: 5px 0; /* Reduce spacing between sections */
     margin: 5px 0; /* Reduce spacing between sections */
    display: block; /* Make sure it's visible */
}
}


Line 142: Line 143:
}
}


/* Attach the arrow directly inside the collapsible header */
/* Make the entire header clickable */
.infobox-collapsible-header {
.infobox-collapsible-header {
     position: relative; /* Ensures correct arrow placement */
     position: relative; /* Ensures arrow stays aligned */
     display: flex;
     display: flex;
     justify-content: space-between;
     justify-content: space-between;
     align-items: center;
     align-items: center;
     padding: 6px 12px; /* Proper spacing */
     padding: 6px 12px; /* Proper spacing */
    background-color: rgba(255, 255, 255, 0.1); /* Same background as name header */
    cursor: pointer; /* Ensures clickability */
}
}


/* Add the down arrow when collapsed */
/* Ensure the arrow is part of the clickable area */
.infobox-collapsible-header:after {
.infobox-collapsible-header:after {
     content: "▼"; /* Default collapsed arrow */
     content: "▼"; /* Default collapsed arrow */
Line 158: Line 161:
}
}


/* Change to up arrow when expanded */
/* When expanded, change arrow */
.mw-collapsible-content + .mw-collapsible-toggle .infobox-collapsible-header:after {
.mw-collapsible-toggle-expanded .infobox-collapsible-header:after {
     content: "▲";
     content: "▲"; /* Up arrow */
}
}

Revision as of 18:52, 28 February 2025

/* All CSS here will be loaded for users of the Citizen skin */
/* Styling for Character Hub */
.character-hub {
    text-align: center;
    max-width: 800px;
    margin: auto;
}

.character-main-image {
    width: 300px;
    border-radius: 10px;
    display: block;
    margin: auto;
    padding-bottom: 5px; /* Less gap before the text */
}

.default-character {
    margin-bottom: 5px; /* Reduce space below the image */
}
/* Style for the box under the image */
.character-info-box {
    background-color: rgba(255, 255, 255, 0.1); /* Keeps the dark theme */
    margin: auto;
    text-align: center;
    padding: 6px 8px; /* More space inside */
    max-width: 320px; /* Slightly wider */
    border-radius: 8px;
}
/* Variants Grid - Keep responsive but more compact */
.character-variants {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px; /* Reduce spacing between items */
}

/* Individual Variant Box */
.character-variant {
    width: 200px; /* Make them wider */
    text-align: center;
}

/* Reduce height of the variant info box */
.character-variant-box {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 5px 5px; /* Less padding inside */
    border-radius: 8px;
    font-size: 14px; /* Make text slightly smaller */
}
/* Styled box for Character Hub link */
/* Smaller, compact Character Hub link box */
.character-hub-link {
    background-color: rgba(255, 255, 255, 0.08);
    padding: 6px 8px; /* Balanced padding */
    border-radius: 5px;
    text-align: center;
    font-size: 12px;
    margin: 5px auto; /* Reduce space above & below */
    max-width: 400px;
    border: 1px solid rgba(255, 255, 255, 0.2);
/*     line-height: 1; /* Reduces extra vertical spacing */
/*     display: inline-block; /* Prevents extra space from block-level behavior */
/*     white-space: nowrap; /* Prevents automatic line breaks */
}
.character-infobox {
    width: 280px;
    background-color: rgba(255, 255, 255, 0.1);
    padding: 10px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 12px;
    color: white;
    float: right; /* Moves the infobox to the right */
    margin: 0 0 10px 15px; /* Adds spacing between text & infobox */
    clear: right; /* Prevents layout issues */
}
.infobox-header {
    font-size: 18px;
    font-weight: bold;
    text-align: center;
    padding: 5px;
    background-color: rgba(255, 255, 255, 0.15);
    border-radius: 6px;
}

.infobox-image {
    text-align: center;
    width: 100%;
    display: block;
}

.infobox-image img {
    width: 100%;
    display: block;
    border-radius: 0;
    max-height: 400px; /* Prevents oversized images */
}

.infobox-section {
    display: flex;
    padding: 5px 10px; /* Add consistent spacing */
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.infobox-section strong {
    width: 40%; /* Fixed width for labels */
    text-align: left;
    font-weight: bold;
}

.infobox-section span {
    width: 60%; /* Fixed width for values */
    text-align: left; /* Aligns values to start at the same position */
    padding-left: 10px; /* Adds space between label and value */
}
/* Adjust collapsible section headers */
.infobox-collapsible-header {
    font-size: 14px; /* Smaller text */
    padding: 6px 10px; /* Less padding inside */
    background-color: rgba(255, 255, 255, 0.1); /* Darker to match the name header */
    border-radius: 5px; /* Slightly rounded corners */
    text-align: center;
    cursor: pointer;
}

/* Adjust overall collapsible box spacing */
.mw-collapsible {
    margin: 5px 0; /* Reduce spacing between sections */
    display: block; /* Make sure it's visible */
}

/* Reduce spacing inside collapsed content */
.mw-collapsible-content {
    padding: 5px; /* Less padding inside */
}
/* Ensure the toggle is positioned inside the header */
.mw-collapsible-toggle {
    font-size: 0; /* Hide default text */
    position: absolute;
    right: 12px; /* Align inside the header */
    top: 50%;
    transform: translateY(-50%);
}

/* Make the entire header clickable */
.infobox-collapsible-header {
    position: relative; /* Ensures arrow stays aligned */
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 12px; /* Proper spacing */
    background-color: rgba(255, 255, 255, 0.1); /* Same background as name header */
    cursor: pointer; /* Ensures clickability */
}

/* Ensure the arrow is part of the clickable area */
.infobox-collapsible-header:after {
    content: "▼"; /* Default collapsed arrow */
    font-size: 14px;
    color: white;
}

/* When expanded, change arrow */
.mw-collapsible-toggle-expanded .infobox-collapsible-header:after {
    content: "▲"; /* Up arrow */
}