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
 
(103 intermediate revisions by 2 users not shown)
Line 1: Line 1:
/* =========================================================
/* CSS placed here will be applied to all skins */
  PAGE FORMS – HARD RESET
  ========================================================= */


/* Remove table look completely */
/* Hide user menu icon for anonymous */
.formtable,
.personal-tools-icon {
.formtable tr,
display: none !important;
.formtable td {
    border: none !important;
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
}
}


/* Ensure PF respects outer layout */
.infobox-value ul {
.forminput,
  list-style: none;
.formlabel {
    display: block !important;
    width: 100% !important;
}
}


/* Kill PF default spacing */
#rightMenu #p-contentnavigation.pagetools .tab-group > div#ca-talk {
.formtable {
display: none !important;
    margin-bottom: 6px !important;
}
}


/* =========================================================
.card.thumbwall {
  INPUT NORMALIZATION (THIS IS THE IMPORTANT PART)
flex: 1;
  ========================================================= */
}
 
.card.thumbwall .card-img img {
.forminput input[type="text"],
height: 100% !important;
.forminput input[type="search"],
}
.forminput input[type="date"],
.thumbwall .card-footer {
.forminput textarea,
border-top: 1px solid rgba(255,255,255,0.05);
.forminput select {
}
    width: 100% !important;
.thumbwall-scroll {
    min-width: 0 !important;
font-size: 2.5rem;
    box-sizing: border-box !important;
line-height: 0.35;
    padding: 4px 6px;
cursor: pointer;
    font-size: 13px;
display: inline-block;
flex: 1;
}
.thumbwall-scroll[data-scroll-dir="1"] {
float: right;
text-align: right;
}
}
 
.thumbwall-scroll:disabled,
/* =========================================================
.thumbwall-scroll.is-inactive {
  DATEPICKER FIX (Release Date)
     opacity: .4;
  ========================================================= */
    cursor: default;
 
/* Prevent calendar button from shrinking input */
.forminput input.hasDatepicker {
     width: 100% !important;
}
}


.forminput .ui-datepicker-trigger {
.collab-icons {
    position: absolute;
margin-top: .25rem !important;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
}
}


/* Wrap date field correctly */
.navthumb a:hover {
.forminput {
text-decoration: none !important;
    position: relative;
}
}


/* =========================================================
/** Embed video **/
  TOKEN INPUT FIX (Series, Multiplayer Tools)
  ========================================================= */


.forminput .pfTokens {
.embedvideo-loader__fakeButton {
    width: 100% !important;
  display: flex;
    box-sizing: border-box !important;
  align-items: center;
    display: block !important;
  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);
}
}


.forminput .pfTokens input {
.embedvideo-loader__fakeButton::before {
    width: 100% !important;
  content: "";
    min-width: 0 !important;
  width: 0;
    box-sizing: border-box !important;
  height: 0;
    border: none !important;
  margin-left: 0.25rem;
    outline: none;
  border-top: 0.75rem solid transparent;
  border-bottom: 0.75rem solid transparent;
  border-left: 1.1rem solid #fff;
}
}


/* Make tokens visually match text fields */
.embedvideo-loader:hover .embedvideo-loader__fakeButton {
.forminput .pfTokens {
  background: #e26e1f;
    border: 1px solid #aaa;
    border-radius: 3px;
    padding: 2px 4px;
    background: #fff;
}
}


/* =========================================================
.two-cards > div {
  FILE UPLOAD FIX
flex: 1 1 50%;
  ========================================================= */
}


.forminput input[type="file"] {
.page-Special_RunQuery_FeaturedLink .pf-runquery-formcontent,
    width: 100% !important;
.page-Special_RunQuery_FeaturedLink .dayInput {
    box-sizing: border-box !important;
display: none;
}
}


/* =========================================================
.gap-2 {
  FLEX ROW SAFETY (THIS FIXES YOUR EXACT ISSUE)
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;
}


/* Ensure PF fields don't shrink in flex containers */
#tab-content-smw-property-constraint {
div[style*="display: flex"] .forminput {
  filter: invert(1) hue-rotate(180deg) contrast(.8);
    flex: 1 1 auto !important;
    min-width: 0 !important;
}
}


/* =========================================================
#games > table {
  CHECKBOX GRID (YOUR EXISTING SYSTEM, STABLE)
display: none;
  ========================================================= */
}


.checkbox-grid > span {
.upcoming-event-row {
    display: grid !important;
  display: flex;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)) !important;
  min-height: 56px;
     gap: 8px !important;
  gap: 0 1rem;
     width: 100%;
  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;
}
}


.checkbox-grid .checkboxLabel {
.thumbwall .rss-item {
     display: flex !important;
     min-height: 64px;
    align-items: center;
     scroll-snap-align: start;
    background: #f9f9f9;
    border: 1px solid #ccc;
    padding: 6px 10px;
    border-radius: 4px;
    height: 25px;
     font-size: 13px;
    white-space: nowrap;
}
}


.checkbox-grid .checkboxLabel:hover {
.oo-ui-messageWidget.oo-ui-messageWidget-block.oo-ui-flaggedElement-success {
    background: #fff;
background-color: #005234;
    border-color: #2a4b8d;
    cursor: pointer;
}
}


.checkbox-grid br {
.ns-3002 #mw-content-text > .mw-parser-output:first-of-type {
    display: none !important;
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 {
  QUALITY OF LIFE
min-height: 49px;
  ========================================================= */
}


/* Prevent weird label spacing */
/* RESOURCES LIST */
.formlabel {
.resources-header {
    margin-bottom: 3px;
background-color: rgba(255,255,255,.1);
    font-weight: bold;
padding: 0 1rem;
}
@media screen and ( min-width: 576px ) {
.resources-header {
flex: 0 0 100px;
border-right: 1px solid var(--secondary);
padding: 0 .5rem;
}
}
}


/* Make everything predictable */
.infoMessage.mainForms,
* {
.infoMessage.otherForms {
    box-sizing: border-box;
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;
}