From c3b96d720fb6e52e54ed4ce8af796fd213faff92 Mon Sep 17 00:00:00 2001 From: Kris Aubuchon Date: Tue, 5 Aug 2014 23:31:28 -0400 Subject: [PATCH] making menu accessible on mobile when in desktop mode --- app/assets/stylesheets/desktop/discourse.scss | 12 ++++++++++++ app/assets/stylesheets/desktop/header.scss | 12 ++++++++++++ 2 files changed, 24 insertions(+) diff --git a/app/assets/stylesheets/desktop/discourse.scss b/app/assets/stylesheets/desktop/discourse.scss index 7ca4b2bc644..bf11f48b988 100644 --- a/app/assets/stylesheets/desktop/discourse.scss +++ b/app/assets/stylesheets/desktop/discourse.scss @@ -24,6 +24,18 @@ html {font-size: 14px/19px;} } } +@media all +and (max-width : 570px) { + body { + min-width: 0; + } + .container, + .full-width { + min-width: 0; + } + .d-header .current-username a {display: none;} +} + header { margin-bottom: 15px; } diff --git a/app/assets/stylesheets/desktop/header.scss b/app/assets/stylesheets/desktop/header.scss index 807c879e6ec..d294bad386b 100644 --- a/app/assets/stylesheets/desktop/header.scss +++ b/app/assets/stylesheets/desktop/header.scss @@ -19,6 +19,18 @@ } } +@media all +and (max-width : 570px) { + .d-header { + .current-username { + a { + display:none; + } + } + } + .extra-info-wrapper {display: none;} +} + #main { position: relative; }