Skip to content

Commit

Permalink
Merge branch 'release/0.3.0'
Browse files Browse the repository at this point in the history
  • Loading branch information
arcticicestudio committed Mar 9, 2017
2 parents cdbd5b5 + 9f81579 commit e519638
Show file tree
Hide file tree
Showing 4 changed files with 59 additions and 13 deletions.
22 changes: 22 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,26 @@

---

# 0.3.0
*2017-03-09*
## Features
### [Configurations][readme-configuration]
❯ Added a configuration to set the [cursor blinking](https://github.com/arcticicestudio/nord-hyper#cursor-blinking).
The default value is `true` to enable the non-obtrusive cursor blinking feature. (@zovt, #7, 27820cf8)
```js
module.exports = {
config: {
//...
nordHyper: {
cursorBlink: true
}
//...
}
}
```

<p align="center"><img src="https://raw.githubusercontent.com/arcticicestudio/nord-hyper/develop/assets/scrcast-feature-cursor-blink.gif"/></p>

# 0.2.0
*2017-03-08*
## Features
Expand Down Expand Up @@ -43,3 +63,5 @@ Detailed information about features and install instructions can be found in the
# 0.0.0
*2017-02-19*
**Project Initialization**

[readme-configuration]: https://github.com/arcticicestudio/nord-hyper#configuration
20 changes: 19 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,26 @@ hpm install nord-hyper

<p align="center"><strong>Non-obtrusive cursor blinking.</strong><br><img src="https://raw.githubusercontent.com/arcticicestudio/nord-hyper/develop/assets/scrcast-feature-cursor-blink.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.2.0-81A1C1.svg)](https://github.com/arcticicestudio/nord-hyper/blob/v0.2.0/CHANGELOG.md) [![](https://img.shields.io/badge/Workflow-gitflow--branching--model-81A1C1.svg)](http://nvie.com/posts/a-successful-git-branching-model) [![](https://img.shields.io/badge/Versioning-ArcVer_0.8.0-81A1C1.svg)](https://github.com/arcticicestudio/arcver)
[![](https://img.shields.io/badge/Changelog-0.3.0-81A1C1.svg)](https://github.com/arcticicestudio/nord-hyper/blob/v0.3.0/CHANGELOG.md) [![](https://img.shields.io/badge/Workflow-gitflow--branching--model-81A1C1.svg)](http://nvie.com/posts/a-successful-git-branching-model) [![](https://img.shields.io/badge/Versioning-ArcVer_0.8.0-81A1C1.svg)](https://github.com/arcticicestudio/arcver)

Continuous integration builds are running at [Travis-CI](https://travis-ci.org/arcticicestudio/nord-hyper) and [Circle CI](https://circleci.com/gh/arcticicestudio/nord-hyper).

Expand Down
28 changes: 17 additions & 11 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,23 @@ 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,
backgroundColor,
Expand All @@ -71,17 +87,7 @@ exports.decorateConfig = config => {
.cursor-node {
border-left-width: 2px;
}
@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;
}
${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
@@ -1,7 +1,7 @@
{
"name": "nord-hyper",
"title": "Nord Hyper",
"version": "0.2.0",
"version": "0.3.0",
"description": "A arctic, north-bluish clean and elegant Hyper theme plugin",
"author": {
"name": "Arctic Ice Studio",
Expand Down

0 comments on commit e519638

Please sign in to comment.