File tree Expand file tree Collapse file tree 4 files changed +59
-13
lines changed Expand file tree Collapse file tree 4 files changed +59
-13
lines changed Original file line number Diff line number Diff line change 4
4
5
5
---
6
6
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
+
7
27
# 0.2.0
8
28
* 2017-03-08*
9
29
## Features
@@ -43,3 +63,5 @@ Detailed information about features and install instructions can be found in the
43
63
# 0.0.0
44
64
* 2017-02-19*
45
65
** Project Initialization**
66
+
67
+ [ readme-configuration ] : https://github.com/arcticicestudio/nord-hyper#configuration
Original file line number Diff line number Diff line change @@ -39,8 +39,26 @@ hpm install nord-hyper
39
39
40
40
<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 >
41
41
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
+
42
60
## 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 )
44
62
45
63
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 ) .
46
64
Original file line number Diff line number Diff line change @@ -53,7 +53,23 @@ const colors = {
53
53
grayscale : foregroundColor
54
54
} ;
55
55
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
+
56
70
exports . decorateConfig = config => {
71
+ const nordHyper = Object . assign ( { cursorBlink : true } , config . nordHyper ) ;
72
+
57
73
return Object . assign ( { } , config , {
58
74
foregroundColor,
59
75
backgroundColor,
@@ -71,17 +87,7 @@ exports.decorateConfig = config => {
71
87
.cursor-node {
72
88
border-left-width: 2px;
73
89
}
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 : "" }
85
91
` ,
86
92
css : `
87
93
${ config . css || "" }
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " nord-hyper" ,
3
3
"title" : " Nord Hyper" ,
4
- "version" : " 0.2 .0" ,
4
+ "version" : " 0.3 .0" ,
5
5
"description" : " A arctic, north-bluish clean and elegant Hyper theme plugin" ,
6
6
"author" : {
7
7
"name" : " Arctic Ice Studio" ,
You can’t perform that action at this time.
0 commit comments