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
 
(91 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 */
.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);
}


/* Force tables to use 100% width when this class is used */
.embedvideo-loader__fakeButton::before {
.fullwidth {
  content: "";
    width: 100% !important;
  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;
}
}


/* Optional: Prevent Game Mode from wrapping onto two lines */
.embedvideo-loader:hover .embedvideo-loader__fakeButton {
.nowrap {
  background: #e26e1f;
    white-space: nowrap;
}
}


/* STRONG FIX: Disable links in ALL sortable table headers */
.two-cards > div {
table.wikitable th a,
flex: 1 1 50%;
table.wikitable th.headerSort a {
    pointer-events: none !important; /* Makes clicks pass through to the sort button */
    cursor: pointer !important;      /* Shows the hand cursor for sorting */
    color: black !important;        /* Forces text to look black, not blue */
    text-decoration: none !important; /* Removes the underline */
}
}


/* Hide columns based on the 'hide' parameter */
.page-Special_RunQuery_FeaturedLink .pf-runquery-formcontent,
.hide-Genre .col-genre,
.page-Special_RunQuery_FeaturedLink .dayInput {
.hide-Platform .col-platform,  
display: none;
.hide-Mode .col-mode,
.hide-Players .col-players {
    display: none !important;
}
}


/* --- NEW COMPACT CHECKBOX GRID --- */
.gap-2 {
/* This forces Page Forms checkboxes into a strict Excel-like grid */
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;
}


.checkbox-grid {
#tab-content-smw-property-constraint {
    display: grid;
  filter: invert(1) hue-rotate(180deg) contrast(.8);
    /* This creates columns that are min 140px wide but stretch to fill space */
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 6px;
    width: 100%;
    margin-top: 5px;
}
}


/* Style the individual checkbox items as clean boxes */
#games > table {
.checkbox-grid span {
display: none;
    display: flex !important;
    align-items: center;
    background: #fcfcfc;
    border: 1px solid #eee; /* Subtle border */
    padding: 4px 8px;
    border-radius: 3px;
    font-size: 0.9em;
    height: 28px;      /* Force every item to be the exact same height */
    white-space: nowrap; /* Prevent text from wrapping inside the box */
    overflow: hidden;
}
}


/* Hover effect so users know where they are clicking */
.upcoming-event-row {
.checkbox-grid span:hover {
  display: flex;
    background: #f0f8ff;
  min-height: 56px;
    border-color: #3366cc;
  gap: 0 1rem;
     cursor: pointer;
  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;
}
}


/* CRITICAL FIX: Hide the invisible <br> tags Page Forms generates */
.thumbwall .rss-item {
/* This removes the "staircase" effect and gaps */
     min-height: 64px;
.checkbox-grid br {
    scroll-snap-align: start;
     display: 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;
}