mirror of
https://github.com/scratchfoundation/scratch-www.git
synced 2024-11-22 15:17:53 -05:00
orangify this
This commit is contained in:
parent
262569c74c
commit
42c000d14f
5 changed files with 23 additions and 9 deletions
|
@ -15,6 +15,10 @@
|
|||
font-size: .8125rem;
|
||||
font-weight: normal;
|
||||
|
||||
&.staging {
|
||||
background-color: $ui-orange;
|
||||
}
|
||||
|
||||
&.open {
|
||||
display: block;
|
||||
}
|
||||
|
|
|
@ -11,6 +11,10 @@
|
|||
box-shadow: 0 0 3px $box-shadow-gray;
|
||||
background-color: $ui-blue;
|
||||
|
||||
&.staging {
|
||||
background-color: $ui-orange;
|
||||
}
|
||||
|
||||
|
||||
width: 100%;
|
||||
/* NOTE: Height should match offset settings in main.scss file */
|
||||
|
|
|
@ -253,7 +253,8 @@ var Navigation = React.createClass({
|
|||
<Dropdown
|
||||
as="ul"
|
||||
isOpen={this.state.accountNavOpen}
|
||||
onRequestClose={this.closeAccountNav}>
|
||||
onRequestClose={this.closeAccountNav}
|
||||
className={process.env.SCRATCH_ENV}>
|
||||
<li>
|
||||
<a href={this.getProfileUrl()}>
|
||||
<FormattedMessage id="general.profile" />
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
var React = require('react');
|
||||
var classNames = require('classnames');
|
||||
|
||||
var Navigation = require('../../navigation/www/navigation.jsx');
|
||||
var Footer = require('../../footer/www/footer.jsx');
|
||||
|
@ -6,9 +7,12 @@ var Footer = require('../../footer/www/footer.jsx');
|
|||
var Page = React.createClass({
|
||||
type: 'Page',
|
||||
render: function () {
|
||||
var classes = classNames({
|
||||
'staging': process.env.SCRATCH_ENV == 'staging'
|
||||
});
|
||||
return (
|
||||
<div className="page">
|
||||
<div id="navigation">
|
||||
<div id="navigation" className={classes}>
|
||||
<Navigation />
|
||||
</div>
|
||||
<div id="view">
|
||||
|
|
|
@ -116,7 +116,8 @@ module.exports = {
|
|||
'process.env.NODE_ENV': '"' + (process.env.NODE_ENV || 'development') + '"',
|
||||
'process.env.SENTRY_DSN': '"' + (process.env.SENTRY_DSN || '') + '"',
|
||||
'process.env.API_HOST': '"' + (process.env.API_HOST || 'https://api.scratch.mit.edu') + '"',
|
||||
'process.env.SMARTY_STREETS_API_KEY': '"' + (process.env.SMARTY_STREETS_API_KEY || '') + '"'
|
||||
'process.env.SMARTY_STREETS_API_KEY': '"' + (process.env.SMARTY_STREETS_API_KEY || '') + '"',
|
||||
'process.env.SCRATCH_ENV': '"'+ (process.env.SCRATCH_ENV || 'development') + '"'
|
||||
}),
|
||||
new webpack.optimize.CommonsChunkPlugin('common', 'js/common.bundle.js'),
|
||||
new webpack.optimize.OccurenceOrderPlugin()
|
||||
|
|
Loading…
Reference in a new issue