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
No edit summary
 
(73 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 --- */
/* Hide user menu icon for anonymous */
.fullwidth { width: 100% !important; }
.personal-tools-icon {
.nowrap { white-space: nowrap; }
display: none !important;
 
table.wikitable th a,
table.wikitable th.headerSort a {
    pointer-events: none !important;
    cursor: pointer !important;
    color: black !important;
    text-decoration: none !important;
}
 
/* Hide columns helpers */
.hide-Genre .col-genre,
.hide-Platform .col-platform,
.hide-Mode .col-mode,
.hide-Players .col-players {
    display: none !important;
}
}


/* --- NEW: "ONE BOX" STYLE FOR EVENTS (FIXED v2) --- */
.infobox-value ul {
 
  list-style: none;
/* 1. The Container: The outer grey box */
.one-box-container {
    border: 1px solid #ccc !important;
    background: #f9f9f9;
    padding: 15px;
    border-radius: 4px;
    margin-top: 5px;
}
}


/* 2. Hide Line Breaks (CRITICAL FIX) */
#rightMenu #p-contentnavigation.pagetools .tab-group > div#ca-talk {
/* PageForms adds <br> tags that force stacking. This kills them. */
display: none !important;
.one-box-container br {
    display: none !important;
}
}


/* 3. The Wrapper: Force horizontal layout */
.card.thumbwall {
/* This targets the span that holds all checkboxes */
flex: 1;
.one-box-container > span {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 20px;            /* Space between items */
    align-items: center;
    width: 100%;
}
}
 
.card.thumbwall .card-img img {
/* 4. The Individual Items */
height: 100% !important;
.one-box-container .checkboxLabel {
    display: flex !important;
    align-items: center !important;
    width: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
}
 
/* 5. The Label Text */
.one-box-container label {
    margin-left: 6px;
    font-weight: normal;
    cursor: pointer;
    font-size: 13px;
    line-height: 1.5;
}
 
/* 6. The Checkbox Input */
.one-box-container input {
    margin: 0 !important;
    cursor: pointer;
}
 
 
/* --- GAME FORM: GRID STYLE (Keep this for the Game Form) --- */
 
.checkbox-grid > span {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)) !important;
    gap: 8px !important;
    width: 100%;
}
}
 
.thumbwall .card-footer {
.checkbox-grid .checkboxLabel {
border-top: 1px solid rgba(255,255,255,0.05);
    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;
}
}
 
.thumbwall-scroll {
.checkbox-grid .checkboxLabel:hover {
font-size: 2.5rem;
    background: #fff;
line-height: 0.35;
    border-color: #3366cc;
cursor: pointer;
    cursor: pointer;
display: inline-block;
flex: 1;
}
}
 
.thumbwall-scroll[data-scroll-dir="1"] {
.checkbox-grid br {
float: right;
    display: none !important;
text-align: right;
}
}
/* =========================================
.thumbwall-scroll:disabled,
  PC GAMING SHELTER - LANDING PAGE LAYOUT
.thumbwall-scroll.is-inactive {
  ========================================= */
     opacity: .4;
 
     cursor: default;
.pcs-wrapper {
    background-color: #042037; /* Dark navy background */
    padding: 30px;
    font-family: sans-serif;
     color: #ffffff;
    border-radius: 8px;
     max-width: 1200px; /* <--- NEW: Stops it from stretching too wide */
    margin: 0 auto;    /* <--- NEW: Centers the whole page */
}
}


/* Flexbox Rows for the Grid */
.collab-icons {
.pcs-row {
margin-top: .25rem !important;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
}
}


/* Base Box Styling */
.navthumb a:hover {
.pcs-box {
text-decoration: none !important;
    background-color: #0d5287; /* Medium blue box */
    border: 2px solid #011120; /* Dark border */
    border-radius: 8px;
    padding: 20px;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.3);
    box-sizing: border-box;
}
}


/* Column Sizes */
/** Embed video **/
.pcs-col-70 { flex: 0 0 calc(70% - 10px); max-width: calc(70% - 10px); }
.pcs-col-30 { flex: 0 0 calc(30% - 10px); max-width: calc(30% - 10px); }
.pcs-col-50 { flex: 0 0 calc(50% - 10px); max-width: calc(50% - 10px); }
.pcs-col-100 { flex: 0 0 100%; max-width: 100%; }


/* Box Titles */
.embedvideo-loader__fakeButton {
.pcs-title {
  display: flex;
    font-size: 1.4em;
  align-items: center;
    font-weight: bold;
  justify-content: center;
    text-align: center;
  width: 4rem;
    border-bottom: 2px solid #ffffff;
  height: 4rem;
    padding-bottom: 5px;
  padding: 0;
    margin-bottom: 15px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.72);
  color: transparent;
  font-size: 0;
  line-height: 0;
  place-items: center;
  box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.35);
}
}


/* Link Styling Inside Boxes */
.embedvideo-loader__fakeButton::before {
.pcs-box a {
  content: "";
    color: #ffffff;
  width: 0;
    text-decoration: none;
  height: 0;
    font-weight: bold;
  margin-left: 0.25rem;
}
  border-top: 0.75rem solid transparent;
.pcs-box a:hover {
  border-bottom: 0.75rem solid transparent;
    color: #ff9900; /* Orange hover effect to match logo */
  border-left: 1.1rem solid #fff;
    text-decoration: underline;
}
}


/* Search Bar Container */
.embedvideo-loader:hover .embedvideo-loader__fakeButton {
.pcs-search-container {
  background: #e26e1f;
    text-align: center;
    margin-bottom: 30px;
}
}


/* Responsive fix for smaller screens */
.two-cards > div {
@media (max-width: 800px) {
flex: 1 1 50%;
    .pcs-col-70, .pcs-col-30, .pcs-col-50 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}
/* =========================================
  HIDE SIDEBAR & TABS ON MAIN PAGE ONLY
  ========================================= */
body.page-Main_Page #mw-panel,
body.page-Main_Page #p-logo {
    display: none !important;
}
body.page-Main_Page #content {
    margin-left: 0 !important;
    border: none !important;
}
body.page-Main_Page #left-navigation {
    display: none !important;
}
body.page-Main_Page #firstHeading {
    display: none !important; /* Hides the "Main Page" title text */
}
}


/* Align titles to the left for the full-width boxes (per your new concept) */
.page-Special_RunQuery_FeaturedLink .pf-runquery-formcontent,
.pcs-title-left {
.page-Special_RunQuery_FeaturedLink .dayInput {
    font-size: 1.4em;
display: none;
    font-weight: bold;
    text-align: left;
    border-bottom: 2px solid #ffffff;
    padding-bottom: 5px;
    margin-bottom: 15px;
}
}
/* =========================================
  PCS: LIST, SEARCH, AND TABLE FIXES
  ========================================= */


/* Search bar styling */
.gap-2 {
.pcs-search-form {
gap: .5rem;
    display: flex;
    justify-content: center;
    gap: 10px;
}
}
.pcs-search-input {
.card .navthumb {
    width: 100%;
min-width: 20%;
    max-width: 400px;
    padding: 10px;
    border-radius: 4px;
    border: 1px solid #ccc;
    background: #fff;
    color: #000;
}
}
.pcs-search-btn {
.card-body .navthumb .with-icon a {
    padding: 10px 20px;
display: flex !important;
     background: #ff9900;
     height: 100%;
    color: #fff;
width: 100%;
    border: none;
justify-content: center;
    border-radius: 4px;
min-height: 45px !important;
    font-weight: bold;
align-items: center;
    cursor: pointer;
}
}
.pcs-search-btn:hover { background: #e68a00; }


/* Custom lists to avoid MediaWiki parser bugs */
#tab-content-smw-property-constraint {
.pcs-list {
  filter: invert(1) hue-rotate(180deg) contrast(.8);
    list-style: none; /* Removes the ugly default bullets */
    padding: 0;
    margin: 0;
    text-align: left;
    display: inline-block;
}
.pcs-list li {
    margin-bottom: 5px;
}
}


/* 2-Column Grid for Links */
#games > table {
.pcs-2col {
display: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    justify-content: center;
    width: fit-content;
    margin: 0 auto;
}
}


/* Dark Theme overrides for the Wikitable */
.upcoming-event-row {
.pcs-wrapper table.wikitable {
  display: flex;
    background-color: transparent !important;
  min-height: 56px;
    color: #ffffff !important;
  gap: 0 1rem;
    border: 1px solid #011120 !important;
  font-weight: 500;
  text-shadow: 0 0 10px var(--light);
  line-height: 1.15;
  scroll-snap-align: start;
}
}
.pcs-wrapper table.wikitable th {
.upcoming-event-row .shelter-stats-item-name {
    background-color: #011120 !important;
min-height: 40px;
    border: 1px solid #0d5287 !important;
font-weight: 500;
    color: #ff9900 !important;
text-shadow: 0 0 10px var(--light);
}
}
.pcs-wrapper table.wikitable td {
.upcoming-event-row .shelter-stats-item-name a {
    border: 1px solid #011120 !important;
color: var(--light);
}
}
/* =========================================
.upcoming-event-date {
  PCS: INPUTBOX SEARCH BAR STYLING
color: var(--shelter-accent-light);  
  ========================================= */
font-size: 1.25rem;
.pcs-search-container {
    text-align: center;
    margin-bottom: 35px;
}
}
.pcs-search-container .searchboxInput {
.upcoming-event-row .smw-subobject-entity {
    padding: 12px;
  font-style: normal;
    border-radius: 4px;
    border: none;
    font-size: 1.1em;
    min-width: 300px;
}
}
.pcs-search-container .searchboxSearchButton {
.to-info-panel {
    padding: 12px 25px;
visibility: hidden;
    background: #ff9900;
width: 300px;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
    font-size: 1.1em;
    margin-left: 10px;
}
}
.pcs-search-container .searchboxSearchButton:hover {
@media all and ( max-width: 576px ) {
    background: #e68a00;
.to-info-panel {
width: 100%;
}
}
}
/* =========================================
#bottom-notice .to-info-panel {
  PCS: MAIN PAGE FULL BACKGROUND COLOR
visibility: visible;
  ========================================= */
body.page-Main_Page,
body.page-Main_Page #content,
body.page-Main_Page .mw-page-container,
body.page-Main_Page #mw-page-base,
body.page-Main_Page #mw-head-base {
    background-color: #042037 !important;
    background-image: none !important; /* Removes default MediaWiki gradient shadows */
}
}
/* Orange Search Buttons for the InputBox */
.stat-badge {
.pcs-search-container input[type="submit"] {
  padding: .125rem .5rem;
    padding: 8px 20px;
  color: #d2a383;
    background: #ff9900 !important;
  font-size: 1.25rem;
    color: #fff !important;
    border: none !important;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
    margin: 0 5px;
}
}
.pcs-search-container input[type="submit"]:hover {
.rss-item .external:visited,
    background: #e68a00 !important;
.rss-item .external {
color: #81beff !important;
font-weight: 500;
}
}
/* =========================================
.card-body:has(.rss-item) {
  PCS: HIDE TOP NAVIGATION ON MAIN PAGE
height: 250px;
  ========================================= */
overflow-y: scroll;
body.page-Main_Page #right-navigation,
    scroll-behavior: smooth;
body.page-Main_Page #p-personal,
    scroll-snap-type: y mandatory;
body.page-Main_Page .mw-header {
    scroll-padding-block: 0;
    display: none !important;
}
}


/* =========================================
.thumbwall .rss-item {
  PCS: HERO BANNER (Title & Logo)
     min-height: 64px;
  ========================================= */
     scroll-snap-align: start;
.pcs-hero {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 20px;
    margin-bottom: 40px;
    padding: 10px 20px;
}
.pcs-hero-text h1 {
     color: #ffffff;
    font-size: 2.8em;
     font-weight: bold;
    font-family: 'Arial Black', Impact, sans-serif;
    margin: 0;
    padding: 0;
    border: none; /* Removes wiki default underline */
    text-transform: uppercase;
    letter-spacing: 1px;
}
.pcs-hero-text p {
    color: #ffffff;
    font-size: 1.2em;
    margin: 5px 0 0 0;
}
/* =========================================
  PCS: REMOVE WHITE BACKGROUND FROM LOGO
  ========================================= */
.pcs-hero-logo,
.pcs-hero-logo * {
    background: transparent !important;
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
}
}

Latest revision as of 14:07, 19 June 2026

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

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

.infobox-value ul {
  list-style: none;
}

#rightMenu #p-contentnavigation.pagetools .tab-group > div#ca-talk {
	display: none !important;
}

.card.thumbwall {
	flex: 1;
}
.card.thumbwall .card-img img {
	height: 100% !important;
}
.thumbwall .card-footer {
	border-top: 1px solid rgba(255,255,255,0.05);
}
.thumbwall-scroll {
	font-size: 2.5rem;
	line-height: 0.35;
	cursor: pointer;
	display: inline-block;
	flex: 1;
}
.thumbwall-scroll[data-scroll-dir="1"] {
	float: right;
	text-align: right;
}
.thumbwall-scroll:disabled,
.thumbwall-scroll.is-inactive {
    opacity: .4;
    cursor: default;
}

.collab-icons {
	margin-top: .25rem !important;
}

.navthumb a:hover {
	text-decoration: none !important;
}

/** Embed video **/

.embedvideo-loader__fakeButton {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 4rem;
  height: 4rem;
  padding: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.72);
  color: transparent;
  font-size: 0;
  line-height: 0;
  place-items: center;
  box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.35);
}

.embedvideo-loader__fakeButton::before {
  content: "";
  width: 0;
  height: 0;
  margin-left: 0.25rem;
  border-top: 0.75rem solid transparent;
  border-bottom: 0.75rem solid transparent;
  border-left: 1.1rem solid #fff;
}

.embedvideo-loader:hover .embedvideo-loader__fakeButton {
  background: #e26e1f;
}

.two-cards > div {
	flex: 1 1 50%;
}

.page-Special_RunQuery_FeaturedLink .pf-runquery-formcontent,
.page-Special_RunQuery_FeaturedLink .dayInput {
	display: none;
}

.gap-2 {
	gap: .5rem;
}
.card .navthumb {
	min-width: 20%;
}
.card-body .navthumb .with-icon a {
	display: flex !important;
    height: 100%;
	width: 100%;
	justify-content: center;
	min-height: 45px !important;
	align-items: center;
}

#tab-content-smw-property-constraint {
  filter: invert(1) hue-rotate(180deg) contrast(.8);
}

#games > table {
	display: none;
}

.upcoming-event-row {
  display: flex;
  min-height: 56px;
  gap: 0 1rem;
  font-weight: 500;
  text-shadow: 0 0 10px var(--light);
  line-height: 1.15;
  scroll-snap-align: start;
}
.upcoming-event-row .shelter-stats-item-name {
	min-height: 40px;
	font-weight: 500;
	text-shadow: 0 0 10px var(--light);
}
.upcoming-event-row .shelter-stats-item-name a {
	color: var(--light);
}
.upcoming-event-date {
	color: var(--shelter-accent-light); 
	font-size: 1.25rem;
}
.upcoming-event-row .smw-subobject-entity {
  font-style: normal;
}
.to-info-panel {
	visibility: hidden;
	width: 300px;
}
@media all and ( max-width: 576px ) {
	.to-info-panel {
		width: 100%;
	}	
}
#bottom-notice .to-info-panel {
	visibility: visible;
}
.stat-badge {
  padding: .125rem .5rem;
  color: #d2a383;
  font-size: 1.25rem;
}
.rss-item .external:visited,
.rss-item .external {
	color: #81beff !important;
	font-weight: 500;
}
.card-body:has(.rss-item) {
	height: 250px;
	overflow-y: scroll;
    scroll-behavior: smooth;
    scroll-snap-type: y mandatory;
    scroll-padding-block: 0;
}

.thumbwall .rss-item {
    min-height: 64px;
    scroll-snap-align: start;
}