Skip to content

Commit 77c9242

Browse files
committed
fix mobile
1 parent 69e696d commit 77c9242

1 file changed

Lines changed: 49 additions & 4 deletions

File tree

css/index.css

Lines changed: 49 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -327,7 +327,41 @@ For devices with smaller width like mobile phone
327327
font-size: 25px;
328328
}
329329
.contact{
330-
display: none;
330+
display: flex;
331+
position: fixed;
332+
top: 10px;
333+
left: 0;
334+
right: 0;
335+
width: auto;
336+
height: 34px;
337+
padding: 0 10px;
338+
z-index: 9998;
339+
}
340+
.techstack-carousel{
341+
width: 100%;
342+
max-height: 34px;
343+
overflow: hidden;
344+
mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
345+
-webkit-mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
346+
}
347+
.techstack-track{
348+
flex-direction: row;
349+
gap: 8px;
350+
width: max-content;
351+
align-items: center;
352+
animation: techstackScrollMobileX 20s linear infinite;
353+
}
354+
.contact img{
355+
height: 22px;
356+
margin: 0;
357+
}
358+
@keyframes techstackScrollMobileX {
359+
from {
360+
transform: translateX(0);
361+
}
362+
to {
363+
transform: translateX(-50%);
364+
}
331365
}
332366
.header-image{
333367
float: right;
@@ -338,19 +372,30 @@ For devices with smaller width like mobile phone
338372
width: 100%;
339373
left: 0;
340374
bottom: 0;
341-
position: absolute;
342-
padding: 10px;
375+
position: fixed;
376+
padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
343377
height: auto;
344378
display: flex;
345379
flex-direction: row;
346380
align-items: center;
347381
justify-content: center;
382+
z-index: 9998;
383+
background: linear-gradient(to top, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0));
384+
}
385+
.social-media-links .social-media,
386+
.social-media-links .social-media-icon{
387+
width: 46px;
388+
height: 46px;
389+
min-width: 46px;
390+
min-height: 46px;
391+
margin: 0 6px;
392+
opacity: .85;
348393
}
349394
.header-content-box{
350395
padding-left: 0px;
351396
z-index: 2;
352397
text-align: center;
353-
padding: 0 10px;
398+
padding: 0 10px 88px;
354399
}
355400
#contact{
356401
display: none;

0 commit comments

Comments
 (0)