Jump to content

Template:Process box/style.css

From Wikimania
.tpl-process-box {
	width: 80%;
    margin: 1em auto;
    border: 1px solid #aab8c8;
    background: #f8fafb;
    border-radius: 4px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    grid-template-rows: auto 1fr;
    grid-template-areas: 'header header header' 'image-left content image-right';
    align-items: center;
    overflow-y: hidden;
}

.tpl-process-box-header {
	grid-area: header;
	display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.3em;
    border-bottom: 1px solid #aab8c8;
    background: #e8f0f3;
}

.tpl-process-box-header span {
	display: inline-block;
    border: 1px solid #808b9f;
    padding: 4px;
    margin: 0 4px;
    border-radius: 5px;
    background: #b0bfc8;
}

.tpl-process-box-header span.phase-active {
	display: inline-block;
    border: 1px solid #0063bf;
    margin: 0 4px;
    padding: 0 8px;
    border-radius: 0.8em;
    background: #aed8ff;
    font-size: 0.85em;
    font-weight: bold;
    line-height: 1.6;
    text-align: center;
}

.tpl-process-box-header span.phase-active.green {
	border-color: #2b8d5d;
	background: #bcead4;
}

.tpl-process-box-header span.phase-active.red {
	border-color: #bc0000;
	background: #ffabab;
}

.tpl-process-box-header span.phase-active.pink {
	border-color: #a91f59;
	background: #f4c2d7;
}

.tpl-process-box-header span.phase-active.yellow {
	border-color: #bd9500;
	background: #ffedac;
}

.tpl-process-box-content {
	grid-area: content;
	padding: 0 0.8em;
}

.tpl-process-box-content p {
	margin: 0.5em 0;
	padding: 0;
}

.tpl-process-box-image {
    margin: 0.5em 0;
    text-align: center;
}

.tpl-process-box-image.img-left {
	grid-area: image-left;
	padding-left: 0.8em;
}
.tpl-process-box-image.img-right {
	grid-area: image-right;
	padding-right: 0.8em;
}

@media screen {
	html.skin-theme-clientpref-night .tpl-process-box {
		background: #00151f;
		border-color: #3c546e;
	}
	html.skin-theme-clientpref-night .tpl-process-box-header {
		background: #012837;
		border-bottom-color: #3c546e;
	}
	html.skin-theme-clientpref-night .tpl-process-box-header span {
		border-color: #97bed1;
		background: #608698;
	}
	html.skin-theme-clientpref-night .tpl-process-box-header span.phase-active {
		border-color: #aed8ff;
		background: #0063bf;
	}
	html.skin-theme-clientpref-night .tpl-process-box-header span.phase-active.green {
		border-color: #bcead4;
		background: #2b8d5d;
	}
	html.skin-theme-clientpref-night .tpl-process-box-header span.phase-active.red {
		border-color: #ffabab;
		background: #bc0000;
		color: #fff;
	}
	html.skin-theme-clientpref-night .tpl-process-box-header span.phase-active.pink {
		border-color: #f4c2d7;
		background: #a91f59;
		color: #fff;
	}
	html.skin-theme-clientpref-night .tpl-process-box-header span.phase-active.yellow {
		border-color: #ffedac;
		background: #b38c00;
		color: #fff;
	}
}
@media screen and (prefers-color-scheme: dark) {
	html.skin-theme-clientpref-os .tpl-process-box {
		background: #00151f;
		border-color: #3c546e;
	}
	html.skin-theme-clientpref-os .tpl-process-box-header {
		background: #012837;
		border-bottom-color: #3c546e;
	}
	html.skin-theme-clientpref-os .tpl-process-box-header span {
		border-color: #97bed1;
		background: #608698;
	}
	html.skin-theme-clientpref-os .tpl-process-box-header span.phase-active {
		border-color: #aed8ff;
		background: #0063bf;
	}
	html.skin-theme-clientpref-os .tpl-process-box-header span.phase-active.green {
		border-color: #bcead4;
		background: #2b8d5d;
	}
	html.skin-theme-clientpref-os .tpl-process-box-header span.phase-active.red {
		border-color: #ffabab;
		background: #bc0000;
		color: #fff;
	}
	html.skin-theme-clientpref-os .tpl-process-box-header span.phase-active.pink {
		border-color: #f4c2d7;
		background: #a91f59;
		color: #fff;
	}
	html.skin-theme-clientpref-os .tpl-process-box-header span.phase-active.yellow {
		border-color: #ffedac;
		background: #b38c00;
		color: #fff;
	}
}

@media screen and (max-width: 720px) {
	.tpl-process-box {
		width: unset;
		grid-template-areas: 'image-left header image-right' 'content content content';
		align-items: stretch;
	}
	
	.tpl-process-box-image {
	    background: #e8f0f3;
	    border-bottom: 1px solid #aab8c8;
        width: unset !important;
        margin: 0;
        line-height: 1;
	    display: flex;
	    align-items: center;
	}
	
	.tpl-process-box-image img {
	    height: 20px !important;
	    width: auto !important;
	    object-fit: contain;
	}
	
	html.skin-theme-clientpref-night .tpl-process-box-image {
		background: #012837;
		border-bottom-color: #3c546e;
	}
}
@media screen and (prefers-color-scheme: dark) and (max-width: 720px) {
	html.skin-theme-clientpref-os .tpl-process-box-image {
		background: #012837;
		border-bottom-color: #3c546e;
	}
}