File tree Expand file tree Collapse file tree 3 files changed +33
-28
lines changed Expand file tree Collapse file tree 3 files changed +33
-28
lines changed Original file line number Diff line number Diff line change 9494 <header class =" header-background" >
9595 <div class =" banner d-flex justify-content-between" >
9696 <div class =" d-flex align-items-center menu-position" >
97- <button class =" menu-btn sidebar -tooltip" v-on:click =" sidebarShown = !sidebarShown" >
97+ <button class =" menu-btn has -tooltip" v-on:click =" sidebarShown = !sidebarShown" >
9898 <i class =" fa fa-bars fa-lg icon-light" ></i >
99- <span class =" sidebar-tooltip-text" >
100- <b >Ctrl + M</b >
99+ <span class =" tooltip-text sidebar-tooltip-text" >
100+ <b >Ctrl + M</b >
101101 </span >
102102 </button >
103103 <div class =" d-none d-lg-block" >
305305 <details :open =" expandedTocs.has(item.key)"
306306 v-on:toggle =" !$event.target.open ? expandedTocs.delete(item.key) : expandedTocs.add(item.key)" >
307307 <summary :class =" {
308- 'toc-content' : item.level= =0,
308+ 'toc-content' : item.level==0,
309309 'nested' : item.level>
310310 0,
311311 'current-section': currentPage.some(p => p.key == item.key),
Original file line number Diff line number Diff line change 44@inject SignInManager <EssentialCSharpWebUser > SignInManager
55@inject UserManager <EssentialCSharpWebUser > UserManager
66
7- <div class =" menu -tooltip text-nowrap" >
7+ <div class =" has -tooltip text-nowrap" >
88 @if (SignInManager .IsSignedIn (User ))
99 {
10- <div class =" menu -tooltip" >
10+ <div class =" has -tooltip" >
1111 <a id =" manage" class =" nav-link text-light" asp-area =" Identity" asp-page =" /Account/Manage/Index" title =" Manage" >Hello @UserManager.GetUserName(User) ! </a >
1212 </div >
13- <div class =" menu -tooltip" >
13+ <div class =" has -tooltip" >
1414 <form id =" logoutForm" class =" form-inline" asp-area =" Identity" asp-page =" /Account/Logout" asp-route-returnUrl =" @Url.Action(" Index " , " Home " , new { area = " " })" >
1515 <button id =" logout" type =" submit" class =" nav-link btn btn-link text-light border-0" >
1616 <i class =" fa fa-right-from-bracket icon-light" ></i >
2121 }
2222 else
2323 {
24- <div class =" menu -tooltip" >
24+ <div class =" has -tooltip" >
2525 <a class =" nav-link text-light" id =" login" asp-area =" Identity" asp-page =" /Account/Login" ><i class =" fa fa-right-to-bracket icon-light" ></i > Login </a >
2626 </div >
2727 }
Original file line number Diff line number Diff line change @@ -228,12 +228,12 @@ a:hover {
228228 white-space : nowrap;
229229}
230230
231- .menu -tooltip {
231+ .has -tooltip {
232232 position : relative;
233233 display : inline-block;
234234}
235235
236- .menu -tooltip .tooltip-text {
236+ .has -tooltip .tooltip-text {
237237 visibility : hidden;
238238 width : 120px ;
239239 background-color : var (--grey-lighten-1 );
@@ -250,11 +250,11 @@ a:hover {
250250 z-index : 1 ;
251251}
252252
253- .menu -tooltip: hover .tooltip-text {
253+ .has -tooltip: hover .tooltip-text {
254254 visibility : visible;
255255}
256256
257- .menu -tooltip .tooltip-text ::after {
257+ .has -tooltip .tooltip-text ::after {
258258 content : " " ;
259259 position : absolute;
260260 bottom : 100% ; /* At the top of the tooltip */
@@ -265,27 +265,32 @@ a:hover {
265265 border-color : transparent transparent var (--grey-lighten-1 ) transparent;
266266}
267267
268- .sidebar-tooltip {
269- position : relative;
270- display : inline-block;
271- }
272-
273- .sidebar-tooltip : hover .sidebar-tooltip-text {
274- visibility : visible;
268+ .has-tooltip : hover .sidebar-tooltip-text {
269+ transition-delay : 1s ;
270+ transition-property : visibility;
275271}
276272
277- .sidebar-tooltip .sidebar-tooltip-text {
278- visibility : hidden;
279- position : absolute;
280- width : 80px ;
281- color : var (--primary-color );
282- font-size : 1rem ;
283- background-color : var (--grey-lighten-1 );
273+ .has-tooltip .sidebar-tooltip-text {
274+ width : 90px ;
275+ position : relative;
276+ left : 5rem ;
284277 border-radius : 10px ;
285278 padding : 10px ;
286279 white-space : normal;
287- left : 2rem ;
288- bottom : -9px ;
280+ }
281+
282+ .has-tooltip .sidebar-tooltip-text : after {
283+ content : '' ;
284+ display : block;
285+ width : 0 ;
286+ height : 0 ;
287+ position : absolute;
288+ border-width : 5px ;
289+ border-top : 8px solid transparent;
290+ border-bottom : 8px solid transparent;
291+ border-right : 8px solid var (--grey-lighten-1 );
292+ left : -9% ;
293+ bottom : 30% ;
289294}
290295
291296.nav-link {
You can’t perform that action at this time.
0 commit comments