Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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