Skip to content
This repository has been archived by the owner on Feb 8, 2018. It is now read-only.

Commit

Permalink
Shelve work on mobile-first design
Browse files Browse the repository at this point in the history
  • Loading branch information
chadwhitacre committed Jan 6, 2015
1 parent c9aa629 commit a3ee570
Show file tree
Hide file tree
Showing 4 changed files with 100 additions and 79 deletions.
1 change: 0 additions & 1 deletion scss/atoms/elements.scss
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
body {
color: $black;
font: normal 16px/21px $Ideal;
min-width: 320px;
text-rendering: optimizeLegibility;
}
* {
Expand Down
3 changes: 1 addition & 2 deletions scss/gratipay.scss
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,7 @@
@import "organisms/mini-user";
@import "organisms/notifications";

@import "templates/layout";
@import "templates/responsiveness";
@import "templates/small";

@import "pages/homepage";
@import "pages/history";
Expand Down
153 changes: 77 additions & 76 deletions scss/templates/responsiveness.scss
Original file line number Diff line number Diff line change
@@ -1,79 +1,3 @@
@media (min-width: 940px) {
// 2 column sections
#leaderboard {
width: leaderboard-width(2);

.people {
width: $people-column-width * 2;
}
}
.more-container {
width: $people-column-width * 2 * 3;
}
.two-column > * {
float: left;
width: 50%;
padding: 0 20px 0 0;
&:nth-child(even) {
padding-right: 0;
}
}
}

@media (min-width: 880px) {
.support-gratipay {
line-height: 125%;
}

.accounts {
width: 100%;
}

#homepage {
#sidebar img {
left: 32px;
top: 32px;
width: 284px;
}
#sidebar, #content {
padding: 150px 32px 60px;
width: auto;
.jump {
padding-top: 0;
}
}
}
}

@media (min-width: 700px) {
#leaderboard {
width: 100%;

.people {
float: none;
width: $people-column-width * 4;
margin: 0;

li {
&.luxury { display: none; }
}
}
}
.more-container {
width: $people-column-width * 4;
margin-left: 0;
}

#footer {
text-align: center;

li a {
margin: 0.25em;
padding: 0.75em;
}
}
}

@media (min-width: 480px) {
.luxury {
display: none !important;
Expand Down Expand Up @@ -161,3 +85,80 @@
}
}
}

@media (min-width: 700px) {
#leaderboard {
width: 100%;

.people {
float: none;
width: $people-column-width * 4;
margin: 0;

li {
&.luxury { display: none; }
}
}
}
.more-container {
width: $people-column-width * 4;
margin-left: 0;
}

#footer {
text-align: center;

li a {
margin: 0.25em;
padding: 0.75em;
}
}
}

@media (min-width: 880px) {
.support-gratipay {
line-height: 125%;
}

.accounts {
width: 100%;
}

#homepage {
#sidebar img {
left: 32px;
top: 32px;
width: 284px;
}
#sidebar, #content {
padding: 150px 32px 60px;
width: auto;
.jump {
padding-top: 0;
}
}
}
}

@media (min-width: 940px) {
// 2 column sections
#leaderboard {
width: leaderboard-width(2);

.people {
width: $people-column-width * 2;
}
}
.more-container {
width: $people-column-width * 2 * 3;
}
.two-column > * {
float: left;
width: 50%;
padding: 0 20px 0 0;
&:nth-child(even) {
padding-right: 0;
}
}
}

22 changes: 22 additions & 0 deletions scss/templates/small.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
#header {
text-align: center;
h1 a {
display: block;
padding: 10px 0;
border-bottom: 1px solid $brown;
}
.nav {
li {
margin: 0;
a {
display: block;
padding: 10px;
border-bottom: 1px solid $black;
}
}
}
}
#content {
font: normal 11px/13px $Chronicle;
padding: 0 5px;
}

0 comments on commit a3ee570

Please sign in to comment.