diff --git a/src/lib/components/Hamburger.svelte b/src/lib/components/Hamburger.svelte index 54801a23..8b82ddfd 100644 --- a/src/lib/components/Hamburger.svelte +++ b/src/lib/components/Hamburger.svelte @@ -5,7 +5,7 @@ diff --git a/src/lib/components/Header.svelte b/src/lib/components/Header.svelte index 478a0460..91a02d7d 100644 --- a/src/lib/components/Header.svelte +++ b/src/lib/components/Header.svelte @@ -42,6 +42,12 @@ align-items: center; } + @media (max-width: 768px) { + header { + padding: 0.5em 0.5em; + } + } + .left { flex-grow: 1; flex-basis: 0; @@ -68,6 +74,10 @@ transition: all 0.2s; } + .logo a { + font-size: 0; + } + .logo a:hover img { animation-name: skewRandom; animation-duration: 0.5s; diff --git a/src/lib/components/Locale.svelte b/src/lib/components/Locale.svelte index d5274696..0c5dc776 100644 --- a/src/lib/components/Locale.svelte +++ b/src/lib/components/Locale.svelte @@ -1,24 +1,73 @@ - +
+ + + {#if isOpened} + + {/if} +
diff --git a/src/lib/components/MenuDesktop.svelte b/src/lib/components/MenuDesktop.svelte index 31736b78..b2174416 100644 --- a/src/lib/components/MenuDesktop.svelte +++ b/src/lib/components/MenuDesktop.svelte @@ -48,7 +48,7 @@ text-transform: uppercase; letter-spacing: 0; text-decoration: none; - transition: color 0.2s linear; + transition: color 0.2s; } nav a:hover { diff --git a/src/lib/components/Profile.svelte b/src/lib/components/Profile.svelte index e2609f71..1f9946b8 100644 --- a/src/lib/components/Profile.svelte +++ b/src/lib/components/Profile.svelte @@ -1,4 +1,4 @@ - -
+
{#if isSignedIn} - {#if menuOpened} -
-
- {$page.data.profile.userName} - Играть -
- + {/if} {:else} @@ -85,12 +91,7 @@ height: auto; } - .profile-menu { - position: absolute; - top: calc(58px + 4px); - right: 0; - padding: 4px 8px; - background-color: var(--color-background); - border: 2px solid var(--color-border); + .position-left { + right: 0; } diff --git a/src/lib/styles/styles.css b/src/lib/styles/styles.css index 2ddcaae9..9e96ca2e 100644 --- a/src/lib/styles/styles.css +++ b/src/lib/styles/styles.css @@ -5,6 +5,7 @@ --color-text: #331E0B; --color-twitch: #8E4EC6; --color-background: #FFF7ED; + --color-background-2: #F6EEE7; --color-border: #DCBC9F; --color-border-2: #E1DCCF; --color-bg-accent-1: #56468B; @@ -126,3 +127,24 @@ button:focus:not(:focus-visible) { background-position: bottom; background-size: cover; } + +.dropdown-menu { + position: absolute; + bottom: -0.25em; + transform: translateY(100%); + padding: 0.5em; + background-color: var(--color-background-2); + } + + .dropdown-menu button:not(:last-child), .dropdown-menu a:not(:last-child) { + margin-bottom: 0.25em; + } + + .dropdown-menu a { + color: inherit; + text-decoration: none; + } + + .dropdown-menu button:hover, .dropdown-menu a:hover { + color: var(--color-accent-1); + } diff --git a/src/routes/[lang]/(website)/character/[id]/+page.svelte b/src/routes/[lang]/(website)/character/[id]/+page.svelte index 52abde29..a3c4efdb 100644 --- a/src/routes/[lang]/(website)/character/[id]/+page.svelte +++ b/src/routes/[lang]/(website)/character/[id]/+page.svelte @@ -230,7 +230,7 @@ .post .avatar { height: 48px; width: 48px; - background-color: #EAE6DB; + background-color: var(--color-background-2); padding: 0.2em; margin-right: 1em; position: relative;