1
1
import React from "react" ;
2
- import glamorous from "glamorous " ;
2
+ import styled from "@emotion/styled " ;
3
3
import { cachePublisher as cache , WAITING , RUNNING , PAUSED , DONE } from "./spy" ;
4
4
import { createSubscription } from "create-subscription/cjs/create-subscription.production.min.js" ;
5
5
import Draggable from "react-draggable" ;
@@ -29,12 +29,12 @@ const clickable = {
29
29
}
30
30
} ;
31
31
32
- const Row = glamorous . li ( {
32
+ const Row = styled . li ( {
33
33
margin : "8px 8px" ,
34
34
...clickable ,
35
35
fontSize : "15px" ,
36
36
fontFamily : `"Courier New", Monaco, sans-serif` ,
37
- "& *:first-child " : {
37
+ "& *:first-of-type " : {
38
38
height : 18 ,
39
39
paddingBottom : 2 ,
40
40
display : "flex" ,
@@ -45,7 +45,7 @@ const Row = glamorous.li({
45
45
}
46
46
} ) ;
47
47
48
- const ProgressBar = glamorous . div ( ( { completion } ) => ( {
48
+ const ProgressBar = styled . div ( ( { completion } ) => ( {
49
49
borderBottom : "solid 1px #222" ,
50
50
width : `${ completion } %`
51
51
} ) ) ;
@@ -84,15 +84,15 @@ const Record = ({ record }) => (
84
84
</ Subscription >
85
85
) ;
86
86
87
- const List = glamorous . ul ( ( { scrollable } ) => ( {
87
+ const List = styled . ul ( ( { scrollable } ) => ( {
88
88
padding : 0 ,
89
89
margin : 0 ,
90
90
listStyleType : "none"
91
91
// overflowY: "auto",
92
92
// height: `${scrollable ? 94 : "auto"}`
93
93
} ) ) ;
94
94
95
- const EmptyList = glamorous . div ( {
95
+ const EmptyList = styled . div ( {
96
96
fontSize : "15px" ,
97
97
margin : "8px 8px" ,
98
98
fontFamily : `"Courier New", Monaco, sans-serif`
@@ -109,7 +109,7 @@ const RecordList = ({ records, scrollable }) =>
109
109
</ List >
110
110
) ;
111
111
112
- const DirectorPanel = glamorous . div ( {
112
+ const DirectorPanel = styled . div ( {
113
113
position : "fixed" ,
114
114
top : 10 ,
115
115
right : 10 ,
@@ -121,15 +121,15 @@ const DirectorPanel = glamorous.div({
121
121
fontFamily : `Helvetica Neue, Helvetica, Arial, "Lucida Grande", sans-serif`
122
122
} ) ;
123
123
124
- const Header = glamorous . div ( {
124
+ const Header = styled . div ( {
125
125
display : "flex" ,
126
126
justifyContent : "space-between" ,
127
127
alignItems : "flex-end" ,
128
128
height : 20 ,
129
129
lineHeight : "20px" ,
130
130
verticalAlign : "bottom" ,
131
131
margin : "20px 8px 8px 8px" ,
132
- "& *:first-child " : {
132
+ "& *:first-of-type " : {
133
133
fontSize : "18px" ,
134
134
fontWeight : "500"
135
135
} ,
@@ -140,7 +140,7 @@ const Header = glamorous.div({
140
140
}
141
141
} ) ;
142
142
143
- const Slider = glamorous . div ( {
143
+ const Slider = styled . div ( {
144
144
margin : "8px 8px 0px 8px" ,
145
145
display : "flex" ,
146
146
justifyContent : "space-between" ,
0 commit comments