MediaWiki:Infobox.css: Difference between revisions

From Coral Island Wiki
Jump to navigation Jump to search
(Created page with "→‎Background: .portable-infobox { background-color: var(--theme-infobox-bg); border-radius: 6px; } →‎Title: .page-content .portable-infobox .pi-title { font-size: 20px; background-color:var(--theme-accent-color); color: #383533; border-radius: 5px 5px 0 0; } →‎Caption: .pi-caption { color: rgba(var(--theme-page-text-color--rgb),.9); } →‎Border: .portable-infobox, .portable-infobox .pi-border-color { border-color: var(--theme-border-color); border-...")
 
m (gray bg, not blue)
 
(35 intermediate revisions by 2 users not shown)
Line 1: Line 1:
/* Background */
.portable-infobox {
.portable-infobox {
background-color: var(--theme-infobox-bg);
float: right;
border-radius: 6px;
clear: right;
font-size: .9em;
max-width: 300px;
}
}


/* Title */
.pi-caption {
.page-content .portable-infobox .pi-title {
font-size: 1.15em;
font-size: 20px;
color: var(--theme-page-text-color);
background-color:var(--theme-accent-color);
}
color: #383533;
 
border-radius: 5px 5px 0 0;
.pi-item-spacing.pi-caption {
  padding: 4px 8px;
}
 
.pi-image-thumbnail {
  min-width: fit-content;
  height: auto;
  max-width: 100%;
}
 
/* || TABS */
.pi-media-collection .pi-media-collection-tabs {
  font-size: 1.2em;
  padding: 6px 4px 6px 4px;
  width: auto;
  max-width: none;
}
 
.pi-media-collection .pi-tab-link {
  padding: 8px;
  border: none;
  color: var(--gray-500);
  flex-grow: 1;
}
 
.pi-media-collection .pi-tab-link.current {
  padding: 8px;
  border: none;
  /* border-bottom: 3px solid var(--light-blue); */
  background-color: var(--gray-100);
  border-radius: 4px;
  font-weight: 500;
}
 
/* Avoid tabs from going off-screen and needing horizontal scrooling */
.pi-media-collection-tabs {
display: flex;
flex-direction: row;
width: 100%;
flex-wrap: wrap;
margin-left: 0 !important;
}
 
/* || VALUES */
.portable-infobox {
  border: 1px solid var(--theme-border-color);
  background-color: var(--gray-050);
}
 
.portable-infobox .pi-data-label {
  margin: 2px 6px;
  padding: 0;
  font-weight: 500;
}
 
.portable-infobox .pi-data-value {
  padding: 7px; /* align values to labels */
}
}


/* Caption */
.portable-infobox .pi-title {
.pi-caption {
  background: var(--brown-300);
color: rgba(var(--theme-page-text-color--rgb),.9);
  color: var(--theme-accent-label-color);
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
  text-align: center;
  font-weight: 500;
}
}


/* Border */
.pi-title p {
.portable-infobox, .portable-infobox .pi-border-color
  margin: 4px 0;
{
  font-size: .85em;
border-color: var(--theme-border-color);
border-collapse: collapse;
}
}


/* Group header */
.portable-infobox .pi-header {
.portable-infobox .pi-secondary-background {
  background: var(--brown-100);
background-color: var(--theme-accent-bg);
  color: var(--theme-accent-label-color);
color: var(--theme-page-text-color);
  text-align: center;
  font-weight: 500;
}


.pi-header p {
  margin: 8px 0;
}
}


.page-content .portable-infobox .pi-header {
.portable-infobox .pi-border-color {
font-size: 15px;
  border-color: var(--theme-border-color);
text-align: center;
border-bottom: 1px solid var(--theme-border-color)!important;
    border-top: 1px solid var(--theme-border-color)!important;
}
}


/* Tabs text */
/* || RESPONSIVE */
.portable-infobox .wds-tabs__tab-label {
@media screen and (max-width: 720px){
font-size: 15px;
.portable-infobox {
font-family: Fredoka, Rubik, sans-serif;
font-size: .85em;
}
}
}


.pi-data-value hr {
@media screen and (max-width:600px){
  border: 0px;
.portable-infobox {
  border-top: 1px solid;
max-width: 100%;
  border-color: rgba(var(--theme-border-color--rgb), 0.7);
margin: 0 0 16px 0;
  margin:2px 0;
}
.pi-media-collection .pi-media-collection-tabs {
width: auto;
        max-width: none;
}
}
}

Latest revision as of 14:26, 23 July 2024

.portable-infobox {
	float: right;
	clear: right;
	font-size: .9em;
	max-width: 300px;
}

.pi-caption {
	font-size: 1.15em;
	color: var(--theme-page-text-color);
}

.pi-item-spacing.pi-caption {
  padding: 4px 8px;
}

.pi-image-thumbnail {
  min-width: fit-content;
  height: auto;
  max-width: 100%;
}

/* || TABS */
.pi-media-collection .pi-media-collection-tabs {
  font-size: 1.2em;
  padding: 6px 4px 6px 4px;
  width: auto;
  max-width: none;
}

.pi-media-collection .pi-tab-link {
  padding: 8px;
  border: none;
  color: var(--gray-500);
  flex-grow: 1;
}

.pi-media-collection .pi-tab-link.current {
  padding: 8px;
  border: none;
  /* border-bottom: 3px solid var(--light-blue); */
  background-color: var(--gray-100);
  border-radius: 4px;
  font-weight: 500;
}

/* Avoid tabs from going off-screen and needing horizontal scrooling */
.pi-media-collection-tabs {
	display: flex;
	flex-direction: row;
	width: 100%;
	flex-wrap: wrap;
	margin-left: 0 !important;
}

/* || VALUES */
.portable-infobox {
  border: 1px solid var(--theme-border-color);
  background-color: var(--gray-050);
}

.portable-infobox .pi-data-label {
  margin: 2px 6px;
  padding: 0;
  font-weight: 500;
}

.portable-infobox .pi-data-value {
  padding: 7px; /* align values to labels */
}

.portable-infobox .pi-title {
  background: var(--brown-300);
  color: var(--theme-accent-label-color);
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
  text-align: center;
  font-weight: 500;
}

.pi-title p {
  margin: 4px 0;
  font-size: .85em;
}

.portable-infobox .pi-header {
  background: var(--brown-100);
  color: var(--theme-accent-label-color);
  text-align: center;
  font-weight: 500;
}

.pi-header p {
  margin: 8px 0;
}

.portable-infobox .pi-border-color {
  border-color: var(--theme-border-color);
}

/* || RESPONSIVE */
@media screen and (max-width: 720px){
	.portable-infobox {
		font-size: .85em;
	}
}

@media screen and (max-width:600px){
	.portable-infobox {
		max-width: 100%;
		margin: 0 0 16px 0;
	}
	
	.pi-media-collection .pi-media-collection-tabs {
		width: auto;
        max-width: none;
	}
}