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
Tag: Reverted
No edit summary
 
(107 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) --- */
/* Hide user menu icon for anonymous */
.fullwidth { width: 100% !important; }
.personal-tools-icon {
.nowrap { white-space: nowrap; }
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;
}


table.wikitable th a,
.embedvideo-loader:hover .embedvideo-loader__fakeButton {
table.wikitable th.headerSort a {
  background: #e26e1f;
    pointer-events: none !important;
    cursor: pointer !important;
    color: black !important;
    text-decoration: none !important;
}
}


/* Hide columns helpers */
.two-cards > div {
.hide-Genre .col-genre,
flex: 1 1 50%;
.hide-Platform .col-platform,
.hide-Mode .col-mode,
.hide-Players .col-players {
    display: none !important;
}
}


/* --- FORM INPUT FIXES (Fixes strange widths) --- */
.page-Special_RunQuery_FeaturedLink .pf-runquery-formcontent,
.page-Special_RunQuery_FeaturedLink .dayInput {
display: none;
}


/* 1. Force Text Inputs, Date Pickers, and Selects to be 100% Width */
.gap-2 {
.game-form input[type="text"],
gap: .5rem;
.game-form input.hasDatepicker,
}
.game-form .pf-form-field input {
.card .navthumb {
    width: 100% !important;
min-width: 20%;
    box-sizing: border-box !important;
}
    height: 36px !important;
.card-body .navthumb .with-icon a {
     padding: 6px 10px !important;
display: flex !important;
    border: 1px solid #ccc !important;
     height: 100%;
    border-radius: 4px !important;
width: 100%;
    font-family: sans-serif !important;
justify-content: center;
    font-size: 13px !important;
min-height: 45px !important;
    box-shadow: none !important;
align-items: center;
    margin: 0 !important;
}
}


/* 2. Fix the Series Token Box (Select2) */
#tab-content-smw-property-constraint {
.select2-container {
  filter: invert(1) hue-rotate(180deg) contrast(.8);
    width: 100% !important;
    display: block !important;
}
}
.select2-container .select2-selection--multiple {
 
    min-height: 36px !important;
#games > table {
    border: 1px solid #ccc !important;
display: none;
    border-radius: 4px !important;
    background: #fff;
    padding: 4px !important;
}
}


/* --- CHECKBOX GRID (The Crash-Free, Aligned Fix) --- */
.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;
}


/* 1. The Container: Hide the commas by setting font-size to 0 */
.oo-ui-messageWidget.oo-ui-messageWidget-block.oo-ui-flaggedElement-success {
.checkbox-grid {
background-color: #005234;
    display: block;
    width: 100%;
    font-size: 0 !important; /* Hides the commas */
    line-height: 0 !important;
    margin-top: 5px;
}
}


/* 2. The Items: Restore them as visible blocks */
.ns-3002 #mw-content-text > .mw-parser-output:first-of-type {
.checkbox-grid span {
display: flex;
    display: inline-block !important; /* Sits items side-by-side */
flex-direction: column;
    vertical-align: top;
}
   
@media screen and ( min-width: 576px ) {
    /* WIDTH: 32% creates 3 columns */
.ns-3002 #mw-content-text > .mw-parser-output:first-of-type {
    width: 32%;
flex-direction: row-reverse;
   
gap: 1rem;
    margin-right: 1%;
}
    margin-bottom: 8px;
   
    /* RESTORE TEXT VISIBILITY (Critical!) */
    font-size: 13px !important;
    line-height: normal !important;
   
    /* Box Styling */
    background: #fcfcfc;
    border: 1px solid #ddd;
    border-radius: 3px;
    padding: 6px 8px;
    box-sizing: border-box;  
    white-space: normal !important; /* Allow wrapping */
}
}


/* 3. The Labels inside */
.checkboxSwitches {
.checkbox-grid label {
min-height: 49px;
    margin-left: 5px;
    cursor: pointer;
    font-weight: normal;
    display: inline; /* Ensure label sits next to checkbox */
}
}


/* 4. Hover Effect */
/* RESOURCES LIST */
.checkbox-grid span:hover {
.resources-header {
    background: #f0f8ff;
background-color: rgba(255,255,255,.1);
    border-color: #3366cc;
padding: 0 1rem;
    cursor: pointer;
}
@media screen and ( min-width: 576px ) {
.resources-header {
flex: 0 0 100px;
border-right: 1px solid var(--secondary);
padding: 0 .5rem;
}
}
}


/* 5. Hide line breaks */
.infoMessage.mainForms,
.checkbox-grid br { display: none !important; }
.infoMessage.otherForms {
background-color: var(--bg-shade-4);
border: 0;
}
.infoMessage.otherForms, .infoMessage ~ p {
display: none;
}

Latest revision as of 15:34, 7 August 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;
}

.oo-ui-messageWidget.oo-ui-messageWidget-block.oo-ui-flaggedElement-success {
	background-color: #005234;
}

.ns-3002 #mw-content-text > .mw-parser-output:first-of-type {
	display: flex;
	flex-direction: column;
}
@media screen and ( min-width: 576px ) {
	.ns-3002 #mw-content-text > .mw-parser-output:first-of-type {
		flex-direction: row-reverse;
		gap: 1rem;
	}	
}

.checkboxSwitches {
	min-height: 49px;
}

/* RESOURCES LIST */
.resources-header {
	background-color: rgba(255,255,255,.1);
	padding: 0 1rem;
}
@media screen and ( min-width: 576px ) {
	.resources-header {
		flex: 0 0 100px;
		border-right: 1px solid var(--secondary);
		padding: 0 .5rem;
	}
}

.infoMessage.mainForms,
.infoMessage.otherForms {
	background-color: var(--bg-shade-4);
	border: 0;
}
.infoMessage.otherForms, .infoMessage ~ p {
	display: none;
}