Skip to content

Commit

Permalink
Merge pull request #12 from arcticicestudio/bugfix/gh-10-full-reload-…
Browse files Browse the repository at this point in the history
…with-cursor-blink-breaks-display

Remove cursor blink configuration
  • Loading branch information
arcticicestudio committed Oct 5, 2017
2 parents 1e65a22 + 11e3f3c commit fc161d1
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 36 deletions.
19 changes: 0 additions & 19 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,25 +37,6 @@ hpm install nord-hyper
## Features
<p align="center"><strong>Smooth transitions for tab interactions.</strong><br><img src="https://raw.githubusercontent.com/arcticicestudio/nord-hyper/develop/assets/scrot-feature-tabs.png"/><br><img src="https://raw.githubusercontent.com/arcticicestudio/nord-hyper/develop/assets/scrcast-feature-smooth-tab-transition.gif"/></p>


## Configuration
All configurations are set in the `nordHyper` object in your `~/.hyper.js` file.

### Cursor Blinking
The cursor blinking can be set with the `cursorBlink` attribute.
The default value is `true` to enable the non-obtrusive cursor blinking feature.
```js
module.exports = {
config: {
//...
nordHyper: {
cursorBlink: true,
}
//...
}
}
```

## Development
[![](https://img.shields.io/badge/Changelog-0.4.0-81A1C1.svg?style=flat-square)](https://github.com/arcticicestudio/nord-hyper/blob/v0.4.0/CHANGELOG.md) [![](https://img.shields.io/badge/Workflow-gitflow--branching--model-81A1C1.svg?style=flat-square)](http://nvie.com/posts/a-successful-git-branching-model) [![](https://img.shields.io/badge/Versioning-ArcVer_0.8.0-81A1C1.svg?style=flat-square)](https://github.com/arcticicestudio/arcver)

Expand Down
16 changes: 0 additions & 16 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,22 +53,7 @@ const colors = {
grayscale: foregroundColor
};

let cursorBlinkCSS = `
@keyframes blink {
10%, 50% { opacity: 0 }
60%, 100% { opacity: 1 }
}
.cursor-node[focus=true] {
mix-blend-mode: difference;
}
.cursor-node[focus=true]:not([hyper-blink-moving]) {
box-sizing: content-box !important;
animation: blink 1s ease infinite;
}
`;

exports.decorateConfig = config => {
const nordHyper = Object.assign({cursorBlink: true}, config.nordHyper);

return Object.assign({}, config, {
foregroundColor,
Expand All @@ -87,7 +72,6 @@ exports.decorateConfig = config => {
.cursor-node {
border-left-width: 2px;
}
${nordHyper.cursorBlink ? cursorBlinkCSS : ""}
`,
css: `
${config.css || ""}
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"bugs": {
"url": "https://github.com/arcticicestudio/nord-hyper/issues"
},
"license" : "(Apache-2.0 AND CC-BY-SA-4.0)",
"license": "(Apache-2.0 AND CC-BY-SA-4.0)",
"main": "index.js",
"keywords": [
"arctic",
Expand Down

0 comments on commit fc161d1

Please sign in to comment.