[Libreoffice-commits] online.git: Branch 'distro/collabora/collabora-online-3' - loleaflet/dist
Libreoffice Gerrit user
logerrit at kemper.freedesktop.org
Fri Oct 5 08:23:00 UTC 2018
loleaflet/dist/leaflet.css | 2 +-
loleaflet/dist/loleaflet.css | 2 +-
loleaflet/dist/menubar.css | 22 +++++++++++++++++++++-
3 files changed, 23 insertions(+), 3 deletions(-)
New commits:
commit 63491fe0f11749f04cddd0599f7b99253c7d0479
Author: Henry Castro <hcastro at collabora.com>
AuthorDate: Wed Oct 3 21:49:31 2018 -0400
Commit: Jan Holesovsky <kendy at collabora.com>
CommitDate: Fri Oct 5 10:22:41 2018 +0200
loleaflet: mobile: use max-device-height media query
max-height it is used for window size, max-device-height
it is the device screen dimensions, so when a tablet
rotate to landscape we keep the mobile layout
Change-Id: I921007014a63374114ec7563144f3532a53fd021
Reviewed-on: https://gerrit.libreoffice.org/61339
Reviewed-by: Jan Holesovsky <kendy at collabora.com>
Tested-by: Jan Holesovsky <kendy at collabora.com>
diff --git a/loleaflet/dist/leaflet.css b/loleaflet/dist/leaflet.css
index 332490ed5..3dde4a01a 100644
--- a/loleaflet/dist/leaflet.css
+++ b/loleaflet/dist/leaflet.css
@@ -788,7 +788,7 @@ input.clipboard {
}
}
- at media (max-width: 768px),(max-height: 768px) {
+ at media (max-width: 768px),(max-device-height: 768px) {
.loleaflet-ruler {
height: 0px;
display: none;
diff --git a/loleaflet/dist/loleaflet.css b/loleaflet/dist/loleaflet.css
index e7d38b5eb..3ce760548 100644
--- a/loleaflet/dist/loleaflet.css
+++ b/loleaflet/dist/loleaflet.css
@@ -81,7 +81,7 @@ body {
width: 0;
}
- at media (max-width: 768px),(max-height: 768px) {
+ at media (max-width: 768px), (max-device-height: 768px) {
/* Show slidesorter beyond 768px only */
#presentation-controls-wrapper {
display: none;
diff --git a/loleaflet/dist/menubar.css b/loleaflet/dist/menubar.css
index 7af9d31b6..f248ec4e0 100644
--- a/loleaflet/dist/menubar.css
+++ b/loleaflet/dist/menubar.css
@@ -191,7 +191,7 @@
}
/* desktop mode */
- at media (min-width: 769px) and (orientation: portrait),(min-height: 769px) and (orientation: landscape) {
+ at media (min-width: 769px) {
/* hide the button in desktop view */
.main-menu-btn {
position: absolute;
@@ -220,6 +220,26 @@
}
}
+ at media (max-device-height: 768px) {
+ .main-menu-btn {
+ position: relative;
+ top: 5px;
+ }
+
+ #main-menu-state:not(:checked) ~ #main-menu {
+ display: none;
+ }
+
+ #main-menu {
+ top: 39px !important;
+ }
+
+ .main-nav {
+ position: absolute;
+ width: 100%;
+ }
+}
+
/* Some more lo-menu specific customizations */
/* The smartmenus plugin doesn't seem to have support for icons, so implement our own pseudo-elements */
More information about the Libreoffice-commits
mailing list