Skip to content

Commit

Permalink
Responsive index page. Relates to #90, #85, #71.
Browse files Browse the repository at this point in the history
  • Loading branch information
polarblau committed Aug 13, 2013
1 parent 1415fa7 commit f2197ca
Show file tree
Hide file tree
Showing 4 changed files with 43 additions and 18 deletions.
5 changes: 1 addition & 4 deletions app/assets/stylesheets/partials/_layout.sass
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
#container
// locking width
width: $column * 5
margin: 0 auto
//+outer-container
+outer-container
padding: 0 $padding
position: relative
32 changes: 21 additions & 11 deletions app/assets/stylesheets/partials/activities/_filters.sass
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@ form.filters
@extend %clearfix
border-radius: 3px
overflow: hidden
float: left
padding: 0 0 4.5em 0
padding: 0 0 2.5em 0

label
background: lighten($extra-light-gray, 5)
Expand All @@ -14,6 +13,8 @@ form.filters
border: none
display: block
padding: 0.75em 1em
margin: 0 0 1px 0
text-align: left
+transition(all 0.5s)

&.participant,
Expand All @@ -31,15 +32,16 @@ form.filters
&.participant:before
color: $green

&.owner:before
color: $yellow
&.owner
border-radius: 0 0 3px 3px

&:before
color: $yellow

&.search
background: none
position: absolute
top: 4em
left: 0
padding: 0
margin-top: 1em
width: 100%

&:hover
Expand Down Expand Up @@ -97,23 +99,31 @@ form.filters
display: none


+media($tablet-lite)
+media($tablet-lite-plus)
border-radius: none
overflow: visible
float: left
padding: 0 0 4.5em 0

label
display: inline-block
margin-right: 1px
margin: 0 1px 0 0

strong
float: none

&:first-child
border-radius: 3px 0 0 3px

&.owner
border-radius: 0 3px 3px 0
margin: 0

&:first-child
border-radius: 3px 0 0 3px
&.search
position: absolute
top: 4em
margin-top: 0
left: 0

button
margin: 0 0 0 0.5em
Expand Down
22 changes: 20 additions & 2 deletions app/assets/stylesheets/partials/activities/_index.sass
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,13 @@ a#new-activity

iframe
margin: 2em 0 0
height: 600px
height: 400px
border: none

+media($tablet-lite)
iframe
height: 600px

#activities
clear: both
@extend %clearfix
Expand All @@ -26,7 +30,6 @@ a#new-activity

li
display: block
+span-columns(2)
margin: 0 0 2px 0
text-align: center

Expand Down Expand Up @@ -199,3 +202,18 @@ a#new-activity
opacity: 1
+transform(scale(1))
+transition(all 0.15s ease-out 0.15s)


+media($smartphone-portrait)
li
+span-columns(2)


+media($tablet-lite)
li
+span-columns(2)

+media($tablet-portrait-plus)
li
+span-columns(2)

2 changes: 1 addition & 1 deletion app/views/partials/_layout_head.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
%title= title(Settings.seo.title)
%meta{content: Settings.seo.description, name: "description"}
%meta{content: Settings.seo.author, name: "author"}
//%meta(content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0" name="viewport")
%meta(content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0" name="viewport")

= csrf_meta_tags

Expand Down

0 comments on commit f2197ca

Please sign in to comment.