Skip to content

Commit 80677d5

Browse files
committed
Cosmetics
1 parent 3a3d731 commit 80677d5

File tree

1 file changed

+15
-3
lines changed

1 file changed

+15
-3
lines changed

packages/playground/src/App.js

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,11 @@ import { css } from 'glamor';
44
import loremIpsum from 'lorem-ipsum';
55
import ScrollToBottom from 'component';
66

7+
const FADE_IN_ANIMATION = css.keyframes({
8+
'0%': { opacity: .2 },
9+
'100%': { opacity: 1 }
10+
});
11+
712
const 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

3745
const 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

4254
class App extends Component {

0 commit comments

Comments
 (0)