Skip to content

Commit 0834e01

Browse files
committed
last fix i can do over my laptop today
1 parent 643da57 commit 0834e01

File tree

1 file changed

+49
-8
lines changed

1 file changed

+49
-8
lines changed

style.css

Lines changed: 49 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -513,28 +513,69 @@ a:hover {
513513
transform: rotate(45deg) translate(-6px, -6px);
514514
}
515515

516-
/* Additional centering rules for stubborn elements */
517-
.main-content h2,
518-
.card h2,
519-
h2 {
516+
/* FORCE CENTER EVERYTHING ON MOBILE */
517+
* {
518+
text-align: center !important;
519+
}
520+
521+
h1, h2, h3, h4, h5, h6 {
520522
text-align: center !important;
521523
display: block !important;
522524
width: 100% !important;
523525
margin-left: auto !important;
524526
margin-right: auto !important;
525527
}
526528

527-
.main-content .btn,
528-
.card .btn,
529-
.btn,
530-
a.btn {
529+
.btn, a.btn, button {
531530
display: block !important;
532531
margin: 1rem auto !important;
533532
text-align: center !important;
534533
width: fit-content !important;
535534
margin-left: auto !important;
536535
margin-right: auto !important;
537536
}
537+
538+
.card {
539+
text-align: center !important;
540+
}
541+
542+
.card * {
543+
text-align: center !important;
544+
}
545+
546+
.card h2 {
547+
text-align: center !important;
548+
display: block !important;
549+
width: 100% !important;
550+
}
551+
552+
.card .btn {
553+
display: block !important;
554+
margin: 1rem auto !important;
555+
text-align: center !important;
556+
width: fit-content !important;
557+
}
558+
559+
.main-content {
560+
text-align: center !important;
561+
}
562+
563+
.main-content * {
564+
text-align: center !important;
565+
}
566+
567+
.main-content h2 {
568+
text-align: center !important;
569+
display: block !important;
570+
width: 100% !important;
571+
}
572+
573+
.main-content .btn {
574+
display: block !important;
575+
margin: 1rem auto !important;
576+
text-align: center !important;
577+
width: fit-content !important;
578+
}
538579
}
539580

540581

0 commit comments

Comments
 (0)