diff --git a/index.css b/index.css index 54eda86161d..3b74867be5f 100644 --- a/index.css +++ b/index.css @@ -69,7 +69,9 @@ input:-internal-autofill-selected { --controls-padding: 1rem; --controls-size-with-padding: calc(var(--controls-size) + var(--controls-padding)); + --controls-size-with-wide-padding: calc(var(--controls-size) *1.2 + var(--controls-padding)); --control-group-extra-size: calc(var(--controls-size) * 0.8); + --control-group-extra-wide-size: calc(var(--controls-size) * 1.2); --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); @@ -117,25 +119,31 @@ input:-internal-autofill-selected { width: var(--control-group-extra-size); height: var(--control-group-extra-size); } + /* Hide buttons on specific UIs */ -/* Show #cycleForm and #cycleShiny only on STARTER_SELECT and SETTINGS */ -#touchControls:not([data-ui-mode='STARTER_SELECT']):not([data-ui-mode^='SETTINGS']) #apadCycleForm, -#touchControls:not([data-ui-mode='STARTER_SELECT']):not([data-ui-mode^='SETTINGS']) #apadCycleShiny { +/* 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 { display: none; } /* Show #apadInfo only in battle */ -#touchControls:not([data-ui-mode='COMMAND']):not([data-ui-mode='FIGHT']):not([data-ui-mode='BALL']) #apadInfo { +#touchControls:not([data-ui-mode='COMMAND']):not([data-ui-mode='FIGHT']):not([data-ui-mode='BALL']):not([data-ui-mode='TARGET_SELECT']) #apadInfo { display: none; } -/* Show #apadInfo only in battle and target select */ +/* Show #apadStats only in battle and shop */ #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 */ +#touchControls:not(.config-mode):not([data-ui-mode='STARTER_SELECT']) #apadOpenFilters, +#touchControls:not(.config-mode):not([data-ui-mode='STARTER_SELECT']) #apadCycleForm, +#touchControls:not(.config-mode):not([data-ui-mode='STARTER_SELECT']) #apadCycleShiny, #touchControls:not(.config-mode):not([data-ui-mode='STARTER_SELECT']) #apadCycleNature, #touchControls:not(.config-mode):not([data-ui-mode='STARTER_SELECT']) #apadCycleAbility, #touchControls:not(.config-mode):not([data-ui-mode='STARTER_SELECT']) #apadCycleGender, @@ -272,8 +280,8 @@ input:-internal-autofill-selected { } #control-group-cancel { - right: var(--controls-size-with-padding); - bottom: var(--controls-padding);; + right: var(--controls-size-with-wide-padding); + bottom: var(--controls-padding); } #control-group-extra-1 { @@ -282,6 +290,7 @@ input:-internal-autofill-selected { } #control-group-extra-2 { + width: var(--control-group-extra-wide-size); right: var(--control-group-extra-2-offset); bottom: var(--control-group-extra-2-offset); } diff --git a/index.html b/index.html index 5ebf822521e..29b4c0d1a6e 100644 --- a/index.html +++ b/index.html @@ -96,36 +96,50 @@