Template:MainPageInfopush.css: Difference between revisions

From VRChat Wiki
No edit summary
No edit summary
Line 5: Line 5:
aspect-ratio: 1024 / 312;
aspect-ratio: 1024 / 312;
transform: translateX(0%);
transform: translateX(0%);
grid-column: span 2 / span 2;
}
}



Revision as of 11:13, 29 July 2024

.tpl-infopush {
	position: relative;
	padding: 0 !important;
	overflow: hidden;
	aspect-ratio: 1024 / 312;
	transform: translateX(0%);
	grid-column: span 2 / span 2;
}

.tpl-infopush-content {
	display: flex;
	transition: transform 0.3s;
	transform: translateX(-1200%);
}

.tpl-infopush-navigation {
	display: grid;
	grid-template-columns: repeat(8, minmax(0, 1fr));
	position: absolute;
	inset: 0;
	pointer-events: none;
}

.tpl-infopush-navigation-item {
	pointer-events: auto;
	height: 100%;
	cursor: pointer;
	background-size: 2rem;
	background-repeat: no-repeat;
	background-position: center;
	opacity: 0%;
	transition: opacity 200ms;
}

.tpl-infopush-action {
	pointer-events: auto;
	cursor: pointer;
}

.tpl-infopush-action-none {
	pointer-events: none;
	cursor: unset;
}

.tpl-infopush-navigation-item:hover {
	opacity: 100%;
}

.tpl-infopush-navigation-previous {
	background-image: url("https://wiki-files.vrchat.com/Icons_Arrow_Left.png");
}

.tpl-infopush-navigation-next {
	background-image: url("https://wiki-files.vrchat.com/Icons_Arrow_Right.png");
}

.tpl-infopush-action {
	height: 100%;
	grid-column: span 6 / span 6;
}