Skip to content

Commit

Permalink
doc: Quick Personal Hacks
Browse files Browse the repository at this point in the history
  • Loading branch information
fundon committed Feb 7, 2015
1 parent b7d8ec0 commit cfd3e9b
Show file tree
Hide file tree
Showing 2 changed files with 46 additions and 0 deletions.
1 change: 1 addition & 0 deletions Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ When the `displayPluginsControls` setting is toggled on, plugins activation can
* [Minimap API Documentation](http://abe33.github.io/atom-minimap/)
* [How to create a minimap plugin?](http://abe33.github.io/atom-minimap/docs/Plugins.md.html)
* [Minimap's Decorations API](http://abe33.github.io/atom-minimap/docs/Decorations.md.html)
* [Quick Personal Hacks](http://abe33.github.io/atom-minimap/docs/Quick-Personal-Hacks.md.html)

### Contributors

Expand Down
45 changes: 45 additions & 0 deletions docs/Quick-Personal-Hacks.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
# Quick Personal Hacks

### keymap.cson

You can open this file in an editor from the Atom > Open Your Keymap menu.

```cson
'atom-workspace':
'cmd-m': 'minimap:toggle'
'ctrl-alt-cmd-m': 'minimap:generate-plugin'
```


### styles.less

You can open this file in an editor from the Atom > Open Your Stylesheet menu.

#### Hiding the vertical-scrollbar

```css
atom-text-editor .vertical-scrollbar,
atom-text-editor::shadow .vertical-scrollbar {
opacity: 0;
width: 0;
}
```

#### Changing the background of the Minimap

```css
atom-text-editor::shadow atom-text-editor-minimap,
atom-text-editor atom-text-editor-minimap {
background: rgba(255,255,255, 0.1);
}
```

#### Changing the background of the Minima's `visible-area`

```css
atom-text-editor::shadow atom-text-editor-minimap::shadow .minimap-visible-area,
atom-text-editor atom-text-editor-minimap::shadow .minimap-visible-area {
background-color: green;
opacity: .5;
}
```

0 comments on commit cfd3e9b

Please sign in to comment.