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
 
(7 intermediate revisions by the same user not shown)
Line 57: Line 57:
     font-size: 12px;
     font-size: 12px;
     margin: 5px auto; /* Reduce space above & below */
     margin: 5px auto; /* Reduce space above & below */
    max-width: 400px;
/*    max-width: 800px; */
     border: 1px solid rgba(255, 255, 255, 0.2);
     border: 1px solid rgba(255, 255, 255, 0.2);
/*    line-height: 1; /* Reduces extra vertical spacing */
/*    line-height: 1; /* Reduces extra vertical spacing */
Line 114: Line 114:
     padding-left: 10px; /* Adds space between label and value */
     padding-left: 10px; /* Adds space between label and value */
}
}
/* Ensure the entire header is clickable */
/* Hide default toggle links */
.infobox-collapsible-header {
.mw-collapsible-toggle {
     display: flex;
     display: none !important;
    justify-content: space-between; /* Keeps text left, arrow right */
}
    align-items: center;
 
    padding: 6px 12px;
/* Adjust styling for collapsible headers */
    background-color: rgba(255, 255, 255, 0.1); /* Matches the name header */
.mw-collapsible .infobox-header {
    font-weight: bold;
     cursor: pointer;
     cursor: pointer; /* Ensures clicking works */
    border-radius: 5px;
     position: relative;
     position: relative;
    font-size: 16px; /* Smaller font */
    background-color: rgba(255, 255, 255, 0.2); /* Slightly darker background */
    color: #ddd;  /* Slightly darker text */
    margin: 4px 0;  /* Extra vertical spacing between headers */
    padding: 6px 20px; /* Internal padding with extra right space for arrow */
    border-radius: 6px;
}
}


/* Hide default [Expand] and [Collapse] text */
/* Add a down arrow (▼) when collapsed */
.mw-collapsible-toggle {
.mw-collapsible .infobox-header:after {
     font-size: 0; /* Hide default text */
     content: "\25BC"; /* Unicode for down arrow */
     position: relative; /* Ensures arrow is aligned properly */
     position: absolute;
     width: 100%; /* Expands clickable area */
    right: 10px;
     font-size: 16px;
}
}


/* Add custom arrow for collapsed state */
/* Change the arrow to up (▲) when expanded */
.mw-collapsible-toggle:after {
.mw-collapsible .infobox-header.open:after {
     content: ""; /* Down arrow */
     content: "\25B2"; /* Unicode for up arrow */
    font-size: 14px;
    color: white;
    position: absolute;
    right: 10px; /* Aligns to the right */
    top: 50%;
    transform: translateY(-50%);
}
}


/* Change arrow when section is expanded */
/* Add spacing between header and collapsible content when expanded */
.mw-collapsible-toggle-expanded:after {
.mw-collapsible .mw-collapsible-content {
     content: "▲"; /* Up arrow */
     margin-top: 8px;
}
}

Latest revision as of 13:13, 1 March 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: 800px; */
    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 */
}
/* Hide default toggle links */
.mw-collapsible-toggle {
    display: none !important;
}

/* Adjust styling for collapsible headers */
.mw-collapsible .infobox-header {
    cursor: pointer;
    position: relative;
    font-size: 16px; /* Smaller font */
    background-color: rgba(255, 255, 255, 0.2); /* Slightly darker background */
    color: #ddd;  /* Slightly darker text */
    margin: 4px 0;  /* Extra vertical spacing between headers */
    padding: 6px 20px; /* Internal padding with extra right space for arrow */
    border-radius: 6px;
}

/* Add a down arrow (▼) when collapsed */
.mw-collapsible .infobox-header:after {
    content: "\25BC";  /* Unicode for down arrow */
    position: absolute;
    right: 10px;
    font-size: 16px;
}

/* Change the arrow to up (▲) when expanded */
.mw-collapsible .infobox-header.open:after {
    content: "\25B2";  /* Unicode for up arrow */
}

/* Add spacing between header and collapsible content when expanded */
.mw-collapsible .mw-collapsible-content {
    margin-top: 8px;
}