UI: Devfund-website web-assets v2 upgrade #96867

Merged
Márton Lente merged 12 commits from ui/web-assets-v2-upgrade into main 2024-11-01 16:41:18 +01:00
5 changed files with 29 additions and 16 deletions
Showing only changes of commit bbf34c94db - Show all commits

View File

@ -22,12 +22,12 @@ body.looper-checkout_choose_plan_variation
.mention, pre .mention, pre
color: white color: white
max-width: 700px max-width: 700px
padding: 1rem padding: 1.6rem
margin-inline: auto margin-inline: auto
border-radius: var(--border-radius) border-radius: var(--border-radius)
.mention .mention
margin-bottom: 1rem margin-bottom: 1.6rem
background-color: var(--color-accent-bg-hover) background-color: var(--color-accent-bg-hover)
.checkout-send-instructions .checkout-send-instructions
@ -156,7 +156,7 @@ form.checkout-form
position: relative position: relative
h1 h1
margin-top: 0.5rem margin-top: 0.8rem
+text-gradient(-45deg, #e8c27d, #ff002d) +text-gradient(-45deg, #e8c27d, #ff002d)
a a

View File

@ -21,4 +21,3 @@ form.link-membership-form
label label
font-size: small font-size: small

View File

@ -1,4 +1,4 @@
$stats-item-size: 14rem $stats-item-size: 22.4rem
$stats-item-top-bg: hsl(226, 60%, 46%) $stats-item-top-bg: hsl(226, 60%, 46%)
$stats-item-middle-bg: hsl(246, 60%, 46%) $stats-item-middle-bg: hsl(246, 60%, 46%)
$stats-item-bottom-bg: hsl(266, 80%, 46%) $stats-item-bottom-bg: hsl(266, 80%, 46%)
@ -137,11 +137,12 @@ $stats-bg: var(--header-bg-color)
.stats-sum .stats-sum
align-items: center align-items: center
display: flex display: flex
font-size: 3rem font-size: 4.8rem
+fw-bold +fw-bold
justify-content: center justify-content: center
.stats-sum-name .stats-sum-name
font-size: var(--fs-sm)
+fw-bold +fw-bold
opacity: .8 opacity: .8

View File

@ -57,8 +57,8 @@
img img
animation: badge-dance 5s infinite animation: badge-dance 5s infinite
display: block display: block
filter: drop-shadow(0 0 1.75rem #1441b1); filter: drop-shadow(0 0 2.8rem #1441b1)
margin: 2rem auto 0 auto margin: 3.2rem auto 0 auto
max-width: 280px max-width: 280px
.campaign--donation-box .campaign--donation-box

View File

@ -1,17 +1,20 @@
// TODO: convert explicit font sizes to variables
// TODO: convert explicit spacing sizes to modular sizing
// TODO: unify px and rem units' usage
\:root \:root
--fs-membership-corp-gold: 3rem --fs-membership-corp-gold: 4.8rem
--fs-membership-corp-silver: 2.6rem --fs-membership-corp-silver: 4.16rem
--fs-membership-corp-bronze: 1.66rem --fs-membership-corp-bronze: 2.656rem
--fs-membership-top: 1.46667rem --fs-membership-top: 2.34667rem
--fs-hero-title: clamp(3rem, 4vw + 1rem, 72px) --fs-hero-title: clamp(4.8rem, 4vw + 1rem, 72px)
--header-bg-color: hsl(254deg, 50%, 13%) --header-bg-color: hsl(254deg, 50%, 13%)
--header-text-color: hsl(213deg 10% 92%) --header-text-color: hsl(213deg 10% 92%)
/* Bootstrap overrides. */ /* Bootstrap overrides. */
$fs-base: .9rem $fs-base: 1.44rem
$progress-height: .5rem $progress-height: .8rem
$font-path: '../../assets/fonts' $font-path: '../../assets/fonts'
@import '../../../../assets_shared/src/styles/main.sass' @import '../../../../assets_shared/src/styles/main.sass'
@ -26,6 +29,16 @@ $font-path: '../../assets/fonts'
@import settings @import settings
@import stats @import stats
/* Components and Web Assets overrides. */
\:root
--fs-hero-title: 3.6rem
+media-sm
--fs-hero-title: 5.3rem
+media-lg
--fs-hero-title: 6.3rem
.homepage .homepage
.container-main .container-main
background-color: var(--header-bg-color) background-color: var(--header-bg-color)
@ -156,7 +169,7 @@ table > tbody > tr > td
+fw-bold +fw-bold
h3 h3
font-size: 1.1rem font-size: 1.76rem
+margin(3, bottom) +margin(3, bottom)
.radio-horizontal .radio-horizontal