MediaWiki:Minerva.less/infobox.less: Difference between revisions

From Brighter Shores Wiki
Jump to navigation Jump to search
Content added Content deleted
(Remove some unused classes)
No edit summary
 
(2 intermediate revisions by the same user not shown)
Line 10: Line 10:
.infobox {
.infobox {
font-size: 85%;
font-size: 85%;
background-color: @infobox-background;
border: 1px solid @infobox-border-color;
box-shadow: @box-shadow;
table-layout: fixed;
table-layout: fixed;
border-collapse: separate;
// override minerva's mobile-friendlyness
// override minerva's mobile-friendlyness
Line 24: Line 22:
background: none; // bg in > 720px
background: none; // bg in > 720px
}
}
}

.infobox-header {
color: @white;
font-size: 1.15em;
background: @infobox-header-color;
padding: .5em 0;
text-align: center;
}

.infobox-subheader {
background: @infobox-subheader-color;
line-height: 2em;
text-align: center;
color: @white;

a {
color: var(--link-color);
}
}

th:not(.infobox-nested):not(.infobox-subheader):not(.infobox-header) {
text-align: right;
vertical-align: top;
border-right: 2px solid @infobox-subheader-color;
padding: 0.2em 0.5em;
}
}
Line 67: Line 39:
.infobox-padding {
.infobox-padding {
height: 0.5em;
padding: 0;
padding: 0;
border: 0;
border: 0;

Latest revision as of 21:42, 23 April 2024

/* ====================
       infoboxes
   ==================== */

@infobox-background: @BODY_LIGHT;
@infobox-header-color: @BODY_DARK;
@infobox-border-color: @BODY_BORDER;
@infobox-subheader-color: @BODY_MID;

.infobox {
    font-size: 85%;
    table-layout: fixed;
    border-collapse: separate;
    
    // override minerva's mobile-friendlyness
    // our infoboxes shouldn't be scrollable anyway
    .content & {
    	display: table;
    	
    	caption {
    		display: table-caption;
    		background: none; // bg in > 720px
    	}
    }
    
    caption.infobox-caption {
    	text-align: center;
    }

    td {
        padding: 0.25em 0.5em;
        line-height: 1.6em;

        &.infobox-nested {
            padding: 0.25em 0;
            line-height: 1em;
        }
    }
    
    .infobox-padding {
        padding: 0;
        border: 0;
    }
    
    .infobox-image {
        text-align: center;
    }

    .infobox-nested {
        text-align: center;

        &+.infobox-nested {
            border-left: 2px solid @infobox-subheader-color;
        }
    }
    
    .infobox-cell-hidden {
        display: none;
    }

    .infobox-full-width-content {
        max-width: 300px;
        text-align: center;
        overflow-x: hidden;
        padding: 0;
    }
}

.infobox-buttons {
    margin-top: 0.5em;
    text-align: center;
}

// Hides advanced data. Class gets replaced by .advanced-data-display
// if the showAdvancedData gadget is enabled.
.advanced-data {
    display: none;
}

@media screen and (min-width: @width-breakpoint-tablet) {
    .content table.infobox {
    	float: right;
        margin-top: 0.5em;
        margin-left: 1em;
        width: 300px !important; // Needed to compete with !important for .content table
        
        &.skill-info {
        	float: none;
        	margin: 0 0 1em 0;
        }
	}
}

@media screen and (min-width: @width-breakpoint-tablet) {
	.multi-infobox {
		float: right;
		margin-left: 1em;
		width: 300px;
	}
}