Skip to content

Instantly share code, notes, and snippets.

@zindel
Created June 6, 2017 12:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save zindel/a8a694fdc14c0a5fba730ce39c730359 to your computer and use it in GitHub Desktop.
Save zindel/a8a694fdc14c0a5fba730ce39c730359 to your computer and use it in GitHub Desktop.
const Cell = stylesheet.style("div", {
displayName: "Cell",
base: {
baseline: "100%",
overflow: "hidden",
boxSizing: "border-box",
position: "absolute",
top: 0,
left: 0,
right: "2px",
bottom: "2px",
borderBottom: "solid 1px #eee",
borderRight: "solid 1px #eee",
paddingTop: 2,
paddingLeft: 3,
paddingBottom: 3,
fontSize: "0.9em"
},
highlighted: {
background: "#F0F8FF"
},
focused: {
border: "solid 2px #4169E1",
background: "white",
paddingBottom: 2
},
numeric: {
paddingRight: 3,
textAlign: "right"
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment