Skip to content

Commit 4b6a6b2

Browse files
committed
use theme styles
1 parent 3355168 commit 4b6a6b2

File tree

6 files changed

+14
-180
lines changed

6 files changed

+14
-180
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,3 +24,5 @@ This project adheres to [Semantic Versioning](http://semver.org/).
2424

2525
## [0.5.4] - coming soon
2626
- fix bug that prevented scroll in Atom 1.6+
27+
- `< >` button to open console
28+
- match colors to theme

lib/atom/editor.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ function toggleDevTools() {
101101
if (!consoleHasOpened) {
102102
atom.executeJavaScriptInDevTools(console.clear());
103103
consoleHasOpened = true;
104-
console.log('Atom-CodeRoad: file runs on save');
104+
console.log('Atom-CodeRoad: runs on save');
105105
}
106106
atom.toggleDevTools();
107107
}

src/components/_app.less

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,13 @@
66
@import './alert/_alert';
77
@import './start/_start';
88

9+
@import "ui-variables";
10+
@import "ui-mixins";
11+
912
atom-panel-container > atom-panel > #crv {
1013
animation: slide 0.3s forwards;
1114
animation-timing-function: ease-in-out;
15+
font-size: @input-font-size;
1216
}
1317

1418
@keyframes slide {
@@ -23,7 +27,8 @@ atom-panel-container > atom-panel > #crv {
2327
overflow-y: scroll;
2428

2529
code {
26-
background-color: rgb(22, 23, 25);
30+
background-color: @input-background-color;
31+
border-radius: @component-border-radius;
2732
}
2833
}
2934

src/components/alert/_alert.less

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,23 @@
1-
@pass: rgb(115, 201, 144);
2-
@fail: rgb(255, 64, 129);
3-
@note: #9DA5B4;
1+
@import "ui-variables";
42

53
.cr-alert.pass {
64
button {
75
span {
8-
color: @pass;
6+
color: @background-color-success;
97
}
108
}
119
}
1210
.cr-alert.fail {
1311
button {
1412
span {
15-
color: @fail;
13+
color: @background-color-error;
1614
}
1715
}
1816
}
1917
.cr-alert.note {
2018
button {
2119
span {
22-
color: @note;
20+
color: @background-color-info;
2321
}
2422
}
2523
}

styles/styles.css

Lines changed: 0 additions & 172 deletions
This file was deleted.

styles/styles.less

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
@import '../src/components/_app';

0 commit comments

Comments
 (0)