Skip to content

Commit beda443

Browse files
committed
update
1 parent 441fde1 commit beda443

File tree

2 files changed

+19
-0
lines changed

2 files changed

+19
-0
lines changed

src/components/Header.astro

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ import ThemeToggle from './ThemeToggle.astro';
4848
padding: 0 1em;
4949
background: #f7e6e5;
5050
box-shadow: 0 2px 8px rgba(var(--black), 5%);
51+
overflow-x: hidden;
5152
}
5253
h2 {
5354
margin: 0;
@@ -62,6 +63,8 @@ import ThemeToggle from './ThemeToggle.astro';
6263
display: flex;
6364
align-items: center;
6465
justify-content: space-between;
66+
width: 100%;
67+
max-width: 100%;
6568
}
6669
nav a {
6770
padding: 1em 0.5em;

src/styles/global.css

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@
44
License MIT: https://github.com/HermanMartinus/bearblog/blob/master/LICENSE.md
55
*/
66

7+
* {
8+
box-sizing: border-box;
9+
}
10+
711
:root {
812
--gray-0: #090b11;
913
--gray-50: #141925;
@@ -63,6 +67,7 @@ body {
6367
background-size: 100% 600px;
6468
word-wrap: break-word;
6569
overflow-wrap: break-word;
70+
overflow-x: hidden;
6671
color: rgb(var(--gray-dark));
6772
font-size: 17px;
6873
line-height: 1.6;
@@ -74,6 +79,7 @@ main {
7479
max-width: 800px;
7580
margin: auto;
7681
padding: 3em 2em;
82+
box-sizing: border-box;
7783
}
7884

7985
/* Profile Section */
@@ -423,6 +429,16 @@ hr {
423429
main {
424430
padding: 1.5em 1em;
425431
max-width: 100%;
432+
width: 100%;
433+
}
434+
435+
.profile-section {
436+
width: 100%;
437+
}
438+
439+
.profile-info, .profile-photo {
440+
width: 100%;
441+
max-width: 100%;
426442
}
427443

428444
.profile-info h1 {

0 commit comments

Comments
 (0)