diff --git a/styles/app/index.styl b/styles/app/index.styl index fcec0af9e1..40204aaba0 100644 --- a/styles/app/index.styl +++ b/styles/app/index.styl @@ -8,6 +8,10 @@ @import "./items.styl"; @import "./alerts.styl"; @import "./helpers.styl"; +@import "./responsive.styl"; + +// where's the actual bootstrap include? +// @import "../bootstrap-responsive.styl"; @import "../../public/vendor/bootstrap-datepicker/css/datepicker.css"; @@ -35,7 +39,7 @@ html,body,p,h1,ul,li,table,tr,th,td box-sizing: border-box z-index: 1000 -@media (max-width: 480px) { +@media (max-width: 600px) { #head { position: static; } @@ -132,7 +136,7 @@ html,body,p,h1,ul,li,table,tr,th,td /*overflow:auto;*/ padding-bottom: 250px; /* don't know why this works, sticky footers are weird */ -@media (max-width: 480px) { +@media (max-width: 600px) { #wrap { margin-top: 0 } diff --git a/styles/app/responsive.styl b/styles/app/responsive.styl new file mode 100644 index 0000000000..4047c3bbfd --- /dev/null +++ b/styles/app/responsive.styl @@ -0,0 +1,28 @@ +.grid + padding: 0 1.5em 1.5em 0 + letter-spacing: -4px + +.module + display: inline-block + letter-spacing: normal + vertical-align: top + width: 25% + padding: 0 0 1.5em 1.5em + -moz-box-sizing: border-box + box-sizing: border-box + +// at 960px when 4 columns really starts to break +@media (max-width: 60em) + .module + width: 50% + .task-column + max-height: 18em + overflow-y: scroll + +// at 600px when 2col starts breaking +@media (max-width: 37.5em) + .module + width: 100% + .task-column + max-height: none + overflow: visible \ No newline at end of file diff --git a/views/app/index.html b/views/app/index.html index 69ce9f1db5..e16e6fd1eb 100644 --- a/views/app/index.html +++ b/views/app/index.html @@ -28,9 +28,9 @@
-
+
-
+
diff --git a/views/app/tasks.html b/views/app/tasks.html index a02fd393a5..e8930c33da 100644 --- a/views/app/tasks.html +++ b/views/app/tasks.html @@ -1,18 +1,27 @@ - -
+ + + +
+

Habits

    {#each _habitList as :task}{/}
+
-
+ +
+

Daily

    {#each _dailyList as :task}{/}
+
-
+ +
+
{#if _user.history.todos} @@ -36,11 +45,12 @@
  • Remaining
  • Complete
  • -
    +
    -
    - + +
    +

    Rewards

    @@ -60,68 +70,69 @@
    - + {#if _user.flags.petsEnabled}
    - +
    - +
    {#with _view.items.pets as :pets} - +
    {#with :pets[0]}{/} {#with :pets[1]}{/} {#with :pets[2]}{/} {#with :pets[3]}{/}
    - +
    {#with :pets[4]}{/} {#with :pets[5]}{/} {#with :pets[6]}{/} {#with :pets[7]}{/}
    - +
    {#with :pets[8]}{/} {#with :pets[9]}{/} {#with :pets[10]}{/} {#with :pets[11]}{/}
    - +
    {#with :pets[12]}{/} {#with :pets[13]}{/} {#with :pets[14]}{/} {#with :pets[15]}{/}
    - +
    {#with :pets[16]}{/}
    - - + + {/}
    - - + +
    - {else} + {else} - {/} -
    + {/}
    +
    +