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
 
(100 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{{info|add title=Add a new Game|edit title=Edit Game}}}
/* CSS placed here will be applied to all skins */


{{{for template|Game}}}
/* Hide user menu icon for anonymous */
<div style="max-width: 900px; margin: 0 auto; background: #fff; border: 1px solid #ccc; font-family: sans-serif; color: #333; font-size: 13px;">
.personal-tools-icon {
display: none !important;
}


<div style="background: #2a4b8d; color: white; padding: 10px 15px;">
.infobox-value ul {
   <span style="font-size: 1.2em; font-weight: bold;">Game Database Entry</span>
   list-style: none;
</div>
}


<div style="padding: 15px; background: #f9f9f9; border-bottom: 1px solid #ddd;">
#rightMenu #p-contentnavigation.pagetools .tab-group > div#ca-talk {
  <div style="display: flex; gap: 15px; margin-bottom: 10px;">
display: none !important;
    <div style="flex: 2;">
}
      '''Game Name:'''<br>
      {{{field|Name|input type=text|placeholder=Official Title|class=form-control|style=width:100%}}}
    </div>
    <div style="flex: 1;">
      '''Release Date:'''<br>
      {{{field|Release date|input type=datepicker|date format=dd.mm.yy}}}
    </div>
  </div>


  <div style="display: flex; gap: 15px; margin-bottom: 10px;">
.card.thumbwall {
    <div style="flex: 1;">
flex: 1;
      '''Developer:'''<br>{{{field|Developer|input type=text|autocomplete|size=20}}}
}
    </div>
.card.thumbwall .card-img img {
    <div style="flex: 1;">
height: 100% !important;
      '''Publisher:'''<br>{{{field|Publisher|input type=text|autocomplete|size=20}}}
}
    </div>
.thumbwall .card-footer {
    <div style="flex: 1;">
border-top: 1px solid rgba(255,255,255,0.05);
      '''Series:'''<br>{{{field|Series|input type=tokens|values from category=Series|placeholder=e.g. Half-Life|size=20}}}
}
     </div>
.thumbwall-scroll {
  </div>
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;
}


  <div style="display: flex; gap: 15px; align-items: flex-end;">
.collab-icons {
    <div style="flex: 1;">
margin-top: .25rem !important;
      '''Cover Image:'''<br>{{{field|Image|uploadable}}}
}
    </div>
    <div style="flex: 1;">
      '''Version:'''<br>{{{field|Current version|input type=text|size=15}}}
    </div>
  </div>
</div>


<div style="padding: 15px; background: #ffffff; border-bottom: 1px solid #ddd;">
.navthumb a:hover {
  <div style="font-weight: bold; color: #2a4b8d; border-bottom: 1px solid #eee; padding-bottom: 2px; margin-bottom: 8px;">Gameplay & Genre</div>
text-decoration: none !important;
}


  <div style="margin-bottom: 12px;">
/** Embed video **/
    <strong>Genre:</strong>
    <div class="checkbox-grid">
    {{{field|Genre|input type=checkboxes|values=Action, Adventure, MMO, Racing, RPG, Shooter, Simulation, Sports, Strategy|delimiter=}}}
    </div>
  </div>


   <div style="margin-bottom: 12px;">
.embedvideo-loader__fakeButton {
    <strong>Setting:</strong>
  display: flex;
    <div class="checkbox-grid">
  align-items: center;
    {{{field|Setting|input type=checkboxes|values=Modern Era, Fantasy, Sci-Fi, Historical, Post-Apocalyptic|delimiter=}}}
   justify-content: center;
    </div>
  width: 4rem;
   </div>
  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);
}


   <div>
.embedvideo-loader__fakeButton::before {
    <strong>Modes:</strong>
   content: "";
    <div class="checkbox-grid">
  width: 0;
    {{{field|Has game mode|input type=checkboxes|values=Singleplayer, Multiplayer, Co-op|delimiter=}}}
  height: 0;
    </div>
  margin-left: 0.25rem;
   </div>
  border-top: 0.75rem solid transparent;
</div>
  border-bottom: 0.75rem solid transparent;
   border-left: 1.1rem solid #fff;
}


<div style="padding: 15px; background: #f9f9f9; border-bottom: 1px solid #ddd;">
.embedvideo-loader:hover .embedvideo-loader__fakeButton {
   <div style="font-weight: bold; color: #2a4b8d; border-bottom: 1px solid #eee; padding-bottom: 2px; margin-bottom: 8px;">Technical Specs</div>
   background: #e26e1f;
}


  <div style="margin-bottom: 12px;">
.two-cards > div {
    <strong>Original Platforms:</strong>
flex: 1 1 50%;
    <div class="checkbox-grid" style="background: #fff; border: 1px solid #ddd; padding: 5px;">
}
      {{{field|Platform|input type=checkboxes|values=MS-DOS, Windows 95, Windows 98, Windows XP, Windows 7, Windows 10, Windows 11, Linux, Mac OS|delimiter=}}}
    </div>
  </div>


  <div style="margin-bottom: 10px;">
.page-Special_RunQuery_FeaturedLink .pf-runquery-formcontent,
    '''System Requirements:'''<br>
.page-Special_RunQuery_FeaturedLink .dayInput {
    {{{field|System requirements|input type=textarea|rows=2|style=width: 100%; box-sizing: border-box; font-family: monospace;}}}
display: none;
  </div>
}


  <div>
.gap-2 {
    '''Multiplayer Tools:'''<br>
gap: .5rem;
    {{{field|Multiplayer tools|input type=tokens|delimiter=;|size=50}}}
}
  </div>
.card .navthumb {
</div>
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;
}


<div style="padding: 15px; background: #ffffff;">
#tab-content-smw-property-constraint {
   <div style="display: flex; gap: 15px;">
   filter: invert(1) hue-rotate(180deg) contrast(.8);
    <div style="flex: 1;">
}
      '''Store Links:'''<br>{{{field|Store links|input type=text|size=50}}}
    </div>
    <div style="flex: 1;">
      '''Community Links:'''<br>{{{field|Community|input type=text|size=50}}}
    </div>
  </div>
</div>


<div style="padding: 10px 15px; background: #eee; border-top: 1px solid #ccc; text-align: right;">
#games > table {
  {{{standard input|save}}}
display: none;
  <span style="margin-left: 10px;">{{{standard input|preview}}}</span>
}
  <span style="margin-left: 10px;">{{{standard input|cancel}}}</span>
</div>


</div>
.upcoming-event-row {
{{{end template}}}
  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;
}

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;
}