Commit 99772ca4 authored by morant's avatar morant

* Fix alignment of Editor link in Microworlds.

* Remove fixed width from most components (replace with relative width).
parent 2e5a0e14
...@@ -83,7 +83,7 @@ var Microworld = React.createClass({ ...@@ -83,7 +83,7 @@ var Microworld = React.createClass({
<div className="editor section"> <div className="editor section">
<h1>Start Creating!</h1> <h1>Start Creating!</h1>
<a href={'//scratch.mit.edu/projects/'+ projectId +'/#editor'}> <a href={'//scratch.mit.edu/projects/'+ projectId +'/#editor'}>
<img src="/images/scratch-og.png" style={{width:'6%', position: 'absolute', left: '75%'}}></img> <img className="scratch-link" src="/images/scratch-og.png"></img>
</a> </a>
<iframe src={'//scratch.mit.edu/projects/embed-editor/' + projectId + '/?isMicroworld=true'} <iframe src={'//scratch.mit.edu/projects/embed-editor/' + projectId + '/?isMicroworld=true'}
frameBorder="0"> </iframe> frameBorder="0"> </iframe>
......
...@@ -20,8 +20,7 @@ $base-bg: $ui-white; ...@@ -20,8 +20,7 @@ $base-bg: $ui-white;
h1 { h1 {
margin: 0 auto; margin: 0 auto;
padding: 5px 0; padding: 5px 10%;
max-width: 500px;
text-align: center; text-align: center;
color: $type-gray; color: $type-gray;
} }
...@@ -35,8 +34,7 @@ $base-bg: $ui-white; ...@@ -35,8 +34,7 @@ $base-bg: $ui-white;
h1, h1,
p { p {
margin: 0 auto; margin: 0 auto;
padding: 5px 0; padding: 5px 10%;
max-width: 500px;
text-align: center; text-align: center;
color: $type-gray; color: $type-gray;
} }
...@@ -125,29 +123,34 @@ $base-bg: $ui-white; ...@@ -125,29 +123,34 @@ $base-bg: $ui-white;
padding-bottom: 15px; padding-bottom: 15px;
} }
iframe { iframe {
width: 900px;
height: 600px; height: 600px;
} }
.box { .editor {
width: 900px; position: relative;
iframe {
width: 100%;
}
.scratch-link {
position: absolute;
right: 3%;
width: 10%;
}
} }
.side-by-side { .side-by-side {
margin-right: auto; margin-right: auto;
margin-left: auto; margin-left: auto;
width: 900px;
height: 520px; height: 520px;
.box {
width: 400px;
}
.design-studio-projects, .design-studio-projects,
.design-studio { .design-studio {
display: inline-block; display: inline-block;
width: 400px; width: 45%;
height: 500px; height: 500px;
} }
...@@ -160,7 +163,7 @@ $base-bg: $ui-white; ...@@ -160,7 +163,7 @@ $base-bg: $ui-white;
iframe { iframe {
margin-top: 60px; margin-top: 60px;
width: 960px; width: 200%;
-webkit-transform: scale(.5); -webkit-transform: scale(.5);
-webkit-transform-origin: top left; -webkit-transform-origin: top left;
-moz-transform: scale(.5); -moz-transform: scale(.5);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment