diff --git a/src/components/intro/intro.jsx b/src/components/intro/intro.jsx index 965978e53..0dd57a8ca 100644 --- a/src/components/intro/intro.jsx +++ b/src/components/intro/intro.jsx @@ -2,7 +2,7 @@ var connect = require('react-redux').connect; var omit = require('lodash.omit'); var React = require('react'); -var actions = require('../../redux/actions.js'); +var actions = require('../../redux/auth.js'); var Modal = require('../modal/modal.jsx'); var Registration = require('../registration/registration.jsx'); diff --git a/src/components/intro/intro.scss b/src/components/intro/intro.scss index fdcb03fa1..7d4be04ac 100644 --- a/src/components/intro/intro.scss +++ b/src/components/intro/intro.scss @@ -1,12 +1,5 @@ @import "../../colors"; -h1 { - line-height: 2.125rem; - color: $ui-orange; - font-size: 1.625rem; - font-weight: 400; -} - .intro { display: flex; margin-top: 20px; @@ -16,6 +9,13 @@ h1 { justify-content: space-between; align-content: flex-start; + h1 { + line-height: 2.125rem; + color: $ui-orange; + font-size: 1.625rem; + font-weight: 400; + } + .content { display: inline-block; width: calc(66% - 30px); diff --git a/src/components/microworld/microworld.jsx b/src/components/microworld/microworld.jsx index 860694a41..e9d08337c 100644 --- a/src/components/microworld/microworld.jsx +++ b/src/components/microworld/microworld.jsx @@ -223,7 +223,7 @@ var Microworld = React.createClass({ }, render: function () { return ( -
{this.props.microworldData.description.join(' ')}
diff --git a/src/components/microworld/microworld.scss b/src/components/microworld/microworld.scss index fdda3ea19..c786e35e3 100644 --- a/src/components/microworld/microworld.scss +++ b/src/components/microworld/microworld.scss @@ -3,181 +3,167 @@ $base-bg: $ui-white; -background-color: $base-bg; -padding: 0; - -// To be integrated into the Global Typography standards -h3, -p { - font-weight: 300; - +#view { + background-color: $base-bg; + padding: 0; } -p { - line-height: 2em; -} +.microworld { + .top-banner, + .videos-section, + .section { + padding: 30px 0; + width: 100%; -h1 { - margin: 0 auto; - padding: 5px 10%; - text-align: center; - color: $type-gray; -} - -.top-banner, -.videos-section, -.section { - padding: 30px 0; - width: 100%; - - h1, - p { - margin: 0 auto; - padding: 5px 10%; - text-align: center; - color: $type-gray; + h1, + p { + margin: 0 auto; + padding: 5px 10%; + text-align: center; + color: $type-gray; + } } -} -.videos-container { - display: flex; - margin: 0 auto; + .videos-container { + display: flex; + margin: 0 auto; - justify-content: center; - flex-wrap: wrap; - align-items: center; - - .videos { - display: inline-flex; justify-content: center; flex-wrap: wrap; - } + align-items: center; - .video { - position: relative; - margin: 10px; - border-radius: 7px; - background-color: $active-gray; - padding: 2px; - max-width: 290px; - } - - img { - margin: 10px 10px 5px; - border-radius: 5px; - width: calc(100% - 20px); - height: 179px; - } - - .play-button { - display: block; - top: calc(50% - 25px); - left: calc(50% - 35px); - opacity: .8; - border: 5px solid $ui-border; - border-radius: 20px; - background-color: $type-gray; - width: 70px; - height: 50px; - - &, - &:after { - position: absolute; - margin: 0; - cursor: pointer; - padding: 0; + .videos { + display: inline-flex; + justify-content: center; + flex-wrap: wrap; } - &:after { - $play-arrow: rgba(255, 255, 255, 0); - top: 37px; - left: 28px; - margin-top: -30px; - border: solid transparent; - border-width: 18px; - border-color: $play-arrow; - border-left-color: $ui-white; - width: 0; - height: 0; - content: " "; - pointer-events: none; + .video { + position: relative; + margin: 10px; + border-radius: 7px; + background-color: $active-gray; + padding: 2px; + max-width: 290px; + } + + img { + margin: 10px 10px 5px; + border-radius: 5px; + width: calc(100% - 20px); + height: 179px; + } + + .play-button { + display: block; + top: calc(50% - 25px); + left: calc(50% - 35px); + opacity: .8; + border: 5px solid $ui-border; + border-radius: 20px; + background-color: $type-gray; + width: 70px; + height: 50px; + + &, + &:after { + position: absolute; + margin: 0; + cursor: pointer; + padding: 0; + } + + &:after { + $play-arrow: rgba(255, 255, 255, 0); + top: 37px; + left: 28px; + margin-top: -30px; + border: solid transparent; + border-width: 18px; + border-color: $play-arrow; + border-left-color: $ui-white; + width: 0; + height: 0; + content: " "; + pointer-events: none; + } } } -} -.content { - img { - display: block; - margin-right: auto; - margin-left: auto; - } - - .box, - iframe { - display: block; - margin-right: auto; - margin-left: auto; - border: 0; - padding-top: 25px; - padding-bottom: 15px; - } - - iframe { - height: 600px; - } - - .editor { - position: relative; + .content { + img { + display: block; + margin-right: auto; + margin-left: auto; + } + .box, iframe { - width: 100%; - } - - .scratch-link { - position: absolute; - right: 3%; - width: 10%; - } - } - - .side-by-side { - margin-right: auto; - margin-left: auto; - - height: 520px; - - .design-studio-projects, - .design-studio { - display: inline-block; - width: 45%; - height: 500px; + display: block; + margin-right: auto; + margin-left: auto; + border: 0; + padding-top: 25px; + padding-bottom: 15px; } - .design-studio-projects { - float: right; + iframe { + height: 600px; } - .design-studio { - float: left; + .editor { + position: relative; iframe { - margin-top: 60px; - width: 200%; - -webkit-transform: scale(.5); - -webkit-transform-origin: top left; - -moz-transform: scale(.5); + width: 100%; + } + + .scratch-link { + position: absolute; + right: 3%; + width: 10%; + } + } + + .side-by-side { + margin-right: auto; + margin-left: auto; + + height: 520px; + + .design-studio-projects, + .design-studio { + display: inline-block; + width: 45%; + height: 500px; + } + + .design-studio-projects { + float: right; + } + + .design-studio { + float: left; + + iframe { + margin-top: 60px; + width: 200%; + -webkit-transform: scale(.5); + -webkit-transform-origin: top left; + -moz-transform: scale(.5); + } + } + } + } + + .box-content { + .nestedcarousel { + text-align: center; + + .thumbnail { + display: inline-block; + margin: 0 50px; } } } } - -.box-content { - .nestedcarousel { - text-align: center; - - .thumbnail { - display: inline-block; - margin: 0 50px; - } - } -} diff --git a/src/views/about/about.jsx b/src/views/about/about.jsx index 94fb16bac..76c296514 100644 --- a/src/views/about/about.jsx +++ b/src/views/about/about.jsx @@ -11,7 +11,7 @@ var About = React.createClass({ type: 'About', render: function () { return ( -Scratch is designed and developed by the Lifelong Kindergarten Group at MIT Media Lab:
diff --git a/src/views/credits/credits.scss b/src/views/credits/credits.scss index c32d26844..2f0c33c98 100644 --- a/src/views/credits/credits.scss +++ b/src/views/credits/credits.scss @@ -1,36 +1,38 @@ @import "../../colors"; -p { - line-height: 1.5rem; +.credits { + p { + line-height: 1.5rem; - a { - word-wrap: break-word; /* Overrides: https://github.com/LLK/scratch-www/blob/develop/src/main.scss#L43-L47 */ - } -} - -ul { - display: flex; - margin: 0; - padding: 0; - list-style: none; - flex-wrap: wrap; -} - -li { - display: inline-block; - margin: 10px 0; - width: 188px; - text-align: center; - - img { - margin: 10px 23px; - border: 2px; - border-style: solid; - border-radius: 50%; - border-color: $ui-dark-gray; - background-color: $ui-white; - padding: 20px; - width: 85px; - height: 85px; + a { + word-wrap: break-word; /* Overrides: https://github.com/LLK/scratch-www/blob/develop/src/main.scss#L43-L47 */ + } + } + + ul { + display: flex; + margin: 0; + padding: 0; + list-style: none; + flex-wrap: wrap; + } + + li { + display: inline-block; + margin: 10px 0; + width: 188px; + text-align: center; + + img { + margin: 10px 23px; + border: 2px; + border-style: solid; + border-radius: 50%; + border-color: $ui-dark-gray; + background-color: $ui-white; + padding: 20px; + width: 85px; + height: 85px; + } } } diff --git a/src/views/dmca/dmca.jsx b/src/views/dmca/dmca.jsx index fcd7d9a1b..a9e156b20 100644 --- a/src/views/dmca/dmca.jsx +++ b/src/views/dmca/dmca.jsx @@ -8,7 +8,7 @@ var Dmca = React.createClass({ type: 'Dmca', render: function () { return ( -diff --git a/src/views/guidelines/guidelines.jsx b/src/views/guidelines/guidelines.jsx index 7b581e233..5470148a7 100644 --- a/src/views/guidelines/guidelines.jsx +++ b/src/views/guidelines/guidelines.jsx @@ -11,7 +11,7 @@ var Guidelines = React.createClass({ type: 'Guidelines', render: function () { return ( -