Skip to content

Commit ce4b3ec

Browse files
Thomas StrombergThomas Stromberg
authored andcommitted
mobile optimization
1 parent 7f8c849 commit ce4b3ec

File tree

1 file changed

+87
-15
lines changed

1 file changed

+87
-15
lines changed

src/assets/css/style.css

Lines changed: 87 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ body {
6767
position: absolute;
6868
top: 0px;
6969
left: 0px;
70-
width: 15.5em;
70+
width: 11.5em;
7171
height: 2.25em;
7272
background: var(--yellow);
7373
clip-path: polygon(0 0, 100% 0, 85% 100%, 0% 100%);
@@ -88,14 +88,14 @@ body {
8888

8989
.nav-logo a {
9090
font-family: "Passion One", cursive;
91-
font-size: 28px;
91+
font-size: 22px;
9292
font-weight: 400;
9393
color: var(--black);
9494
text-decoration: none;
9595
transform: skewX(-20deg);
9696
display: inline-block;
9797
padding: 0;
98-
letter-spacing: 3px;
98+
letter-spacing: 1px;
9999
text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
100100
}
101101

@@ -881,45 +881,78 @@ button,
881881

882882
/* Responsive */
883883
@media (max-width: 768px) {
884+
.nav {
885+
height: 32px;
886+
}
887+
884888
.nav-logo {
885889
left: 10px;
886-
top: 2px;
890+
top: 50%;
891+
transform: translateY(-50%);
892+
height: auto;
887893
}
888894

889895
.nav-logo a {
890-
font-size: 20px;
891-
letter-spacing: 2px;
896+
font-size: 17px;
897+
letter-spacing: 1px;
898+
transform: skewX(-20deg);
892899
}
893900

894901
.nav-accent-angle {
895-
width: 10.5em;
902+
width: 8em;
896903
height: 2em;
897904
}
898905

899906
.nav-links {
900-
right: 15px;
901-
gap: 15px;
902-
font-size: 12px;
907+
position: relative;
908+
right: auto;
909+
gap: 8px;
910+
font-size: 11px;
911+
margin-left: auto;
912+
margin-right: 10px;
913+
height: 32px;
914+
}
915+
916+
.nav-links a {
917+
padding: 4px 8px;
918+
min-height: 32px;
919+
}
920+
921+
.nav-links .bracket {
922+
display: none;
903923
}
904924

905925
.hero {
906926
justify-content: center;
907-
padding-right: 20px;
927+
padding: 60px 20px 40px;
908928
}
909929

910930
.hero-content {
911-
margin: 0 20px;
912-
padding: 30px;
931+
margin: 0;
932+
padding: 24px;
933+
max-width: 100%;
913934
}
914935

915936
.hero-title {
916-
font-size: 32px;
937+
font-size: 28px;
917938
}
918939

919940
.hero-highlight,
920941
.hero-list li,
921942
.hero-cta {
922-
font-size: 20px;
943+
font-size: 18px;
944+
}
945+
946+
.content-hero {
947+
padding: 60px 20px 40px;
948+
}
949+
950+
.content-hero h1 {
951+
font-size: 40px;
952+
}
953+
954+
.content-hero h2 {
955+
font-size: 28px;
923956
}
924957

925958
.content-page {
@@ -948,4 +981,43 @@ button,
948981
width: 120px;
949982
height: 120px;
950983
}
984+
985+
.pricing-grid {
986+
grid-template-columns: 1fr;
987+
gap: 20px;
988+
}
989+
990+
.screenshot-grid {
991+
gap: 20px;
992+
}
993+
994+
.groove-card {
995+
padding: 20px;
996+
}
997+
998+
/* Override inline styles on mobile for R2R page boxes */
999+
.content-hero-inner > div[style*="padding: 30px"] {
1000+
padding: 20px !important;
1001+
}
1002+
1003+
.content-hero-inner > div[style*="margin: 40px 0"] {
1004+
margin: 24px 0 !important;
1005+
}
1006+
1007+
.content-hero-inner div[style*="gap: 30px"] {
1008+
gap: 20px !important;
1009+
}
1010+
1011+
.content-hero-inner img[style*="width: 150px"] {
1012+
width: 120px !important;
1013+
height: 120px !important;
1014+
}
1015+
1016+
.content-hero-inner p[style*="font-size: 24px"] {
1017+
font-size: 20px !important;
1018+
}
1019+
1020+
.content-hero-inner p[style*="font-size: 18px"] {
1021+
font-size: 16px !important;
1022+
}
9511023
}

0 commit comments

Comments
 (0)