mirror of
https://github.com/atom/atom.git
synced 2026-04-28 03:01:47 -04:00
Give selection view '.selection' class and region divs '.region' class
This commit is contained in:
@@ -6,7 +6,7 @@ Range = require 'range'
|
||||
module.exports =
|
||||
class SelectionView extends View
|
||||
@content: ->
|
||||
@div()
|
||||
@div class: 'selection'
|
||||
|
||||
regions: null
|
||||
destroyed: false
|
||||
@@ -45,7 +45,7 @@ class SelectionView extends View
|
||||
else
|
||||
css.right = 0
|
||||
|
||||
region = ($$ -> @div class: 'selection').css(css)
|
||||
region = ($$ -> @div class: 'region').css(css)
|
||||
@append(region)
|
||||
@regions.push(region)
|
||||
|
||||
|
||||
@@ -68,7 +68,7 @@ class TextMateTheme
|
||||
'border-color': @translateColor(caret)
|
||||
|
||||
@rulesets.push
|
||||
selector: '.editor.focused .selection'
|
||||
selector: '.editor.focused .selection .region'
|
||||
properties:
|
||||
'background-color': @translateColor(selection)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user