<div class="subscribe-section">
    <div class="subscribe-section__wrapper">
        <form action="#" class="subscribe-section__form">
            <label for="subscribe" class="screen-reader-only">Subscribe</label>
            <input type="email" id="subscribe" placeholder="Subscribe to our newsletter">
            <input type="submit" value="Send">
        </form>
    </div>
</div>
<div class="subscribe-section">
  <div class="subscribe-section__wrapper">
    <form action="#" class="subscribe-section__form">
      <label for="subscribe" class="screen-reader-only">Subscribe</label>
      <input type="email" id="subscribe" placeholder="Subscribe to our newsletter">
      <input type="submit" value="Send">
    </form>
  </div>
</div>
/* No context defined. */
  • Content:
    .subscribe-section {
      background-color: hsla(var(--yellow-hsl), 1);
      padding: 24px;
    
      @media print {
        display: none;
      }
    }
    
    .subscribe-section__wrapper {
      @include wrapper;
      @include breakpoint($large) { max-width: 700px; }
    }
    
    .subscribe-section__form {
      display: flex;
      flex-direction: column;
      @include breakpoint($medium-up) { flex-direction: row;  }
      width: 100%;
    }
    
    .subscribe-section input[type="email"] { 
      border-radius: 3px 0 0 3px;
      flex: 1;
      padding: 12px 24px;
      width: 100%;
      border: 0;
      letter-spacing: .3px;
      color: hsla(var(--white-hsl), 1);
      background-color: hsla(var(--base-hsl), .1);
      @include placeholder { color: hsla(var(--base-hsl), .9); }
    
      &:focus { background-color: hsla(var(--base-hsl), .2); }
      &:hover { background-color: hsla(var(--base-hsl), .3); }
    }
    
    .subscribe-section input[type="submit"] {
      all: inherit;
      color: hsla(var(--base-hsl), 1);
      display: inline-block;
      width: 100%; 
      margin-top: 8px;
      padding: 12px 24px;
      background-color: hsla(var(--base-hsl), .15);
      border-radius: 0 3px 3px 0;
      text-align: center;
      cursor: pointer;
    
      @include breakpoint($medium-up) { 
        max-width: 90px; 
        margin-top: 0;
      }
    }
    
    .subscribe-section input[type="submit"]:focus { background-color: hsla(var(--base-hsl), .2); }
    .subscribe-section input[type="submit"]:hover { background-color: hsla(var(--base-hsl), .3); }
    
  • URL: /components/raw/subscribe/subscribe.scss
  • Filesystem Path: src/components/04-modules/subscribe/subscribe.scss
  • Size: 1.4 KB

No notes defined.