mirror of
https://github.com/atom/atom.git
synced 2026-01-22 13:28:01 -05:00
Use actual markup for fold icon so we can determine when it's clicked
This commit is contained in:
@@ -213,7 +213,7 @@ class Gutter extends View
|
||||
|
||||
rowValuePadding = _.multiplyString(' ', maxDigits - rowValue.length)
|
||||
|
||||
html += """<div class="#{classes}">#{rowValuePadding}#{rowValue}</div>"""
|
||||
html += """<div class="#{classes}" data-buffer-row=#{row}>#{rowValuePadding}#{rowValue}<div class="fold-icon"></div></div>"""
|
||||
|
||||
lastRow = row
|
||||
|
||||
|
||||
@@ -26,7 +26,6 @@
|
||||
}
|
||||
|
||||
.editor .gutter .line-number {
|
||||
padding-right: .5em;
|
||||
padding-left: .5em;
|
||||
opacity: 0.6;
|
||||
position: relative;
|
||||
@@ -40,21 +39,21 @@
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
.editor .gutter .line-number:after {
|
||||
.icon(0.8em);
|
||||
content: @chevron-down;
|
||||
opacity: .8;
|
||||
.editor .gutter .line-number .fold-icon {
|
||||
.octicon(chevron-down, 0.8em);
|
||||
display: inline-block;
|
||||
visibility: hidden;
|
||||
position: relative;
|
||||
top: -0.1em;
|
||||
padding-left: .1em;
|
||||
padding-right: .5em;
|
||||
opacity: .8;
|
||||
}
|
||||
|
||||
.editor .gutter .line-number.fold:after {
|
||||
.editor .gutter:hover .line-number.foldable .fold-icon {
|
||||
visibility: visible;
|
||||
content: @chevron-right;
|
||||
}
|
||||
|
||||
.editor .gutter:hover .line-number.foldable:not(.fold):after {
|
||||
.editor .gutter .line-number.fold .fold-icon {
|
||||
.octicon(chevron-right, 0.8em);
|
||||
visibility: visible;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user