File tree Expand file tree Collapse file tree 2 files changed +34
-1
lines changed Expand file tree Collapse file tree 2 files changed +34
-1
lines changed Original file line number Diff line number Diff line change @@ -28,3 +28,31 @@ nav ul li {
28
28
display : inline-block ;
29
29
padding : 20px ;
30
30
}
31
+
32
+ // tooltip for the hamburger on hover
33
+ .tooltip {
34
+ position : relative ;
35
+ }
36
+
37
+ .tooltip .tooltiptext {
38
+ // positioning the tooltip
39
+ width : 200px ;
40
+ bottom : 100% ;
41
+ left : 50% ;
42
+ margin-left : -30px ;
43
+
44
+ display : none ;
45
+ // visibility: hidden;
46
+
47
+ font-size : small ;
48
+ background-color : $DJSlavender ;
49
+ color : #fff ;
50
+ text-align : center ;
51
+ padding : 5px 5px ;
52
+ border-radius : 6px ;
53
+ }
54
+
55
+ .tooltip :hover .tooltiptext {
56
+ // visibility: visible;
57
+ display : inline-flex ;
58
+ }
Original file line number Diff line number Diff line change 9
9
</ ul >
10
10
</ nav >
11
11
< div class ="account ">
12
- <%= link_to "☰" , '#' %>
12
+ < div class ="tooltip ">
13
+ <%= link_to "☰" , '#' %>
14
+ < div class ="tooltiptext ">
15
+ In the course you will make the hamburger toggle with clean and DRY JavaScript!
16
+ </ div >
17
+ </ div >
13
18
</ div >
14
19
</ header >
You can’t perform that action at this time.
0 commit comments