From 0e76b182783625cb97f5b73be6b1744088b8a478 Mon Sep 17 00:00:00 2001 From: yflory Date: Wed, 15 Feb 2017 14:23:56 +0100 Subject: [PATCH] Hide the links in the html topbar on small screens --- customize.dist/about.html | 8 ++++---- customize.dist/contact.html | 8 ++++---- customize.dist/index.html | 8 ++++---- customize.dist/main.css | 5 +++++ customize.dist/privacy.html | 8 ++++---- customize.dist/src/fragments/topbar.html | 8 ++++---- customize.dist/src/less/topbar.less | 6 ++++++ customize.dist/terms.html | 8 ++++---- www/settings/index.html | 8 ++++---- 9 files changed, 39 insertions(+), 28 deletions(-) diff --git a/customize.dist/about.html b/customize.dist/about.html index 11b40cead..e8fc94ff0 100644 --- a/customize.dist/about.html +++ b/customize.dist/about.html @@ -31,16 +31,16 @@ - + About - + Privacy - + ToS - + Contact diff --git a/customize.dist/contact.html b/customize.dist/contact.html index 63c92ec18..7ed8e1ef0 100644 --- a/customize.dist/contact.html +++ b/customize.dist/contact.html @@ -31,16 +31,16 @@ - + About - + Privacy - + ToS - + Contact diff --git a/customize.dist/index.html b/customize.dist/index.html index 883f2bdc8..9714857ef 100644 --- a/customize.dist/index.html +++ b/customize.dist/index.html @@ -31,16 +31,16 @@ - + About - + Privacy - + ToS - + Contact diff --git a/customize.dist/main.css b/customize.dist/main.css index 0a2c5d82b..8cf9e6796 100644 --- a/customize.dist/main.css +++ b/customize.dist/main.css @@ -460,6 +460,11 @@ #cryptpadTopBar .right a:visited { color: #41b7d8; } +@media screen and (max-width: 800px) { + #cryptpadTopBar .right.link { + display: none; + } +} .cp footer { background: #f4f4f4; font-family: -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; diff --git a/customize.dist/privacy.html b/customize.dist/privacy.html index 1ea2f5263..6547009ba 100644 --- a/customize.dist/privacy.html +++ b/customize.dist/privacy.html @@ -31,16 +31,16 @@ - + About - + Privacy - + ToS - + Contact diff --git a/customize.dist/src/fragments/topbar.html b/customize.dist/src/fragments/topbar.html index 955f1e1a5..044db621f 100644 --- a/customize.dist/src/fragments/topbar.html +++ b/customize.dist/src/fragments/topbar.html @@ -8,16 +8,16 @@ - + About - + Privacy - + ToS - + Contact diff --git a/customize.dist/src/less/topbar.less b/customize.dist/src/less/topbar.less index dc1890d04..64cad7a28 100644 --- a/customize.dist/src/less/topbar.less +++ b/customize.dist/src/less/topbar.less @@ -60,5 +60,11 @@ color: @cp-link-visited; } } + + &.link { + @media screen and (max-width: @media-not-big) { + display: none; + } + } } } diff --git a/customize.dist/terms.html b/customize.dist/terms.html index 296faf5bc..ffeee2434 100644 --- a/customize.dist/terms.html +++ b/customize.dist/terms.html @@ -31,16 +31,16 @@ - + About - + Privacy - + ToS - + Contact diff --git a/www/settings/index.html b/www/settings/index.html index 5ff8e6529..9938f7b13 100644 --- a/www/settings/index.html +++ b/www/settings/index.html @@ -32,16 +32,16 @@ - + About - + Privacy - + ToS - + Contact