From e3ee490cb35f3a54871538cf40eba70d13ef30c3 Mon Sep 17 00:00:00 2001 From: Karl Date: Sat, 22 Oct 2022 15:40:16 -0500 Subject: [PATCH] Update documentation.md Explain the class "mfp-img-mobile" and the common way many people invoke it in example code. I cannot find where that class is documented otherwise, but it's hugely useful (maybe it should be a default actually). --- website/documentation.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/website/documentation.md b/website/documentation.md index eecff3a2..3411d7b7 100644 --- a/website/documentation.md +++ b/website/documentation.md @@ -513,6 +513,8 @@ If set to `true` lightbox is opened if the user clicked on the middle mouse butt String that contains classes that will be added to the root element of popup wrapper and to dark overlay. For example `"myClass"`, can also contain multiple classes - `'myClassOne myClassTwo'`. +It is common to add `mfp-img-mobile` as a class using `mainClass`. This automatically triggers CSS when a device's screen is in landscape mode, or otherwise has a small height, and lets images fill the full height of those screens, pushing padding and text out of the way. When the device's screen is not in landscape and has a normal height the class has no effect. + ### preloader true