Skip to content

Commit

Permalink
Merge branch 'feature/bigger-interface' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
Jake Archibald committed Sep 5, 2011
2 parents ca93fa5 + ed96c2e commit 6fde9e6
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 31 deletions.
11 changes: 8 additions & 3 deletions www/assets/4/script/pageLayout.js
Expand Up @@ -13,13 +13,14 @@ spriteCow.pageLayout = (function() {
currentView = 'intro';

function getContainerWidthPercent() {
var bodyHorizontalPadding = 60,
var bodyHorizontalPadding = 40,
containerRelativeWidth = $container.width() / ( $window.width() - bodyHorizontalPadding );

return Math.round(containerRelativeWidth * 10000) / 100 + '%';
}

function getAppViewTransitions() {
// Here we read all the destination styles to animate to when the intro class is removed
var transitions,
containerWidth = getContainerWidthPercent();

Expand All @@ -45,7 +46,11 @@ spriteCow.pageLayout = (function() {
targets: [
[$container, { width: '100%' }],
[$header, { height: $header.height() }],
[$headerH1, $.support.transition ? { transform: $headerH1.vendorCss('transform') } : {}],
[$headerH1, $.support.transition ? {
transform: $headerH1.vendorCss('transform'),
opacity: $headerH1.css('opacity'),
top: $headerH1.css('top')
} : {}],
[$cssOutput, {
height: $cssOutput.height(),
'padding-top': $cssOutput.css('padding-top'),
Expand All @@ -60,7 +65,7 @@ spriteCow.pageLayout = (function() {
'padding-bottom': $toolbar.css('padding-bottom'),
'border-top-width': $toolbar.css('border-top-width'),
'border-bottom-width': $toolbar.css('border-bottom-width')
}]
}]
],
before: function() {
$introCopy.css('display', 'none');
Expand Down
61 changes: 33 additions & 28 deletions www/assets/4/style/base.css
Expand Up @@ -23,13 +23,9 @@ body {
height: 100%;
min-height: 100%;
margin: 0;
padding: 0 30px;
padding: 0 20px;
background: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAAA0CAYAAAA62j4JAAAAe0lEQVR42u3QMQ5AQABFQbWIaGiI6CjU7n+z9TdxCjvFO8CbrpSypTutaWqtCnClJ51pb60KsHzzc+pbqwKM6UhD6loLAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAPC/XvoS9OcMtc3PAAAAAElFTkSuQmCC');
}
.not-supported body {
/* Working around an Opera bug */
background: none;
}

/* Reset */
ul, ol, li, form, dl, dt, dd {
Expand Down Expand Up @@ -132,7 +128,7 @@ body {
.container > header {
display: table-cell;
vertical-align: middle;
height: 79px;
height: 0;
}
.container.intro > header {
height: 169px;
Expand All @@ -142,14 +138,17 @@ body {
color: #fff;
font: normal 5.3em/1 prowin, monospace;
margin: 0;
height: 20px;
position: relative;
white-space: nowrap;
/* I don't really want a 1px blur, but it works around http://code.google.com/p/chromium/issues/detail?id=86702 */
text-shadow: #004a86 0 6px 1px;
-webkit-transform: scale(0.7);
-moz-transform: scale(0.7);
-ms-transform: scale(0.7);
-o-transform: scale(0.7);
transform: scale(0.7);
-webkit-transform: scale(0.3);
-moz-transform: scale(0.3);
-ms-transform: scale(0.3);
-o-transform: scale(0.3);
transform: scale(0.3);
opacity: 0;
}
.container > header h1 span {
display: inline-block;
Expand Down Expand Up @@ -178,6 +177,8 @@ body {
-ms-transform: scale(1);
-o-transform: scale(1);
transform: scale(1);
opacity: 1;
top: -46px;
}
/* Canvas */
.canvas-view {
Expand Down Expand Up @@ -350,8 +351,7 @@ body {
.css-output {
display: block;
white-space: pre;
background: rgba(0, 0, 0, .23);
margin: 0 0 10px;
background: rgba(0, 0, 0, 0.1);
padding: 20px 30px;
overflow: auto;
position: relative;
Expand Down Expand Up @@ -568,15 +568,12 @@ body {
}

/* Being responsible... */
@media screen and (max-width: 892px) {
@media screen and (max-width: 872px) {
.container.intro {
width: 100%;
}
}
@media screen and (max-width: 744px) {
.container > header h1::before, .container > header h1::after {
display: none;
}
.intro-copy > section {
padding: 20px;
}
Expand All @@ -593,27 +590,35 @@ body {
padding-left: 20px;
padding-right: 20px;
}
.select-btn, .demo-btn {
.container.intro .select-btn, .container.intro .demo-btn {
font-size: 1.6em;
padding: 11px 22px;

display: block;
margin: 12px auto;
}
.select-btn {
margin: 0 21px 0 0;
}
.start-buttons {
top: 64px;
top: 23px;
}
}
@media screen and (max-width: 562px) {
body {
padding-left: 10px;
padding-right: 10px;
.container.intro > header {
height: 91px;
-webkit-transform: scale(0.7);
-moz-transform: scale(0.7);
-ms-transform: scale(0.7);
-o-transform: scale(0.7);
transform: scale(0.7);
}
.container.intro > header h1 {
top: -32px;
}
.container > header, .container.intro > header {
height: 10px;
.container > header h1:before, .container > header h1:after {
display: none;
}
footer.main, .container > header h1 {
}
@media screen and (max-width: 562px) {
footer.main {
display: none;
}
}

0 comments on commit 6fde9e6

Please sign in to comment.