Skip to content

Commit

Permalink
Use $screen-xs-max instead of $phone-width to match upcoming Bootstra…
Browse files Browse the repository at this point in the history
…p 3 styles
  • Loading branch information
tjgrathwell committed Oct 10, 2014
1 parent e538f3a commit 62af8a8
Show file tree
Hide file tree
Showing 9 changed files with 28 additions and 28 deletions.
8 changes: 4 additions & 4 deletions app/assets/stylesheets/_base.css.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
$phone-width: 520px;
$screen-xs-max: 767px;

body {
font-family: 'AmbleLight', sans-serif;
Expand All @@ -21,7 +21,7 @@ h1 {
font-size: 42px;
color: $red-color;

@media (max-width: $phone-width) {
@media (max-width: $screen-xs-max) {
font-size: 32px;
}

Expand Down Expand Up @@ -75,7 +75,7 @@ td.wide {
width: 20%;
}

@media (max-width: $phone-width) {
@media (max-width: $screen-xs-max) {
.hide-on-phone {
display: none !important;
}
Expand Down Expand Up @@ -184,7 +184,7 @@ ul {
li {
display: inline-block;
margin: 10px 10px 0 0;
@media (max-width: $phone-width) {
@media (max-width: $screen-xs-max) {
display: block;
margin: 0;
}
Expand Down
8 changes: 4 additions & 4 deletions app/assets/stylesheets/_external_pages.css.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
margin: 0 auto 10px auto;
padding: 15px;

@media (max-width: $phone-width) {
@media (max-width: $screen-xs-max) {
box-sizing: border-box;
padding: 8px;
width: 100%;
Expand All @@ -14,7 +14,7 @@
margin: 0 3em;
display: table;

@media (max-width: $phone-width) {
@media (max-width: $screen-xs-max) {
margin: 0;
width: 100%;
}
Expand All @@ -31,7 +31,7 @@
margin-top: 10px;
}

@media (max-width: $phone-width) {
@media (max-width: $screen-xs-max) {
font-size: 14px;
}
}
Expand All @@ -46,7 +46,7 @@
max-width: 190px;
}

@media (max-width: $phone-width) {
@media (max-width: $screen-xs-max) {
display: none;
}
}
Expand Down
10 changes: 5 additions & 5 deletions app/assets/stylesheets/_gravatars.css.scss
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
#gravatar {
width: 115px;
padding: 15px 0px 15px 0px;
width: 115px;
padding: 15px 0px 15px 0px;

#change_gravatar {
text-align:center;
}
#change_gravatar {
text-align: center;
}
}
4 changes: 2 additions & 2 deletions app/assets/stylesheets/_header.css.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
background: #333;
padding: 0 !important;

@media (max-width: $phone-width) {
@media (max-width: $screen-xs-max) {

.nav {
text-align: center;
Expand Down Expand Up @@ -64,7 +64,7 @@
}
}

@media (max-width: $phone-width) {
@media (max-width: $screen-xs-max) {
.app-name {
display: block;
text-align: center;
Expand Down
4 changes: 2 additions & 2 deletions app/assets/stylesheets/_tables.css.scss
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ table.checkins {
}
}

@media (max-width: $phone-width) {
@media (max-width: $screen-xs-max) {
.checkins-table-container {
margin-left: -10px;
margin-right: -10px;
Expand Down Expand Up @@ -102,7 +102,7 @@ table.sent-emails {
}

table.responsive-table {
@media (max-width: $phone-width) {
@media (max-width: $screen-xs-max) {
border: none;
thead {
display: none;
Expand Down
4 changes: 2 additions & 2 deletions app/assets/stylesheets/devise.css.scss
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
margin: 5px 0 10px 0;
}

@media (max-width: $phone-width) {
@media (max-width: $screen-xs-max) {
.login-option:last-child {
margin-top: 20px;
}
Expand All @@ -35,7 +35,7 @@
display: inline-block;
}
&.external-auth-existing li {
@media (max-width: $phone-width) {
@media (max-width: $screen-xs-max) {
display: block;
}
}
Expand Down
4 changes: 2 additions & 2 deletions app/assets/stylesheets/events/_index.css.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
margin-top: 30px;
}

@media (min-width: $phone-width) {
@media (min-width: $screen-xs-max) {
.chapter-select-container {
margin-right: 100px;
}
Expand All @@ -28,7 +28,7 @@
color: $red-color;
}

@media (max-width: $phone-width) {
@media (max-width: $screen-xs-max) {
width: 100%;
margin-right: 0;
}
Expand Down
12 changes: 6 additions & 6 deletions app/assets/stylesheets/events/_organize.css.scss
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

.header-actions {
float: right;
@media (max-width: $phone-width) {
@media (max-width: $screen-xs-max) {
float: none;
}
}
Expand All @@ -38,7 +38,7 @@
display: inline-block;
width: 300px;
vertical-align: top;
@media (max-width: $phone-width) {
@media (max-width: $screen-xs-max) {
width: auto;
}
}
Expand All @@ -49,7 +49,7 @@
margin-right: 10px;
display: inline-block;

@media (max-width: $phone-width) {
@media (max-width: $screen-xs-max) {
margin-bottom: 10px;
width: 100%;
}
Expand Down Expand Up @@ -82,7 +82,7 @@
@include background(linear-gradient(0deg, #ccc 30%, #ddd 70%));
}

@media (max-width: $phone-width) {
@media (max-width: $screen-xs-max) {
margin: 0 auto;
}
}
Expand Down Expand Up @@ -112,7 +112,7 @@
.section-arranger-link-text {
margin-left: 15px;

@media (max-width: $phone-width) {
@media (max-width: $screen-xs-max) {
margin: 0;
font-size: 24px;
text-align: center;
Expand All @@ -129,7 +129,7 @@
border: 1px solid rgb(205, 205, 228);
padding: 7px;

@media (max-width: $phone-width) {
@media (max-width: $screen-xs-max) {
box-sizing: border-box;
text-align: center;
margin-bottom: 10px;
Expand Down
2 changes: 1 addition & 1 deletion app/assets/stylesheets/events/_show.css.scss
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@
}
}

@media (max-width: $phone-width) {
@media (max-width: $screen-xs-max) {
div {
&:first-child {
font-size: 24px;
Expand Down

0 comments on commit 62af8a8

Please sign in to comment.