mirror of
https://github.com/kogakure/website-astro-stefanimhoff.de.git
synced 2026-02-03 20:15:27 +00:00
chore: move icon and click area sizes into tokens
This commit is contained in:
@@ -16,10 +16,10 @@ const { backLink } = Astro.props;
|
|||||||
>
|
>
|
||||||
<button
|
<button
|
||||||
aria-label="Back to overview"
|
aria-label="Back to overview"
|
||||||
class="back-link-button flex h-[40px] w-[40px] cursor-pointer items-center justify-center border-none text-[0]"
|
class="back-link-button h-clickarea w-clickarea flex cursor-pointer items-center justify-center border-none text-[0]"
|
||||||
type="button"
|
type="button"
|
||||||
>
|
>
|
||||||
<Sprite name="ri:arrow-left-line" class="h-[25px] w-[25px]" />
|
<Sprite name="ri:arrow-left-line" class="h-icon w-icon" />
|
||||||
</button>
|
</button>
|
||||||
</a>
|
</a>
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -3,15 +3,15 @@ import { Sprite } from 'astro-icon';
|
|||||||
---
|
---
|
||||||
|
|
||||||
<theme-toggle
|
<theme-toggle
|
||||||
class="col-start-18 flex h-[40px] w-[40px] items-center self-center justify-center justify-self-center print:hidden"
|
class="col-start-18 flex h-clickarea w-clickarea items-center self-center justify-center justify-self-center print:hidden"
|
||||||
>
|
>
|
||||||
<button
|
<button
|
||||||
aria-label="Switch color theme"
|
aria-label="Switch color theme"
|
||||||
class="theme-toggle group flex h-[40px] w-[40px] cursor-pointer items-center justify-center self-center border-0 text-[0]"
|
class="theme-toggle h-clickarea w-clickarea group flex cursor-pointer items-center justify-center self-center border-0 text-[0]"
|
||||||
>
|
>
|
||||||
<Sprite
|
<Sprite
|
||||||
name="circle"
|
name="circle"
|
||||||
class="duration-500 h-[25px] w-[25px] transition-transform ease-in-out group-hover:scale-125 group-focus:scale-125"
|
class="duration-500 h-icon w-icon transition-transform ease-in-out group-hover:scale-125 group-focus:scale-125"
|
||||||
/>
|
/>
|
||||||
</button>
|
</button>
|
||||||
</theme-toggle>
|
</theme-toggle>
|
||||||
|
|||||||
@@ -61,11 +61,5 @@ const { title, backLink } = Astro.props;
|
|||||||
Footer
|
Footer
|
||||||
</footer>
|
</footer>
|
||||||
</Sprite.Provider>
|
</Sprite.Provider>
|
||||||
<style>
|
|
||||||
:global([astro-icon]) {
|
|
||||||
width: 24px;
|
|
||||||
height: 24px;
|
|
||||||
}
|
|
||||||
</style>
|
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|||||||
@@ -107,6 +107,8 @@ module.exports = {
|
|||||||
20: 'clamp(8.916rem, 19.08vw, 10.699rem)', // --space-20
|
20: 'clamp(8.916rem, 19.08vw, 10.699rem)', // --space-20
|
||||||
55: '5.55vw', // --space-55 TODO: new name, e.g. spacing-grid
|
55: '5.55vw', // --space-55 TODO: new name, e.g. spacing-grid
|
||||||
layout: 'clamp(1.5rem, 5.55vw, 4.5rem)',
|
layout: 'clamp(1.5rem, 5.55vw, 4.5rem)',
|
||||||
|
icon: '24px',
|
||||||
|
clickarea: '40px',
|
||||||
},
|
},
|
||||||
fontFamily: {
|
fontFamily: {
|
||||||
sans: ['SecuelaVariable', 'Arial', 'sans-serif'], // --font-family-base
|
sans: ['SecuelaVariable', 'Arial', 'sans-serif'], // --font-family-base
|
||||||
|
|||||||
Reference in New Issue
Block a user