loleaflet/css/device-mobile.css |    6 ++++++
 loleaflet/css/leaflet.css       |   14 --------------
 2 files changed, 6 insertions(+), 14 deletions(-)

New commits:
commit 26219bb4a2bab28dc144f8621ab0768e2b3f67ab
Author:     Jan Holesovsky <ke...@collabora.com>
AuthorDate: Thu Apr 2 09:10:33 2020 +0200
Commit:     Jan Holesovsky <ke...@collabora.com>
CommitDate: Thu Apr 2 12:26:13 2020 +0200

    mobile: No ruler on mobile phones.
    
    Change-Id: I8641830f69276ee7bbfc1c29330e98731cfd26bc
    Reviewed-on: https://gerrit.libreoffice.org/c/online/+/91548
    Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoff...@gmail.com>
    Reviewed-by: Jan Holesovsky <ke...@collabora.com>

diff --git a/loleaflet/css/device-mobile.css b/loleaflet/css/device-mobile.css
index 2ce4d27d2..5b1143739 100644
--- a/loleaflet/css/device-mobile.css
+++ b/loleaflet/css/device-mobile.css
@@ -55,6 +55,12 @@ div#w2ui-overlay-actionbar.w2ui-overlay{
        display: none !important;
 }
 
+/* No ruler on mobile phones. */
+.loleaflet-ruler {
+       height: 0px;
+       display: none;
+}
+
 /* Related to menubar.css */
 .document-logo {
     width: 35px;
diff --git a/loleaflet/css/leaflet.css b/loleaflet/css/leaflet.css
index 06666f36d..7caea9340 100644
--- a/loleaflet/css/leaflet.css
+++ b/loleaflet/css/leaflet.css
@@ -832,20 +832,6 @@ input.clipboard {
        margin: 0px;
        }
 
-/* The 20px above is 5% of the 400px below. */
-@media screen and (max-height: 400px) {
-       .loleaflet-ruler {
-               height: 0px;
-               display: none;
-       }
-}
-@media (max-width: 767px), (max-device-height: 767px) {
-       .loleaflet-ruler {
-               height: 0px;
-               display: none;
-       }
-}
-
 .loleaflet-ruler-breakcontainer {
        height: 100%;
        position: absolute;
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to