title: "Responsive" buttons with ::before and ::after shape
body: <p>By responsive I mean that they still look good with slightly longer text and don't have fixed width.</p>
  
  <p>I am trying to make buttons that look exactly like in image below, but I can't get them to be the right width. I thought adding padding on left and right side would do it, but that doesn't work with the "ADD" button. My task is to convert a .psd to html/css pixel perfect which is kind of dumb and results in bad code.</p>
  
  <p>Fiddle: <a href="https://jsfiddle.net/emils/9g7cn7eh/" rel="nofollow noreferrer">https://jsfiddle.net/emils/9g7cn7eh/</a></p>
  
  <p>Buttons: </p>
  
  <p><a href="https://i.stack.imgur.com/T915i.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/T915i.png" alt="enter image description here"></a></p>
  
  <p>Button:</p>
  
  <pre><code>&lt;div class="btn-container"&gt;
    &lt;button class="action-btn" type="submit"&gt;Add&lt;/button&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>Styling:</p>
  
  <pre><code>.btn-container {
      position: relative;
      padding-bottom: 20px;
  }
  .action-btn {
      padding: 4px 9px 4px 20px;
      color: #f5f8f9;
      font-size: 0.9375em;
      letter-spacing: 0.4px;
      text-transform: uppercase;
      background-color: #aecacc;
      border: 0;
  }
  .action-btn:before {
      content: "";
      position: absolute;
      width: 0;
      height: 0;
      top: 0;
      margin-left: -20px;
      border-top: 14px solid transparent;
      border-bottom: 14px solid transparent;
      border-left: 7px solid #f4f4f4;
  }
  .action-btn:after {
      content: "";
      position: absolute;
      width: 0;
      height: 0;
      top: 0;
      margin-left: 8px;
      border-top: 13px solid transparent;
      border-bottom: 13px solid transparent;
      border-left: 15px solid #aecacc;
  }
  </code></pre>