From 7b61e9daa29ce9abcb0c840be5b39c29889f4ec6 Mon Sep 17 00:00:00 2001 From: Quincy Larson Date: Thu, 30 Apr 2015 15:19:38 -0700 Subject: [PATCH] More view beautification for mobile. --- public/js/lib/stories/stories.js | 0 views/stories/news-nav.jade | 22 +++++++++++++++------- 2 files changed, 15 insertions(+), 7 deletions(-) create mode 100644 public/js/lib/stories/stories.js diff --git a/public/js/lib/stories/stories.js b/public/js/lib/stories/stories.js new file mode 100644 index 0000000000..e69de29bb2 diff --git a/views/stories/news-nav.jade b/views/stories/news-nav.jade index 2847dc6aeb..e087cab824 100644 --- a/views/stories/news-nav.jade +++ b/views/stories/news-nav.jade @@ -1,10 +1,18 @@ -a.btn.btn-primary.btn-big.btn-block(href='/stories/submit' class="#{ page === 'hot' ? '' : 'hidden' }") Submit a link -a.btn.btn-success.btn-big.btn-block(href='/stories/' class="#{ (page === 'show' || page === 'submit' || page === 'storySubmission') ? '' : 'hidden' }") Show all Links -.spacer -.input-group(class="#{ page === 'hot' ? '' : 'hidden' }") - input#searchArea.big-text-field.field-responsive.form-control(type='text', placeholder='Search our links', autofocus) - span.input-group-btn - button#searchbutton.btn.btn-big.btn-primary.btn-responsive(type='button') Search + + +.row + .col-xs-12.col-sm-9 + .input-group + input#searchArea.big-text-field.field-responsive.form-control(type='text', placeholder='Search our links', autofocus) + span.input-group-btn + button#searchbutton.btn.btn-big.btn-primary.btn-responsive(type='button') Search + .visible-xs + .button-spacer + .col-xs-12.col-sm-3 + span + a.btn.btn-primary.btn-big.btn-block.btn-responsive(href='/stories/submit' class="#{ page === 'hot' ? '' : 'hidden' }") Submit + span + a.btn.btn-success.btn-big.btn-block.btn-responsive(href='/stories/' class="#{ (page !== 'hot') ? '' : 'hidden' }") All .spacer #search-results .spacer