From fe89f1f096e5931fbfd80bd73bd82fed34a18b33 Mon Sep 17 00:00:00 2001 From: psychobunny Date: Tue, 27 Aug 2013 04:37:16 +0800 Subject: [PATCH] added a .hidden-mobile class for inline block elements. also removed button text on jumbotron for mobile devices --- public/css/style.less | 7 +++++++ src/routes/api.js | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/public/css/style.less b/public/css/style.less index 69eab2e17c..9b905cbdbe 100644 --- a/public/css/style.less +++ b/public/css/style.less @@ -824,3 +824,10 @@ a:hover, .btn-link:hover, .btn-link:active, .btn-link:focus { } } + +@media (max-width: 979px) { + .hidden-mobile { + // BS2/3's hidden-xs does not support inline-block, so here it is for now. + display: none !important; + } +} \ No newline at end of file diff --git a/src/routes/api.js b/src/routes/api.js index 4b1c2431cf..c703b1cda8 100644 --- a/src/routes/api.js +++ b/src/routes/api.js @@ -44,7 +44,7 @@ var user = require('./../user.js'), require('async').each(data.categories, iterator, function(err) { data.motd_class = (meta.config.show_motd === '1' || meta.config.show_motd === undefined) ? '' : 'none'; - data.motd = marked(meta.config.motd || "# NodeBB v " + pkg.version + "\nWelcome to NodeBB, the discussion platform of the future.\n\n
 Get NodeBB  Fork us on Github  @dcplabs
"); + data.motd = marked(meta.config.motd || "# NodeBB v " + pkg.version + "\nWelcome to NodeBB, the discussion platform of the future.\n\n
 Get NodeBB  Fork us on Github  @dcplabs
"); res.json(data); });