pxt-core 7.4.11 → 7.4.15
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/built/cli.js +117 -83
- package/built/nodeutil.d.ts +1 -1
- package/built/nodeutil.js +2 -2
- package/built/pxt.js +119 -84
- package/built/pxtblockly.js +153 -60
- package/built/pxtblocks.d.ts +8 -0
- package/built/pxtblocks.js +96 -60
- package/built/pxtlib.js +2 -1
- package/built/target.js +1 -1
- package/built/web/blockly.css +1 -1
- package/built/web/main.js +1 -1
- package/built/web/pxtapp.js +1 -1
- package/built/web/pxtasseteditor.js +1 -1
- package/built/web/pxtblockly.js +53 -1
- package/built/web/pxtblocks.js +1 -1
- package/built/web/pxtembed.js +53 -1
- package/built/web/pxtlib.js +1 -1
- package/built/web/pxtworker.js +1 -1
- package/built/web/react-common-skillmap.css +13 -0
- package/built/web/rtlblockly.css +1 -1
- package/built/web/rtlreact-common-skillmap.css +13 -0
- package/built/web/rtlsemantic.css +14 -2
- package/built/web/semantic.css +14 -2
- package/built/web/skillmap/css/main.b2b69d60.chunk.css +1 -0
- package/built/web/skillmap/js/2.fce3190c.chunk.js +2 -0
- package/built/web/skillmap/js/main.9d64b2d7.chunk.js +1 -0
- package/docfiles/tracking.html +1 -1
- package/localtypings/pxtarget.d.ts +1 -0
- package/localtypings/pxtblockly.d.ts +37 -0
- package/package.json +8 -4
- package/react-common/components/Notification.tsx +82 -0
- package/react-common/components/controls/Button.tsx +63 -0
- package/react-common/components/controls/Checkbox.tsx +47 -0
- package/react-common/components/controls/Input.tsx +117 -0
- package/react-common/components/controls/List.tsx +28 -0
- package/react-common/components/controls/Modal.tsx +143 -0
- package/react-common/components/profile/Badge.tsx +33 -0
- package/react-common/components/profile/BadgeInfo.tsx +74 -0
- package/react-common/components/profile/BadgeList.tsx +67 -0
- package/react-common/components/profile/Profile.tsx +42 -0
- package/react-common/components/profile/UserNotification.tsx +32 -0
- package/react-common/components/profile/UserPane.tsx +68 -0
- package/react-common/components/types.d.ts +29 -0
- package/react-common/components/util.tsx +61 -0
- package/react-common/styles/controls/Button.less +174 -0
- package/react-common/styles/controls/Checkbox.less +13 -0
- package/react-common/styles/controls/Icon.less +11 -0
- package/react-common/styles/controls/Input.less +95 -0
- package/react-common/styles/controls/List.less +12 -0
- package/react-common/styles/controls/Modal.less +105 -0
- package/react-common/styles/controls/Spinner.less +24 -0
- package/{built/web/react-common.css → react-common/styles/profile/profile.less} +13 -0
- package/react-common/styles/react-common-skillmap-core.less +10 -0
- package/react-common/styles/react-common-skillmap.less +12 -0
- package/react-common/styles/react-common-variables.less +47 -0
- package/react-common/styles/react-common.less +12 -0
- package/react-common/tsconfig.json +36 -0
- package/theme/asset-editor.less +13 -29
- package/theme/blockly-core.less +16 -0
- package/theme/common-components.less +7 -0
- package/theme/common.less +1 -1
- package/theme/highcontrast.less +4 -0
- package/theme/pxt.less +2 -0
- package/theme/tutorial-sidebar.less +64 -6
- package/webapp/public/blockly/plugins.js +57 -0
- package/webapp/public/skillmap.html +3 -3
- package/built/web/skillmap/css/main.96b1b3f1.chunk.css +0 -1
- package/built/web/skillmap/js/2.7dd06a3a.chunk.js +0 -2
- package/built/web/skillmap/js/main.55881627.chunk.js +0 -1
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
|
|
3
|
+
export interface ControlProps {
|
|
4
|
+
id?: string;
|
|
5
|
+
className?: string;
|
|
6
|
+
ariaLabel?: string;
|
|
7
|
+
ariaHidden?: boolean;
|
|
8
|
+
role?: string;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
export interface ContainerProps extends React.PropsWithChildren<ControlProps> {
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
export function jsxLF(loc: string, ...rest: JSX.Element[]) {
|
|
15
|
+
const indices: number[] = [];
|
|
16
|
+
|
|
17
|
+
loc.replace(/\{\d\}/g, match => {
|
|
18
|
+
indices.push(parseInt(match.substr(1, 1)));
|
|
19
|
+
return match;
|
|
20
|
+
});
|
|
21
|
+
|
|
22
|
+
const out: JSX.Element[] = [];
|
|
23
|
+
|
|
24
|
+
let parts: string[];
|
|
25
|
+
|
|
26
|
+
let i = 0;
|
|
27
|
+
|
|
28
|
+
for (const index of indices) {
|
|
29
|
+
parts = loc.split(`{${index}}`);
|
|
30
|
+
pxt.U.assert(parts.length === 2);
|
|
31
|
+
out.push(<span key={i++}>{parts[0]}</span>);
|
|
32
|
+
out.push(<span key={i++}>{rest[index]}</span>);
|
|
33
|
+
loc = parts[1]
|
|
34
|
+
}
|
|
35
|
+
out.push(<span key={i++}>{loc}</span>);
|
|
36
|
+
|
|
37
|
+
return out;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
export function fireClickOnEnter(e: React.KeyboardEvent<HTMLElement>) {
|
|
41
|
+
const charCode = (typeof e.which == "number") ? e.which : e.keyCode;
|
|
42
|
+
if (charCode === 13 /* enter */ || charCode === 32 /* space */) {
|
|
43
|
+
e.preventDefault();
|
|
44
|
+
e.currentTarget.click();
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
export function classList(...classes: string[]) {
|
|
49
|
+
return classes
|
|
50
|
+
.filter(c => typeof c === "string")
|
|
51
|
+
.reduce((prev, c) => prev.concat(c.split(" ")), [] as string[])
|
|
52
|
+
.map(c => c.trim())
|
|
53
|
+
.filter(c => !!c)
|
|
54
|
+
.join(" ");
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
export enum CheckboxStatus {
|
|
58
|
+
Selected,
|
|
59
|
+
Unselected,
|
|
60
|
+
Waiting
|
|
61
|
+
}
|
|
@@ -0,0 +1,174 @@
|
|
|
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: rgba(0,0,0,.1);
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
.common-button.menu-button.inverted,
|
|
170
|
+
.common-button.menu-button.inverted:hover {
|
|
171
|
+
background: @buttonMenuBackgroundColorInverted;
|
|
172
|
+
color: @buttonMenuTextColorInverted;
|
|
173
|
+
}
|
|
174
|
+
|
|
@@ -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,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
|
+
}
|
|
@@ -70,6 +70,7 @@
|
|
|
70
70
|
|
|
71
71
|
.profile-email {
|
|
72
72
|
display: flex;
|
|
73
|
+
padding-bottom: 1rem;
|
|
73
74
|
}
|
|
74
75
|
|
|
75
76
|
.profile-email .checkbox {
|
|
@@ -302,6 +303,18 @@
|
|
|
302
303
|
font-family: var(--body-font-family);
|
|
303
304
|
}
|
|
304
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
|
+
|
|
305
318
|
@media only screen and (max-width: 1200px) and (min-width: 992px) {
|
|
306
319
|
.profile-badges, .profile-badges-background {
|
|
307
320
|
background-size: 25%;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file is the same as react-common-skillmap.less except it doesn't import any
|
|
3
|
+
* variables from the target. This is used for pxt-core's css build
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
// Import variables from pxt-core
|
|
7
|
+
@import "themes/default/globals/site.variables";
|
|
8
|
+
@import "themes/pxt/globals/site.variables";
|
|
9
|
+
|
|
10
|
+
@import "react-common.less";
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Used for building react-common-skillmap.css
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
// Import variables from pxt-core
|
|
6
|
+
@import "themes/default/globals/site.variables";
|
|
7
|
+
@import "themes/pxt/globals/site.variables";
|
|
8
|
+
|
|
9
|
+
// Import the variables from the target
|
|
10
|
+
@import "site/globals/site.variables";
|
|
11
|
+
|
|
12
|
+
@import "react-common.less";
|
|
@@ -0,0 +1,47 @@
|
|
|
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
|
+
|
|
20
|
+
/****************************************************
|
|
21
|
+
* Modals *
|
|
22
|
+
****************************************************/
|
|
23
|
+
|
|
24
|
+
@modalCloseColor: #333333;
|
|
25
|
+
@modalBodyBackgroundColor: #ffffff;
|
|
26
|
+
@modalHeaderBackgroundColor: @modalBodyBackgroundColor;
|
|
27
|
+
@modalFooterBackgroundColor: #f9fafb;
|
|
28
|
+
@modalSeparatorBorder: 1px solid rgba(34, 36, 38, .15);
|
|
29
|
+
|
|
30
|
+
/****************************************************
|
|
31
|
+
* Checkboxes *
|
|
32
|
+
****************************************************/
|
|
33
|
+
|
|
34
|
+
@checkboxFocusOutline: @commonBorderColor solid 1px;
|
|
35
|
+
|
|
36
|
+
/****************************************************
|
|
37
|
+
* Inputs *
|
|
38
|
+
****************************************************/
|
|
39
|
+
|
|
40
|
+
@inputTextColor: @commonTextColor;
|
|
41
|
+
@inputTextColorDisabled: rgb(161, 159, 157);
|
|
42
|
+
@inputBorderColor: @commonBorderColor;
|
|
43
|
+
@inputBorderColorFocus: rgb(0, 120, 212);
|
|
44
|
+
@inputBackgroundColor: #ffffff;
|
|
45
|
+
@inputBackgroundColorDisabled: @commonBackgroundDisabledColor;
|
|
46
|
+
@inputButtonColor: rgb(0, 120, 212);
|
|
47
|
+
@inputButtonColorHover: rgb(16, 110, 190);
|
|
@@ -0,0 +1,12 @@
|
|
|
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/Modal.less";
|
|
7
|
+
@import "controls/Spinner.less";
|
|
8
|
+
@import "./react-common-variables.less";
|
|
9
|
+
|
|
10
|
+
@import "fontawesome-free/less/solid.less";
|
|
11
|
+
@import "fontawesome-free/less/regular.less";
|
|
12
|
+
@import "fontawesome-free/less/fontawesome.less";
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
{
|
|
2
|
+
"compilerOptions": {
|
|
3
|
+
"target": "es2017",
|
|
4
|
+
"noImplicitAny": true,
|
|
5
|
+
"noImplicitReturns": true,
|
|
6
|
+
"noImplicitThis": true,
|
|
7
|
+
"module": "commonjs",
|
|
8
|
+
"outDir": "../built/react-common",
|
|
9
|
+
"rootDir": ".",
|
|
10
|
+
"newLine": "LF",
|
|
11
|
+
"sourceMap": false,
|
|
12
|
+
"moduleResolution": "node",
|
|
13
|
+
"isolatedModules": false,
|
|
14
|
+
"jsx": "react",
|
|
15
|
+
"experimentalDecorators": true,
|
|
16
|
+
"emitDecoratorMetadata": true,
|
|
17
|
+
"declaration": true,
|
|
18
|
+
"preserveConstEnums": true,
|
|
19
|
+
"lib": [
|
|
20
|
+
"dom",
|
|
21
|
+
"dom.iterable",
|
|
22
|
+
"scripthost",
|
|
23
|
+
"es2017",
|
|
24
|
+
"ES2018.Promise"
|
|
25
|
+
],
|
|
26
|
+
"types": [
|
|
27
|
+
"react",
|
|
28
|
+
"react-dom",
|
|
29
|
+
"resize-observer-browser"
|
|
30
|
+
],
|
|
31
|
+
"incremental": false
|
|
32
|
+
},
|
|
33
|
+
"exclude": [
|
|
34
|
+
"node_modules"
|
|
35
|
+
]
|
|
36
|
+
}
|