mirror of
https://github.com/thepaperpilot/Super-Auto-Coots.git
synced 2025-04-01 13:30:58 +00:00
Style changes
This commit is contained in:
parent
13f73014b8
commit
b3bdad5521
4 changed files with 49 additions and 15 deletions
|
@ -120,17 +120,18 @@ function openDiscord() {
|
||||||
left: 0;
|
left: 0;
|
||||||
right: 0;
|
right: 0;
|
||||||
top: 0;
|
top: 0;
|
||||||
height: 46px;
|
height: 4vmin;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
border-bottom: 4px solid var(--outline);
|
border-bottom: 4px solid var(--outline);
|
||||||
}
|
}
|
||||||
|
|
||||||
.nav > * {
|
.nav > * {
|
||||||
height: 46px;
|
height: 4vmin;
|
||||||
width: 46px;
|
width: 4vmin;
|
||||||
display: flex;
|
display: flex;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
flex-shrink: 0;
|
flex-shrink: 0;
|
||||||
|
font-size: 3.5vmin;
|
||||||
}
|
}
|
||||||
|
|
||||||
.nav > .banner {
|
.nav > .banner {
|
||||||
|
@ -148,8 +149,8 @@ function openDiscord() {
|
||||||
}
|
}
|
||||||
|
|
||||||
.overlay-nav > * {
|
.overlay-nav > * {
|
||||||
height: 50px;
|
height: 4vmin;
|
||||||
width: 50px;
|
width: 4vmin;
|
||||||
display: flex;
|
display: flex;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
|
@ -158,7 +159,6 @@ function openDiscord() {
|
||||||
}
|
}
|
||||||
|
|
||||||
.title {
|
.title {
|
||||||
font-size: 36px;
|
|
||||||
text-align: left;
|
text-align: left;
|
||||||
margin-left: 12px;
|
margin-left: 12px;
|
||||||
cursor: unset;
|
cursor: unset;
|
||||||
|
@ -217,8 +217,8 @@ function openDiscord() {
|
||||||
margin-bottom: 4px;
|
margin-bottom: 4px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.discord-links li:first-child {
|
.discord-links li {
|
||||||
font-size: 1.2em;
|
font-size: 2vmin;
|
||||||
}
|
}
|
||||||
|
|
||||||
*:not(.overlay-nav) .discord:hover .discord-links {
|
*:not(.overlay-nav) .discord:hover .discord-links {
|
||||||
|
@ -226,7 +226,7 @@ function openDiscord() {
|
||||||
}
|
}
|
||||||
|
|
||||||
.material-icons {
|
.material-icons {
|
||||||
font-size: 36px;
|
font-size: 4vmin;
|
||||||
}
|
}
|
||||||
|
|
||||||
.material-icons:hover {
|
.material-icons:hover {
|
||||||
|
@ -238,6 +238,7 @@ function openDiscord() {
|
||||||
height: 25px;
|
height: 25px;
|
||||||
margin-bottom: 0;
|
margin-bottom: 0;
|
||||||
margin-left: 10px;
|
margin-left: 10px;
|
||||||
|
font-size: 2vmin;
|
||||||
}
|
}
|
||||||
|
|
||||||
.overlay-nav .version-container {
|
.overlay-nav .version-container {
|
||||||
|
|
|
@ -167,6 +167,7 @@ watchEffect(() => {
|
||||||
|
|
||||||
.character.shake {
|
.character.shake {
|
||||||
animation: shake 0.5s infinite;
|
animation: shake 0.5s infinite;
|
||||||
|
z-index: 10;
|
||||||
}
|
}
|
||||||
|
|
||||||
.character * {
|
.character * {
|
||||||
|
|
|
@ -140,6 +140,7 @@
|
||||||
padding: 1vmin 0 0.5vmin 0;
|
padding: 1vmin 0 0.5vmin 0;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
|
font-size: 2vmin;
|
||||||
}
|
}
|
||||||
|
|
||||||
.stream-type.active {
|
.stream-type.active {
|
||||||
|
@ -176,6 +177,7 @@
|
||||||
.no-margin .row {
|
.no-margin .row {
|
||||||
margin: 0;
|
margin: 0;
|
||||||
flex-flow: row;
|
flex-flow: row;
|
||||||
|
z-index: 10;
|
||||||
}
|
}
|
||||||
|
|
||||||
.shop .row::after {
|
.shop .row::after {
|
||||||
|
@ -229,6 +231,8 @@
|
||||||
.battle-container {
|
.battle-container {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
|
margin: -25px 0;
|
||||||
|
height: calc(100% + 50px);
|
||||||
}
|
}
|
||||||
|
|
||||||
.battle-container:not(.fast) * {
|
.battle-container:not(.fast) * {
|
||||||
|
@ -237,7 +241,7 @@
|
||||||
|
|
||||||
.teams-container {
|
.teams-container {
|
||||||
display: flex;
|
display: flex;
|
||||||
height: calc(93vh - 154px);
|
height: calc(93vh - 104px);
|
||||||
width: 93%;
|
width: 93%;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
}
|
}
|
||||||
|
@ -261,6 +265,7 @@
|
||||||
filter: drop-shadow(2px 4px 6px black);
|
filter: drop-shadow(2px 4px 6px black);
|
||||||
text-shadow: -1px 1px 0 var(--raised-background), 1px 1px 0 var(--raised-background), 1px -1px 0 var(--raised-background), -1px -1px 0 var(--raised-background);
|
text-shadow: -1px 1px 0 var(--raised-background), 1px 1px 0 var(--raised-background), 1px -1px 0 var(--raised-background), -1px -1px 0 var(--raised-background);
|
||||||
z-index: 1;
|
z-index: 1;
|
||||||
|
overflow: hidden;
|
||||||
}
|
}
|
||||||
|
|
||||||
.stream-details {
|
.stream-details {
|
||||||
|
@ -292,7 +297,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
.members-container {
|
.members-container {
|
||||||
width: 18vmin;
|
margin: auto 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.members-container .col {
|
.members-container .col {
|
||||||
|
@ -314,7 +319,6 @@
|
||||||
|
|
||||||
.battle-controls {
|
.battle-controls {
|
||||||
display: flex;
|
display: flex;
|
||||||
margin-top: -2vmin;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.battle-controls .button {
|
.battle-controls .button {
|
||||||
|
@ -336,13 +340,18 @@
|
||||||
left: 50%;
|
left: 50%;
|
||||||
transform: translate(-50%, -50%);
|
transform: translate(-50%, -50%);
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
|
z-index: 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
.character-transition-enter-from {
|
.character-transition-enter-from {
|
||||||
transform: translateX(-100%);
|
transform: translateX(-200%);
|
||||||
}
|
}
|
||||||
.character-transition-leave-to {
|
.character-transition-leave-to {
|
||||||
transform: translateX(100%);
|
transform: translateX(-200%);
|
||||||
|
}
|
||||||
|
.team-container:first-child
|
||||||
|
.character-transition-leave-to {
|
||||||
|
transform: translateX(200%);
|
||||||
}
|
}
|
||||||
.streamer-transition-enter-from {
|
.streamer-transition-enter-from {
|
||||||
transform: translateY(100%);
|
transform: translateY(100%);
|
||||||
|
@ -385,3 +394,18 @@
|
||||||
50% { transform: rotate(30deg); }
|
50% { transform: rotate(30deg); }
|
||||||
80% {transform:scale(.95);}
|
80% {transform:scale(.95);}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@media (orientation: landscape) {
|
||||||
|
.members-container .col {
|
||||||
|
flex-direction: row-reverse;
|
||||||
|
}
|
||||||
|
|
||||||
|
.team-container:first-child .members-container .col {
|
||||||
|
flex-direction: row;
|
||||||
|
}
|
||||||
|
|
||||||
|
.stream-container {
|
||||||
|
width: 50%;
|
||||||
|
margin: 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
|
@ -910,6 +910,7 @@ export const main = createLayer("main", function (this: BaseLayer) {
|
||||||
return {
|
return {
|
||||||
name: "Game",
|
name: "Game",
|
||||||
minimizable: false,
|
minimizable: false,
|
||||||
|
minWidth: 100,
|
||||||
display: jsx(() => {
|
display: jsx(() => {
|
||||||
if (wins.value >= 5) {
|
if (wins.value >= 5) {
|
||||||
return (
|
return (
|
||||||
|
@ -920,7 +921,12 @@ export const main = createLayer("main", function (this: BaseLayer) {
|
||||||
<CharacterSlot character={team.value[i]} />
|
<CharacterSlot character={team.value[i]} />
|
||||||
))}
|
))}
|
||||||
</Row>
|
</Row>
|
||||||
<img src={playAgain} class="button" onClick={() => location.reload()} />
|
<img
|
||||||
|
src={playAgain}
|
||||||
|
class="button"
|
||||||
|
style="height: 20vmin; image-rendering: pixelated;"
|
||||||
|
onClick={() => location.reload()}
|
||||||
|
/>
|
||||||
{render(particles)}
|
{render(particles)}
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
|
@ -1029,6 +1035,7 @@ export const main = createLayer("main", function (this: BaseLayer) {
|
||||||
/>
|
/>
|
||||||
))}
|
))}
|
||||||
</TransitionGroup>
|
</TransitionGroup>
|
||||||
|
<div style="font-size: 5vmin; margin: 5vmin;">→</div>
|
||||||
</Column>
|
</Column>
|
||||||
</div>
|
</div>
|
||||||
<div class="team-container">
|
<div class="team-container">
|
||||||
|
@ -1088,6 +1095,7 @@ export const main = createLayer("main", function (this: BaseLayer) {
|
||||||
/>
|
/>
|
||||||
))}
|
))}
|
||||||
</TransitionGroup>
|
</TransitionGroup>
|
||||||
|
<div style="font-size: 5vmin; margin: 5vmin;">←</div>
|
||||||
</Column>
|
</Column>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Add table
Reference in a new issue