Skip to content

Instantly share code, notes, and snippets.

@mindevolution
Last active March 5, 2019 07:00
Show Gist options
  • Save mindevolution/d03e815bf8799a71082836b82a2cdb9c to your computer and use it in GitHub Desktop.
Save mindevolution/d03e815bf8799a71082836b82a2cdb9c to your computer and use it in GitHub Desktop.
Box triangle with shadow box
/**
* Box triangle with shadow box
*/
.ant-dropdown-placement-bottomLeft ul {
box-shadow: 0 0 8px rgba(0, 0, 0, 0.5);
position: relative;
top: 20px;
left: 20px;
width: 100px
}
.ant-dropdown-placement-bottomLeft ul:before, .ant-dropdown-placement-bottomLeft ul:after{
content: "\25b2";
position: absolute;
color: #fff;
left: 5px;
text-shadow: 0 -3px 6px rgba(0, 0, 0, 0.5);
}
.ant-dropdown-placement-bottomLeft ul:before{
top: -15px;
}
.ant-dropdown-placement-bottomLeft ul:after {
bottom: -16px;
transform: rotate(180deg);
}
<div class="ant-dropdown-placement-bottomLeft" >
<ul>
<li>1</li>
<li>2</li>
<li>3</li>
<li>4</li>
</ul></div>
// alert('Hello world!');
{"view":"split","fontsize":"100","seethrough":"","prefixfree":"1","page":"all"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment