Fixed a bug where the svg was not scaling properly in Safari

This commit is contained in:
blake committed 2026-03-12 19:05:24 -05:00
1 parent 287af0ecc2
commit 32618fcf42
3 files changed
+103 -57

No files matched your search

+9
View File
@@ -0,0 +1,9 @@
{
"permissions": {
"allow": [
"mcp__acp__Edit",
"mcp__acp__Bash",
"Bash(grep:*)"
]
}
}
+25 -5
View File
@@ -122,7 +122,7 @@
.nav-links { .nav-links {
background: linear-gradient( background: linear-gradient(
rgba(11, 21, 50, 0.95), rgba(11, 21, 50, 0.95),
rgb(45, 84, 199, 0.95), rgba(45, 84, 199, 0.95),
rgba(11, 21, 50, 0.95) rgba(11, 21, 50, 0.95)
); );
position: absolute; position: absolute;
@@ -138,8 +138,8 @@
border-bottom-left-radius: 100px; border-bottom-left-radius: 100px;
transition: all 0.4s ease-in; transition: all 0.4s ease-in;
font-size: 3rem; font-size: 3rem;
border-left: 3px solid rgb(255, 230, 66, 0.95); border-left: 3px solid rgba(255, 230, 66, 0.95);
border-bottom: 3px solid rgb(255, 230, 66, 0.95); border-bottom: 3px solid rgba(255, 230, 66, 0.95);
opacity: 0; opacity: 0;
pointer-events: none; pointer-events: none;
@@ -206,13 +206,13 @@
padding: 0.8rem 2rem; padding: 0.8rem 2rem;
font-size: 2rem; font-size: 2rem;
text-align: center; text-align: center;
color: rgba(255, 255, 255, 0.7); color: rgba(255, 255, 255, 0.7); /* var(--color-white) at 70% opacity */
} }
.dropdown-link:hover, .dropdown-link:hover,
.dropdown-link:active { .dropdown-link:active {
background-color: transparent; background-color: transparent;
color: #ffe642; color: var(--color-yellow);
} }
.steps-header { .steps-header {
@@ -248,6 +248,26 @@
grid-row: 1 / 2; grid-row: 1 / 2;
grid-column: 2 / 3; grid-column: 2 / 3;
} }
.testimonial-btn {
width: 5rem;
height: 5rem;
}
.testimonial-btn img {
width: 4rem;
height: 4rem;
}
.project-btn {
width: 5rem;
height: 5rem;
}
.project-btn img {
width: 4rem;
height: 4rem;
}
} }
/************************/ /************************/
+69 -52
View File
@@ -40,6 +40,13 @@ Default: 1
*/ */
:root {
--color-white: #fff;
--color-blue: #2d54c7;
--color-yellow: #ffe642;
--color-navy: #0b1532;
}
* { * {
padding: 0; padding: 0;
margin: 0; margin: 0;
@@ -57,8 +64,8 @@ body {
font-family: "Rubik", sans-serif; font-family: "Rubik", sans-serif;
line-height: 1; line-height: 1;
font-weight: 400; font-weight: 400;
color: #fff; color: var(--color-white);
background-color: #0b1532; background-color: var(--color-navy);
font-size: 2rem; font-size: 2rem;
overflow-x: hidden; overflow-x: hidden;
opacity: 1; opacity: 1;
@@ -75,7 +82,7 @@ body.page-transition-out {
left: 0; left: 0;
height: 4px; height: 4px;
width: 0%; width: 0%;
background: #ffe642; background: var(--color-yellow);
z-index: 10000; z-index: 10000;
} }
@@ -107,7 +114,7 @@ body.page-transition-out {
.main-nav-link:link, .main-nav-link:link,
.main-nav-link:visited { .main-nav-link:visited {
color: #fff; color: var(--color-white);
text-decoration: none; text-decoration: none;
transition: all 0.3s ease; transition: all 0.3s ease;
} }
@@ -116,7 +123,7 @@ body.page-transition-out {
.main-nav-link:active { .main-nav-link:active {
transform: scale(1.1); transform: scale(1.1);
text-decoration: none; text-decoration: none;
color: #2d54c7; color: var(--color-blue);
} }
.nav-links { .nav-links {
@@ -137,7 +144,7 @@ body.page-transition-out {
transform: translateX(-50%); transform: translateX(-50%);
list-style: none; list-style: none;
background: rgba(11, 21, 50, 0.5); background: rgba(11, 21, 50, 0.5);
border: 3px solid #2d54c7; border: 3px solid var(--color-blue);
border-radius: 20px; border-radius: 20px;
padding: 1.5rem 0; padding: 1.5rem 0;
min-width: 22rem; min-width: 22rem;
@@ -159,7 +166,7 @@ body.page-transition-out {
.dropdown-link:visited { .dropdown-link:visited {
display: block; display: block;
padding: 1.2rem 2.5rem; padding: 1.2rem 2.5rem;
color: #fff; color: var(--color-white);
text-decoration: none; text-decoration: none;
font-family: "Space Grotesk", sans-serif; font-family: "Space Grotesk", sans-serif;
font-size: 1.8rem; font-size: 1.8rem;
@@ -169,8 +176,8 @@ body.page-transition-out {
.dropdown-link:hover, .dropdown-link:hover,
.dropdown-link:active { .dropdown-link:active {
background-color: #2d54c7; background-color: var(--color-blue);
color: #ffe642; color: var(--color-yellow);
} }
.btn-mobile-nav { .btn-mobile-nav {
@@ -225,7 +232,7 @@ h3 {
font-size: 3rem; font-size: 3rem;
display: inline-block; display: inline-block;
padding-bottom: 3px; padding-bottom: 3px;
border-bottom: 3px solid #ffe642; border-bottom: 3px solid var(--color-yellow);
} }
p { p {
@@ -235,7 +242,7 @@ p {
.heading-icon { .heading-icon {
width: 3.6rem; width: 3.6rem;
height: 3.6rem; height: 3.6rem;
color: #fff; color: var(--color-white);
} }
.heading-wrapper { .heading-wrapper {
@@ -255,11 +262,11 @@ p {
font-weight: 500; font-weight: 500;
font-family: "Space Grotesk", sans-serif; font-family: "Space Grotesk", sans-serif;
background-color: transparent; background-color: transparent;
border: 3px solid #ffe642; border: 3px solid var(--color-yellow);
border-radius: 100px; border-radius: 100px;
padding: 1.6rem 3.2rem; padding: 1.6rem 3.2rem;
transition: all 0.3s; transition: all 0.3s;
color: #fff; color: var(--color-white);
width: fit-content; width: fit-content;
height: fit-content; height: fit-content;
cursor: pointer; cursor: pointer;
@@ -267,8 +274,8 @@ p {
.btn:hover, .btn:hover,
.btn:active { .btn:active {
background-color: #ffe642; background-color: var(--color-yellow);
color: #0b1532; color: var(--color-navy);
font-weight: 500; font-weight: 500;
transform: scale(1.1); transform: scale(1.1);
} }
@@ -277,14 +284,14 @@ p {
border: none !important; border: none !important;
display: flex !important; display: flex !important;
align-items: center; align-items: center;
text-decoration: underline #ffe642 !important; text-decoration: underline var(--color-yellow) !important;
font-size: 2.2rem; font-size: 2.2rem;
padding: 0 !important; padding: 0 !important;
} }
.btn-alt:hover { .btn-alt:hover {
background-color: transparent !important; background-color: transparent !important;
color: #fff; color: var(--color-white);
} }
.logo { .logo {
@@ -340,7 +347,7 @@ p {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
gap: 3.5rem; gap: 3.5rem;
border: 3px solid #2d54c7; border: 3px solid var(--color-blue);
border-radius: 20px; border-radius: 20px;
padding: 5rem; padding: 5rem;
transition: transform 0.3s; transition: transform 0.3s;
@@ -351,12 +358,12 @@ p {
.services-link:link, .services-link:link,
.services-link:visited { .services-link:visited {
text-decoration: none; text-decoration: none;
color: #fff; color: var(--color-white);
} }
.service-card:hover { .service-card:hover {
transform: translateY(-1.2rem); transform: translateY(-1.2rem);
box-shadow: 0 1rem 1rem 0 #2d54c7; box-shadow: 0 1rem 1rem 0 var(--color-blue);
} }
.service-card-header { .service-card-header {
@@ -382,8 +389,8 @@ p {
background: linear-gradient( background: linear-gradient(
to bottom, to bottom,
transparent, transparent,
#2d54c7, var(--color-blue),
#2d54c7, var(--color-blue),
transparent transparent
); );
display: flex; display: flex;
@@ -447,8 +454,8 @@ p {
.testimonial-btn { .testimonial-btn {
background-color: transparent; background-color: transparent;
border: 3px solid #fff; border: 3px solid var(--color-white);
color: #fff; color: var(--color-white);
width: 3.5rem; width: 3.5rem;
height: 3.5rem; height: 3.5rem;
border-radius: 50%; border-radius: 50%;
@@ -460,10 +467,15 @@ p {
justify-content: center; justify-content: center;
} }
.testimonial-btn img {
width: 2rem;
height: 2rem;
}
.testimonial-btn:hover { .testimonial-btn:hover {
background-color: #ffe642; background-color: var(--color-yellow);
border-color: #ffe642; border-color: var(--color-yellow);
color: #0b1532; color: var(--color-navy);
transform: scale(1.05); transform: scale(1.05);
} }
@@ -493,7 +505,7 @@ p {
background-color: rgb(11, 21, 50, 0.4); background-color: rgb(11, 21, 50, 0.4);
padding: 5rem; padding: 5rem;
border-radius: 5rem; border-radius: 5rem;
border: 3px solid #2d54c7; border: 3px solid var(--color-blue);
} }
.about-picture { .about-picture {
@@ -503,16 +515,16 @@ p {
transform: translate(50%); transform: translate(50%);
width: 30rem; width: 30rem;
height: 30rem; height: 30rem;
background-color: #fff; background-color: var(--color-white);
border-radius: 50%; border-radius: 50%;
background-image: url("/img/me.jpg"); background-image: url("/img/me.jpg");
background-size: cover; background-size: cover;
border: 3px solid #ffe642; border: 3px solid var(--color-yellow);
transition: all 0.3s; transition: all 0.3s;
} }
.about-picture:hover { .about-picture:hover {
box-shadow: 0 0 5rem 0 #ffe642; box-shadow: 0 0 5rem 0 var(--color-yellow);
} }
.project-section { .project-section {
@@ -617,8 +629,8 @@ p {
.project-btn { .project-btn {
background-color: transparent; background-color: transparent;
border: 3px solid #fff; border: 3px solid var(--color-white);
color: #fff; color: var(--color-white);
width: 3.5rem; width: 3.5rem;
height: 3.5rem; height: 3.5rem;
border-radius: 50%; border-radius: 50%;
@@ -630,15 +642,20 @@ p {
justify-content: center; justify-content: center;
} }
.project-btn img {
width: 2rem;
height: 2rem;
}
.project-btn:hover { .project-btn:hover {
background-color: #ffe642; background-color: var(--color-yellow);
border-color: #ffe642; border-color: var(--color-yellow);
color: #0b1532; color: var(--color-navy);
transform: scale(1.05); transform: scale(1.05);
} }
.tag { .tag {
background-color: #2d54c7; background-color: var(--color-blue);
padding: 0.5rem 1rem; padding: 0.5rem 1rem;
border-radius: 1.5rem; border-radius: 1.5rem;
font-size: 1.5rem; font-size: 1.5rem;
@@ -654,13 +671,13 @@ p {
align-items: flex-start; align-items: flex-start;
background-size: cover; background-size: cover;
background-position: center; background-position: center;
border: 3px solid #2d54c7; border: 3px solid var(--color-blue);
gap: 1rem; gap: 1rem;
transition: all 0.4s; transition: all 0.4s;
} }
.project-card:hover { .project-card:hover {
box-shadow: 0 1rem 1rem 0 #2d54c7; box-shadow: 0 1rem 1rem 0 var(--color-blue);
} }
.project-card--1 { .project-card--1 {
@@ -696,7 +713,7 @@ p {
.project-card-link:link, .project-card-link:link,
.project-card-link:visited { .project-card-link:visited {
text-decoration: none; text-decoration: none;
color: #fff; color: var(--color-white);
} }
.contact-section { .contact-section {
@@ -743,30 +760,30 @@ p {
} }
.form-field { .form-field {
border: 3px solid #2d54c7; border: 3px solid var(--color-blue);
border-radius: 2rem; border-radius: 2rem;
padding: 2rem; padding: 2rem;
background-color: transparent; background-color: transparent;
color: #fff; color: var(--color-white);
width: 50rem; width: 50rem;
font-size: 2rem; font-size: 2rem;
font-family: "Space Grotesk", sans-serif; font-family: "Space Grotesk", sans-serif;
} }
.form-field::placeholder { .form-field::placeholder {
color: #fff; color: var(--color-white);
} }
.btn-form { .btn-form {
background-color: transparent; background-color: transparent;
color: #fff; color: var(--color-white);
display: inline-block; display: inline-block;
text-decoration: none; text-decoration: none;
font-weight: 500; font-weight: 500;
font-family: "Space Grotesk", sans-serif; font-family: "Space Grotesk", sans-serif;
font-size: 2rem; font-size: 2rem;
background-color: transparent; background-color: transparent;
border: 3px solid #ffe642; border: 3px solid var(--color-yellow);
border-radius: 100px; border-radius: 100px;
padding: 1.6rem 3.2rem; padding: 1.6rem 3.2rem;
transition: all 0.3s; transition: all 0.3s;
@@ -800,7 +817,7 @@ p {
} }
.social-icon-wrapper:hover { .social-icon-wrapper:hover {
background-color: #2d54c7; background-color: var(--color-blue);
transform: scale(1.1); transform: scale(1.1);
} }
@@ -836,13 +853,13 @@ p {
.footer-link { .footer-link {
text-decoration: none; text-decoration: none;
color: #fff; color: var(--color-white);
display: flex; display: flex;
gap: 1rem; gap: 1rem;
} }
.footer-link:hover { .footer-link:hover {
color: #2d54c7; color: var(--color-blue);
background-color: transparent; background-color: transparent;
} }
@@ -864,7 +881,7 @@ p {
bottom: 2rem; bottom: 2rem;
right: 5%; right: 5%;
display: flex; display: flex;
color: #fff; color: var(--color-white);
font-size: 2.5rem; font-size: 2.5rem;
text-decoration: none; text-decoration: none;
transition: all 0.3s; transition: all 0.3s;
@@ -872,7 +889,7 @@ p {
} }
.back-to-top:hover { .back-to-top:hover {
color: #2d54c7; color: var(--color-blue);
} }
/* Services Pages */ /* Services Pages */
@@ -934,11 +951,11 @@ p {
} }
.yellow-border { .yellow-border {
border: 3px solid #ffe642; border: 3px solid var(--color-yellow);
} }
.yellow-border:hover { .yellow-border:hover {
box-shadow: 0 1rem 1rem 0 #ffe642 !important; box-shadow: 0 1rem 1rem 0 var(--color-yellow) !important;
} }
/* Animations */ /* Animations */