Template:MainPageInfopush.css: Difference between revisions
From VRChat Wiki
No edit summary |
No edit summary |
||
Line 24: | Line 24: | ||
background: none !important; | background: none !important; | ||
padding: 0 !important; | padding: 0 !important; | ||
} | |||
.tpl-infopush-content img { | |||
width: 100%; | |||
} | } | ||
Line 29: | Line 33: | ||
display: flex; | display: flex; | ||
justify-content: space-between; | justify-content: space-between; | ||
pointers-events: none; | |||
position: absolute; | position: absolute; | ||
inset: 0; | inset: 0; | ||
Line 37: | Line 42: | ||
width: 15%; | width: 15%; | ||
cursor: pointer; | cursor: pointer; | ||
pointer-events: all; | |||
background-size: 2rem; | background-size: 2rem; | ||
background-repeat: no-repeat; | background-repeat: no-repeat; |
Revision as of 01:01, 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-content p {
margin: 0;
display: contents;
}
.tpl-infopush-content a {
width: 100%;
flex-shrink: 0;
background: none !important;
padding: 0 !important;
}
.tpl-infopush-content img {
width: 100%;
}
.tpl-infopush-navigation {
display: flex;
justify-content: space-between;
pointers-events: none;
position: absolute;
inset: 0;
}
.tpl-infopush-navigation-item {
height: 100%;
width: 15%;
cursor: pointer;
pointer-events: all;
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");
}