File tree Expand file tree Collapse file tree 5 files changed +38
-26
lines changed
Expand file tree Collapse file tree 5 files changed +38
-26
lines changed Original file line number Diff line number Diff line change 3636.inactive {
3737 color : var (--color-light-gray );
3838}
39+
40+ .chevron {
41+ color : var (--color-light-gray );
42+ left : 0 ;
43+ position : absolute;
44+ top : 0 ;
45+ transform : scale (0.6 );
46+ transform-origin : left center;
47+ }
Original file line number Diff line number Diff line change 11.expression {
22 composes : row from './Console.module.css' ;
3+ composes : entry from './Console.module.css' ;
34}
45
56.inactive {
67 composes : inactive from './Console.module.css' ;
78}
89
910.chevron {
10- color : var (--color-light-gray );
11- left : 0 ;
12- position : absolute;
13- top : 0 ;
14- transform : scale (0.6 );
15- transform-origin : left center;
11+ composes : chevron from './Console.module.css' ;
1612}
Original file line number Diff line number Diff line change 11import { faChevronRight } from '@fortawesome/free-solid-svg-icons' ;
22import { FontAwesomeIcon } from '@fortawesome/react-fontawesome' ;
33import bindAll from 'lodash-es/bindAll' ;
4+ import classnames from 'classnames' ;
45import get from 'lodash-es/get' ;
56import isNil from 'lodash-es/isNil' ;
67import React , { Component } from 'react' ;
@@ -14,6 +15,8 @@ import {
1415 inheritFontStylesFromParentElement ,
1516} from '../util/ace' ;
1617
18+ import styles from './ConsoleInput.module.css' ;
19+
1720export default class ConsoleInput extends Component {
1821 constructor ( ) {
1922 super ( ) ;
@@ -119,13 +122,13 @@ export default class ConsoleInput extends Component {
119122 render ( ) {
120123 return (
121124 < div
122- className = "console__row console__input"
125+ className = { styles . input }
123126 onClick = { preventClickthrough }
124127 >
125- < div className = "console__chevron console__chevron_blue" >
128+ < div className = { classnames ( styles . chevron , styles . blue ) } >
126129 < FontAwesomeIcon icon = { faChevronRight } />
127130 </ div >
128- < div className = "console__editor" ref = { this . _ref } />
131+ < div className = { styles . editor } ref = { this . _ref } />
129132 </ div >
130133 ) ;
131134 }
Original file line number Diff line number Diff line change 1+ .input {
2+ composes : row from './Console.module.css' ;
3+ /* TODO: This is mostly duplicated with console entry */
4+ flex : none;
5+ margin-top : 0.5em ;
6+ padding-bottom : 0.5em ;
7+ height : 1em ;
8+ }
9+
10+ .chevron {
11+ composes : chevron from './Console.module.css' ;
12+ }
13+
14+ .chevron .blue {
15+ color : var (--color-blue );
16+ }
17+
18+ .console__editor {
19+ margin-left : -4px ;
20+ }
Original file line number Diff line number Diff line change @@ -626,33 +626,17 @@ body {
626626 transform-origin : left center;
627627}
628628
629- .console__chevron_blue {
630- color : var (--color-blue );
631- }
632-
633629.console__chevron_outdent {
634630 text-indent : -0.1em ;
635631}
636632
637- .console__entry ,
638- .console__input {
633+ .console__entry {
639634 flex : none;
640635 margin-top : 0.5em ;
641636 padding-bottom : 0.5em ;
642- }
643-
644- .console__input {
645- height : 1em ;
646- }
647-
648- .console__entry {
649637 border-bottom : 1px solid var (--color-low-contrast-gray );
650638}
651639
652- .console__editor {
653- margin-left : -4px ;
654- }
655-
656640.console__value {
657641 white-space : pre-wrap;
658642}
You can’t perform that action at this time.
0 commit comments