Template:MainPageInfopush.css: Difference between revisions

From VRChat Wiki
No edit summary
No edit summary
Line 15: Line 15:


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


.tpl-infopush-navigation-item {
.tpl-infopush-navigation-item {
pointer-events: auto;
height: 100%;
height: 100%;
width: 15%;
cursor: pointer;
cursor: pointer;
background-size: 2rem;
background-size: 2rem;
Line 31: Line 30:
opacity: 0%;
opacity: 0%;
transition: opacity 200ms;
transition: opacity 200ms;
}
.tpl-infopush-action {
pointer-events: auto;
cursor: pointer;
}
.tpl-infopush-action-none {
pointer-events: none;
cursor: unset;
}
}


Line 53: Line 42:
.tpl-infopush-navigation-next {
.tpl-infopush-navigation-next {
background-image: url("https://wiki-files.vrchat.com/Icons_Arrow_Right.png");
background-image: url("https://wiki-files.vrchat.com/Icons_Arrow_Right.png");
}
.tpl-infopush-action {
height: 100%;
grid-column: span 6 / span 6;
}
}

Revision as of 00:49, 3 August 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(0%);
}

.tpl-infopush-navigation {
	display: flex;
	justify-content: space-between;
	position: absolute;
	inset: 0;
}

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

.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");
}