2024-08-10 13:17:04 +00:00
|
|
|
/* Global */
|
2023-12-25 20:03:50 +00:00
|
|
|
:root {
|
|
|
|
--color-base: hsl(0, 0%, 55%);
|
|
|
|
--color-light: hsl(0, 0%, 90%);
|
|
|
|
--color-dark: hsl(0, 0%, 10%);
|
|
|
|
}
|
|
|
|
|
|
|
|
html {
|
|
|
|
touch-action: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
body {
|
|
|
|
margin: 0;
|
2024-07-28 19:35:51 +00:00
|
|
|
display:flex;
|
|
|
|
flex-direction: column;
|
|
|
|
align-items: center;
|
2023-12-25 20:03:50 +00:00
|
|
|
background: #484050;
|
|
|
|
}
|
|
|
|
|
2024-08-24 22:56:50 +00:00
|
|
|
@media (display-mode: fullscreen) {
|
|
|
|
body {
|
|
|
|
background: #000000;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2023-12-25 20:03:50 +00:00
|
|
|
#app {
|
|
|
|
display: flex;
|
|
|
|
justify-content: center;
|
|
|
|
}
|
|
|
|
|
2023-12-30 23:41:25 +00:00
|
|
|
#app > div:first-child {
|
|
|
|
transform-origin: top !important;
|
|
|
|
}
|
|
|
|
|
2024-08-10 13:17:04 +00:00
|
|
|
#layout:fullscreen #dpad, #layout:fullscreen {
|
|
|
|
bottom: 6rem;
|
|
|
|
}
|
|
|
|
|
|
|
|
input:-internal-autofill-selected {
|
|
|
|
-webkit-background-clip: text;
|
|
|
|
background-clip: text;
|
|
|
|
}
|
|
|
|
|
2024-06-12 17:49:19 +00:00
|
|
|
/* Need adjust input font-size */
|
|
|
|
input {
|
|
|
|
font-size: 3.2rem;
|
|
|
|
}
|
|
|
|
|
2024-08-10 13:17:04 +00:00
|
|
|
.hidden {
|
|
|
|
display: none !important;
|
2023-12-25 20:03:50 +00:00
|
|
|
}
|
|
|
|
|
2024-08-10 13:17:04 +00:00
|
|
|
|
|
|
|
input:-internal-autofill-selected {
|
|
|
|
-webkit-background-clip: text;
|
|
|
|
background-clip: text;
|
2023-12-25 20:03:50 +00:00
|
|
|
}
|
|
|
|
|
2024-08-10 13:17:04 +00:00
|
|
|
/* Touch Controls: */
|
|
|
|
|
|
|
|
#touchControls {
|
|
|
|
--text-shadow-size: 0.65vh;
|
|
|
|
--controls-size: 10vh;
|
|
|
|
--touch-control-opacity: 0.6;
|
|
|
|
|
|
|
|
--controls-padding: 1rem;
|
|
|
|
|
|
|
|
--controls-size-with-padding: calc(var(--controls-size) + var(--controls-padding));
|
2024-08-12 04:44:00 +00:00
|
|
|
--controls-size-with-wide-padding: calc(var(--controls-size) *1.2 + var(--controls-padding));
|
2024-08-10 13:17:04 +00:00
|
|
|
--control-group-extra-size: calc(var(--controls-size) * 0.8);
|
2024-08-12 04:44:00 +00:00
|
|
|
--control-group-extra-wide-size: calc(var(--controls-size) * 1.2);
|
2024-08-10 13:17:04 +00:00
|
|
|
|
|
|
|
--control-group-extra-2-offset: calc(var(--controls-size-with-padding) + (var(--controls-size) - var(--control-group-extra-size)) / 2);
|
|
|
|
--control-group-extra-1-offset: calc(var(--controls-padding) + (var(--controls-size) - var(--control-group-extra-size)) / 2);
|
|
|
|
|
|
|
|
--small-control-size: calc(var(--controls-size) / 3);
|
|
|
|
--rect-control-size: calc(var(--controls-size) * 0.74);
|
|
|
|
|
|
|
|
font-family: 'emerald';
|
|
|
|
font-size: var(--controls-size);
|
|
|
|
text-shadow: var(--color-dark) var(--text-shadow-size) var(--text-shadow-size);
|
|
|
|
color: var(--color-light);
|
|
|
|
}
|
|
|
|
|
|
|
|
@media (orientation: landscape) {
|
|
|
|
#touchControls {
|
2024-09-03 00:37:53 +00:00
|
|
|
--controls-size: 20vh;
|
2024-08-10 13:17:04 +00:00
|
|
|
--text-shadow-size: 1.3vh;
|
|
|
|
--small-button-offset: 4vh;
|
2024-04-09 03:22:15 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2024-08-10 13:17:04 +00:00
|
|
|
#touchControls:not(.visible) {
|
|
|
|
display: none;
|
2023-12-25 20:03:50 +00:00
|
|
|
}
|
|
|
|
|
2024-08-10 13:17:04 +00:00
|
|
|
#touchControls .active {
|
|
|
|
opacity: var(--touch-control-opacity);
|
2023-12-25 20:03:50 +00:00
|
|
|
}
|
|
|
|
|
2024-08-10 13:17:04 +00:00
|
|
|
.control-group {
|
|
|
|
position: fixed;
|
|
|
|
display: flex;
|
|
|
|
flex-wrap: wrap;
|
|
|
|
justify-content: space-around;
|
|
|
|
align-items: center;
|
|
|
|
width: var(--controls-size);
|
|
|
|
}
|
|
|
|
|
|
|
|
.control-group-dpad {
|
2023-12-25 20:03:50 +00:00
|
|
|
width: calc(2 * var(--controls-size));
|
|
|
|
height: calc(2 * var(--controls-size));
|
|
|
|
}
|
|
|
|
|
2024-08-10 13:17:04 +00:00
|
|
|
.control-group-extra {
|
|
|
|
width: var(--control-group-extra-size);
|
|
|
|
height: var(--control-group-extra-size);
|
2023-12-25 20:03:50 +00:00
|
|
|
}
|
2024-08-12 04:44:00 +00:00
|
|
|
|
2024-08-10 13:17:04 +00:00
|
|
|
/* Hide buttons on specific UIs */
|
2023-12-25 20:03:50 +00:00
|
|
|
|
2024-08-12 04:44:00 +00:00
|
|
|
/* Show #apadPreviousTab and #apadNextTab only in settings, except in touch configuration panel */
|
|
|
|
#touchControls:not([data-ui-mode^='SETTINGS']) #apadPreviousTab,
|
|
|
|
#touchControls:not([data-ui-mode^='SETTINGS']) #apadNextTab,
|
|
|
|
#touchControls:is(.config-mode) #apadPreviousTab,
|
|
|
|
#touchControls:is(.config-mode) #apadNextTab {
|
2024-08-10 13:17:04 +00:00
|
|
|
display: none;
|
2023-12-25 20:03:50 +00:00
|
|
|
}
|
|
|
|
|
2024-08-10 13:17:04 +00:00
|
|
|
/* Show #apadInfo only in battle */
|
2024-08-12 04:44:00 +00:00
|
|
|
#touchControls:not([data-ui-mode='COMMAND']):not([data-ui-mode='FIGHT']):not([data-ui-mode='BALL']):not([data-ui-mode='TARGET_SELECT']) #apadInfo {
|
2024-08-10 13:17:04 +00:00
|
|
|
display: none;
|
2023-12-25 20:03:50 +00:00
|
|
|
}
|
|
|
|
|
2024-08-12 04:44:00 +00:00
|
|
|
/* Show #apadStats only in battle and shop */
|
2024-08-10 13:17:04 +00:00
|
|
|
#touchControls:not([data-ui-mode='COMMAND']):not([data-ui-mode='FIGHT']):not([data-ui-mode='BALL']):not([data-ui-mode='TARGET_SELECT']):not([data-ui-mode='MODIFIER_SELECT']) #apadStats {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Show cycle buttons only on STARTER_SELECT and on touch configuration panel */
|
2024-08-12 04:44:00 +00:00
|
|
|
#touchControls:not(.config-mode):not([data-ui-mode='STARTER_SELECT']) #apadOpenFilters,
|
2024-08-31 18:50:09 +00:00
|
|
|
#touchControls:not(.config-mode):not([data-ui-mode='STARTER_SELECT'], [data-ui-mode='RUN_INFO']) #apadCycleForm,
|
|
|
|
#touchControls:not(.config-mode):not([data-ui-mode='STARTER_SELECT'], [data-ui-mode='RUN_INFO']) #apadCycleShiny,
|
2024-08-10 13:17:04 +00:00
|
|
|
#touchControls:not(.config-mode):not([data-ui-mode='STARTER_SELECT']) #apadCycleNature,
|
2024-08-31 18:50:09 +00:00
|
|
|
#touchControls:not(.config-mode):not([data-ui-mode='STARTER_SELECT'], [data-ui-mode='RUN_INFO']) #apadCycleAbility,
|
2024-08-10 13:17:04 +00:00
|
|
|
#touchControls:not(.config-mode):not([data-ui-mode='STARTER_SELECT']) #apadCycleGender,
|
|
|
|
#touchControls:not(.config-mode):not([data-ui-mode='STARTER_SELECT']) #apadCycleVariant {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Configuration toolbar */
|
|
|
|
|
|
|
|
#configToolbar {
|
|
|
|
width: 100%;
|
|
|
|
position: fixed;
|
|
|
|
top: 1rem;
|
|
|
|
left: 0;
|
|
|
|
z-index: 9;
|
2023-12-25 20:03:50 +00:00
|
|
|
user-select: none;
|
|
|
|
}
|
|
|
|
|
2024-08-10 13:17:04 +00:00
|
|
|
#configToolbar .column {
|
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
align-items: center;
|
|
|
|
gap: 10%;
|
|
|
|
padding: 0 var(--controls-padding);
|
2023-12-25 20:03:50 +00:00
|
|
|
}
|
|
|
|
|
2024-08-10 13:17:04 +00:00
|
|
|
#configToolbar .button-row {
|
|
|
|
display: flex;
|
|
|
|
justify-content: space-evenly;
|
|
|
|
width: 100%;
|
2023-12-25 20:03:50 +00:00
|
|
|
}
|
|
|
|
|
2024-08-10 13:17:04 +00:00
|
|
|
#configToolbar .info-row {
|
|
|
|
display: flex;
|
|
|
|
justify-content: flex-start;
|
|
|
|
width: 100%;
|
2023-12-25 20:03:50 +00:00
|
|
|
}
|
|
|
|
|
2024-08-10 13:17:04 +00:00
|
|
|
#configToolbar .button {
|
|
|
|
z-index: 3;
|
|
|
|
background-color: var(--color-base);
|
|
|
|
display: flex;
|
|
|
|
justify-content: center;
|
|
|
|
align-items: center;
|
2024-01-06 03:24:05 +00:00
|
|
|
text-align: center;
|
2023-12-25 20:03:50 +00:00
|
|
|
border-radius: 10%;
|
2024-08-10 13:17:04 +00:00
|
|
|
height: var(--small-control-size);
|
|
|
|
font-size: var(--small-control-size);
|
|
|
|
border-radius: 8px;
|
|
|
|
padding: 2px 8px;
|
|
|
|
text-shadow: var(--color-dark) calc(var(--text-shadow-size) / 3) calc(var(--text-shadow-size) / 3);
|
2023-12-25 20:03:50 +00:00
|
|
|
}
|
|
|
|
|
2024-08-10 13:17:04 +00:00
|
|
|
#configToolbar .button:active {
|
|
|
|
opacity: var(--touch-control-opacity)
|
2023-12-25 20:03:50 +00:00
|
|
|
}
|
|
|
|
|
2024-08-10 13:17:04 +00:00
|
|
|
#configToolbar .orientation-label {
|
|
|
|
font-size: var(--small-control-size);
|
|
|
|
text-shadow: var(--color-dark) calc(var(--text-shadow-size) / 3) calc(var(--text-shadow-size) / 3);
|
2024-01-06 03:24:05 +00:00
|
|
|
}
|
|
|
|
|
2024-08-10 13:17:04 +00:00
|
|
|
/* dpad */
|
|
|
|
#dpad {
|
|
|
|
z-index: 3;
|
|
|
|
opacity: 0.8;
|
2024-01-06 03:24:05 +00:00
|
|
|
}
|
|
|
|
|
2024-08-10 13:17:04 +00:00
|
|
|
#dpad svg {
|
|
|
|
width: calc(2 * var(--controls-size));
|
|
|
|
height: calc(2 * var(--controls-size));
|
|
|
|
fill: var(--color-base);
|
|
|
|
}
|
|
|
|
|
|
|
|
/* apad buttons */
|
|
|
|
|
|
|
|
.apad-button {
|
|
|
|
background-color: var(--color-base);
|
|
|
|
border-radius: 50%;
|
|
|
|
display: flex;
|
|
|
|
justify-content: center;
|
2023-12-25 20:03:50 +00:00
|
|
|
align-items: center;
|
2024-08-10 13:17:04 +00:00
|
|
|
right: 0;
|
|
|
|
bottom: 0;
|
|
|
|
width: var(--controls-size);
|
|
|
|
height: var(--controls-size);
|
|
|
|
opacity: 0.8;
|
|
|
|
border-radius: 8px;
|
2023-12-25 20:03:50 +00:00
|
|
|
}
|
|
|
|
|
2024-08-10 13:17:04 +00:00
|
|
|
.apad-small {
|
|
|
|
width: var(--small-control-size);
|
|
|
|
height: var(--small-control-size);
|
2024-01-06 03:24:05 +00:00
|
|
|
}
|
|
|
|
|
2024-08-10 13:17:04 +00:00
|
|
|
.apad-label {
|
|
|
|
user-select: none;
|
|
|
|
height: 100%;
|
|
|
|
margin-right: -2px;
|
2024-04-19 02:52:26 +00:00
|
|
|
}
|
|
|
|
|
2024-08-10 13:17:04 +00:00
|
|
|
.apad-small > .apad-label {
|
|
|
|
font-size: var(--small-control-size);
|
|
|
|
text-shadow: var(--color-dark) calc(var(--text-shadow-size) / 3) calc(var(--text-shadow-size) / 3);
|
2023-12-25 20:03:50 +00:00
|
|
|
}
|
|
|
|
|
2024-08-10 13:17:04 +00:00
|
|
|
.apad-rectangle {
|
|
|
|
text-align: center;
|
|
|
|
width: var(--rect-control-size);
|
|
|
|
height: var(--small-control-size);
|
|
|
|
}
|
|
|
|
|
|
|
|
.apad-square {
|
|
|
|
width: var(--small-control-size);
|
|
|
|
height: var(--small-control-size);
|
2024-05-01 03:02:16 +00:00
|
|
|
}
|
|
|
|
|
2024-08-10 13:17:04 +00:00
|
|
|
.apad-circle {
|
|
|
|
width: var(--controls-size);
|
|
|
|
height: var(--controls-size);
|
|
|
|
border-radius: 50%;
|
2023-12-25 20:03:50 +00:00
|
|
|
}
|
|
|
|
|
2024-08-10 13:17:04 +00:00
|
|
|
/* Defaults:*/
|
|
|
|
|
|
|
|
#control-group-dpad {
|
|
|
|
left: var(--controls-padding);
|
|
|
|
bottom: var(--controls-padding);
|
2023-12-25 20:03:50 +00:00
|
|
|
}
|
|
|
|
|
2024-08-10 13:17:04 +00:00
|
|
|
#control-group-action {
|
|
|
|
right: var(--controls-padding);
|
|
|
|
bottom: var(--controls-size-with-padding);
|
2023-12-25 20:03:50 +00:00
|
|
|
}
|
|
|
|
|
2024-08-10 13:17:04 +00:00
|
|
|
#control-group-cancel {
|
2024-08-12 04:44:00 +00:00
|
|
|
right: var(--controls-size-with-wide-padding);
|
|
|
|
bottom: var(--controls-padding);
|
2024-08-10 13:17:04 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
#control-group-extra-1 {
|
|
|
|
right: var(--control-group-extra-1-offset);
|
|
|
|
bottom: var(--control-group-extra-1-offset);
|
|
|
|
}
|
|
|
|
|
|
|
|
#control-group-extra-2 {
|
2024-08-12 04:44:00 +00:00
|
|
|
width: var(--control-group-extra-wide-size);
|
2024-08-10 13:17:04 +00:00
|
|
|
right: var(--control-group-extra-2-offset);
|
|
|
|
bottom: var(--control-group-extra-2-offset);
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Layout */
|
|
|
|
|
2023-12-25 20:03:50 +00:00
|
|
|
#layout:fullscreen #dpad, #layout:fullscreen #apad {
|
|
|
|
bottom: 6rem;
|
2024-02-20 02:09:06 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
input:-internal-autofill-selected {
|
|
|
|
-webkit-background-clip: text;
|
2024-02-20 05:02:44 +00:00
|
|
|
background-clip: text;
|
2024-06-01 12:56:32 +00:00
|
|
|
}
|
|
|
|
#banner {
|
|
|
|
display: none;
|
|
|
|
position: absolute;
|
|
|
|
top: 33.2%;
|
|
|
|
left: 0;
|
|
|
|
text-align: center;
|
|
|
|
z-index: 1000; /* Ensures the banner is on top of other elements */
|
|
|
|
& > img {
|
|
|
|
opacity: 50%;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2024-07-29 16:03:38 +00:00
|
|
|
#tnc-links {
|
2024-07-30 04:23:47 +00:00
|
|
|
font-size: xx-small;
|
2024-07-29 16:03:38 +00:00
|
|
|
position: relative;
|
|
|
|
}
|
|
|
|
|
|
|
|
a {
|
|
|
|
color: #328cea;
|
|
|
|
margin-right: 4px;
|
|
|
|
margin-left: 4px;
|
|
|
|
}
|
|
|
|
|
2024-06-01 12:56:32 +00:00
|
|
|
/* Firefox old*/
|
|
|
|
@-moz-keyframes blink {
|
|
|
|
0% {
|
|
|
|
opacity:1;
|
|
|
|
}
|
|
|
|
50% {
|
|
|
|
opacity:0;
|
|
|
|
}
|
|
|
|
100% {
|
|
|
|
opacity:1;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
@-webkit-keyframes blink {
|
|
|
|
0% {
|
|
|
|
opacity:1;
|
|
|
|
}
|
|
|
|
50% {
|
|
|
|
opacity:0;
|
|
|
|
}
|
|
|
|
100% {
|
|
|
|
opacity:1;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
/* IE */
|
|
|
|
@-ms-keyframes blink {
|
|
|
|
0% {
|
|
|
|
opacity:1;
|
|
|
|
}
|
|
|
|
50% {
|
|
|
|
opacity:0;
|
|
|
|
}
|
|
|
|
100% {
|
|
|
|
opacity:1;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
/* Opera and prob css3 final iteration */
|
|
|
|
@keyframes blink {
|
|
|
|
0% {
|
|
|
|
opacity:1;
|
|
|
|
}
|
|
|
|
50% {
|
|
|
|
opacity:0;
|
|
|
|
}
|
|
|
|
100% {
|
|
|
|
opacity:1;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
.blink-image {
|
|
|
|
-moz-animation: blink normal 4s infinite ease-in-out; /* Firefox */
|
|
|
|
-webkit-animation: blink normal 4s infinite ease-in-out; /* Webkit */
|
|
|
|
-ms-animation: blink normal 4s infinite ease-in-out; /* IE */
|
|
|
|
animation: blink normal 4s infinite ease-in-out; /* Opera and prob css3 final iteration */
|
2024-06-12 17:11:30 +00:00
|
|
|
}
|