mirror of
https://github.com/atom/atom.git
synced 2026-01-24 22:38:20 -05:00
Merge pull request #1246 from atom/ks-color-commit-messages
Add a splash of color to commit messages
This commit is contained in:
@@ -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
21
static/syntax.less
Normal 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;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
8
static/variables/syntax-variables.less
Normal file
8
static/variables/syntax-variables.less
Normal 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;
|
||||
Reference in New Issue
Block a user