Skip to content

Commit eaa96e8

Browse files
author
Jan Stevens
committed
fix: small css tweaks
1 parent 13ba382 commit eaa96e8

File tree

5 files changed

+10
-13
lines changed

5 files changed

+10
-13
lines changed

src/components/ContactCard.astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { Icon } from 'astro-icon/components';
44
---
55

66
<a target="_blank" href={url} aria-label={url_name}>
7-
<button class="btn btn-outline btn-md mr-2">
7+
<button class="btn btn-outline btn-md">
88
<Icon name={icon} class="w-6 h-6" aria-label={url_name} />{url_name}
99
</button>
1010
</a>

src/components/Container.astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ const contact = await Astro.glob('../pages/contact/*.md');
8888
</AccordionLayout>
8989

9090
<AccordionLayout title={'Contact'} icon={'carbon:location-person'}>
91-
<div class="flex flex-wrap content-around gap-4 justify-center">
91+
<div class="flex flex-wrap content-around gap-6 justify-center">
9292
{
9393
contact.map((item) => {
9494
return (

src/components/Header.astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { Icon } from 'astro-icon/components';
33
import * as about from '../pages/about/about.md';
44
---
55

6-
<header class="mx-auto pt-12 pb-2 relative">
6+
<header class="mx-auto pt-12 pb-2 relative px-4">
77
<article
88
class="flex flex-col md:flex-col items-center gap-4 w-full max-w-2xl"
99
>

src/layouts/AccordionLayout.astro

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@ const { title, icon } = Astro.props;
88
<div class="collapse collapse-arrow ease-in-out duration-300">
99
<input aria-label={title} type="checkbox" />
1010
<div class="collapse-title font-extrabold tracking-tight md:text-2xl">
11-
<div class="flex">
11+
<div class="flex items-center">
1212
<Icon name={icon} class="w-8 h-8 mr-4" />
13-
{title}
13+
<span>{title}</span>
1414
</div>
1515
</div>
1616
<div class="collapse-content">

src/pages/index.astro

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ import { Icon } from 'astro-icon/components';
7676
>
7777
</div>
7878
<main
79-
class="mx-auto flex-grow max-h-[90vh] md:max-h-[70vh] max-w-3xl overflow-y-scroll py-2 grid w-[95vw]"
79+
class="mx-auto flex-grow max-h-[90vh] md:max-h-[70vh] max-w-3xl py-2 grid w-[95vw]"
8080
>
8181
<div class="container">
8282
<Container />
@@ -100,22 +100,19 @@ import { Icon } from 'astro-icon/components';
100100

101101
@media only screen and (max-width: 480px) {
102102
* {
103-
font-size: 12px;
103+
font-size: 14px;
104104
}
105105
}
106106

107-
.overflow-y-scroll::-webkit-scrollbar {
107+
::-webkit-scrollbar {
108108
width: 3px;
109+
scrollbar-width: 1px;
109110
}
110111

111-
.overflow-y-scroll::-webkit-scrollbar-thumb {
112+
::-webkit-scrollbar-thumb {
112113
background-color: oklch(var(--s));
113114
}
114115

115-
.overflow-y-scroll {
116-
scrollbar-width: 1px;
117-
}
118-
119116
@media (max-width: 768px) {
120117
.container {
121118
flex-direction: column;

0 commit comments

Comments
 (0)