Skip to content
Browse files

Add a media query for the welcome screen to make it a bit more compac…

…t on desktop
  • Loading branch information...
1 parent 8742e03 commit 822ea03577571c3ff510dba9844e6aa482ec8503 @phae phae committed Jul 25, 2012
Showing with 9 additions and 1 deletion.
  1. +1 −1 app/assets/javascripts/popup.js
  2. +8 −0 app/assets/stylesheets/core.css.erb
View
2 app/assets/javascripts/popup.js
@@ -33,7 +33,7 @@ var BetaPopup = {
$mask.fadeTo("fast", this.maskOpacity).height(winH).width(winW);
//Set the popup window to center
- $popup.css('left', '10%')
+ $popup
.delay(100).fadeIn('fast', function(){
$popup.find("h2").attr("tabindex",-1).focus();
})
View
8 app/assets/stylesheets/core.css.erb
@@ -1112,6 +1112,14 @@ input[type="search"]{
width: 80%;
box-shadow: -0.5em 0.5em 0 rgba(0,0,0,0.3);
padding:0;
+ left: 10%;
+}
+
+@media screen and (min-width:500px) {
+ #popup.welcome-tour {
+ width: 60%;
+ left: 20%;
+ }
}
#popup.welcome-tour .welcome-content {

0 comments on commit 822ea03

Please sign in to comment.
Something went wrong with that request. Please try again.