PC Gaming Shelter
An archive dedicated to preserving PC Gaming history and more

MediaWiki:Common.css: Difference between revisions

From PC Gaming Shelter
No edit summary
Replaced content with "CSS placed here will be applied to all skins: Hide user menu icon for anonymous: .personal-tools-icon { display: none !important; }"
Tag: Replaced
 
(33 intermediate revisions by 2 users not shown)
Line 1: Line 1:
/* CSS placed here will be applied to all skins */
/* CSS placed here will be applied to all skins */
 
 
/* --- TABLE FIXES (Keep these) --- */
 
.fullwidth { width: 100% !important; }
 
.nowrap { white-space: nowrap; }
 
 
table.wikitable th a,
 
table.wikitable th.headerSort a {
 
    pointer-events: none !important;
 
    cursor: pointer !important;
 
    color: black !important;
 
    text-decoration: none !important;
 
}
 
/* --- NEW: "ONE BOX" STYLE FOR EVENTS --- */
 
/* 1. The Container: Create the "One Box" look */
.one-box-container {
    border: 1px solid #ccc !important;
    background: #f9f9f9;
    padding: 10px;
    border-radius: 4px;
    display: flex;      /* Align items in a row/grid */
    flex-wrap: wrap;    /* Allow wrapping */
    gap: 15px;          /* Space between items */
}
 
/* 2. The Items: Remove the individual card styling */
/* We reset the styles from the previous .checkbox-grid */
.one-box-container span {
    display: flex !important;
    align-items: center;
    width: auto !important;  /* Let them be natural size */
    margin: 0 !important;
    background: none !important;
    border: none !important;
    padding: 0 !important;
}
 
/* 3. The Label: Clean text */
.one-box-container label {
    margin-left: 6px;
    font-weight: normal;
    cursor: pointer;
}
 
 
/* Hide columns helpers */
 
.hide-Genre .col-genre,
 
.hide-Platform .col-platform,
 
.hide-Mode .col-mode,
 
.hide-Players .col-players {
 
    display: none !important;
 
}
 
 
/* --- FIXED CHECKBOX GRID --- */
 
 
/* 1. Set up the grid on the wrapper span generated by Page Forms */
 
.checkbox-grid > span {
 
    display: grid !important;
 
    /* Create nice even columns, min 150px wide */
 
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)) !important;
 
    gap: 8px !important;
 
    width: 100%;
 
}
 
 
/* 2. Style the individual items (The Checkbox + Text) */
 
.checkbox-grid .checkboxLabel {
 
    display: flex !important;
 
    align-items: center;
 
    background: #f9f9f9;
 
    border: 1px solid #ccc;
 
    padding: 6px 10px;
 
    border-radius: 4px;
 
    height: 25px;
 
    font-size: 13px;
 
    white-space: nowrap;
 
    overflow: hidden;
 
}
 
 
/* 3. Hover Effect */
 
.checkbox-grid .checkboxLabel:hover {
 
    background: #fff;
 
    border-color: #3366cc;
 
    cursor: pointer;
 
}
 
 
/* 4. Hide invisible <br> tags and delimiters that break layout */
 
.checkbox-grid br {
 
    display: none !important;


/* Hide user menu icon for anonymous */
.personal-tools-icon {
display: none !important;
}
}

Latest revision as of 00:04, 19 March 2026

/* CSS placed here will be applied to all skins */

/* Hide user menu icon for anonymous */
.personal-tools-icon {
	display: none !important;
}