Merge pull request #1246 from atom/ks-color-commit-messages

Add a splash of color to commit messages
This commit is contained in:
Kevin Sawicki
2013-12-06 13:06:52 -08:00
3 changed files with 35 additions and 1 deletions

View File

@@ -1,5 +1,9 @@
// Import from the theme's variables with a fallback to /static/variables/ui-variables.less
// Import from the syntax theme's variables with a fallback to ./variables/syntax-variables.less
@import "syntax-variables";
// Import from the ui theme's variables with a fallback to ./variables/ui-variables.less
@import "ui-variables";
@import "octicon-utf-codes";
@import "octicon-mixins";
@@ -19,5 +23,6 @@
@import "markdown";
@import "editor";
@import "select-list";
@import "syntax";
@import "utilities";
@import "octicons";

21
static/syntax.less Normal file
View File

@@ -0,0 +1,21 @@
@import "syntax-variables";
.editor {
.lines {
.markup {
&.git-commit {
&.changed {
color: @syntax-color-modified;
}
&.deleted {
color: @syntax-color-removed;
}
&.inserted {
color: @syntax-color-added;
}
}
}
}
}

View File

@@ -0,0 +1,8 @@
// This file has fallback variables. It specifies the syntax variables that
// themes must implement.
// Colors
@syntax-color-added: #5293d8;
@syntax-color-modified: #f78a46;
@syntax-color-removed: #c00;