pxt-core 7.4.12 → 7.4.16

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.
Files changed (61) hide show
  1. package/built/cli.js +29 -6
  2. package/built/nodeutil.d.ts +1 -1
  3. package/built/nodeutil.js +2 -2
  4. package/built/pxt.js +30 -6
  5. package/built/pxtblockly.js +153 -60
  6. package/built/pxtblocks.d.ts +8 -0
  7. package/built/pxtblocks.js +96 -60
  8. package/built/pxtlib.js +1 -0
  9. package/built/target.js +1 -1
  10. package/built/web/blockly.css +1 -1
  11. package/built/web/main.js +1 -1
  12. package/built/web/pxtapp.js +1 -1
  13. package/built/web/pxtasseteditor.js +1 -1
  14. package/built/web/pxtblockly.js +53 -1
  15. package/built/web/pxtblocks.js +1 -1
  16. package/built/web/pxtembed.js +53 -1
  17. package/built/web/pxtlib.js +1 -1
  18. package/built/web/pxtworker.js +1 -1
  19. package/built/web/react-common-skillmap.css +13 -1
  20. package/built/web/rtlblockly.css +1 -1
  21. package/built/web/rtlreact-common-skillmap.css +13 -1
  22. package/built/web/rtlsemantic.css +14 -2
  23. package/built/web/semantic.css +14 -2
  24. package/built/web/skillmap/css/main.51937f05.chunk.css +1 -0
  25. package/built/web/skillmap/js/2.261d5eab.chunk.js +2 -0
  26. package/built/web/skillmap/js/main.1f690147.chunk.js +1 -0
  27. package/docfiles/tracking.html +1 -1
  28. package/localtypings/pxtarget.d.ts +1 -0
  29. package/localtypings/pxtblockly.d.ts +37 -0
  30. package/package.json +6 -3
  31. package/react-common/components/controls/Button.tsx +85 -0
  32. package/react-common/components/controls/Checkbox.tsx +47 -0
  33. package/react-common/components/controls/FocusTrap.tsx +92 -0
  34. package/react-common/components/controls/Input.tsx +117 -0
  35. package/react-common/components/controls/List.tsx +28 -0
  36. package/react-common/components/controls/MenuBar.tsx +94 -0
  37. package/react-common/components/controls/MenuDropdown.tsx +108 -0
  38. package/react-common/components/controls/Modal.tsx +108 -0
  39. package/react-common/components/profile/Profile.tsx +1 -1
  40. package/react-common/components/profile/UserPane.tsx +12 -8
  41. package/react-common/components/util.tsx +35 -0
  42. package/react-common/styles/controls/Button.less +178 -0
  43. package/react-common/styles/controls/Checkbox.less +13 -0
  44. package/react-common/styles/controls/Icon.less +11 -0
  45. package/react-common/styles/controls/Input.less +95 -0
  46. package/react-common/styles/controls/List.less +12 -0
  47. package/react-common/styles/controls/MenuDropdown.less +36 -0
  48. package/react-common/styles/controls/Modal.less +105 -0
  49. package/react-common/styles/controls/Spinner.less +24 -0
  50. package/react-common/styles/profile/profile.less +12 -0
  51. package/react-common/styles/react-common-skillmap.less +1 -1
  52. package/react-common/styles/react-common-variables.less +57 -0
  53. package/react-common/styles/react-common.less +13 -1
  54. package/theme/asset-editor.less +13 -29
  55. package/theme/blockly-core.less +16 -0
  56. package/webapp/public/blockly/plugins.js +57 -0
  57. package/webapp/public/skillmap.html +2 -2
  58. package/built/web/skillmap/css/main.96b1b3f1.chunk.css +0 -1
  59. package/built/web/skillmap/js/2.7dd06a3a.chunk.js +0 -2
  60. package/built/web/skillmap/js/main.b96caef3.chunk.js +0 -1
  61. package/react-common/components/Checkbox.tsx +0 -25
@@ -0,0 +1,178 @@
1
+ .common-button {
2
+ cursor: pointer;
3
+ position: relative;
4
+ display: inline-block;
5
+ min-height: 1rem;
6
+ outline: none;
7
+ border: none;
8
+ vertical-align: middle;
9
+ color: @buttonTextColor;
10
+ background: @buttonBackgroundColor;
11
+ font-family: @pageFont;
12
+ margin: 0 0.25rem 0 0;
13
+ padding: 0.8rem 2rem 0.95rem;
14
+ text-transform: none;
15
+ text-shadow: none;
16
+ font-weight: 400;
17
+ line-height: 1em;
18
+ font-style: normal;
19
+ text-align: center;
20
+ text-decoration: none;
21
+ border-radius: 0.2em;
22
+ user-select: none;
23
+ transition: opacity .1s ease,background-color .1s ease,box-shadow .1s ease,color .1s ease,background .1s ease;
24
+ -webkit-tap-highlight-color: transparent;
25
+ }
26
+
27
+ .common-button:hover {
28
+ filter: grayscale(.15) brightness(.85) contrast(1.3);
29
+ }
30
+
31
+ .common-button .right {
32
+ margin-left: 0.5rem;
33
+ }
34
+
35
+ .common-button:focus::after {
36
+ content: "";
37
+ position: absolute;
38
+ inset: 4px;
39
+ border: 1px solid transparent;
40
+ outline: @buttonFocusOutline;
41
+ z-index: 1;
42
+ border-radius: 0.2em;
43
+ }
44
+
45
+ .common-button.inverted:focus::after,
46
+ .common-button.menu-button:focus::after {
47
+ outline: @buttonFocusOutlineInverted;
48
+ }
49
+
50
+
51
+ /****************************************************
52
+ * Color Variants *
53
+ ****************************************************/
54
+
55
+ .common-button.primary {
56
+ background: @primaryColor;
57
+ color: @buttonTextColorInverted;
58
+ border: 1px solid @primaryColor;
59
+ }
60
+
61
+ .common-button.secondary {
62
+ background: @secondaryColor;
63
+ color: @buttonTextColorInverted;
64
+ border: 1px solid @secondaryColor;
65
+ }
66
+
67
+ .common-button.teal {
68
+ background: @teal;
69
+ color: @buttonTextColorInverted;
70
+ border: 1px solid @teal;
71
+ }
72
+
73
+ .common-button.orange {
74
+ background: @orange;
75
+ color: @buttonTextColorInverted;
76
+ border: 1px solid @orange;
77
+ }
78
+
79
+ .common-button.red {
80
+ background: @red;
81
+ color: @buttonTextColorInverted;
82
+ border: 1px solid @red;
83
+ }
84
+
85
+ .common-button.green {
86
+ background: @green;
87
+ color: @buttonTextColorInverted;
88
+ border: 1px solid @green;
89
+ }
90
+
91
+ .common-button.primary.inverted {
92
+ background: @buttonTextColorInverted;
93
+ color: @primaryColor;
94
+ }
95
+
96
+ .common-button.teal.inverted {
97
+ background: @buttonTextColorInverted;
98
+ color: @teal;
99
+ }
100
+
101
+ .common-button.orange.inverted {
102
+ background: @buttonTextColorInverted;
103
+ color: @orange;
104
+ }
105
+
106
+ .common-button.red.inverted {
107
+ background: @buttonTextColorInverted;
108
+ color: @red;
109
+ }
110
+
111
+ .common-button.green.inverted {
112
+ background: @buttonTextColorInverted;
113
+ color: @green;
114
+ }
115
+
116
+
117
+ /****************************************************
118
+ * Disabled Buttons *
119
+ ****************************************************/
120
+
121
+ .common-button.disabled:hover {
122
+ filter: none;
123
+ }
124
+
125
+ .common-button.disabled,
126
+ .common-button.disabled.primary,
127
+ .common-button.disabled.primary.inverted,
128
+ .common-button.disabled.secondary,
129
+ .common-button.disabled.secondary.inverted,
130
+ .common-button.disabled.teal,
131
+ .common-button.disabled.teal.inverted,
132
+ .common-button.disabled.orange,
133
+ .common-button.disabled.orange.inverted,
134
+ .common-button.disabled.red,
135
+ .common-button.disabled.red.inverted,
136
+ .common-button.disabled.green,
137
+ .common-button.disabled.green.inverted
138
+ {
139
+ cursor: default;
140
+ background-color: @buttonBackgroundColorDisabled;
141
+ color: @buttonTextColor;
142
+ border: @buttonBackgroundColorDisabled;
143
+ }
144
+
145
+
146
+ /****************************************************
147
+ * Menu Buttons *
148
+ ****************************************************/
149
+
150
+ .common-button.menu-button {
151
+ background: none;
152
+ border: none;
153
+ color: @buttonMenuTextColor;
154
+ height: 100%;
155
+ padding: 0em 1rem 0rem;
156
+ margin: 0;
157
+ border-radius: 0;
158
+ font-size: 20px;
159
+
160
+ i.fas, i.far, .icon, .xicon {
161
+ font-size: 24px;
162
+ }
163
+ }
164
+
165
+ .common-button.menu-button:hover {
166
+ background: @buttonMenuBackgroundHoverColor;
167
+ }
168
+
169
+ .common-button.menu-button:active {
170
+ background: @buttonMenuBackgroundActiveColor;
171
+ }
172
+
173
+ .common-button.menu-button.inverted,
174
+ .common-button.menu-button.inverted:hover {
175
+ background: @buttonMenuBackgroundColorInverted;
176
+ color: @buttonMenuTextColorInverted;
177
+ }
178
+
@@ -0,0 +1,13 @@
1
+ .common-checkbox {
2
+ position: relative;
3
+ padding: 0.25rem;
4
+
5
+ input {
6
+ margin-right: 0.5rem;
7
+ }
8
+ }
9
+
10
+ .common-checkbox:focus-within {
11
+ outline: @checkboxFocusOutline;
12
+ border-radius: 0.2em;
13
+ }
@@ -0,0 +1,11 @@
1
+ i.far, i.fas {
2
+ margin: 0 0.25rem 0 0;
3
+ text-align: center;
4
+ width: 1.81rem;
5
+ line-height: inherit;
6
+ font-size: 18px;
7
+ }
8
+
9
+ i.far.large, i.fas.large {
10
+ font-size: 24px;
11
+ }
@@ -0,0 +1,95 @@
1
+ /****************************************************
2
+ * Input *
3
+ ****************************************************/
4
+
5
+ .common-input-group {
6
+ position: relative;
7
+ display: flex;
8
+ height: 2rem;
9
+ align-items: stretch;
10
+ border-radius: 2px;
11
+ border: 1px solid @inputBorderColor;
12
+ background: @inputBackgroundColor;
13
+ }
14
+
15
+ .common-input-group:focus::after,
16
+ .common-input-group:focus-within::after {
17
+ content: "";
18
+ position: absolute;
19
+ inset: -1px;
20
+ border: 2px solid @inputBorderColorFocus;
21
+ border-radius: 2px;
22
+ pointer-events: none;
23
+ }
24
+
25
+ .common-input {
26
+ width: 100%;
27
+ min-width: 0;
28
+ padding: 0 0.5rem;
29
+ color: @inputTextColor;
30
+ border: none;
31
+ outline: 0;
32
+ background: none transparent;
33
+ text-overflow: ellipsis;
34
+ }
35
+
36
+ /****************************************************
37
+ * Input Label *
38
+ ****************************************************/
39
+
40
+ .common-input-label {
41
+ display: block;
42
+ font-size: 14px;
43
+ font-weight: 600;
44
+ padding: 0.3rem 0;
45
+ overflow-wrap: break-word;
46
+ }
47
+
48
+ /****************************************************
49
+ * Input Icon *
50
+ ****************************************************/
51
+
52
+ .common-input-group {
53
+ & > i.fas, i.far, .icon, .xicon {
54
+ position: absolute;
55
+ bottom: 0.3rem;
56
+ right: 0.5rem;
57
+ width: 1.25rem;
58
+ margin-right: 0;
59
+ line-height: 1.25rem;
60
+ pointer-events: none;
61
+ }
62
+
63
+ & > .common-button {
64
+ color: @inputButtonColor;
65
+ padding: 0;
66
+ margin: 0;
67
+ border-radius: 0;
68
+
69
+ &:hover {
70
+ color: @inputButtonColorHover;
71
+ }
72
+ }
73
+ }
74
+
75
+ .common-input.has-icon {
76
+ padding: 0 1.75rem 0 0.5rem;
77
+ }
78
+
79
+ /****************************************************
80
+ * Disabled Input *
81
+ ****************************************************/
82
+
83
+ .common-input-wrapper.disabled {
84
+ .common-input-group {
85
+ cursor: default;
86
+ border: 1px solid @inputBackgroundColorDisabled;
87
+ background: @inputBackgroundColorDisabled;
88
+ }
89
+
90
+ .common-input,
91
+ .common-input-label,
92
+ i {
93
+ color: @inputTextColorDisabled;
94
+ }
95
+ }
@@ -0,0 +1,12 @@
1
+ .common-list {
2
+ display: flex;
3
+ flex-direction: column;
4
+
5
+ .common-list-item {
6
+ margin-bottom: 0.25rem;
7
+ }
8
+ }
9
+
10
+ .common-list.horizontal {
11
+ flex-direction: row;
12
+ }
@@ -0,0 +1,36 @@
1
+ .common-menu-dropdown {
2
+ height: 100%;
3
+ position: relative;
4
+ }
5
+
6
+ .common-menu-dropdown > .menu-button.expanded {
7
+ background: @buttonMenuBackgroundActiveColor;
8
+ }
9
+
10
+ .common-menu-dropdown-pane {
11
+ position: absolute;
12
+ right: 0;
13
+ width: 10rem;
14
+
15
+ ul {
16
+ list-style: none;
17
+ margin: 0;
18
+ padding: 0;
19
+ background: @menuDropdownPaneBackground;
20
+ }
21
+
22
+ li {
23
+ width: 100%;
24
+ }
25
+ }
26
+
27
+ .common-menu-dropdown-item {
28
+ background: none;
29
+ text-align: left;
30
+ width: 100%;
31
+ margin: 0;
32
+ }
33
+
34
+ .common-menu-dropdown-item.common-button:focus::after {
35
+ outline: @buttonFocusOutlineInverted;
36
+ }
@@ -0,0 +1,105 @@
1
+ .common-modal-container {
2
+ position: fixed;
3
+ display: flex;
4
+ align-items: center;
5
+ justify-content: center;
6
+ top: 0;
7
+ left: 0;
8
+ right: 0;
9
+ bottom: 0;
10
+ background-color: var(--modal-overlay-color);
11
+ z-index: var(--modal-dimmer-zindex);
12
+ }
13
+
14
+ .common-modal-container.fullscreen {
15
+ z-index: var(--fullscreen-modal-zindex)
16
+ }
17
+
18
+ .common-modal {
19
+ width: 50%;
20
+ max-width: 40rem;
21
+ border-radius: .285rem;
22
+ overflow: hidden;
23
+ }
24
+
25
+ .common-modal-header {
26
+ background-color: @modalHeaderBackgroundColor;
27
+
28
+ display: flex;
29
+ font-size: 1.2rem;
30
+ font-weight: 600;
31
+ padding-left: 1.5rem;
32
+ border-bottom: @modalSeparatorBorder;
33
+ flex-shrink: 0;
34
+
35
+ .common-modal-title {
36
+ flex-grow: 1;
37
+ padding-top: 1.25rem;
38
+ padding-bottom: 1.25rem;
39
+ }
40
+
41
+ .common-modal-close .common-button .fas {
42
+ color: @modalCloseColor;
43
+ }
44
+ }
45
+
46
+ .common-modal-body {
47
+ background-color: @modalBodyBackgroundColor;
48
+ min-height: 4rem;
49
+ padding: 1.25rem 1.5rem;
50
+ }
51
+
52
+ .common-modal-footer {
53
+ background-color: @modalFooterBackgroundColor;
54
+ display: grid;
55
+ grid-template-columns: 1fr 1fr;
56
+ gap: 1rem;
57
+ padding: 1rem;
58
+ border-top: @modalSeparatorBorder;
59
+
60
+ button:only-child {
61
+ grid-column: 2 / -1;
62
+ }
63
+ }
64
+
65
+ .fullscreen > .common-modal {
66
+ position: fixed;
67
+ top: 0;
68
+ left: 0;
69
+ right: 0;
70
+ bottom: 0;
71
+ width: 100%;
72
+ max-width: none;
73
+ padding: 0;
74
+ border-radius: 0;
75
+ display: flex;
76
+ flex-direction: column;
77
+ }
78
+
79
+ .fullscreen > .common-modal > .common-modal-header {
80
+ background-color: var(--primary-color);
81
+ color: white;
82
+ margin-bottom: 0;
83
+
84
+ .common-modal-back {
85
+ font-size: 1.2rem;
86
+ font-weight: 600;
87
+
88
+ .common-button.men .fas {
89
+
90
+ }
91
+ }
92
+
93
+ .common-modal-title {
94
+ display: flex;
95
+ justify-content: center;
96
+ align-items: center;
97
+ }
98
+ }
99
+
100
+ .fullscreen > .common-modal > .common-modal-body {
101
+ flex-grow: 1;
102
+ background-color: var(--body-background-color);
103
+ padding: 1rem;
104
+ max-height: unset;
105
+ }
@@ -0,0 +1,24 @@
1
+ // This is mostly taken from fluentui
2
+ .common-spinner {
3
+ box-sizing: border-box;
4
+ border-radius: 50%;
5
+ border-width: 1.5px;
6
+ border-style: solid;
7
+ border-color: rgb(0, 120, 212) rgb(199, 224, 244) rgb(199, 224, 244);
8
+ border-image: initial;
9
+ animation-name: spinner-rotate;
10
+ animation-duration: 1.3s;
11
+ animation-iteration-count: infinite;
12
+ animation-timing-function: cubic-bezier(0.53, 0.21, 0.29, 0.67);
13
+ width: 20px;
14
+ height: 20px;
15
+ }
16
+
17
+ @keyframes spinner-rotate {
18
+ 0% {
19
+ transform: rotate(0deg);
20
+ }
21
+ 100% {
22
+ transform: rotate(360deg);
23
+ }
24
+ }
@@ -303,6 +303,18 @@
303
303
  font-family: var(--body-font-family);
304
304
  }
305
305
 
306
+ .common-checkbox.loading {
307
+ input {
308
+ opacity: 0;
309
+ }
310
+
311
+ .common-spinner {
312
+ display: inline-block;
313
+ position: absolute;
314
+ left: 0px;
315
+ }
316
+ }
317
+
306
318
  @media only screen and (max-width: 1200px) and (min-width: 992px) {
307
319
  .profile-badges, .profile-badges-background {
308
320
  background-size: 25%;
@@ -9,4 +9,4 @@
9
9
  // Import the variables from the target
10
10
  @import "site/globals/site.variables";
11
11
 
12
- @import "react-common.less";
12
+ @import "react-common.less";
@@ -0,0 +1,57 @@
1
+ @commonTextColor: rgb(50, 49, 48);
2
+ @commonBorderColor: rgb(96, 94, 92);
3
+ @commonBackgroundDisabledColor: rgb(243, 242, 241);
4
+
5
+ /****************************************************
6
+ * Buttons *
7
+ ****************************************************/
8
+
9
+ @buttonTextColor: @commonTextColor;
10
+ @buttonTextColorInverted: @white;
11
+ @buttonBackgroundColor: @white;
12
+ @buttonBackgroundColorDisabled: @commonBackgroundDisabledColor;
13
+
14
+ @buttonMenuTextColor: #ffffff;
15
+ @buttonMenuTextColorInverted: @primaryColor;
16
+ @buttonMenuBackgroundColorInverted: @buttonMenuTextColor;
17
+ @buttonFocusOutline: @buttonTextColorInverted solid 1px;;
18
+ @buttonFocusOutlineInverted: @commonBorderColor solid 1px;
19
+ @buttonMenuBackgroundHoverColor: rgba(0,0,0,.1);
20
+ @buttonMenuBackgroundActiveColor: rgba(0,0,0,.15);
21
+
22
+ /****************************************************
23
+ * Modals *
24
+ ****************************************************/
25
+
26
+ @modalCloseColor: #333333;
27
+ @modalBodyBackgroundColor: #ffffff;
28
+ @modalHeaderBackgroundColor: @modalBodyBackgroundColor;
29
+ @modalFooterBackgroundColor: #f9fafb;
30
+ @modalSeparatorBorder: 1px solid rgba(34, 36, 38, .15);
31
+
32
+
33
+ /****************************************************
34
+ * MenuDropdowns *
35
+ ****************************************************/
36
+
37
+ @menuDropdownPaneBackground: #ffffff;
38
+
39
+
40
+ /****************************************************
41
+ * Checkboxes *
42
+ ****************************************************/
43
+
44
+ @checkboxFocusOutline: @commonBorderColor solid 1px;
45
+
46
+ /****************************************************
47
+ * Inputs *
48
+ ****************************************************/
49
+
50
+ @inputTextColor: @commonTextColor;
51
+ @inputTextColorDisabled: rgb(161, 159, 157);
52
+ @inputBorderColor: @commonBorderColor;
53
+ @inputBorderColorFocus: rgb(0, 120, 212);
54
+ @inputBackgroundColor: #ffffff;
55
+ @inputBackgroundColorDisabled: @commonBackgroundDisabledColor;
56
+ @inputButtonColor: rgb(0, 120, 212);
57
+ @inputButtonColorHover: rgb(16, 110, 190);
@@ -1 +1,13 @@
1
- @import "profile/profile.less";
1
+ @import "profile/profile.less";
2
+ @import "controls/Button.less";
3
+ @import "controls/Checkbox.less";
4
+ @import "controls/Icon.less";
5
+ @import "controls/Input.less";
6
+ @import "controls/MenuDropdown.less";
7
+ @import "controls/Modal.less";
8
+ @import "controls/Spinner.less";
9
+ @import "./react-common-variables.less";
10
+
11
+ @import "fontawesome-free/less/solid.less";
12
+ @import "fontawesome-free/less/regular.less";
13
+ @import "fontawesome-free/less/fontawesome.less";
@@ -10,6 +10,7 @@
10
10
  height: 100%;
11
11
  border-right: 1px solid @assetSidebarBorder;
12
12
  overflow-y: auto;
13
+ z-index: 1;
13
14
  }
14
15
 
15
16
  .asset-editor-sidebar-info {
@@ -159,31 +160,22 @@
159
160
  }
160
161
  }
161
162
 
162
- .asset-editor-button {
163
- padding: .7em 2em .85em;
164
- text-align: center;
165
- background-color: @assetSidebarButton;
166
- font-size: 1rem;
167
- box-shadow: inset 0 0 0 1px rgba(34,36,38,.15), inset 0 -0.3em 0 0 rgba(34,36,38,.15);
168
- cursor: pointer;
169
- }
170
-
171
- .asset-editor-button.disabled,
172
- .asset-editor-button.disabled:hover {
173
- color: darken(@assetSidebarButtonHover, 20%);
174
- background-color: @assetSidebarButtonHover;
175
- cursor: not-allowed;
163
+ .asset-editor-sidebar-controls > .common-list-item {
164
+ display: flex;
176
165
  }
177
166
 
178
- .asset-editor-button:hover {
179
- background-color: @assetSidebarButtonHover;
167
+ .asset-editor-button {
168
+ flex: 1;
169
+ box-shadow: inset 0 0 0 1px rgba(34,36,38,.15), inset 0 -0.3em 0 0 rgba(34,36,38,.15);
180
170
  }
181
171
 
182
- .asset-editor-button[data-tooltip]:hover:after {
183
- z-index: @sidedocZIndex;
172
+ .delete-asset.common-button {
173
+ flex: 1;
174
+ background: none transparent;
175
+ border: none;
184
176
  }
185
177
 
186
- .create-new {
178
+ .create-new.common-button {
187
179
  color: @white;
188
180
  background-color: @green;
189
181
  font-weight: 700;
@@ -191,7 +183,7 @@
191
183
  flex-direction: column;
192
184
  justify-content: center;
193
185
  align-items: center;
194
- border-width: 0;
186
+ margin: 1rem 0 0 1rem;
195
187
 
196
188
  i.icon {
197
189
  margin: 0;
@@ -207,14 +199,6 @@
207
199
  background-color: @assetUnselected;
208
200
  }
209
201
 
210
- .delete-asset {
211
- margin: 0.5rem;
212
- text-align: center;
213
- font-size: 0.9rem;
214
- cursor: pointer;
215
- opacity: 0.9;
216
- }
217
-
218
202
  .asset-editor-create-options {
219
203
  display: flex;
220
204
  flex-wrap: wrap;
@@ -222,7 +206,7 @@
222
206
  justify-content: space-around;
223
207
  }
224
208
 
225
- .asset-editor-create-button {
209
+ .asset-editor-create-button.common-button {
226
210
  display: flex;
227
211
  flex-direction: column;
228
212
  justify-content: center;
@@ -316,6 +316,22 @@ text.blocklyCheckbox {
316
316
  border: 1px solid #FAF6BD; // match comment color
317
317
  }
318
318
 
319
+ /*******************************
320
+ Workspace Search
321
+ *******************************/
322
+
323
+ .blockly-ws-searching {
324
+ path.blocklyPath:not(.blockly-ws-search-highlight-pxt) {
325
+ opacity: 0.6;
326
+ }
327
+
328
+ path.blocklyPath.blockly-ws-search-highlight-pxt.blockly-ws-search-current {
329
+ stroke: #FFF200;
330
+ stroke-width: 4px;
331
+ transition: none;
332
+ }
333
+ }
334
+
319
335
  /*******************************
320
336
  Media Adjustments
321
337
  *******************************/