Specifically, I am utilizing polymer paper-shadow for my project.
I am attempting to eliminate two sides of a paper-shadow
box in order to create a basic arrow box, but I am facing difficulties in achieving this. Removing the position: absolute
did not resolve the issue of overlapping behavior.
This is the structure of my HTML/CSS:
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
is a feature of paper-shadow
: https://www.polymer-project.org/docs/elements/paper-elements.html#paper-shadow