summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author53hornet <atc@53hor.net>2021-07-20 15:54:52 -0400
committer53hornet <atc@53hor.net>2021-07-20 15:54:52 -0400
commitf2e39406302c3b79a608a6f20e058a084401c6eb (patch)
tree1ca97e56ec6e223bc1d697287c210ca7d8a7219d
parent3bb51c086f2e8c009ef598b252278b0d96e7aa9a (diff)
downloadcarpentertutoring-f2e39406302c3b79a608a6f20e058a084401c6eb.tar.xz
carpentertutoring-f2e39406302c3b79a608a6f20e058a084401c6eb.zip
fixed modals extending past viewport on mobile
-rw-r--r--header.php9
1 files changed, 9 insertions, 0 deletions
diff --git a/header.php b/header.php
index d1607f7..42925fa 100644
--- a/header.php
+++ b/header.php
@@ -236,6 +236,11 @@
font-size: 1.5em;
}
+ .modal .card {
+ max-height: 90%;
+ max-width: 60%;
+ }
+
.modal a,
.card a.button {
float: right;
@@ -246,6 +251,10 @@
justify-content: center;
align-items: center;
}
+
+ :target.modal .card {
+ overflow: auto;
+ }
</style>
<link rel="preconnect" href="https://fonts.gstatic.com" />
<link href="https://fonts.googleapis.com/css2?family=Architects+Daughter&family=Indie+Flower&family=PT+Sans&display=swap" rel="stylesheet" />