More specifically, i'm using polymer paper-shadow.
I'm trying to remove two sides of a paper-shadow
box to create a simple arrow box, but I can't seem to get rid of it. I've tried removing the position: absolute
, but that doesn't seem to get rid of the overlapping behavior.
Here's what my html/css look like:
HTML:
<div class="content-container">
<paper-shadow z="1">
<div class="content">
<h1>{{heading}}</h1>
<content></content>
</div>
<paper-shadow class="triangle" z="1"> </paper-shadow>
</paper-shadow>
</div>
CSS:
.content-container
flex: 3 0 45%
order: 1
position: relative
.content, .triangle
background-color: #fafafa
.content
padding: 20px
.triangle
position: absolute
height: 20px
width: 20px
top: 50%
left: 100%
transform: translate(-50%, -50%) rotate(-45deg)
The box-shadow
comes from paper-shadow
: https://www.polymer-project.org/docs/elements/paper-elements.html#paper-shadow