No notes defined.

<div class="donation-box donation-box--inactive">
    <div class="donation-box__inner">
        <h2 class="donation-box__name">Fund development on 30+ open source extras</h2>
        <p class="donation-box__description">We take pride in our work and always strive to deliver quality tools out of the box, no matter if we sell them as premium extras or release them as open source. <br />
            <br />
            With MODX3 and PHP8, many of our open source extras that have been feature complete and &quot;just worked&quot; for years have recently been updated, or will be receiving an update soon. <br />
            <br />
            Your donation helps us prioritize development time for open source maintenance and development.
        </p>

        <div class="donation-box__progress">
            <div class="donation-box__progress-bar">
                <div class="donation-box__progress-bar__inner" style="width: 0%">&nbsp;</div>
            </div>
            <p class="donation-box__progress-goal">
                Raised €0
                of €1,250 goal
                this year,
                €0 total (all-time)
            </p>
        </div>

        <form action="" method="post">
            <input type="hidden" name="donate" value="1">
            <input type="hidden" name="cause" value="1">

            <h3>Support this project</h3>
            <div class="donation-box__amounts">

                <div class="donation-box__amount">
                    <input type="radio" name="amount" value="5" id="donate-1-5">
                    <label for="donate-1-5">
                        €5
                    </label>
                </div>
                <div class="donation-box__amount">
                    <input type="radio" name="amount" value="10" id="donate-1-10">
                    <label for="donate-1-10">
                        €10
                    </label>
                </div>
                <div class="donation-box__amount">
                    <input type="radio" name="amount" value="20" id="donate-1-20">
                    <label for="donate-1-20">
                        €20
                    </label>
                </div>
                <div class="donation-box__amount">
                    <input type="radio" name="amount" value="40" id="donate-1-40">
                    <label for="donate-1-40">
                        €40
                    </label>
                </div>
                <div class="donation-box__amount">
                    <input type="radio" name="amount" value="80" id="donate-1-80">
                    <label for="donate-1-80">
                        €80
                    </label>
                </div>
                <div class="donation-box__amount">
                    <input type="radio" name="amount" value="150" id="donate-1-150">
                    <label for="donate-1-150">
                        €150
                    </label>
                </div>
                <div class="donation-box__amount">
                    <input type="radio" name="amount" value="250" id="donate-1-250">
                    <label for="donate-1-250">
                        €250
                    </label>
                </div>
                <div class="donation-box__amount">
                    <input type="radio" name="amount" value="1250" id="donate-1-1250">
                    <label for="donate-1-1250">
                        €1,250
                    </label>
                </div>

                <div class="donation-box__amount donation-box__amount--custom">
                    <input type="radio" name="amount" value="custom" id="donate-1-custom" onfocus="document.getElementById('donate-1-custom-amount').focus()">
                    <label for="donate-1-custom" aria-label="Enter custom amount">
                        <span>Custom amount:</span>
                        <input name="amount_custom" type="number" min="1" step="1" placeholder="Custom amount" onfocus="document.getElementById('donate-1-custom').checked = true;" id="donate-1-custom-amount" class="donation-box__amount--custom__input">
                    </label>
                </div>
            </div>
            <div class="donation-box__details">
                <div class="donation-box__info donation-box__info--public">
                    <label for="donate-1-public">
                        <input type="checkbox" name="donor_public" id="donate-1-public" class="donation-box__info--public__input" checked>
                        Show my donation
                    </label>
                </div>
                <div class="donation-box__info donation-box__info--name">
                    <label for="donate-1-name">
                        Name
                        <br>
                        <span>(public, optional)</span>
                    </label>
                    <input type="text" name="donor_name" id="donate-1-note">
                </div>
                <div class="donation-box__info donation-box__info--note">
                    <label for="donate-1-note">
                        Personal note
                        <br>
                        <span>(public, optional)</span>
                    </label>
                    <textarea name="donor_note" id="donate-1-note"></textarea>
                </div>
            </div>
            <div class="donation-box__action">
                <button type="submit" class="donation-box__submit">Add donation to cart</button>
            </div>
        </form>
    </div>
</div>
/* No context defined. */
  • Content:
    .donation-box {
      position: relative;
      display: flex;
      flex-direction: column;
      border: 1px solid rgba(0,0,0,.1);
      box-shadow: 0 0 3px rgba(39,44,49,.02),0 5px 22px -6px rgba(39,44,49,.05);
      border-radius: 4px;
      background: #fff;
      /* height: calc(100% - 2rem); */
      margin: 4rem 0;
      padding: 2rem;
      transition: all .3s ease;
    }
    .donation-box__image {
      float: right;
      width: 150px;
      height: 150px;
      object-fit: fit;
      border-radius: 10px;
      box-shadow: 0 0 3px rgba(39,44,49,.02),0 5px 22px -6px rgba(39,44,49,.05);
      border: 1px solid rgba(0,0,0,.1);
      margin-left: 1rem;
      margin-bottom: 1rem;
    }
    .donation-box__name {
      margin-top: 0;
      line-height: 1.0;
    }
    .donation-box__description {
      text-align: justify;
    }
    .donation-box__progress-bar {
      height: 1.5rem;
      background-color: #ccc;
      width: 100%;
      border-radius: 5px;
    }
    .donation-box__progress-goal {
      color: #777;
      font-size: 0.9rem;
      font-weight: 600;
      text-transform: uppercase;
      text-align: center;
    }
    .donation-box__progress-bar__inner {
      background-color: green;
      height: 1.5rem;
      border-radius: 5px;
      min-width: 5%;
      max-width: 100%;
    }
    .donation-box__status {
      color: #777;
      font-style: italic;
      margin-bottom: 0;
    }
    .donation-box__amounts {
      display: flex;
      flex-wrap: wrap;
      margin-right: -1rem;
    }
    .donation-box__amount {
      position: relative;
      flex: 1 0 33.33%;
    }
    .donation-box__amount input[type=radio] {
      position: absolute;
      top: 0; left: 0; width: 0; height: 0; opacity: 0;
    }
    .donation-box__amount label {
      display: block;
      cursor: pointer;
      border-radius: 5px;
      color: #153256;
      border: 1px solid rgba(0,0,0,.1);
      box-shadow: 0 0 3px rgba(39,44,49,.02),0 5px 22px -6px rgba(39,44,49,.05);
      transition: all .3s ease;
      background: #f9fafa;
      padding: 0.67em 1em;
      font-size: 1rem;
      margin-right: 1rem;
      margin-bottom: 1rem;
      font-weight: 600;
    }
    .donation-box__amount label span {
      padding-right: 1rem;
    }
    .donation-box__amount input[type=radio]:checked + label {
      border: 1px solid rgba(31,75,127,.5);
      box-shadow: 0 0 3px rgba(31,75,127,.1),0 5px 22px -6px rgba(31,75,127,.5);
      background: #d2e3ee;
    }
    .donation-box__amount--custom {
      flex: 1 0 67.77%;
    }
    .donation-box__amount--custom label {
      display: flex;
      align-items: center;
    }
    .donation-box__amount--custom label input {
      padding: 0.5rem 0.33rem;
      margin-left: auto;
    }
    
    .donation-box__details {
    
    }
    .donation-box__info {
      display: flex;
      width: 100%;
      margin-bottom: 1rem;
    }
    .donation-box__info label {
      width: 30%;
      padding-right: 1rem;
    }
    .donation-box__info--public {
      text-align: center;
    }
    .donation-box__info--public label {
      width: auto;
      font-size: 0.85rem;
      text-transform: uppercase;
      color: #777;
      font-weight: 600;
    }
    .donation-box__info label span {
      font-size: 0.85rem;
      text-transform: uppercase;
      color: #777;
      font-weight: 600;
    }
    .donation-box__info input, .donation-box__info textarea, .donation-box__amount--custom__input  {
      flex: 1;
    
      border: 1px solid rgba(0,0,0,.1);
      box-shadow: 0 0 3px rgba(39,44,49,.02),0 5px 22px -6px rgba(39,44,49,.05);
      border-radius: 4px;
      background: #fff;
      padding: 0.67em 0.5em;
      font-size: 1rem;
    
    }
    .donation-box__submit {
      padding: 1rem;
      width: 100%;
      border: 1px solid rgba(0,0,0,.1);
      box-shadow: 0 0 3px rgba(39,44,49,.02),0 5px 22px -6px rgba(39,44,49,.05);
      border-radius: 4px;
      background: green;
      color: white;
      font-size: 1rem;
      font-weight: 600;
      cursor: pointer;
    }
    .donation-box__submit:focus, .donation-box__submit:hover {
      background: darkgreen;
    }
    
    .donations {
      margin: 1rem 0;
      padding: 0;
      list-style-type: none;
    }
    .donation {
      padding: 1em;
      border: 1px solid rgba(0,0,0,.1);
      border-bottom-width: 0;
      box-shadow: 0 0 3px rgba(39,44,49,.02),0 5px 22px -6px rgba(39,44,49,.05);
      transition: all .3s ease;
      background: #f9fafa;
    }
    .donation:first-child {
      border-top-left-radius: 4px;
      border-top-right-radius: 4px;
    }
    .donation:last-child {
      border-bottom-width: 1px;
      border-bottom-left-radius: 4px;
      border-bottom-right-radius: 4px;
    }
    .donation p {
      margin: 0;
    }
    .donation__inner {
    
    }
    .donation--name {
      font-weight: 600;
      color: #333;
    }
    .donation--info {
      display: flex;
      align-items: center;
    }
    .donation--amount {
      color: #153256;
      font-weight: 600;
    }
    .donation--date {
      color: #777;
      flex: 1;
      padding-left: 1rem;
    }
    .donation--note {
      font-size: 0.9rem;
    }
    
  • URL: /components/raw/donation-widget/donation-widget.scss
  • Filesystem Path: components/02-components/donation-widget/donation-widget.scss
  • Size: 4.4 KB
  • Handle: @donation-widget
  • Preview:
  • Filesystem Path: components/02-components/donation-widget/donation-widget.twig