Skip to content

Commit 9bb1d88

Browse files
authored
Merge pull request #8 from manmeet231/ifix/changed-the-theme
made the output background change to a darker tone , when light mode is toggled
2 parents 04425e9 + e0a029a commit 9bb1d88

1 file changed

Lines changed: 36 additions & 18 deletions

File tree

src/components/InteractivePython/styles.module.css

Lines changed: 36 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
@import url('https://fonts.googleapis.com/css2?family=VT323&family=Share+Tech+Mono&display=swap');
1+
@import url("https://fonts.googleapis.com/css2?family=VT323&family=Share+Tech+Mono&display=swap");
22

33
/* ── Scanline texture overlay ── */
44
.wrapper::after {
5-
content: '';
5+
content: "";
66
position: absolute;
77
inset: 0;
88
background: repeating-linear-gradient(
@@ -31,6 +31,11 @@
3131
0 8px 32px rgba(0, 0, 0, 0.6);
3232
}
3333

34+
[data-theme="light"] {
35+
.output {
36+
background-color: #030a03;
37+
}
38+
}
3439
/* ── Title bar ── */
3540
.codeHeader {
3641
background-color: #050f05;
@@ -42,15 +47,15 @@
4247
}
4348

4449
.codeHeader::before {
45-
content: '▮';
50+
content: "▮";
4651
color: #00ff46;
4752
font-size: 1rem;
4853
animation: blink 1.2s step-end infinite;
49-
font-family: 'VT323', monospace;
54+
font-family: "VT323", monospace;
5055
}
5156

5257
.codeHeaderText {
53-
font-family: 'VT323', monospace;
58+
font-family: "VT323", monospace;
5459
font-size: 1.1rem;
5560
color: #00ff46;
5661
letter-spacing: 0.12rem;
@@ -60,7 +65,7 @@
6065

6166
.codeHeaderStatus {
6267
margin-left: auto;
63-
font-family: 'Share Tech Mono', monospace;
68+
font-family: "Share Tech Mono", monospace;
6469
font-size: 0.7rem;
6570
color: #2a7a2a;
6671
letter-spacing: 0.08rem;
@@ -81,19 +86,23 @@
8186
border: none;
8287
border-top: 1px solid #1a3a1a;
8388
border-bottom: 1px solid #1a3a1a;
84-
font-family: 'VT323', monospace;
89+
font-family: "VT323", monospace;
8590
font-size: 1.2rem;
8691
letter-spacing: 0.15rem;
8792
cursor: pointer;
88-
transition: background-color 0.15s ease, text-shadow 0.15s ease;
93+
transition:
94+
background-color 0.15s ease,
95+
text-shadow 0.15s ease;
8996
text-shadow: 0 0 8px rgba(0, 255, 70, 0.4);
9097
text-transform: uppercase;
9198
}
9299

93100
.runButton:hover:not(:disabled) {
94101
background-color: #071407;
95102
color: #33ff6e;
96-
text-shadow: 0 0 14px rgba(0, 255, 70, 0.9), 0 0 30px rgba(0, 255, 70, 0.4);
103+
text-shadow:
104+
0 0 14px rgba(0, 255, 70, 0.9),
105+
0 0 30px rgba(0, 255, 70, 0.4);
97106
}
98107

99108
.runButton:disabled {
@@ -119,7 +128,7 @@
119128
margin: 0;
120129
padding: 1rem 1.2rem;
121130
color: #a8ffb8;
122-
font-family: 'Share Tech Mono', monospace;
131+
font-family: "Share Tech Mono", monospace;
123132
font-size: 0.9rem;
124133
line-height: 1.7;
125134
white-space: pre-wrap;
@@ -141,7 +150,7 @@
141150
}
142151

143152
.promptText {
144-
font-family: 'Share Tech Mono', monospace;
153+
font-family: "Share Tech Mono", monospace;
145154
font-size: 0.9rem;
146155
color: #00cc38;
147156
white-space: pre;
@@ -155,7 +164,7 @@
155164
border: none;
156165
outline: none;
157166
color: #e0ffe8;
158-
font-family: 'Share Tech Mono', monospace;
167+
font-family: "Share Tech Mono", monospace;
159168
font-size: 0.9rem;
160169
caret-color: #00ff46;
161170
text-shadow: 0 0 4px rgba(224, 255, 232, 0.3);
@@ -166,7 +175,7 @@
166175
background: transparent;
167176
border: 1px solid #1a4a1a;
168177
color: #2a8a2a;
169-
font-family: 'VT323', monospace;
178+
font-family: "VT323", monospace;
170179
font-size: 1rem;
171180
letter-spacing: 0.08rem;
172181
padding: 2px 12px;
@@ -187,11 +196,20 @@
187196

188197
/* ── Animations ── */
189198
@keyframes blink {
190-
0%, 100% { opacity: 1; }
191-
50% { opacity: 0; }
199+
0%,
200+
100% {
201+
opacity: 1;
202+
}
203+
50% {
204+
opacity: 0;
205+
}
192206
}
193207

194208
@keyframes fadeIn {
195-
from { opacity: 0; }
196-
to { opacity: 1; }
197-
}
209+
from {
210+
opacity: 0;
211+
}
212+
to {
213+
opacity: 1;
214+
}
215+
}

0 commit comments

Comments
 (0)