Skip to content

Commit e519638

Browse files
Merge branch 'release/0.3.0'
2 parents cdbd5b5 + 9f81579 commit e519638

File tree

4 files changed

+59
-13
lines changed

4 files changed

+59
-13
lines changed

CHANGELOG.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,26 @@
44

55
---
66

7+
# 0.3.0
8+
*2017-03-09*
9+
## Features
10+
### [Configurations][readme-configuration]
11+
❯ Added a configuration to set the [cursor blinking](https://github.com/arcticicestudio/nord-hyper#cursor-blinking).
12+
The default value is `true` to enable the non-obtrusive cursor blinking feature. (@zovt, #7, 27820cf8)
13+
```js
14+
module.exports = {
15+
config: {
16+
//...
17+
nordHyper: {
18+
cursorBlink: true
19+
}
20+
//...
21+
}
22+
}
23+
```
24+
25+
<p align="center"><img src="https://raw.githubusercontent.com/arcticicestudio/nord-hyper/develop/assets/scrcast-feature-cursor-blink.gif"/></p>
26+
727
# 0.2.0
828
*2017-03-08*
929
## Features
@@ -43,3 +63,5 @@ Detailed information about features and install instructions can be found in the
4363
# 0.0.0
4464
*2017-02-19*
4565
**Project Initialization**
66+
67+
[readme-configuration]: https://github.com/arcticicestudio/nord-hyper#configuration

README.md

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,26 @@ hpm install nord-hyper
3939

4040
<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>
4141

42+
## Configuration
43+
All configurations are set in the `nordHyper` object in your `~/.hyper.js` file.
44+
45+
### Cursor Blinking
46+
The cursor blinking can be set with the `cursorBlink` attribute.
47+
The default value is `true` to enable the non-obtrusive cursor blinking feature.
48+
```js
49+
module.exports = {
50+
config: {
51+
//...
52+
nordHyper: {
53+
cursorBlink: true,
54+
}
55+
//...
56+
}
57+
}
58+
```
59+
4260
## Development
43-
[![](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)
61+
[![](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)
4462

4563
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).
4664

index.js

Lines changed: 17 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,23 @@ const colors = {
5353
grayscale: foregroundColor
5454
};
5555

56+
let cursorBlinkCSS = `
57+
@keyframes blink {
58+
10%, 50% { opacity: 0 }
59+
60%, 100% { opacity: 1 }
60+
}
61+
.cursor-node[focus=true] {
62+
mix-blend-mode: difference;
63+
}
64+
.cursor-node[focus=true]:not([hyper-blink-moving]) {
65+
box-sizing: content-box !important;
66+
animation: blink 1s ease infinite;
67+
}
68+
`;
69+
5670
exports.decorateConfig = config => {
71+
const nordHyper = Object.assign({cursorBlink: true}, config.nordHyper);
72+
5773
return Object.assign({}, config, {
5874
foregroundColor,
5975
backgroundColor,
@@ -71,17 +87,7 @@ exports.decorateConfig = config => {
7187
.cursor-node {
7288
border-left-width: 2px;
7389
}
74-
@keyframes blink {
75-
10%, 50% { opacity: 0 }
76-
60%, 100% { opacity: 1 }
77-
}
78-
.cursor-node[focus=true] {
79-
mix-blend-mode: difference;
80-
}
81-
.cursor-node[focus=true]:not([hyper-blink-moving]) {
82-
box-sizing: content-box !important;
83-
animation: blink 1s ease infinite;
84-
}
90+
${nordHyper.cursorBlink ? cursorBlinkCSS : ""}
8591
`,
8692
css: `
8793
${config.css || ""}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "nord-hyper",
33
"title": "Nord Hyper",
4-
"version": "0.2.0",
4+
"version": "0.3.0",
55
"description": "A arctic, north-bluish clean and elegant Hyper theme plugin",
66
"author": {
77
"name": "Arctic Ice Studio",

0 commit comments

Comments
 (0)