File tree Expand file tree Collapse file tree 1 file changed +15
-3
lines changed Expand file tree Collapse file tree 1 file changed +15
-3
lines changed Original file line number Diff line number Diff line change @@ -4,6 +4,11 @@ import { css } from 'glamor';
44import loremIpsum from 'lorem-ipsum' ;
55import ScrollToBottom from 'component' ;
66
7+ const FADE_IN_ANIMATION = css . keyframes ( {
8+ '0%' : { opacity : .2 } ,
9+ '100%' : { opacity : 1 }
10+ } ) ;
11+
712const ROOT_CSS = css ( {
813 '& > ul.button-bar' : {
914 display : 'flex' ,
@@ -19,6 +24,10 @@ const ROOT_CSS = css({
1924 '& > .panes' : {
2025 display : 'flex' ,
2126
27+ '& > *' : {
28+ flex : 1
29+ } ,
30+
2231 '& > *:not(:last-child)' : {
2332 marginRight : 10
2433 }
@@ -30,13 +39,16 @@ const SCROLL_VIEW_CSS = css({
3039 borderStyle : 'solid' ,
3140 borderWidth : 1 ,
3241 height : 400 ,
33- marginTop : 10 ,
34- width : 600
42+ marginTop : 10
3543} ) ;
3644
3745const SCROLL_VIEW_PADDING_CSS = css ( {
3846 paddingLeft : 10 ,
39- paddingRight : 10
47+ paddingRight : 10 ,
48+
49+ '& > p' : {
50+ animation : `${ FADE_IN_ANIMATION } 500ms`
51+ }
4052} ) ;
4153
4254class App extends Component {
You can’t perform that action at this time.
0 commit comments