Template:Multiple image/styles.css: Difference between revisions

From Vigyanwiki
< Template:Multiple image
(Adding protection template)
(add template styles which will also work on mobile)
Line 1: Line 1:
/* {{pp-template}} */
/* this is a block */
/* Note this will not work on old devices that do not support media queries. Ideally this should be defaults. */
.thumbinner {
display: flex;
flex-direction: column;
}
 
.trow {
display: flex;
flex-direction: row;
clear: left;
flex-wrap: wrap;
width: 100%;
box-sizing: border-box;
}
 
/* this is a cell */
.tsingle {
margin: 1px;
float: left;
}
 
.theader {
clear: both;
font-weight: bold;
text-align: center;
align-self: center;
background-color: transparent;
width: 100%;
}
 
.thumbcaption {
text-align: left;
background-color: transparent;
}
 
.text-align-left {
text-align: left;
}
 
.text-align-right {
text-align: right;
}
 
.text-align-center {
text-align: center;
}
 
@media all and ( max-width: 720px ) {
@media all and ( max-width: 720px ) {
.tmulti > .thumbinner {
.thumbinner {
/* not !important usage can be removed when these are no longer inline styles
/* not !important usage can be removed when these are no longer inline styles
inside Template:Multiple image and media query using min-width is introduced */
inside Template:Multiple image and media query using min-width is introduced */
width: 100% !important;
width: 100% !important;
box-sizing: border-box;
max-width: none !important;
max-width: none !important;
align-items: center;
}
}
.tmulti .tsingle {
.trow {
justify-content: center;
}
.tsingle {
/* not !important usage can be removed when these are no longer inline styles
/* not !important usage can be removed when these are no longer inline styles
inside Template:Multiple image and media query using min-width is introduced */
inside Template:Multiple image and media query using min-width is introduced */
    float: none !important;
    float: none !important;
    max-width: none !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box;
    text-align: center;
    text-align: center;
}
.thumbcaption {
text-align: center;
}
}
}
}

Revision as of 17:11, 24 March 2019

/* this is a block */
.thumbinner {
	display: flex;
	flex-direction: column;
}

.trow {
	display: flex;
	flex-direction: row;
	clear: left;
	flex-wrap: wrap;
	width: 100%;
	box-sizing: border-box;
}

/* this is a cell */
.tsingle {
	margin: 1px;
	float: left;
}

.theader {
	clear: both;
	font-weight: bold;
	text-align: center;
	align-self: center;
	background-color: transparent;
	width: 100%;
}

.thumbcaption {
	text-align: left;
	background-color: transparent;
}

.text-align-left {
	text-align: left;
}

.text-align-right {
	text-align: right;
}

.text-align-center {
	text-align: center;
}

@media all and ( max-width: 720px ) {
	.thumbinner {
		/* not !important usage can be removed when these are no longer inline styles
		inside Template:Multiple image and media query using min-width is introduced */
		width: 100% !important;
		box-sizing: border-box;
		max-width: none !important;
		align-items: center;
	}
	.trow {
		justify-content: center;
	}
	.tsingle {
		/* not !important usage can be removed when these are no longer inline styles
		inside Template:Multiple image and media query using min-width is introduced */
	    float: none !important;
	    max-width: 100% !important;
	    box-sizing: border-box;
	    text-align: center;
	}
	.thumbcaption {
		text-align: center;
	}
}