loleaflet/css/editor.css              |    2 +-
 loleaflet/css/leaflet.css             |    2 +-
 loleaflet/css/loleaflet.css           |    6 +++---
 loleaflet/css/menubar-mobile.css      |    2 +-
 loleaflet/css/menubar.css             |    2 +-
 loleaflet/css/mobilewizard.css        |    2 +-
 loleaflet/css/partsPreviewControl.css |    4 ++--
 loleaflet/css/scrollBar.css           |    2 +-
 loleaflet/css/selectionMarkers.css    |    2 +-
 loleaflet/css/spreadsheet-mobile.css  |    2 +-
 loleaflet/css/toolbar-mobile.css      |    2 +-
 loleaflet/css/vex.css                 |    2 +-
 12 files changed, 15 insertions(+), 15 deletions(-)

New commits:
commit 364623c87f5449d6151f98d9545363810d50e7e8
Author:     Tamás Zolnai <tamas.zol...@collabora.com>
AuthorDate: Tue Feb 18 10:22:23 2020 +0100
Commit:     Tamás Zolnai <tamas.zol...@collabora.com>
CommitDate: Tue Feb 18 14:31:00 2020 +0100

    mobile: Fix css media rules to work with mobile emulation / cypress test.
    
    Restore the media rules we used earlier for mobiles.
    So for mobiles it's enough to have a small screen size,
    for tablet we allow bigger screen size, but only with
    special pointer properties.
    
    Change-Id: Ic45f05c516ec44cd39c58463d8bf1907ec63c25a
    Reviewed-on: https://gerrit.libreoffice.org/c/online/+/88922
    Tested-by: Tamás Zolnai <tamas.zol...@collabora.com>
    Reviewed-by: Tamás Zolnai <tamas.zol...@collabora.com>

diff --git a/loleaflet/css/editor.css b/loleaflet/css/editor.css
index 2e1799ef8..253ae5fd2 100644
--- a/loleaflet/css/editor.css
+++ b/loleaflet/css/editor.css
@@ -19,7 +19,7 @@
        text-align: center;
        padding: 3px 5px;
 }
-@media screen (max-width: 900px) and (any-pointer: coarse) and (hover: none), 
(max-height: 900px) and (any-pointer: coarse) and (hover: none){
+@media (max-width: 767px), (max-device-height: 767px), screen (max-width: 
900px) and (any-pointer: coarse) and (hover: none), (max-height: 900px) and 
(any-pointer: coarse) and (hover: none) {
        #editor-btn{
                max-width: 160px;
        }
diff --git a/loleaflet/css/leaflet.css b/loleaflet/css/leaflet.css
index 8326159c1..bf1bae24b 100644
--- a/loleaflet/css/leaflet.css
+++ b/loleaflet/css/leaflet.css
@@ -839,7 +839,7 @@ input.clipboard {
                display: none;
        }
 }
-@media screen (max-width: 900px) and (any-pointer: coarse) and (hover: none), 
(max-height: 900px) and (any-pointer: coarse)  and (hover: none){
+@media (max-width: 767px),(max-device-height: 767px), screen (max-width: 
900px) and (any-pointer: coarse) and (hover: none), (max-height: 900px) and 
(any-pointer: coarse)  and (hover: none){
        .loleaflet-ruler {
                height: 0px;
                display: none;
diff --git a/loleaflet/css/loleaflet.css b/loleaflet/css/loleaflet.css
index 78db67b85..090c57b6d 100644
--- a/loleaflet/css/loleaflet.css
+++ b/loleaflet/css/loleaflet.css
@@ -212,7 +212,7 @@ body {
        .w2ui-tag .w2ui-tag-top{display:none !important;}
 }
 
-@media screen (max-width: 900px) and (any-pointer: coarse) and (hover: none), 
(max-height: 900px) and (any-pointer: coarse) and (hover: none){
+@media (max-width: 767px), (max-device-height: 767px), screen (max-width: 
900px) and (any-pointer: coarse) and (hover: none), (max-height: 900px) and 
(any-pointer: coarse) and (hover: none){
        /* Show slidesorter beyond 768px only */
        #presentation-controls-wrapper {
                top: initial;
@@ -287,7 +287,7 @@ body {
                display: block !important;
        }
 }
-@media screen (max-width: 900px) and (orientation: portrait) and (any-pointer: 
coarse) and (hover: none), (max-height: 900px) and (orientation: portrait)  and 
(any-pointer: coarse)  and (hover: none){
+@media (max-width: 767px) and (orientation: portrait),(max-device-height: 
767px) and (orientation: portrait), screen (max-width: 900px) and (orientation: 
portrait) and (any-pointer: coarse) and (hover: none), (max-height: 900px) and 
(orientation: portrait)  and (any-pointer: coarse)  and (hover: none){
        #presentation-controls-wrapper {
                top: initial;
                left: initial;
@@ -318,7 +318,7 @@ body {
                bottom: 33px;
        }
 }
-@media screen (max-width: 900px) and (orientation: landscape) and 
(any-pointer: coarse) and (hover: none), (max-height: 900px) and (orientation: 
landscape)  and (any-pointer: coarse)  and (hover: none){
+@media (max-width: 767px) and (orientation: landscape),(max-device-height: 
767px) and (orientation: landscape), screen (max-width: 900px) and 
(orientation: landscape) and (any-pointer: coarse) and (hover: none), 
(max-height: 900px) and (orientation: landscape)  and (any-pointer: coarse)  
and (hover: none){
        #document-container.parts-preview-document {
                left: 66px !important;
                bottom: 33px;
diff --git a/loleaflet/css/menubar-mobile.css b/loleaflet/css/menubar-mobile.css
index c917ba595..253df2944 100644
--- a/loleaflet/css/menubar-mobile.css
+++ b/loleaflet/css/menubar-mobile.css
@@ -1,4 +1,4 @@
-@media screen (max-width: 900px) and (any-pointer: coarse) and (hover: none), 
(max-height: 900px) and (any-pointer: coarse) and (hover: none){
+@media (max-width: 767px), (max-device-height: 767px), screen (max-width: 
900px) and (any-pointer: coarse) and (hover: none), (max-height: 900px) and 
(any-pointer: coarse) and (hover: none){
        .logo {
                background-size: 100px;
                max-width: 24px;
diff --git a/loleaflet/css/menubar.css b/loleaflet/css/menubar.css
index 696cf262b..4ad11edf2 100644
--- a/loleaflet/css/menubar.css
+++ b/loleaflet/css/menubar.css
@@ -256,7 +256,7 @@
        background-position: bottom;
 }
 
-@media screen (max-width: 900px) and (any-pointer: coarse) and (hover: none), 
(max-height: 900px) and (any-pointer: coarse) and (hover: none){
+@media (max-width: 767px),(max-device-height: 767px), screen (max-width: 
900px) and (any-pointer: coarse) and (hover: none), (max-height: 900px) and 
(any-pointer: coarse) and (hover: none){
     .document-logo {
         width: 35px;
         height: 38px;
diff --git a/loleaflet/css/mobilewizard.css b/loleaflet/css/mobilewizard.css
index 1cb1ab70c..3cff1744e 100644
--- a/loleaflet/css/mobilewizard.css
+++ b/loleaflet/css/mobilewizard.css
@@ -1,4 +1,4 @@
-@media screen (max-width: 900px) and (any-pointer: coarse) and (hover: none), 
(max-height: 900px) and (any-pointer: coarse) and (hover: none){
+@media (max-width: 767px), (max-device-height: 767px), screen (max-width: 
900px) and (any-pointer: coarse) and (hover: none), (max-height: 900px) and 
(any-pointer: coarse) and (hover: none){
        span.menu-entry-icon img {
                width: 24px !important;
                margin: 4px !important;
diff --git a/loleaflet/css/partsPreviewControl.css 
b/loleaflet/css/partsPreviewControl.css
index dd1e33dae..0d5227f0e 100644
--- a/loleaflet/css/partsPreviewControl.css
+++ b/loleaflet/css/partsPreviewControl.css
@@ -32,7 +32,7 @@
        border: 2px solid #dfdfdf;
        margin-left: 20px;
        }
-@media screen (max-width: 900px) and (orientation: potrait) and (any-pointer: 
coarse) and (hover: none), (max-height: 900px) and (orientation: portrait)  and 
(any-pointer: coarse)  and (hover: none){
+@media (max-width: 767px) and (orientation: potrait),(max-device-height: 
767px) and (orientation: portrait), screen (max-width: 900px) and (orientation: 
potrait) and (any-pointer: coarse) and (hover: none), (max-height: 900px) and 
(orientation: portrait)  and (any-pointer: coarse)  and (hover: none){
        #slide-sorter {
                max-height: 60px;
        }
@@ -49,7 +49,7 @@
                padding-right: 1em;
        }
 }
-@media screen (max-width: 900px) and (orientation: landscape) and 
(any-pointer: coarse) and (hover: none), (max-height: 900px) and (orientation: 
landscape)  and (any-pointer: coarse)  and (hover: none){
+@media (max-width: 767px) and (orientation: landscape),(max-device-height: 
767px) and (orientation: landscape), screen (max-width: 900px) and 
(orientation: landscape) and (any-pointer: coarse) and (hover: none), 
(max-height: 900px) and (orientation: landscape)  and (any-pointer: coarse)  
and (hover: none){
        #slide-sorter {
                max-width: 120px;
        }
diff --git a/loleaflet/css/scrollBar.css b/loleaflet/css/scrollBar.css
index f881dc589..e5d9352ce 100644
--- a/loleaflet/css/scrollBar.css
+++ b/loleaflet/css/scrollBar.css
@@ -11,7 +11,7 @@
        width: 100%;
        overflow: auto;
 }
-@media screen (max-width: 900px) and (any-pointer: coarse) and (hover: none), 
(max-height: 900px) and (any-pointer: coarse) and (hover: none){
+@media (max-width: 767px), (max-device-height: 767px), screen (max-width: 
900px) and (any-pointer: coarse) and (hover: none), (max-height: 900px) and 
(any-pointer: coarse) and (hover: none){
        .mCSB_scrollTools_vertical{
                width: 38px !important;
        }
diff --git a/loleaflet/css/selectionMarkers.css 
b/loleaflet/css/selectionMarkers.css
index c86394c53..b3cab7856 100644
--- a/loleaflet/css/selectionMarkers.css
+++ b/loleaflet/css/selectionMarkers.css
@@ -26,7 +26,7 @@
 #tb_formulabar_item_formula .inputbar_selection_handles{
        /*display: none;*/
 }
-@media screen (max-width: 900px) and (any-pointer: coarse) and (hover: none), 
(max-height: 900px) and (any-pointer: coarse) and (hover: none){
+@media (max-width: 767px), (max-device-height: 767px) and (pointer: coarse), 
screen (max-width: 900px) and (any-pointer: coarse) and (hover: none), 
(max-height: 900px) and (any-pointer: coarse) and (hover: none){
        #tb_formulabar_item_formula, #tb_formulabar_item_address {
                height: 54px !important;
        }
diff --git a/loleaflet/css/spreadsheet-mobile.css 
b/loleaflet/css/spreadsheet-mobile.css
index 74aa982cd..edd1e1a23 100644
--- a/loleaflet/css/spreadsheet-mobile.css
+++ b/loleaflet/css/spreadsheet-mobile.css
@@ -1,4 +1,4 @@
-@media screen (max-width: 900px) and (any-pointer: coarse) and (hover: none), 
(max-height: 900px) and (any-pointer: coarse)  and (hover: none){
+@media max-width: 767px), (max-device-height: 767px), screen (max-width: 
900px) and (any-pointer: coarse) and (hover: none), (max-height: 900px) and 
(any-pointer: coarse)  and (hover: none){
        @-moz-document url-prefix() {
                #spreadsheet-row-column-frame.readonly {
                        top: 36px !important;
diff --git a/loleaflet/css/toolbar-mobile.css b/loleaflet/css/toolbar-mobile.css
index 210b23fef..dea0c34c5 100644
--- a/loleaflet/css/toolbar-mobile.css
+++ b/loleaflet/css/toolbar-mobile.css
@@ -10,7 +10,7 @@
                top:-1px;
        }
 }
-@media screen (max-width: 900px) and (any-pointer: coarse) and (hover: none), 
(max-height: 900px) and (any-pointer: coarse)  and (hover: none){
+@media (max-width: 767px), (max-device-height: 767px), screen (max-width: 
900px) and (any-pointer: coarse) and (hover: none), (max-height: 900px) and 
(any-pointer: coarse)  and (hover: none){
        .insertshape-grid {
                box-sizing: content-box;
                position: absolute;
diff --git a/loleaflet/css/vex.css b/loleaflet/css/vex.css
index 5c9f430f5..f7ee78df8 100644
--- a/loleaflet/css/vex.css
+++ b/loleaflet/css/vex.css
@@ -64,7 +64,7 @@
 }
 
 /*mobile*/
-@media screen (max-width: 900px) and (any-pointer: coarse) and (hover: none), 
(max-height: 900px) and (any-pointer: coarse)  and (hover: none){
+@media (max-width: 767px), (max-device-height: 767px), screen (max-width: 
900px) and (any-pointer: coarse) and (hover: none), (max-height: 900px) and 
(any-pointer: coarse)  and (hover: none){
        .vex-open .loleaflet-user-idle {
                background: rgba(0, 0, 0, 0)!important;
                font-size: xx-large!important;
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to