From b147323d042a6525774fb981ca2c6ac5fba848f0 Mon Sep 17 00:00:00 2001 From: psychobunny Date: Sun, 22 Mar 2015 15:38:23 -0400 Subject: [PATCH] mobile optimizations for home, category, and topic list views --- less/categories.less | 7 +++ templates/categories.tpl | 38 +++++++-------- templates/partials/category/subcategory.tpl | 54 ++++++++++----------- templates/partials/topics_list.tpl | 2 +- 4 files changed, 52 insertions(+), 49 deletions(-) diff --git a/less/categories.less b/less/categories.less index 101d6ea..b7152f3 100644 --- a/less/categories.less +++ b/less/categories.less @@ -36,6 +36,13 @@ text-overflow: ellipsis; width: 85%; } + + @media (max-width: @screen-lg-min) { + h1 { + width: 95%; + margin-left: 0; + } + } } .card { diff --git a/templates/categories.tpl b/templates/categories.tpl index 01531ce..defa933 100644 --- a/templates/categories.tpl +++ b/templates/categories.tpl @@ -5,8 +5,8 @@
  • -
    -
    +
    + @@ -16,25 +16,23 @@
    -
  • \ No newline at end of file diff --git a/templates/partials/category/subcategory.tpl b/templates/partials/category/subcategory.tpl index 5fcd52f..39087e8 100644 --- a/templates/partials/category/subcategory.tpl +++ b/templates/partials/category/subcategory.tpl @@ -6,8 +6,8 @@
  • -
    -
    +
    + @@ -23,36 +23,34 @@
    -
  • diff --git a/templates/partials/topics_list.tpl b/templates/partials/topics_list.tpl index c1de336..3653fe2 100644 --- a/templates/partials/topics_list.tpl +++ b/templates/partials/topics_list.tpl @@ -5,7 +5,7 @@
    -
    +