-
Notifications
You must be signed in to change notification settings - Fork 12
Expand file tree
/
Copy pathPythonRunner.scss
More file actions
133 lines (107 loc) · 3.39 KB
/
Copy pathPythonRunner.scss
File metadata and controls
133 lines (107 loc) · 3.39 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
@use "./rpf_design_system/spacing" as *;
@use "./rpf_design_system/font-size" as *;
@use "./rpf_design_system/colours" as *;
.pythonrunner-container {
display: flex;
flex-direction: column;
flex: 1;
block-size: 100%;
inline-size: 100%;
}
.pythonrunner-console {
padding: $space-0-5 $space-1-5;
margin: 0;
white-space: pre-wrap;
white-space: -moz-pre-wrap;
white-space: -pre-wrap;
white-space: -o-pre-wrap;
inline-size: 100%;
overflow-wrap: break-word;
overflow-y: auto;
&--medium {
@include font-size-1-5(regular);
}
&--large {
@include font-size-2(regular);
}
}
.pythonrunner-console-output-line {
padding-inline-end: 5px;
&.stderr {
color: red;
}
}
.pythonrunner-input {
caret-color: inherit;
color: rgb(36, 103, 236);
display: block;
line-height: 20px;
padding: 2px 1px 2px 0;
}
.pythonrunner-input:focus {
outline: 0;
}
.pythonrunner-graphic {
overflow: auto;
position: relative;
}
.pyodiderunner {
display: none;
&--active {
display: flex;
}
}
.skulptrunner {
display: none;
&--active {
display: flex;
}
}
.visual-output {
flex: 1;
display: flex;
min-block-size: 100%;
inline-size: 100%;
}
#p5Sketch {
display: flex;
flex: 1;
position: absolute;
}
.--light .visual-output {
background: url("data:image/svg+xml,%3Csvg width='525' height='686' viewBox='0 0 525 686' fill='none' xmlns='http:%2F%2Fwww.w3.org/2000/svg' xmlns:xlink='http:%2F%2Fwww.w3.org/1999/xlink'%3E%3Crect width='526' height='686' transform='translate(0.5)' fill='url(%23pattern0)' fill-opacity='0.1'/%3E%3Cdefs%3E%3Cpattern id='pattern0' patternContentUnits='objectBoundingBox' width='0.0152091' height='0.0116618'%3E%3Cuse xlink:href='%23image0_214_29626' transform='scale(0.00190114 0.00145773)'/%3E%3C/pattern%3E%3Cimage id='image0_214_29626' width='8' height='8' xlink:href='data:image/png%3Bbase64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAYAAADED76LAAAAAXNSR0IArs4c6QAAABdJREFUGBljYGBg+A/FQAoTMGEKDUcRAATwAgFGIXEOAAAAAElFTkSuQmCC'/%3E%3C/defs%3E%3C/svg%3E");
}
.--dark .visual-output {
background: url("data:image/svg+xml,%3Csvg width='527' height='684' viewBox='0 0 527 684' fill='none' xmlns='http:%2F%2Fwww.w3.org/2000/svg' xmlns:xlink='http:%2F%2Fwww.w3.org/1999/xlink'%3E%3Crect width='526' height='686' transform='translate(0.388916)' fill='url(%23pattern0)'/%3E%3Cdefs%3E%3Cpattern id='pattern0' patternContentUnits='objectBoundingBox' width='0.0152091' height='0.0116618'%3E%3Cuse xlink:href='%23image0_214_22403' transform='scale(0.00190114 0.00145773)'/%3E%3C/pattern%3E%3Cimage id='image0_214_22403' width='8' height='8' xlink:href='data:image/png%3Bbase64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAYAAADED76LAAAAAXNSR0IArs4c6QAAABdJREFUGBljYGBg+A/FQAoTMGEKDUcRAATwAgFGIXEOAAAAAElFTkSuQmCC'/%3E%3C/defs%3E%3C/svg%3E%0A");
}
.output-panel {
display: flex;
overflow: hidden;
&--text {
flex: 1;
.react-tabs__tab-panel--selected {
min-block-size: var(--space-6);
}
@container (min-width: 720px) {
flex: 2;
.react-tabs__tab-panel--selected {
min-block-size: var(--space-8);
}
}
}
&--visual {
flex: 1;
@container (min-width: 720px) {
flex: 3;
}
.--light & {
border-block-end: 5px solid $rpf-grey-100;
}
.--dark & {
border-block-end: 5px solid $rpf-grey-600;
}
}
}
.--light .output-panel--single, .--dark .output-panel--single {
border-block-end: none;
}