Context menu :active; Experimenting with branding

This commit is contained in:
James Barnsley
2017-08-28 21:16:26 +12:00
parent 5a71cbcf92
commit f3097d00b5
4 changed files with 30 additions and 15 deletions

View File

@ -279,6 +279,7 @@
.context-menu-trigger {
@include animate();
@include gradient_overlay(3px);
display: inline-block;
padding: 14px 12px;
cursor: pointer;
@ -297,21 +298,9 @@
margin: 1px;
}
&:before {
@include animate();
content: '';
display: block;
position: absolute;
top: 0;
right: 0;
bottom: 0;
left: 0;
opacity: 0;
z-index: 9;
background: -webkit-linear-gradient(to bottom right, rgba(255,255,255,1), rgba(0,0,0,0.5));
background: -moz-linear-gradient(to bottom right, rgba(255,255,255,1), rgba(0,0,0,0.5));
background: -o-linear-gradient(to bottom right, rgba(255,255,255,1), rgba(0,0,0,0.5));
background: linear-gradient(to bottom right, rgba(255,255,255,1), rgba(0,0,0,0.5));
&:active {
margin-top: 0px;
margin-bottom: -1px;
}
&:hover{