Template:Organisation/styles.css: Difference between revisions

From Kerbal Powers Wiki
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
 
(26 intermediate revisions by the same user not shown)
Line 2: Line 2:
 
/* The width style is limited to tablet and desktop resolutions as 22em is bigger than most mobile screens.
 
/* The width style is limited to tablet and desktop resolutions as 22em is bigger than most mobile screens.
 
Historically, the mobile skin (Minerva) has used !important to override them but this is not sustainable.*/
 
Historically, the mobile skin (Minerva) has used !important to override them but this is not sustainable.*/
  +
   
   
Line 10: Line 11:
 
}
 
}
   
.infobox-dual-illustration img {
+
.infobox-item {
width: auto;
+
width:20em;
  +
}
height: auto;
 
  +
max-width: 100%;
 
  +
.infobox-item-title {
min-width: 100%;
+
width:10em;
object-fit: contain;
 
  +
}
  +
  +
  +
.infobox-dual-illustration {
  +
 
max-width: 30em;
  +
 
}
 
}
   
 
.infobox-illustration img {
 
.infobox-illustration img {
  +
width: auto;
 
height: auto;
+
max-width: 30em;
  +
max-width: 100%;
 
  +
min-width: 100%;
 
object-fit: contain;
 
 
}
 
}
   

Latest revision as of 23:07, 26 October 2022

/* {{pp-template}} */
/* The width style is limited to tablet and desktop resolutions as 22em is bigger than most mobile screens.
Historically, the mobile skin (Minerva) has used !important to override them but this is not sustainable.*/



.infobox {
    max-width: 30em;
    min-width: 30em;
	width: 30em;
}

.infobox-item {
	width:20em;
}

.infobox-item-title {
	width:10em;
}


.infobox-dual-illustration {
	
	max-width: 30em;
	
}

.infobox-illustration img {
	
	max-width: 30em;
	
	
}

.infobox-full-width-content {
    max-width: 40em;
}