From 6ccc5215dd84addb5dbc8f56f84c34ea778038be Mon Sep 17 00:00:00 2001 From: Sarahtonin Date: Sun, 30 Aug 2026 18:18:58 +0200 Subject: [PATCH] Fixed styling for forms and inputs, and also changed headers to be correct. --- Pages/Profile.php | 2 +- Styles/Style.css | 214 ++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 215 insertions(+), 1 deletion(-) diff --git a/Pages/Profile.php b/Pages/Profile.php index ee61212..5f87dc6 100644 --- a/Pages/Profile.php +++ b/Pages/Profile.php @@ -178,7 +178,7 @@ $PageTitle = "Profile";
-

Import Account

+

Import Account

To use an existing Garden account on diff --git a/Styles/Style.css b/Styles/Style.css index 20c49ec..c3f7bfc 100644 --- a/Styles/Style.css +++ b/Styles/Style.css @@ -750,3 +750,217 @@ select { .LeaderboardTable td:last-child { text-align: right; } + +.ProfileSection { + margin-top: 1.5rem; + padding: 1rem; + + background-color: var(--Mantle); + border: 4px solid var(--Mauve); +} + +.ProfileSection h2 { + margin-bottom: 1rem; +} + +.ProfileFormRow, +.ProfileButtonRow { + display: flex; + flex-wrap: wrap; + gap: 0.75rem; + + align-items: center; +} + +.ProfileButtonRow { + margin-top: 0.75rem; +} + +.ProfileSection label { + display: block; + margin-bottom: 0.5rem; + + color: var(--Blue); +} + +.ProfileSection input, +.ProfileSection textarea, +.ProfileSection button { + font-family: inherit; + font-size: 1rem; + + color: var(--Text); + background-color: var(--Surface0); + + border: 3px solid var(--Surface2); + border-radius: 0; + + appearance: none; +} + +.ProfileSection input, +.ProfileSection textarea { + padding: 0.6rem; + + outline: none; +} + +.ProfileSection input { + min-width: 12rem; +} + +.ProfileSection textarea { + width: 100%; + max-width: 24rem; + + resize: vertical; +} + +.ProfileSection input::placeholder, +.ProfileSection textarea::placeholder { + color: var(--Overlay1); +} + +.ProfileSection input:hover, +.ProfileSection textarea:hover { + background-color: var(--Surface1); + border-color: var(--Overlay2); +} + +.ProfileSection input:focus, +.ProfileSection textarea:focus { + background-color: var(--Surface1); + border-color: var(--Sky); +} + +.ProfileSection button { + padding: 0.6rem 0.8rem; + + cursor: pointer; + + box-shadow: + 3px 3px 0 + var(--Crust); +} + +.ProfileSection button:hover { + color: var(--Sky); + background-color: var(--Surface1); + + border-color: var(--Sky); + + transform: translate(1px, 1px); + + box-shadow: + 2px 2px 0 + var(--Crust); +} + +.ProfileSection button:active { + color: var(--Green); + background-color: var(--Surface2); + + border-color: var(--Green); + + transform: translate(2px, 2px); + + box-shadow: + 1px 1px 0 + var(--Crust); +} + +.ProfileSection button:focus-visible, +.ProfileSection summary:focus-visible { + outline: 3px solid var(--Yellow); + outline-offset: 3px; +} + +.ProfileMessage { + margin-top: 0.75rem; + margin-bottom: 0; + + color: var(--Subtext1); +} + +.ProfileStatistics { + display: flex; + flex-direction: column; + gap: 0.75rem; +} + +.ProfileStatistic { + display: flex; + justify-content: space-between; + gap: 1rem; + + padding: 0.75rem; + + background-color: var(--Base); + border: 3px solid var(--Surface2); +} + +.ProfileStatisticName { + color: var(--Subtext1); +} + +.AccountKeySpoiler { + margin-top: 1rem; + + background-color: var(--Base); + border: 3px solid var(--Surface2); +} + +.AccountKeySpoiler summary { + padding: 0.75rem; + + cursor: pointer; + + color: var(--Text); + background-color: var(--Surface0); +} + +.AccountKeySpoiler summary:hover { + color: var(--Sky); + background-color: var(--Surface1); +} + +.AccountKeyContent { + padding: 1rem; + border-top: 3px solid var(--Surface2); +} + +#AccountKeyDisplay { + display: block; + + margin-top: 0.75rem; + margin-bottom: 0.75rem; + padding: 0.75rem; + + overflow-x: auto; + white-space: pre-wrap; + word-break: break-all; + + color: var(--Green); + background-color: var(--Crust); + + border: 3px solid var(--Surface2); +} + +@media (max-width: 700px) { + .ProfileFormRow, + .ProfileButtonRow { + flex-direction: column; + align-items: stretch; + } + + .ProfileSection input, + .ProfileSection textarea, + .ProfileSection button { + width: 100%; + } + + .ProfileStatistic { + flex-direction: column; + align-items: flex-start; + } +}