Skip to content

Commit

Permalink
Change the behavior of the header menus
Browse files Browse the repository at this point in the history
Cleanup code

Add hover effect to the right menu

Use RGBA instead of HEX

Fix typo
  • Loading branch information
Christian Scherm committed Jun 7, 2020
1 parent 4b4d8e5 commit 294936b
Showing 1 changed file with 36 additions and 23 deletions.
59 changes: 36 additions & 23 deletions core/css/header.css
Original file line number Diff line number Diff line change
Expand Up @@ -179,10 +179,11 @@
position: fixed;
top: 45px;
left: 10px;
width: 265px;
width: auto;
max-width: 265px;
max-height: 85%;
margin-top: 0;
padding-bottom: 10px;
padding: 6px;
background-color: rgba(0, 0, 0, .97);
box-shadow: 0 1px 10px rgba(50, 50, 50, .7);
border-radius: 3px;
Expand Down Expand Up @@ -227,7 +228,13 @@
height: 80px;
display: inline-block;
text-align: center;
padding: 20px 0;
padding: 13px 0;
}
#navigation a:hover {
background: rgb(51, 47, 46, 0.7);
border-radius: 3px;
border-top-left-radius: 0;
border-top-right-radius: 0;
}
#navigation a span {
display: inline-block;
Expand Down Expand Up @@ -394,26 +401,32 @@
border-top-right-radius: 0;
box-sizing: border-box;
}
#expanddiv a {
display: block;
height: 40px;
color: #fff;
padding: 4px 12px 0;
-ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=70)";
opacity: .7;
box-sizing: border-box;
}
#expanddiv a img {
margin-bottom: -3px;
margin-right: 6px;
}
#expanddiv a:hover,
#expanddiv a:focus,
#expanddiv a:active,
#expanddiv a.active {
-ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=100)";
opacity: 1;
}
#expanddiv a {
display: block;
height: 40px;
color: #fff;
padding: 4px 12px 0;
-ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=70)";
opacity: .7;
box-sizing: border-box;
}
#expanddiv a img {
margin-bottom: -3px;
margin-right: 6px;
}
#expanddiv a:hover,
#expanddiv a:focus,
#expanddiv a:active,
#expanddiv a.active {
-ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=100)";
opacity: 1;
}
#expanddiv a:hover {
background: rgb(51, 47, 46, 0.7);
border-radius: 3px;
border-top-left-radius: 0;
border-top-right-radius: 0;
}

/* do not show display name when profile picture is present */
#header .avatardiv.avatardiv-shown + #expandDisplayName {
Expand Down

0 comments on commit 294936b

Please sign in to comment.