Skip to content

Instantly share code, notes, and snippets.

@syedjafer
Created September 8, 2022 10:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save syedjafer/8dc79442e68b52e715b90d9da927f1f1 to your computer and use it in GitHub Desktop.
Save syedjafer/8dc79442e68b52e715b90d9da927f1f1 to your computer and use it in GitHub Desktop.
body {
font-family: sans-serif;
position: relative;
height: 100vh;
margin: 0;
}
ul {
list-style: none;
margin-block-start: 0;
margin-block-end: 0;
padding-inline-start: 0;
}
.contextmenu {
box-shadow: 0 0 10px 0 #000033;
border-radius: 3px;
border: 1px solid #212121;
background-color: #424242;
backdrop-filter: blur(20px);
width: 250px;
position: absolute;
opacity: 0;
transform: scale(0);
transition: transform 0.2s, opacity 0.1s;
}
.items li{
padding: 2px 5px;
}
.items:first-child {
margin-top: 3px;
}
.items:last-child {
margin-bottom: 3px;
}
.items a {
color: #fff;
display: flex;
align-items: center;
justify-content: space-between;
padding: 0.3rem 1rem;
text-decoration: none;
transition: all 0.2s;
font-weight: 300;
font-size: 14px;
border-radius: 5px;
}
.items a:hover {
background-color: #919142;
}
.fa-brands, .fa-solid {
margin-right: 10px;
color: #aaa;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment