diff --git a/lib/sugar-web/activity/activity.js b/lib/sugar-web/activity/activity.js index 3466a30d..b1a99db9 100644 --- a/lib/sugar-web/activity/activity.js +++ b/lib/sugar-web/activity/activity.js @@ -14,7 +14,7 @@ define(["../../webL10n", var presenceCallback = null; var presenceResponse = null; - + var activity = {}; activity.setup = function () { @@ -25,7 +25,7 @@ define(["../../webL10n", function sendPauseEvent() { var pauseEvent = document.createEvent("CustomEvent"); pauseEvent.initCustomEvent('activityPause', false, false, { - 'cancelable': true + 'cancelable': true }); window.dispatchEvent(pauseEvent); } @@ -38,7 +38,7 @@ define(["../../webL10n", function sendStopEvent() { var stopEvent = document.createEvent("CustomEvent"); stopEvent.initCustomEvent('activityStop', false, false, { - 'cancelable': true + 'cancelable': true }); var result = window.dispatchEvent(stopEvent); if (result) { @@ -87,7 +87,7 @@ define(["../../webL10n", presence.joinSharedActivity(environment.sharedId, function() { var group_color = presence.getSharedInfo().colorvalue; icon.colorize(activityButton, group_color); - datastoreObject.setMetadata({"buddy_color":group_color}); + datastoreObject.setMetadata({"buddy_color":group_color}); datastoreObject.save(function() {}); }); } @@ -103,6 +103,9 @@ define(["../../webL10n", activityPalette.setTitleDescription(metadata); }); }); + if (environment.standAlone) { + document.getElementById("stop-button").style.visibility = "hidden"; + }; }); }; @@ -119,7 +122,7 @@ define(["../../webL10n", } return presence; }; - + activity.getXOColor = function (callback) { function onResponseReceived(error, result) { if (error === null) { diff --git a/src/containers/Builders/Template.js b/src/containers/Builders/Template.js index 32ecb18e..5dde7c26 100644 --- a/src/containers/Builders/Template.js +++ b/src/containers/Builders/Template.js @@ -30,10 +30,11 @@ class Template extends Component { reorderSelected = () => { this.props.history.push('/new/reorder') }; - +; render() { + let styles = { "background-color": this.props.current_user.colorvalue.stroke }; return ( -
+
@@ -92,8 +93,10 @@ class Template extends Component { } function mapStateToProps(state) { - return {}; + return { + current_user: state.current_user + }; } -export default withRouter(connect(mapStateToProps)(Template)); \ No newline at end of file +export default withRouter(connect(mapStateToProps)(Template)); diff --git a/src/containers/ExerciseList.js b/src/containers/ExerciseList.js index 2f6ec822..1f695a72 100644 --- a/src/containers/ExerciseList.js +++ b/src/containers/ExerciseList.js @@ -110,6 +110,7 @@ class ExerciseList extends Component { stroke = current_user.colorvalue.stroke; fill = current_user.colorvalue.fill; } + let styles = {"background-color": fill}; let userIcon=""; @@ -153,7 +154,7 @@ class ExerciseList extends Component { } return ( -
+
{userIcon} {userAdmin}
@@ -182,4 +183,4 @@ function MapStateToProps(state) { export default withRouter( connect(MapStateToProps, {removeExercises, editExercise, addSharedExercise, removeSharedExercise} - )(ExerciseList)); \ No newline at end of file + )(ExerciseList)); diff --git a/src/containers/Sugarizer.js b/src/containers/Sugarizer.js index 7659c174..1d819f92 100644 --- a/src/containers/Sugarizer.js +++ b/src/containers/Sugarizer.js @@ -13,9 +13,9 @@ import locale_es from 'react-intl/locale-data/es'; import default_activities from "../default_activities"; // Sugarizer Dependencies -import activity from 'lib/sugar-web/activity/activity' -import env from 'lib/sugar-web/env' -import presencepalette from 'lib/sugar-web/graphics/presencepalette' +import activity from '../lib/sugar-web/activity/activity' +import env from '../lib/sugar-web/env' +import presencepalette from '../lib/sugar-web/graphics/presencepalette' //Components import Main from "./Router"; diff --git a/src/css/CLOZEPlayer.css b/src/css/CLOZEPlayer.css index b30684a4..2406a659 100644 --- a/src/css/CLOZEPlayer.css +++ b/src/css/CLOZEPlayer.css @@ -42,9 +42,18 @@ } div{ - line-height: 2; + line-height: 1.5; } .cloze-container{ margin-top: 5%!important; } + + +.jumbotron { + background-color: #dfdfdf !important; +} + +.lead { + font-weight: bold !important; +} diff --git a/src/css/Exercise.css b/src/css/Exercise.css index 54284197..2c50cda3 100644 --- a/src/css/Exercise.css +++ b/src/css/Exercise.css @@ -67,19 +67,12 @@ button:focus{ .exercise-card-content { padding: 16px; - transition: all 0.3s cubic-bezier(.25,.8,.25,1); + border: 1px solid black; + box-shadow: 8px 8px 8px #888888; } - -.exercise-card-content:hover{ - box-shadow: 0 19px 38px rgba(0,0,0,0.30), 0 15px 12px rgba(0,0,0,0.22); -} - .exercise-card-question { font-style: italic; font-size: 0.9rem; -} - -.exercise-card-question { color: gray; } @@ -133,4 +126,4 @@ button:disabled{ .result-button:hover{ background-color: green; border: 2px solid transparent; -} \ No newline at end of file +} diff --git a/src/css/ExerciseList.css b/src/css/ExerciseList.css index d4f11d89..a90d31bd 100644 --- a/src/css/ExerciseList.css +++ b/src/css/ExerciseList.css @@ -70,6 +70,4 @@ .home-container{ height: auto; min-height: 100%; - background-color: #efefef; } - diff --git a/src/css/MCQPlayer.css b/src/css/MCQPlayer.css index 6538f25a..8d26c0a5 100644 --- a/src/css/MCQPlayer.css +++ b/src/css/MCQPlayer.css @@ -30,6 +30,7 @@ .jumbotron{ margin-bottom: 1rem!important; + background-color: #dfdfdf!important; } .d-flex{ @@ -46,4 +47,8 @@ .mcq-container{ margin-top: 5%!important; -} \ No newline at end of file +} + +.lead { + font-weight: bold !important; +} diff --git a/src/css/NewExerciseTemplate.css b/src/css/NewExerciseTemplate.css index 9a101436..8e92cbb5 100644 --- a/src/css/NewExerciseTemplate.css +++ b/src/css/NewExerciseTemplate.css @@ -60,9 +60,8 @@ .template-container{ height: 100%; padding-top: 5%; - background-color: #efefef; } .card-body{ min-height: 250px; -} \ No newline at end of file +} diff --git a/src/css/REORDERPlayer.css b/src/css/REORDERPlayer.css index 37afa8d8..5b6ad5da 100644 --- a/src/css/REORDERPlayer.css +++ b/src/css/REORDERPlayer.css @@ -8,4 +8,11 @@ margin: 0 0 8px 0; border-radius:10px; text-align:center; -} \ No newline at end of file +} + +.jumbotron { + background-color: #dfdfdf !important; +} +.lead { + font-weight: bold !important; +} diff --git a/src/lib b/src/lib new file mode 120000 index 00000000..dc598c56 --- /dev/null +++ b/src/lib @@ -0,0 +1 @@ +../lib \ No newline at end of file