Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Chrome Pointers + Hue Custom Pointer!
- Loading branch information
1 parent
ee8294b
commit 0d26cb6
Showing
6 changed files
with
105 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
'use strict'; | ||
|
||
var React = require('react'); | ||
var ReactCSS = require('reactcss'); | ||
|
||
class ChromePointer extends ReactCSS.Component { | ||
|
||
classes() { | ||
return { | ||
'default': { | ||
picker: { | ||
width: '12px', | ||
height: '12px', | ||
borderRadius: '6px', | ||
transform: 'translate(-6px, -1px)', | ||
backgroundColor: 'rgb(248, 248, 248)', | ||
boxShadow: '0 1px 4px 0 rgba(0, 0, 0, 0.37)', | ||
}, | ||
}, | ||
}; | ||
} | ||
|
||
render() { | ||
return ( | ||
<div is="picker"></div> | ||
); | ||
} | ||
|
||
} | ||
|
||
module.exports = ChromePointer; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
'use strict'; | ||
|
||
var React = require('react'); | ||
var ReactCSS = require('reactcss'); | ||
|
||
class ChromePointerCircle extends ReactCSS.Component { | ||
|
||
classes() { | ||
return { | ||
'default': { | ||
picker: { | ||
width: '12px', | ||
height: '12px', | ||
borderRadius: '6px', | ||
boxShadow: 'inset 0 0 0 1px #fff', | ||
transform: 'translate(-6px, -6px)', | ||
}, | ||
}, | ||
}; | ||
} | ||
|
||
render() { | ||
return ( | ||
<div is="picker"></div> | ||
); | ||
} | ||
|
||
} | ||
|
||
module.exports = ChromePointerCircle; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters