UI: Devfund-donation-box Web Assets v2 upgrade #1

Merged
Márton Lente merged 26 commits from ui/web-assets-v2-upgrade into main 2024-11-04 12:49:39 +01:00
5 changed files with 19 additions and 14 deletions
Showing only changes of commit 59b3ec1994 - Show all commits

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -130,14 +130,14 @@
<span class="js-value-symbol"></span> <span class="js-value-amount" data-value-group="one-time">500</span> <span class="js-value-symbol"></span> <span class="js-value-amount" data-value-group="one-time">500</span>
</button> </button>
</div> </div>
<div class="row"> <div class="donate-row">
<div class="col-4 d-flex position-relative"> <div class="d-flex position-relative">
<div class="align-items-center d-flex h-100 position-absolute ps-5 start-0 top-0 z-2"> <div class="align-items-center d-flex h-100 position-absolute ps-5 start-0 top-0 z-2">
<span class="fs-4 js-value-symbol text-color-primary"></span> <span class="fs-4 js-value-symbol text-color-primary"></span>
</div> </div>
<input class="form-control fs-4 input-one-time-donate js-input-one-time-donate text-center" min="5" max="999999" type="number"> <input class="form-control fs-4 input-one-time-donate js-input-one-time-donate text-center" min="5" max="999999" type="number">
</div> </div>
<div class="col-8"> <div>
<a class="btn btn-lg btn-primary js-btn-one-time-donate w-100" href="#"> <a class="btn btn-lg btn-primary js-btn-one-time-donate w-100" href="#">
<span class="me-1">Donate</span><i class="i-heart-filled"></i> <span class="me-1">Donate</span><i class="i-heart-filled"></i>
</a> </a>

View File

@ -75,14 +75,14 @@
</button> </button>
</div> </div>
<h2 class="mb-5">Donate, just <strong>once</strong></h2> <h2 class="mb-5">Donate, just <strong>once</strong></h2>
<div class="pb-4 row"> <div class="donate-row pb-4">
<div class="col-4 d-flex position-relative"> <div class="d-flex position-relative">
<div class="align-items-center d-flex h-100 position-absolute ps-5 start-0 top-0 z-2"> <div class="align-items-center d-flex h-100 position-absolute ps-5 start-0 top-0 z-2">
<span class="fs-4 js-value-symbol text-color-primary"></span> <span class="fs-4 js-value-symbol text-color-primary"></span>
</div> </div>
<input class="form-control fs-4 input-one-time-donate js-input-one-time-donate text-center" min="5" max="999999" type="number"> <input class="form-control fs-4 input-one-time-donate js-input-one-time-donate text-center" min="5" max="999999" type="number">
</div> </div>
<div class="col-8"> <div>
<a class="btn btn-primary btn-lg js-btn-one-time-donate w-100" href="#"> <a class="btn btn-primary btn-lg js-btn-one-time-donate w-100" href="#">
<span class="me-1">Donate</span><i class="i-heart-filled"></i> <span class="me-1">Donate</span><i class="i-heart-filled"></i>
</a> </a>

View File

@ -254,6 +254,11 @@ input
.container .container
max-width: var(--container-width) max-width: var(--container-width)
.donate-row
display: grid
gap: calc(var(--spacer) * 2)
grid-template-columns: 1fr 2fr
.form-control .form-control
height: auto height: auto
> // TODO: Move to Web Assets Isn't that in https://projects.blender.org/infrastructure/web-assets/src/branch/v2/src/styles/bootstrap-5/dist/css/bootstrap-utilities.css#L1274 ?

It is, but Web Assets also applies font-variation-settings rules on top, to make font-weight settings consistently work with variable fonts as well. (The +fw-title mixin should be added – combining font-variation-settings and font-weight rules – to Web Assets similarily to +fw-bold, that already exists.)

It is, but Web Assets also applies `font-variation-settings` rules on top, to make font-weight settings consistently work with variable fonts as well. (The `+fw-title` mixin should be added – combining `font-variation-settings` and `font-weight` rules – to Web Assets similarily to `+fw-bold`, that already exists.)