mumuki-laboratory 5.0.6 → 5.0.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a72c1e911d57b9104253bd8ef653b73c6cadd68e244e18f33ce0e885770f762d
4
- data.tar.gz: f82758d295edb98fd40f902c5ec77594c2d6161b2604df2394a21daee64771c1
3
+ metadata.gz: 8568083534804d40218af64b2cd24859a3f912877be25d8de5219997ff4ce437
4
+ data.tar.gz: 8ba51c65639907be2d2406f77326fc84c064f49e72a9b19b96785cda0bffa5d6
5
5
  SHA512:
6
- metadata.gz: d1ba285c149eb3e76e1c8e549634f264affc22a84a9ce37879fddf093d08f508757e44a49b73636f0fa80b55e65d588a42dc990d30a6cce4446df7db2f077d5d
7
- data.tar.gz: b4e1e5799427e199a2b1ba79cbc269deaf49683848c50b48e0833b9638544e79b42897e11aa3a8f905efff5594cec15cd6d8958e1351db4b8482b8c29f6c90a1
6
+ metadata.gz: d00e734c76fbed059d322dc594d7415487f55140ad8e4802f2b42f8c2ec3ac3707452574022ea2a478ee65374173bfd1fd61d7003480db12beb25a734f38c787
7
+ data.tar.gz: 2079f0a952e6c21fac1c6d842560abb28be33734f2b21675086007f89d50cb90676062e3c3be9687e292bdfbf38500ddd81a4b68fee334ac657eacb4ad8803ff
@@ -4,7 +4,7 @@ mumuki.load(function () {
4
4
  var margin = 15;
5
5
  var fullMargin = margin * 2;
6
6
 
7
- var gbsBoard = $('[class^="mu-kids-gbs-board"]');
7
+ var gbsBoard = $('.mu-kids-state');
8
8
 
9
9
  var dimension = gbsBoard.height() - margin * 2;
10
10
  gbsBoard.width(dimension);
@@ -31,16 +31,14 @@ $kids-speech-tabs-width: 40px;
31
31
  }
32
32
 
33
33
  .mu-kids-character,
34
- .mu-kids-gbs-board-initial,
35
- .mu-kids-gbs-board-expected {
34
+ .mu-kids-state {
36
35
  padding: 15px;
37
36
  }
38
37
  .mu-kids-blocks,
39
- .mu-kids-gbs-board-expected {
38
+ .mu-state-final {
40
39
  margin-top: 15px;
41
40
  }
42
- .mu-kids-gbs-board-initial,
43
- .mu-kids-gbs-board-expected {
41
+ .mu-kids-state {
44
42
  height: calc(#{$kids-height} / 2 - 15px);
45
43
  }
46
44
  .mu-kids-character {
@@ -179,41 +177,49 @@ $kids-speech-tabs-width: 40px;
179
177
 
180
178
  }
181
179
 
182
- [class^="mu-kids-gbs-board"] {
180
+ .mu-kids-state {
183
181
  display: flex;
184
182
  flex-direction: column;
185
183
  align-items: center;
186
- gs-board {
187
- > table {
188
- transform: scale(1.5);
189
- background-color: $kids-speech-border-color !important;
190
- border: $kids-speech-border !important;
191
- border-radius: 12px;
192
- }
184
+ .mu-kids-state-image {
193
185
  display: flex;
194
- margin-top: 15px;
195
186
  flex-direction: column;
196
187
  align-items: center;
197
188
  justify-content: center;
198
- padding: 1px;
199
- max-height: 100%;
200
- td, th {
201
- &.gs-board {
189
+ height: 100%;
190
+ width: 100%;
191
+ gs-board {
192
+ > table {
193
+ transform: scale(1.5);
194
+ background-color: $kids-speech-border-color !important;
202
195
  border: $kids-speech-border !important;
203
- background-color: #FFFFFF;
204
- }
205
- &.gbs_lx,
206
- &.gbs_lh,
207
- &.gbs_lv {
208
- background-color: $kids-speech-background-color !important;
209
- border: 0 solid transparent !important;
196
+ border-radius: 12px;
210
197
  }
211
- &.gbs_gh.gs-cell {
212
- background: rgba(221, 221, 136, 0.7) !important;
213
- outline: 3px solid $kids-speech-border-color !important;
214
- }
215
- span {
216
- vertical-align: middle;
198
+ display: flex;
199
+ margin-top: 15px;
200
+ flex-direction: column;
201
+ align-items: center;
202
+ justify-content: center;
203
+ padding: 1px;
204
+ max-height: 100%;
205
+ td, th {
206
+ &.gs-board {
207
+ border: $kids-speech-border !important;
208
+ background-color: #FFFFFF;
209
+ }
210
+ &.gbs_lx,
211
+ &.gbs_lh,
212
+ &.gbs_lv {
213
+ background-color: $kids-speech-background-color !important;
214
+ border: 0 solid transparent !important;
215
+ }
216
+ &.gbs_gh.gs-cell {
217
+ background: rgba(221, 221, 136, 0.7) !important;
218
+ outline: 3px solid $kids-speech-border-color !important;
219
+ }
220
+ span {
221
+ vertical-align: middle;
222
+ }
217
223
  }
218
224
  }
219
225
  }
@@ -2,12 +2,14 @@
2
2
  <div class="mu-kids-character-speech-bubble">
3
3
  <i class="mu-kids-prev-speech fa fa-fw fa-caret-up"></i>
4
4
  <i class="mu-kids-next-speech fa fa-fw fa-caret-down"></i>
5
- <ul class="mu-kids-character-speech-bubble-tabs">
6
- <li class="active" data-target="description" title="<%= t :task %>"><i class="fa fa-fw fa-file-text-o"></i>
7
- </li>
8
- <li class="separator"></li>
9
- <li data-target="hint" title="<%= t :need_a_hint %>"><i class="fa fa-fw fa-lightbulb-o"></i></li>
10
- </ul>
5
+ <% if @exercise.hint? %>
6
+ <ul class="mu-kids-character-speech-bubble-tabs">
7
+ <li class="active" data-target="description" title="<%= t :task %>"><i class="fa fa-fw fa-file-text-o"></i>
8
+ </li>
9
+ <li class="separator"></li>
10
+ <li data-target="hint" title="<%= t :need_a_hint %>"><i class="fa fa-fw fa-lightbulb-o"></i></li>
11
+ </ul>
12
+ <% end %>
11
13
  <div class="description"><%= @exercise.description_task %></div>
12
14
  <div class="hint" style="display: none"><%= @exercise.hint_html %></div>
13
15
  </div>
@@ -18,15 +18,15 @@
18
18
  </div>
19
19
  </div>
20
20
 
21
- <div class="mu-kids-board">
22
- <div class="mu-kids-gbs-board-initial">
21
+ <div class="mu-kids-states">
22
+ <div class="mu-kids-state mu-state-initial mu-kids-gbs-board-initial">
23
23
  <strong>Tablero inicial</strong>
24
- <%= @exercise.initial_state&.html_safe %>
24
+ <div class="mu-kids-state-image"><%= @exercise.initial_state&.html_safe %></div>
25
25
  </div>
26
26
  <hr>
27
- <div class="mu-kids-gbs-board-expected">
27
+ <div class="mu-kids-state mu-state-final">
28
28
  <strong>Tablero esperado</strong>
29
- <%= @exercise.final_state&.html_safe %>
29
+ <div class="mu-kids-state-image"><%= @exercise.final_state&.html_safe %></div>
30
30
  </div>
31
31
  </div>
32
32
 
@@ -1,5 +1,5 @@
1
1
  module Mumuki
2
2
  module Laboratory
3
- VERSION = '5.0.6'
3
+ VERSION = '5.0.7'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mumuki-laboratory
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.0.6
4
+ version: 5.0.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Franco Bulgarelli
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-04-02 00:00:00.000000000 Z
11
+ date: 2018-04-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails