File tree Expand file tree Collapse file tree 2 files changed +19
-5
lines changed Expand file tree Collapse file tree 2 files changed +19
-5
lines changed Original file line number Diff line number Diff line change @@ -425,7 +425,10 @@ export class DataTipManager {
425425 position : Point ,
426426 view : ViewContainer
427427 ) : CompositeDisposable | null {
428- const element = view . element as HTMLElement
428+ const element = document . createElement ( "div" )
429+ element . className = "datatip-border"
430+
431+ element . appendChild ( view . element as HTMLElement )
429432
430433 // TODO do we need this?
431434 if ( ! element ) {
Original file line number Diff line number Diff line change 11@import " ui-variables" ;
22@import " syntax-variables" ;
33
4+ // .datatip-overlay {
5+ // }
6+
7+ .datatip-border {
8+ background : @overlay-background-color ;
9+ padding : 10px ;
10+ }
11+
412.datatip-element {
13+ .datatip-responsive-effect ();
14+
515 overflow : auto ; // prevents the long text to come out of the datatip
616 color : @syntax-text-color ;
717 white-space : nowrap ;
3848 width : auto ;
3949}
4050
41- .datatip-overlay {
51+ .datatip-responsive-effect () {
52+ margin-left : 5px ;
4253 // info border
43- border-bottom : 5px solid @background-color-highlight ;
54+ border-left : 5px solid @background-color-highlight ;
4455 border-radius : 3px ;
4556
4657 // info bar glow
47- transition : border- bottom - color 0.15s ease ;
58+ transition : border- left - color 0.15s ease ;
4859 & :hover {
49- border-bottom -color : lighten (@background-color-highlight , 10% );
60+ border-left -color : lighten (@background-color-highlight , 10% );
5061 }
5162}
5263
You can’t perform that action at this time.
0 commit comments