From Dark and Darker Wiki

No edit summary
No edit summary
Line 4: Line 4:
==============================================================*/
==============================================================*/
.image-row {
.image-row {
display: flex;
    display: flex;
flex-wrap: wrap;
    flex-wrap: wrap;
justify-content: center;
    justify-content: center;
align-items: center;
    align-items: center;
margin: 25px 0 10px 0;
    margin-top: 20px;
}
  }
 
.image-row div {
  .image-container {
width: 250px;
    position: relative;
height: 200px;
    margin: 10px;
box-sizing: border-box;
  }
padding: 5px;
 
margin: 5px;
  .image-container img {
display: flex;
    display: block;
flex-direction: column;
    height: auto;
justify-content: flex-end;
    max-width: 100%;
}
  }
 
.image-row img {
  .image-container .text {
width: 100%;
    position: absolute;
height: 100%;
    bottom: 0;
object-fit: cover;
    left: 50%;
}
    transform: translateX(-50%);
    background-color: white;
.image-row p {
    padding: 5px;
margin: 0;
    font-size: 12px;
padding: 5px;
  }
background-color: rgba(0, 0, 0, 0.5);
color: #fff;
font-size: 16px;
text-align: center;
}
.center {
.center {
display: flex;
display: flex;

Revision as of 00:23, 17 April 2023

/* CSS placed here will be applied to all skins */
/*=============================================================
 Class Page /Classes
==============================================================*/
		.image-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
  }
  
  .image-container {
    position: relative;
    margin: 10px;
  }
  
  .image-container img {
    display: block;
    height: auto;
    max-width: 100%;
  }
  
  .image-container .text {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    background-color: white;
    padding: 5px;
    font-size: 12px;
  }
.center {
	display: flex;
	justify-content: center;
	align-items: center;
}
/*=============================================================
 Portal Page /Portals
==============================================================*/
.flexbox{
	display: flex;
	flex-direction: row;
}
.flexboxtext{
	flex: 1;
}
.flexboximage{
	flex: 1;
	text-align: right;
}
/*=============================================================
 Tabs (Template:StatsCardWeaponTabs)
==============================================================*/

/* See also: MediaWiki:Common.js */
.cardtabs{
	float:right;
	margin-left:25px;
	display: flex;
    flex-direction: column;
}
.cardtabs__buttons {
    display: flex;
    flex-direction: row;
    align-items: flex-end;
}
.cardtabs__button {
	border-radius: 5px 5px 0 0;
	display: inline-block;
	font-size: 13px;
	line-height: 1.5;
	position: relative;
	flex-grow: 1;
    text-align: center;
}
.cardtabs__panel {
	position: relative;
	z-index: 1;
}
.cardtabs__panel--js-hidden {
	display: none;
}
.cardtabs__button:not(.cardtabs__button--disabled):hover {
	 cursor: url('/skins/ScratchWikiSkin2/resources/custom-cursorlink.webp?bccaa') 4 4, auto;
}
.cardtabs__button--active {
	border-bottom: 0;
	z-index: 1;
	box-shadow: 0px -1px 7px 0px #fff;
}
/* Info/Unlock panels */
.cardtabs__button--icon-info img {
    position: relative;
    top: -2px;
}
.cardtabs__button--icon-unlock img {
    position: relative;
    top: -1px;
}
.cardtabs__button--icon-unlock {
	padding-bottom: 0;
}


/*=============================================================
 Toggle Buttons (Template:ToggleStart + Template:ToggleButton)
==============================================================*/

.btn {
	background: rgba(255,255,255,0.05);
	border-radius: 3px;
	border: 1px solid white;
	display: inline-block;
	font-size: 0.85rem;
	font-weight: bold;
	padding: 6px 10px;
}
.btn:hover {
	background: rgba(255,255,255,0.1);
}
.btn--link {
	padding: 0;
}
.btn--link > a {
    padding: 6px 15px 6px 10px;
    padding-right: 15px !important; /* override needed due to exteral link bg image icon */
    display: inline-block;
}
.btn--active {
    border-color: #366436;
}
.btn--inactive {
    border-color: #643636;
}