Skip to content

Commit

Permalink
feat: only glow info bar
Browse files Browse the repository at this point in the history
  • Loading branch information
aminya committed Feb 27, 2021
1 parent 2aa61c9 commit 3a56420
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 10 deletions.
4 changes: 2 additions & 2 deletions lib/datatip-manager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -368,7 +368,7 @@ export class DataTipManager {
containerClassName: "datatip-component-container",
contentClassName: "datatip-component",
},
className: "datatip-element select-list popover-list datatip-transform",
className: "datatip-element select-list popover-list",
})
this.dataTipMarkerDisposables = this.mountDataTipWithMarker(editor, datatip.range, position, dataTipView)
} else if (datatip.markedStrings.length > 0) {
Expand Down Expand Up @@ -406,7 +406,7 @@ export class DataTipManager {
const dataTipView = new ViewContainer({
snippet,
markdown,
className: "datatip-element select-list popover-list datatip-transform",
className: "datatip-element select-list popover-list",
})

this.dataTipMarkerDisposables = this.mountDataTipWithMarker(editor, datatip.range, position, dataTipView)
Expand Down
14 changes: 6 additions & 8 deletions styles/atom-ide-datatips.less
Original file line number Diff line number Diff line change
Expand Up @@ -38,18 +38,16 @@
width: auto;
}

.datatip-element.datatip-transform {
// glow on hover
transition: background-color 0.15s ease;
&:hover {
background-color: mix(@syntax-background-color, @syntax-selection-color, 95%);
}
}

.datatip-overlay {
// info border
border-bottom: 5px solid @background-color-highlight;
border-radius: 3px;

// info bar glow
transition: border-bottom-color 0.15s ease;
&:hover {
border-bottom-color: lighten(@background-color-highlight, 10%);
}
}

/** Applied to ReactView (Components) */
Expand Down

0 comments on commit 3a56420

Please sign in to comment.