Rename ~/.atom/styles.css to ~/.atom/styles.less

Esse commit está contido em:
Kevin Sawicki
2014-02-24 16:14:05 -08:00
commit 0307c0e6c9
4 arquivos alterados com 14 adições e 10 exclusões
+9 -8
Ver Arquivo
@@ -151,25 +151,26 @@ menu.
This file can also be named _init.js_ and contain JavaScript code.
### styles.css
### styles.less
If you want to apply quick-and-dirty personal styling changes without creating
an entire theme that you intend to publish, you can add styles to _styles.css_
in your _~/.atom_ directory.
an entire theme that you intend to publish, you can add styles to the
_styles.less_ file in your _~/.atom_ directory.
You can open this file in an editor from the _Atom > Open Your Stylesheet_ menu.
For example, to change the color of the highlighted line number for the line
that contains the cursor, you could add the following style to _styles.css_:
For example, to change the color of the cursor, you could add the following
rule to your _~/.atom/styles.less_ file:
```css
```less
.editor .cursor {
border-color: pink;
}
```
You can also name the file _styles.less_ if you want to style Atom using
[LESS][LESS].
Unfamiliar with LESS? Read more about it [here][LESS].
This file can also be named _styles.css_ and contain CSS.
[create-a-package]: creating-packages.md
[create-theme]: creating-a-theme.md
@@ -3,6 +3,9 @@
*
* This stylesheet is loaded when Atom starts up and is reloaded automatically
* when it is changed.
*
* If you are unfamiliar with LESS, you can read more about it here:
* http://www.lesscss.org
*/
.tree-view {
+1 -1
Ver Arquivo
@@ -234,7 +234,7 @@ describe "Config", ->
expect(fs.isFileSync(path.join(atom.config.configDirPath, 'snippets.cson'))).toBeTruthy()
expect(fs.isFileSync(path.join(atom.config.configDirPath, 'config.cson'))).toBeTruthy()
expect(fs.isFileSync(path.join(atom.config.configDirPath, 'init.coffee'))).toBeTruthy()
expect(fs.isFileSync(path.join(atom.config.configDirPath, 'styles.css'))).toBeTruthy()
expect(fs.isFileSync(path.join(atom.config.configDirPath, 'styles.less'))).toBeTruthy()
describe ".loadUserConfig()", ->
beforeEach ->
+1 -1
Ver Arquivo
@@ -200,7 +200,7 @@ describe "ThemeManager", ->
describe "when the user stylesheet changes", ->
it "reloads it", ->
userStylesheetPath = path.join(temp.mkdirSync("atom"), 'styles.css')
userStylesheetPath = path.join(temp.mkdirSync("atom"), 'styles.less')
fs.writeFileSync(userStylesheetPath, 'body {border-style: dotted !important;}')
spyOn(themeManager, 'getUserStylesheetPath').andReturn userStylesheetPath