UI: Web Assets v2 upgrade #85

Merged
Márton Lente merged 52 commits from martonlente/extensions-website:ui/web-assets-v2-upgrade into main 2024-04-30 17:57:33 +02:00
6 changed files with 41 additions and 41 deletions
Showing only changes of commit f7f84aeeeb - Show all commits

View File

@ -16,7 +16,7 @@
&:last-child &:last-child
/* Remove bottom half of the vertical line for last item. */ /* Remove bottom half of the vertical line for last item. */
.comment-card:before .comment-card:before
height: calc(50% - 1rem) height: calc(50% - 1.6rem)
.activity-status-change:before .activity-status-change:before
height: calc(50% + var(--border-width)) height: calc(50% + var(--border-width))
@ -50,7 +50,7 @@
left: var(--border-width) left: var(--border-width)
position: absolute position: absolute
top: 50% top: 50%
width: 2rem width: 3.2rem
z-index: -1 z-index: -1
.profile-avatar .profile-avatar
@ -59,9 +59,9 @@
.comment-card .comment-card
&:after &:after
top: 2rem top: 3.2rem
.activity-icon .activity-icon
top: 1.25rem top: 2.0rem
.activity-status-change .activity-status-change
color: var(--color-text-tertiary) color: var(--color-text-tertiary)
@ -83,7 +83,7 @@
&.activity-status-approved &.activity-status-approved
.activity-icon .activity-icon
border-color: var(--color-success) border-color: var(--color-success)
box-shadow: 0 0 1rem var(--color-success-bg) box-shadow: 0 0 1.6rem var(--color-success-bg)
color: var(--color-success-text) color: var(--color-success-text)
.activity-icon .activity-icon
@ -94,11 +94,11 @@
color: var(--color-text-tertiary) color: var(--color-text-tertiary)
display: flex display: flex
font-size: var(--fs-sm) font-size: var(--fs-sm)
height: 1.5rem height: 1.8rem
justify-content: center justify-content: center
left: -.66rem left: -.66rem
position: absolute position: absolute
width: 1.5rem width: 1.8rem
/* Comment form */ /* Comment form */
.comment-form .comment-form

View File

@ -12,15 +12,15 @@
&:before &:before
background-color: var(--box-bg-color) background-color: var(--box-bg-color)
border-radius: .25rem border-radius: .4rem
content: '' content: ''
display: block display: block
height: 1rem height: 1.6rem
left: -.33rem left: -.33rem
position: absolute position: absolute
rotate: 45deg rotate: 45deg
top: 1rem top: 1.6rem
width: 1rem width: 1.6rem
z-index: -1 z-index: -1
p:last-child p:last-child
@ -35,7 +35,7 @@
align-items: center align-items: center
display: flex display: flex
+list-unstyled +list-unstyled
gap: 1rem gap: 1.6rem
margin: 0 margin: 0
aside aside

View File

@ -1,14 +1,14 @@
.hero.extension-detail .hero.extension-detail
--hero-max-height: 0 --hero-max-height: 0
--hero-min-height: 240px --hero-min-height: 24.0rem
--fs-hero-title: clamp(3rem, 4vw + 1rem, 48px) --fs-hero-title: clamp(4.8rem, 4vw + 1.6rem, 4.8rem)
--fs-lg: 18px --fs-lg: 1.8rem
--border-width: 2px --border-width: .2rem
--hero-bg-color: hsl(213, 10%, 14%) --hero-bg-color: hsl(213, 10%, 14%)
background-color: var(--hero-bg-color) background-color: var(--hero-bg-color)
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 40 40'%3E%3Cg fill-rule='evenodd'%3E%3Cg fill='%233e4248' fill-opacity='0.21'%3E%3Cpath d='M0 38.59l2.83-2.83 1.41 1.41L1.41 40H0v-1.41zM0 1.4l2.83 2.83 1.41-1.41L1.41 0H0v1.41zM38.59 40l-2.83-2.83 1.41-1.41L40 38.59V40h-1.41zM40 1.41l-2.83 2.83-1.41-1.41L38.59 0H40v1.41zM20 18.6l2.83-2.83 1.41 1.41L21.41 20l2.83 2.83-1.41 1.41L20 21.41l-2.83 2.83-1.41-1.41L18.59 20l-2.83-2.83 1.41-1.41L20 18.59z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E") background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 40 40'%3E%3Cg fill-rule='evenodd'%3E%3Cg fill='%233e4248' fill-opacity='0.21'%3E%3Cpath d='M0 38.59l2.83-2.83 1.41 1.41L1.41 40H0v-1.41zM0 1.4l2.83 2.83 1.41-1.41L1.41 0H0v1.41zM38.59 40l-2.83-2.83 1.41-1.41L40 38.59V40h-1.41zM40 1.41l-2.83 2.83-1.41-1.41L38.59 0H40v1.41zM20 18.6l2.83-2.83 1.41 1.41L21.41 20l2.83 2.83-1.41 1.41L20 21.41l-2.83 2.83-1.41-1.41L18.59 20l-2.83-2.83 1.41-1.41L20 18.59z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E")
background-size: 40px background-size: 4.0rem
flex-direction: column flex-direction: column
overflow: initial overflow: initial
text-shadow: none text-shadow: none
@ -27,7 +27,7 @@
background-image: linear-gradient(0deg, var(--color-bg), hsla(213, 10%, 14%, 0)) background-image: linear-gradient(0deg, var(--color-bg), hsla(213, 10%, 14%, 0))
&.extension-review &.extension-review
--hero-min-height: 210px --hero-min-height: 21.0rem
.ext-detail-download-danger .ext-detail-download-danger
background-color: var(--color-danger-bg) background-color: var(--color-danger-bg)
@ -149,7 +149,7 @@
+padding(2, y) +padding(2, y)
.btn-accent .btn-accent
box-shadow: 2px 5px 5px rgba(0,82,255,.102), 1px 10px 15px rgba(0,82,255,.102), 2px 10px 30px rgba(0,82,255,.349) box-shadow: .2rem .8rem .8rem rgba(0,82,255,.102), 1.6rem 1.0rem 1.8rem rgba(0,82,255,.102), 3.2rem 1.0rem 3.2rem rgba(0,82,255,.349)
.btn-install-drag, .btn-install-drag,
.btn-install-drag:active .btn-install-drag:active
@ -184,7 +184,7 @@
transition: box-shadow ease-in-out 1s transition: box-shadow ease-in-out 1s
&:hover &:hover
box-shadow: 10px 10px 20px 0px rgba(0, 0, 0, .04), -10px 0 20px 0px rgba(0, 0, 0, .04) box-shadow: 1.0rem 1.0rem 2.0rem 0px rgba(0, 0, 0, .04), -1.0rem 0 2.0rem 0px rgba(0, 0, 0, .04)
&.is-bg-blur &.is-bg-blur
background-color: hsl(213, 10%, 21%) background-color: hsl(213, 10%, 21%)
@ -217,7 +217,7 @@
+margin(3, bottom) +margin(3, bottom)
.ext-card-thumbnail .ext-card-thumbnail
--card-thumbnail-width: 240px --card-thumbnail-width: 24.0rem
border-top-right-radius: 0 border-top-right-radius: 0
border-bottom-left-radius: var(--border-radius-lg) border-bottom-left-radius: var(--border-radius-lg)
height: 100% height: 100%
@ -231,7 +231,7 @@
.ext-card-thumbnail-blur .ext-card-thumbnail-blur
bottom: 0 bottom: 0
filter: blur(50px) filter: blur(5.0rem)
left: 0 left: 0
position: absolute position: absolute
right: 0 right: 0
@ -290,7 +290,7 @@
.ext-card-tags .ext-card-tags
display: flex display: flex
flex-wrap: wrap flex-wrap: wrap
gap: .25rem gap: 3.2rem
justify-content: flex-start justify-content: flex-start
/* Show only on row list view.*/ /* Show only on row list view.*/
@ -321,7 +321,7 @@
.previews-list .previews-list
display: flex display: flex
flex-direction: column flex-direction: column
gap: .5rem gap: .8rem
.previews-list-item .previews-list-item
--preview-thumbnail-max-size: 180px --preview-thumbnail-max-size: 180px
@ -381,7 +381,7 @@
@extend .list-inline @extend .list-inline
color: var(--color-text-secondary) color: var(--color-text-secondary)
+fw-normal +fw-normal
gap: 0 1rem gap: 0 1.6rem
margin: 0 margin: 0
+margin(3, right) +margin(3, right)

View File

@ -1,5 +1,5 @@
.galleria-container .galleria-container
--extension-thumbnail-width: 140px --extension-thumbnail-width: 14.0rem
background-color: var(--color-bg-secondary) background-color: var(--color-bg-secondary)
border-radius: var(--border-radius-lg) border-radius: var(--border-radius-lg)
@ -12,7 +12,7 @@
.galleria-items .galleria-items
display: flex display: flex
gap: .5rem gap: .8rem
overflow-x: auto overflow-x: auto
+padding(2, top) +padding(2, top)
scroll-behavior: smooth scroll-behavior: smooth
@ -25,7 +25,7 @@
display: none display: none
&::-webkit-scrollbar &::-webkit-scrollbar
height: 10px height: 1.0rem
width: 100% width: 100%
&::-webkit-scrollbar-thumb &::-webkit-scrollbar-thumb
@ -43,7 +43,7 @@
.galleria-item-type-video .galleria-item-type-video
&::after &::after
font-size: 2rem font-size: 3.2rem
.galleria-item .galleria-item
+border-radius +border-radius
@ -69,14 +69,14 @@
transform: translate(-50%, -50%) transform: translate(-50%, -50%)
width: initial width: initial
height: initial height: initial
gap: 1rem gap: 1.6rem
&.is-active &.is-active
background-color: var(--color-accent) background-color: var(--color-accent)
img img
clip-path: inset(0.2rem 0.2rem 0.2rem 0.2rem) clip-path: inset(.2rem .2rem .2rem .2rem)
img img
clip-path: inset(0 0 0 0) clip-path: inset(0 0 0 0)
@ -92,7 +92,7 @@
color: white color: white
content: '\e83e' content: '\e83e'
font-family: 'fontutti' font-family: 'fontutti'
font-size: 4rem font-size: 5.6rem
left: 50% left: 50%
top: 50% top: 50%
pointer-events: none pointer-events: none
@ -120,7 +120,7 @@
background: transparent background: transparent
border: none border: none
cursor: pointer cursor: pointer
font-size: 4rem font-size: 5.6rem
height: 100vh height: 100vh
max-width: 200px max-width: 200px
opacity: .6 opacity: .6
@ -143,7 +143,7 @@
&.btn-close &.btn-close
fill: white fill: white
font-size: 2rem font-size: 3.2rem
height: 20vh height: 20vh
max-height: 80px max-height: 80px
max-width: 80px max-width: 80px
@ -174,7 +174,7 @@
.indicator .indicator
background-color: rgba(black, .5) background-color: rgba(black, .5)
bottom: 1rem bottom: 1.6rem
color: white color: white
+fw-bold +fw-bold
min-width: 3ch min-width: 3ch
@ -184,10 +184,10 @@
text-align: right text-align: right
.caption .caption
backdrop-filter: blur(25px) backdrop-filter: blur(2.8rem)
background-color: rgba(black, .5) background-color: rgba(black, .5)
border-radius: var(--border-radius) border-radius: var(--border-radius)
bottom: 1rem bottom: 1.6rem
color: white color: white
+font-weight(500) +font-weight(500)
line-height: 1.5 line-height: 1.5
@ -195,7 +195,7 @@
+padding(2, x) +padding(2, x)
position: absolute position: absolute
text-align: center text-align: center
text-shadow: 1px 1px 0 black, 2px 2px 3px rgba(black, .5) text-shadow: .1rem .1rem 0 black, .2rem .2rem rgba(black, .5)
body.is-galleria-active body.is-galleria-active
overflow: hidden overflow: hidden

View File

@ -4,7 +4,7 @@
&.is-flatpage &.is-flatpage
--hero-max-height: 0 --hero-max-height: 0
--hero-min-height: 240px --hero-min-height: 24.0rem
background: transparent background: transparent
.hero-content .hero-content
@ -32,7 +32,7 @@
&::after &::after
background-color: currentColor background-color: currentColor
bottom: -1px bottom: -.1rem
content: '' content: ''
height: var(--border-width) height: var(--border-width)
left: 0 left: 0

View File

@ -52,7 +52,7 @@ $container-width: map-get($container-max-widths, 'xl')
.profile-avatar .profile-avatar
border-radius: 50% border-radius: 50%
pointer-events: none pointer-events: none
width: 26px width: 2.6rem
.search-highlight .search-highlight
background-color: var(--btn-color-bg) background-color: var(--btn-color-bg)