Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added responsive stylesheet #1

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Expand Up @@ -5,3 +5,4 @@ log/*.log
tmp/**/*
tmp/
.sass-cache/**/*
gamerankr_dev.sql
82 changes: 82 additions & 0 deletions app/assets/stylesheets/responsive.css
@@ -0,0 +1,82 @@
@media screen and (max-width: 1024px) {
#header {
width: auto;
}
#header img {
width: 120px;
}
#header .nav {
font-size: 1.25em;
padding: 7px;
}
#header .nav a {
display: inline-block;
}
#header .nav a:first-child {
display: none;
}
#header form {
padding: 10px;
}
#main {
width: auto;
padding: 0;
}
#main .left20 {
width: 30%;
}
#main .right80 {
width: 70%;
}

#main .left30 {
margin: 10px;
}
#main .left30 .sx250 {
max-width: 200px;
}

#main .left70 {
width: 60%;
margin: 20px;
float: left;
display: inline-block;
}
#main .left50 {
width: 100%;
margin-bottom: 5px;
}
#main .right50 {
width: 100%;
margin: 5px;
}
#footer {
width: auto;
}
}

@media screen and (max-width: 480px) {

#header img {
width: 90px;
}

#main .carousel {
display: none;
}
#main .left20 {
width: 40%;
}
#main .right80 {
width: 60%;
}

#main .left30 {
margin: 5px;
}

#main .left70 {
width: 95%;
margin: 5px;
}
}
1 change: 1 addition & 0 deletions app/views/layouts/application.html.haml
Expand Up @@ -5,6 +5,7 @@
GameRankr -
= @title || "Rate and Review Video Games With Friends"
= stylesheet_link_tag "application"
= stylesheet_link_tag "responsive"
= csrf_meta_tag
= render "layouts/metatags"
%body
Expand Down