+ added bubble editor

+ initial numeric editor
+ entity id input
This commit is contained in:
Ari Sosnovsky committed 2021-11-16 13:25:53 -05:00
1 parent 6be9f1ba12
commit 60ec7c3f29
7 files changed
+237 -8

No files matched your search

+65 -2
View File
@@ -1,5 +1,5 @@
import { Styles } from "jss";
import { createAppUseStyles, AppTheme } from "~/styles/theme";
import Color from 'chroma-js';
const commonInputStyle = (theme: AppTheme) => ({
input: {
@@ -76,4 +76,67 @@ export const useInputViewEditStyles = createAppUseStyles<{
pencil: {
}
}));
}));
export const useInputBubblesStyles = createAppUseStyles<{}>(theme => ({
bubbles: {
display: 'flex',
flexDirection: 'row',
maxHeight: 50,
maxWidth: '100%',
overflowX: 'auto',
overflowY: 'hidden',
scrollbarWidth: 'thin',
},
bubble: {
position: 'relative',
border: `1px solid ${theme.primaryAccent}`,
borderRadius: 10,
backgroundColor: Color(theme.primary).set('rgb.g', 150).alpha(0.35).hex(),
color: Color(theme.primary).brighten(5).hex(),
fontSize: 16,
marginLeft: 1,
padding: 5,
width: 'fit-content',
whiteSpace: 'nowrap',
cursor: 'pointer',
"&:hover": {
backgroundColor: Color(theme.primary).set('rgb.r', 150).alpha(0.35).hex(),
color: Color(theme.primary).brighten(5).alpha(0.35).hex(),
},
"&:hover $deleteIcon": {
display: 'block',
}
},
deleteIcon: {
display: 'none',
position: "absolute",
left: "48%",
top: 5,
color: "white",
},
addBtn: {
position: "absolute",
top: 10,
right: 10,
fontSize: 20,
cursor: 'pointer',
borderStyle: 'solid',
borderWidth: 1,
borderColor: theme.secondary,
backgroundColor: theme.secondary,
color: theme.secondaryAccent,
padding: "3px 7px",
transition: "200ms ease-out",
"&:hover": {
borderRadius: 100,
backgroundColor: Color(theme.primary).set('rgb.g', 150).alpha(0.35).hex(),
borderColor: theme.secondaryAccent,
},
}
}));