Skip to content

Commit 52caa02

Browse files
committed
ConsoleEntry CSS module
1 parent 7abc452 commit 52caa02

File tree

3 files changed

+8
-10
lines changed

3 files changed

+8
-10
lines changed

src/components/ConsoleEntry.jsx

+2-1
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,11 @@ import {ConsoleEntry as ConsoleEntryRecord} from '../records';
55

66
import ConsoleExpression from './ConsoleExpression';
77
import ConsoleOutput from './ConsoleOutput';
8+
import styles from './ConsoleEntry.module.css';
89

910
export default function ConsoleEntry({entry, isActive}) {
1011
return (
11-
<div className="console__entry">
12+
<div className={styles.entry}>
1213
<ConsoleExpression entry={entry} isActive={isActive} />
1314
<ConsoleOutput entry={entry} isActive={isActive} />
1415
</div>
+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
.entry {
2+
flex: none;
3+
margin-top: 0.5em;
4+
padding-bottom: 0.5em;
5+
border-bottom: 1px solid var(--color-low-contrast-gray);
6+
}

src/css/application.css

-9
Original file line numberDiff line numberDiff line change
@@ -618,15 +618,6 @@ body {
618618
animation: 0.2s ease-in 0.1s both fadeIn;
619619
}
620620

621-
/** @define console */
622-
623-
.console__entry {
624-
flex: none;
625-
margin-top: 0.5em;
626-
padding-bottom: 0.5em;
627-
border-bottom: 1px solid var(--color-low-contrast-gray);
628-
}
629-
630621
/** @define preview */
631622

632623
.preview {

0 commit comments

Comments
 (0)