Merge pull request #4854 from Flaburgan/fix-mobile-drawer

Fix mobile drawer
This commit is contained in:
Jason Robinson 2014-04-12 21:46:54 +03:00
commit 7d9248b7ac
6 changed files with 29 additions and 47 deletions

View file

@ -59,7 +59,7 @@ header {
position: fixed; position: fixed;
top: 0; top: 0;
bottom: 0; bottom: 0;
width: 80%; width: 100%;
left: 100%; left: 100%;
background-color: #444; background-color: #444;
@ -70,13 +70,17 @@ header {
-webkit-box-shadow: -2px 0px 2px 1px #333; -webkit-box-shadow: -2px 0px 2px 1px #333;
header { header {
width: 80%; position: static;
left: 100%;
right: -80%;
#global_search { #global_search {
margin-left: 10px; position: relative;
form { form {
margin-right: 20px; position: absolute;
left: 5px;
right: 22%;
input { input {
@include box-shadow(0, 1px, 1px, #444); @include box-shadow(0, 1px, 1px, #444);
@ -112,7 +116,6 @@ header {
bottom: 0px; bottom: 0px;
overflow: auto; overflow: auto;
width: 100%; width: 100%;
height: 100%;
li { li {
font-size: 25px; font-size: 25px;
@ -130,6 +133,10 @@ header {
padding: 0px; padding: 0px;
border-bottom: 0px; border-bottom: 0px;
&:hover {
background-color: transparent;
}
> ul > li > a { > ul > li > a {
font-size: 14px; font-size: 14px;
padding: 8px 42px; padding: 8px 42px;
@ -162,7 +169,7 @@ header {
} }
/* This class is added when the user open the drawer */ /* This class is added when the user open the drawer */
#app.draw { #app.draw > * {
transform: translateX(-80%); transform: translateX(-80%);
-o-transform: translateX(-80%); -o-transform: translateX(-80%);
-ms-transform: translateX(-80%); -ms-transform: translateX(-80%);

View file

@ -30,7 +30,7 @@ h3 {
clear: both; clear: both;
} }
#app { #app > * {
transition: all 0.25s ease; transition: all 0.25s ease;
} }
@ -330,19 +330,6 @@ h3 {
float: right; float: right;
} }
footer {
text-align: center;
a,
a:visited {
color: $text-grey;
margin: 10px;
}
padding: {
top: 20px;
bottom: 20px;
}
}
.bottom_bar { .bottom_bar {
@include border-radius(0, 0, 5px, 5px); @include border-radius(0, 0, 5px, 5px);
z-index: 3; z-index: 3;
@ -813,10 +800,6 @@ textarea#conversation_text {
text-shadow: 1px 1px 5px #666; text-shadow: 1px 1px 5px #666;
} }
.registrations {
margin: -45px;
}
form#new_user.new_user input.btn { form#new_user.new_user input.btn {
white-space: normal; white-space: normal;
} }

View file

@ -76,7 +76,6 @@
%div %div
= hidden_field_tag "utf8", "✓" = hidden_field_tag "utf8", "✓"
= search_field_tag "q", nil, id: "q", placeholder: t("search"), results: "5", autocomplete: "off", class: "ac_input" = search_field_tag "q", nil, id: "q", placeholder: t("search"), results: "5", autocomplete: "off", class: "ac_input"
%nav %nav
%ul %ul
%li %li
@ -109,9 +108,6 @@
= t('streams.activity.title') = t('streams.activity.title')
= yield = yield
- if user_signed_in?
= render :partial =>'shared/footer'
/ javascripts at the bottom / javascripts at the bottom
= jquery_include_tag = jquery_include_tag
= javascript_include_tag :mobile = javascript_include_tag :mobile

View file

@ -1,3 +0,0 @@
%footer
%strong
= link_to current_user.name, current_user.person

View file

@ -2,17 +2,16 @@
-# licensed under the Affero General Public License version 3 or later. See -# licensed under the Affero General Public License version 3 or later. See
-# the COPYRIGHT file. -# the COPYRIGHT file.
.span12 %h2{:style => "padding:0 10px;display:none;"}
%h2{:style => "padding:0 10px;display:none;"} - if @stream.for_all_aspects?
- if @stream.for_all_aspects? = t('all_aspects')
= t('all_aspects') - else
- else = @stream.aspect
= @stream.aspect
#main_stream.stream #main_stream.stream
= render 'shared/stream', :posts => @stream.stream_posts = render 'shared/stream', :posts => @stream.stream_posts
-if @stream.stream_posts.length > 0 -if @stream.stream_posts.length > 0
#pagination #pagination
%a.more-link.paginate{:href => next_page_path} %a.more-link.paginate{:href => next_page_path}
%h1 %h1
= t("more") = t("more")

View file

@ -110,7 +110,7 @@ module UserCukeHelpers
page.should have_content("What are you into?") page.should have_content("What are you into?")
# the username that was just entered for registration # the username that was just entered for registration
page.should have_content(@username) page.should have_field("profile_first_name", with: @username)
end end
end end