Skip to content

Commit f71bbc3

Browse files
committed
ConsoleEntry CSS module
1 parent c4de1c0 commit f71bbc3

File tree

3 files changed

+8
-10
lines changed

3 files changed

+8
-10
lines changed

src/components/ConsoleEntry.jsx

Lines changed: 2 additions & 1 deletion
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>
Lines changed: 6 additions & 0 deletions
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

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -610,15 +610,6 @@ body {
610610
animation: 0.2s ease-in 0.1s both fadeIn;
611611
}
612612

613-
/** @define console */
614-
615-
.console__entry {
616-
flex: none;
617-
margin-top: 0.5em;
618-
padding-bottom: 0.5em;
619-
border-bottom: 1px solid var(--color-low-contrast-gray);
620-
}
621-
622613
/** @define preview */
623614

624615
.preview {

0 commit comments

Comments
 (0)