pxt-core 7.3.24 → 7.3.28

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pxt-core",
3
- "version": "7.3.24",
3
+ "version": "7.3.28",
4
4
  "description": "Microsoft MakeCode provides Blocks / JavaScript / Python tools and editors",
5
5
  "keywords": [
6
6
  "TypeScript",
@@ -16,6 +16,7 @@
16
16
  margin-top: -0.25rem;
17
17
  background-color: @red;
18
18
  border-radius: 50%;
19
+ animation: notification-glow 5s infinite ease-in-out;
19
20
  }
20
21
 
21
22
  .tab-icon {
@@ -31,4 +32,10 @@
31
32
  .tab-content,
32
33
  .tab-content > div {
33
34
  height: 100%;
35
+ }
36
+
37
+ @keyframes notification-glow {
38
+ 0%, 50% { box-shadow: 0 0 0.12rem -0.12rem @red; }
39
+ 10%, 40% { box-shadow: 0 0 0.12rem 0rem @red; }
40
+ 25% { box-shadow: 0 0 0.12rem 0.12rem @white; }
34
41
  }
package/theme/common.less CHANGED
@@ -1326,7 +1326,7 @@ p.ui.font.small {
1326
1326
  .simPanel.ui.items {
1327
1327
  position: fixed;
1328
1328
  padding: 0;
1329
- margin: 1em;
1329
+ margin: 1em 1em 0;
1330
1330
  bottom: ~"calc(5.5rem + var(--extra-mobile-sim-padding))" !important;
1331
1331
  right: 0.5rem;
1332
1332
  top: unset;
@@ -841,6 +841,10 @@
841
841
  color: @HCbackground;
842
842
  background-color: @HCtextColor;
843
843
  }
844
+
845
+ .tab-badge {
846
+ display: none;
847
+ }
844
848
  }
845
849
 
846
850
  .ui.label {
@@ -6,10 +6,16 @@
6
6
  @tutorialSecondaryColor: @blue;
7
7
 
8
8
  @tutorialTabletButtonColor: #f3f3f3;
9
+ @tutorialTabletSimulatorButtonColor: rgba(0, 0, 0, 0.05);
9
10
  @tutorialTabletStepCounterWidth: 16rem;
10
11
 
11
12
  @tutorialHintMaskZIndex: -1; // Below tutorial pane
12
13
 
14
+ @tutorialControlsOffset: 5.725rem;
15
+ @tutorialBoardviewOffset: 3rem;
16
+ @tutorialTabBarOffset: 3.5rem;
17
+ @tutorialSimulatorMinHeight: 250px;
18
+
13
19
  /*******************************
14
20
  Tutorial Tab
15
21
  *******************************/
@@ -27,11 +33,6 @@
27
33
  display: flex;
28
34
  flex-direction: column;
29
35
  height: 100%;
30
-
31
- .ui.button, .ui.button:hover {
32
- box-shadow: none;
33
- background-image: none;
34
- }
35
36
  }
36
37
 
37
38
  .tutorial-content {
@@ -65,6 +66,14 @@
65
66
  background-image: linear-gradient(to bottom, rgba(255, 255, 255, 0), @white);
66
67
  }
67
68
 
69
+ .tutorial-container,
70
+ .tutorial-controls {
71
+ .ui.button, .ui.button:hover {
72
+ box-shadow: none;
73
+ background-image: none;
74
+ }
75
+ }
76
+
68
77
  /*******************************
69
78
  Exit Tutorial
70
79
  *******************************/
@@ -297,9 +306,13 @@
297
306
  .sidebar-button, .play-button { display: block !important; }
298
307
  .expand-button, .fullscreen-button { display: none !important; }
299
308
  }
309
+
310
+ .tutorial-controls { display: none; }
300
311
  }
301
312
  .tab-simulator.tab-content:not(.hidden) {
302
313
  .simPanel {
314
+ height: calc(100% - @tutorialControlsOffset);
315
+
303
316
  .sidebar-button, .button.hidefullscreen { display: none !important; }
304
317
  }
305
318
  }
@@ -353,6 +366,29 @@
353
366
  Media Adjustments
354
367
  *******************************/
355
368
 
369
+ /* Desktop Only */
370
+ @media only screen and (max-height: @tallEditorBreakpoint) and (min-width: @largestTabletScreen) {
371
+ #root.tabTutorial:not(.fullscreensim) .tab-simulator:not(.hidden) {
372
+ .simPanel {
373
+ height: calc(100% - @tutorialControlsOffset);
374
+ min-height: @tutorialSimulatorMinHeight;
375
+ }
376
+ #boardview {
377
+ height: calc(100% - @tutorialBoardviewOffset);
378
+ min-height: @tutorialSimulatorMinHeight;
379
+ }
380
+ #simulators {
381
+ height: 100%;
382
+ min-height: @tutorialSimulatorMinHeight;
383
+ }
384
+ .simframe {
385
+ padding-bottom: unset !important;
386
+ height: 100%;
387
+ min-height: @tutorialSimulatorMinHeight;
388
+ }
389
+ }
390
+ }
391
+
356
392
  /* <= Tablet (Mobile + Tablet) */
357
393
  @media only screen and (max-width: @largestTabletScreen) {
358
394
  #root.tabTutorial,
@@ -465,7 +501,8 @@
465
501
  }
466
502
  }
467
503
 
468
- .tutorial-container {
504
+ .tutorial-container,
505
+ .tutorial-controls {
469
506
  > .ui.button, > .ui.button:focus {
470
507
  color: @tutorialPrimaryColor;
471
508
  background: @tutorialTabletButtonColor;
@@ -526,6 +563,10 @@
526
563
  #root.tabTutorial:not(.fullscreensim) .tab-simulator:not(.hidden) {
527
564
  .simPanel {
528
565
  display: flex;
566
+ position: relative;
567
+ height: 100%;
568
+ margin: 0 4rem;
569
+ z-index: 30;
529
570
 
530
571
  #simulators {
531
572
  width: 34rem;
@@ -551,6 +592,23 @@
551
592
  #boardview {
552
593
  width: 100% !important;
553
594
  }
595
+
596
+ .tutorial-controls {
597
+ position: absolute;
598
+ top: @tutorialTabBarOffset;
599
+ width: 100%;
600
+ height: calc(100% - @tutorialTabBarOffset);
601
+ justify-content: space-between;
602
+ z-index: 10;
603
+
604
+ .ui.button {
605
+ height: 100%;
606
+ }
607
+
608
+ .ui.button:not(:hover) {
609
+ background-color: @tutorialTabletSimulatorButtonColor;
610
+ }
611
+ }
554
612
  }
555
613
 
556
614
  /*******************************
@@ -28,5 +28,5 @@
28
28
  <!-- end usabilla live embed code -->
29
29
 
30
30
  <!-- @include thin-footer.html -->
31
- <script>!function(e){function r(r){for(var n,l,i=r[0],a=r[1],p=r[2],c=0,s=[];c<i.length;c++)l=i[c],Object.prototype.hasOwnProperty.call(o,l)&&o[l]&&s.push(o[l][0]),o[l]=0;for(n in a)Object.prototype.hasOwnProperty.call(a,n)&&(e[n]=a[n]);for(f&&f(r);s.length;)s.shift()();return u.push.apply(u,p||[]),t()}function t(){for(var e,r=0;r<u.length;r++){for(var t=u[r],n=!0,i=1;i<t.length;i++){var a=t[i];0!==o[a]&&(n=!1)}n&&(u.splice(r--,1),e=l(l.s=t[0]))}return e}var n={},o={1:0},u=[];function l(r){if(n[r])return n[r].exports;var t=n[r]={i:r,l:!1,exports:{}};return e[r].call(t.exports,t,t.exports,l),t.l=!0,t.exports}l.m=e,l.c=n,l.d=function(e,r,t){l.o(e,r)||Object.defineProperty(e,r,{enumerable:!0,get:t})},l.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},l.t=function(e,r){if(1&r&&(e=l(e)),8&r)return e;if(4&r&&"object"==typeof e&&e&&e.__esModule)return e;var t=Object.create(null);if(l.r(t),Object.defineProperty(t,"default",{enumerable:!0,value:e}),2&r&&"string"!=typeof e)for(var n in e)l.d(t,n,function(r){return e[r]}.bind(null,n));return t},l.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return l.d(r,"a",r),r},l.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},l.p="/";var i=this.webpackJsonpskillsmap=this.webpackJsonpskillsmap||[],a=i.push.bind(i);i.push=r,i=i.slice();for(var p=0;p<i.length;p++)r(i[p]);var f=a;t()}([])</script><script src="/blb/skillmap/js/2.7dd06a3a.chunk.js"></script><script src="/blb/skillmap/js/main.55881627.chunk.js"></script></body>
31
+ <script>!function(e){function r(r){for(var n,l,i=r[0],a=r[1],p=r[2],c=0,s=[];c<i.length;c++)l=i[c],Object.prototype.hasOwnProperty.call(o,l)&&o[l]&&s.push(o[l][0]),o[l]=0;for(n in a)Object.prototype.hasOwnProperty.call(a,n)&&(e[n]=a[n]);for(f&&f(r);s.length;)s.shift()();return u.push.apply(u,p||[]),t()}function t(){for(var e,r=0;r<u.length;r++){for(var t=u[r],n=!0,i=1;i<t.length;i++){var a=t[i];0!==o[a]&&(n=!1)}n&&(u.splice(r--,1),e=l(l.s=t[0]))}return e}var n={},o={1:0},u=[];function l(r){if(n[r])return n[r].exports;var t=n[r]={i:r,l:!1,exports:{}};return e[r].call(t.exports,t,t.exports,l),t.l=!0,t.exports}l.m=e,l.c=n,l.d=function(e,r,t){l.o(e,r)||Object.defineProperty(e,r,{enumerable:!0,get:t})},l.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},l.t=function(e,r){if(1&r&&(e=l(e)),8&r)return e;if(4&r&&"object"==typeof e&&e&&e.__esModule)return e;var t=Object.create(null);if(l.r(t),Object.defineProperty(t,"default",{enumerable:!0,value:e}),2&r&&"string"!=typeof e)for(var n in e)l.d(t,n,function(r){return e[r]}.bind(null,n));return t},l.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return l.d(r,"a",r),r},l.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},l.p="/";var i=this.webpackJsonpskillsmap=this.webpackJsonpskillsmap||[],a=i.push.bind(i);i.push=r,i=i.slice();for(var p=0;p<i.length;p++)r(i[p]);var f=a;t()}([])</script><script src="/blb/skillmap/js/2.7dd06a3a.chunk.js"></script><script src="/blb/skillmap/js/main.7ad07e3a.chunk.js"></script></body>
32
32
  </html>