Skip to content

Instantly share code, notes, and snippets.

@andreypopp
Forked from zindel/EditableGrid.js
Last active June 6, 2017 12:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save andreypopp/0a46cd97d110be92031b2571819a5ce5 to your computer and use it in GitHub Desktop.
Save andreypopp/0a46cd97d110be92031b2571819a5ce5 to your computer and use it in GitHub Desktop.
const Cell = stylesheet.style("div", {
displayName: "Cell",
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