From 97a5a5cbe35f20e639fe7898bda9c45190d03753 Mon Sep 17 00:00:00 2001 From: fla Date: Mon, 28 Sep 2015 19:45:28 +0200 Subject: [PATCH] Hide publisher cancel button on xsmall screens --- app/assets/stylesheets/publisher.scss | 9 --------- app/views/publisher/_publisher.html.haml | 2 +- 2 files changed, 1 insertion(+), 10 deletions(-) diff --git a/app/assets/stylesheets/publisher.scss b/app/assets/stylesheets/publisher.scss index c40ad4775..32e1e49e3 100644 --- a/app/assets/stylesheets/publisher.scss +++ b/app/assets/stylesheets/publisher.scss @@ -48,15 +48,6 @@ } } - $sm-xs-average: ($screen-sm + $screen-xs) / 2; - @media(max-width: $sm-xs-average) { - #hide_publisher { - display: block; - width: 100%; - margin-bottom: 5px; - } - } - @media(max-width: $screen-xs) { .btn-toolbar { width: 100%; diff --git a/app/views/publisher/_publisher.html.haml b/app/views/publisher/_publisher.html.haml index e1f2c6c5e..4bd6934f5 100644 --- a/app/views/publisher/_publisher.html.haml +++ b/app/views/publisher/_publisher.html.haml @@ -55,7 +55,7 @@ .spinner .options_and_submit.col-sm-12 .public_toggle.clearfix - .btn.btn-default.pull-left#hide_publisher{title: t("shared.publisher.discard_post")} + .btn.btn-default.pull-left.hidden-xs#hide_publisher{title: t("shared.publisher.discard_post")} %span.text= t("cancel") .btn-toolbar.pull-right