UI: Blender-id web-assets v2 upgrade #93590

Merged
Márton Lente merged 28 commits from ui/web-assets-v2-upgrade into main 2024-08-22 14:41:33 +02:00
Showing only changes of commit 18a16b7d3f - Show all commits

View File

@ -5,6 +5,7 @@ $font-path: '/static/assets/fonts'
/* Import Blender Web Assets. */ /* Import Blender Web Assets. */
@import '../../../../assets_shared/src/styles/main' @import '../../../../assets_shared/src/styles/main'
// TODO: check explicit font-sizes
.bid .bid
&-user // .bid-user &-user // .bid-user
align-items: center align-items: center
@ -20,6 +21,7 @@ $font-path: '/static/assets/fonts'
&-links // .bid-links &-links // .bid-links
display: flex display: flex
font-size: var(--fs-sm) font-size: var(--fs-sm)
line-height: var(--lh-sm)
justify-content: space-between justify-content: space-between
+list-unstyled +list-unstyled
margin: var(--spacer) 0 0 0 margin: var(--spacer) 0 0 0
@ -36,7 +38,7 @@ $font-path: '/static/assets/fonts'
&-header // .bid-header &-header // .bid-header
font-size: 1.1em font-size: 1.1em
margin: 10px margin: var(--spacer-2)
&-tokens // .bid-tokens &-tokens // .bid-tokens
+list-unstyled +list-unstyled
@ -59,9 +61,9 @@ $font-path: '/static/assets/fonts'
.app-icon .app-icon
border-radius: var(--border-radius) border-radius: var(--border-radius)
height: 48px height: var(--spacer-5)
+margin(3, right) +margin(3, right)
width: 48px width: var(--spacer-5)
.app .app
&-url &-url
@ -86,7 +88,7 @@ $font-path: '/static/assets/fonts'
position: absolute position: absolute
.cke .cke
margin-top: 40px !important margin-top: var(--spacer-5) !important
.authorize .authorize
padding: 20px padding: 20px
@ -102,26 +104,26 @@ $font-path: '/static/assets/fonts'
.authorize__app-img .authorize__app-img
background: #7596d9 background: #7596d9
margin-right: 20px margin-right: var(--spacer-4)
.authorize__app-img_placeholder .authorize__app-img_placeholder
background: #7596d9 background: #7596d9
margin-right: 20px margin-right: var(--spacer-4)
.authorize__app-img_placeholder_icon .authorize__app-img_placeholder_icon
position: absolute position: absolute
top: 20px top: var(--spacer-4)
left: 33px left: calc(var(--spacer) * 2)
color: white color: white
.authorize__person-img .authorize__person-img
background: #afd876 background: #afd876
.authorize__pictogram__arrow .authorize__pictogram__arrow
margin-top: -98px margin-top: -98px // TODO: check magic number
font-family: FontAwesome font-family: FontAwesome
font-size: 70px font-size: 7.2rem
color: white color: white
&:before &:before
@ -131,42 +133,42 @@ $font-path: '/static/assets/fonts'
&__title &__title
margin-bottom: 10px !important margin-bottom: var(--spacer-2) !important
text-align: center text-align: center
&__blurb &__blurb
max-width: 60% max-width: 60%
margin: 20px auto !important margin: var(--spacer-4) auto !important
font-size: 16px font-size: 1.6rem
text-shadow: none text-shadow: none
text-align: center text-align: center
&__info &__info
font-size: 13px font-size: var(-fs-sm)
color: #737373 color: #737373
&__review &__review
padding: 20px 0 padding: var(--spacer-4) 0
margin-bottom: 20px margin-bottom: var(--spacer-4)
border-top: 1px solid #dfdfdf border-top: .1rem solid #dfdfdf
border-bottom: 1px solid #dfdfdf border-bottom: .1rem solid #dfdfdf
h3 h3
margin: 0 0 10px 15px margin: 0 0 var(--spacer-2) var(--spacer)
ul ul
padding-left: 15px padding-left: var(--spacer)
li li
margin-bottom: 5px margin-bottom: 5px
.btn-chooser .btn-chooser
padding-bottom: 20px padding-bottom: var(--spacer-4)
.btn .btn
margin-right: 10px margin-right: var(--spacer-2)
&:last-child &:last-child
margin-right: 0 margin-right: 0
@ -176,11 +178,11 @@ $font-path: '/static/assets/fonts'
.box__learn-more .box__learn-more
display: block display: block
font-size: 12px font-size: 1.2rem
text-align: center text-align: center
.profile.address .box .profile.address .box
padding: 15px padding: var(--spacer)
.profile.address .box h2 .profile.address .box h2
padding: 0 padding: 0
@ -209,7 +211,7 @@ ul.errorlist
@media (min-width: 991px) @media (min-width: 991px)
.box.decent-height .box.decent-height
min-height: 400px min-height: calc(var(--spacer) * 25)
.developer-apps .developer-apps
form .form-check-input form .form-check-input
@ -221,7 +223,7 @@ ul.errorlist
color: var(--color-warning) color: var(--color-warning)
.badge-img .badge-img
--badge-img-size: 64px --badge-img-size: calc(var(--spacer) * 4)
margin: 0 margin: 0
transition: opacity var(--transition-speed-slow) transition: opacity var(--transition-speed-slow)
@ -298,15 +300,15 @@ ul.badges
background-color: var(--color-accent) background-color: var(--color-accent)
&.btn &.btn
min-height: 30px !important min-height: calc(var(--spacer) * 2) !important
.toggle .toggle-handle .toggle .toggle-handle
background-color: white background-color: white
border: none border: none
border-radius: 999em border-radius: 999em
height: 20px height: var(--spacer-4)
padding: 0 padding: 0
width: 20px width: var(--spacer-4)
.badge-privacy-toggle .badge-privacy-toggle
align-self: flex-start align-self: flex-start
@ -328,9 +330,9 @@ ul.badges
form form
.profile-avatar .profile-avatar
img img
height: 150px height: calc(var(--spacer) * 10)
max-width: initial max-width: initial
width: 150px width: calc(var(--spacer) * 10)
.nav-global .nav-global
.profile-avatar .profile-avatar
@ -349,22 +351,23 @@ form
/* Larger icons */ /* Larger icons */
i.icon.icon-lg i.icon.icon-lg
svg svg
width: 32px width: calc(var(--spacer) * 2)
height: 32px height: calc(var(--spacer) * 2)
max-width: 32px max-width: calc(var(--spacer) * 2)
max-height: 32px max-height: calc(var(--spacer) * 2)
/* Bootstrap's outline icons */ /* Bootstrap's outline icons */
svg.bi svg.bi
stroke: none stroke: none
margin-top: -3px margin-top: -.3rem // TODO: check magic number
.oauth-logo .oauth-logo
max-width: 210px // TODO: check magic numbers
max-height: 85px max-width: 21.0rem
max-height: 8.5rem
width: 100% width: 100%
/* Web Assets overrides. */ /* Web Assets overrides. */
+media-lg +media-lg
.nav-global-container .nav-global-container
max-width: 1170px max-width: 11.70rem