mirror of
https://github.com/Derpy-Leggies/OnlyLegs.git
synced 2025-06-29 19:46:16 +00:00
265 lines
No EOL
5.4 KiB
Sass
265 lines
No EOL
5.4 KiB
Sass
.info-container
|
|
padding: 0.5rem 0 0.5rem 0.5rem
|
|
width: 27rem
|
|
position: absolute
|
|
top: 0
|
|
left: 0
|
|
bottom: 0
|
|
background-image: linear-gradient(90deg, var(--background-shade), transparent)
|
|
overflow-y: auto
|
|
transition: left 0.3s cubic-bezier(0.76, 0, 0.17, 1)
|
|
z-index: 2
|
|
-ms-overflow-style: none
|
|
scrollbar-width: none
|
|
&::-webkit-scrollbar
|
|
display: none
|
|
|
|
&.collapsed
|
|
left: -27rem
|
|
@media (max-width: 1100px)
|
|
.info-container
|
|
padding: 0
|
|
width: 100%
|
|
position: relative
|
|
background: none
|
|
// While probably not the best way of doing this
|
|
// Not bothered to fight with CSS today
|
|
&.collapsed
|
|
left: 0
|
|
|
|
details
|
|
margin-bottom: 0.5rem
|
|
padding: 0.5rem
|
|
display: flex
|
|
flex-direction: column
|
|
background-color: var(--background-300)
|
|
color: var(--foreground-white)
|
|
border-radius: var(--rad)
|
|
overflow: hidden
|
|
|
|
summary
|
|
height: 1.5rem
|
|
display: flex
|
|
flex-direction: row
|
|
justify-content: flex-start
|
|
align-items: center
|
|
position: relative
|
|
color: var(--primary)
|
|
|
|
> i
|
|
margin-right: 0
|
|
font-size: 1.25rem
|
|
|
|
&.collapse-indicator
|
|
transition: transform 0.15s cubic-bezier(.79, .14, .15, .86)
|
|
|
|
h2
|
|
margin: 0 0.5rem
|
|
font-size: 1.1rem
|
|
font-weight: 500
|
|
|
|
p
|
|
margin: 0
|
|
padding: 0
|
|
|
|
font-size: 1rem
|
|
font-weight: 400
|
|
|
|
text-overflow: ellipsis
|
|
overflow: hidden
|
|
|
|
.link
|
|
margin: 0
|
|
padding: 0
|
|
|
|
color: var(--primary)
|
|
|
|
cursor: pointer
|
|
text-decoration: none
|
|
|
|
&:hover
|
|
text-decoration: underline
|
|
|
|
.pfp
|
|
width: 1.1rem
|
|
height: 1.1rem
|
|
|
|
border-radius: calc(var(--rad) / 2)
|
|
|
|
object-fit: cover
|
|
|
|
table
|
|
margin: 0
|
|
padding: 0
|
|
|
|
width: 100%
|
|
|
|
overflow-x: hidden
|
|
border-collapse: collapse
|
|
|
|
tr
|
|
white-space: nowrap
|
|
|
|
td
|
|
padding-bottom: 0.5rem
|
|
|
|
max-width: 0
|
|
|
|
font-size: 1rem
|
|
font-weight: 400
|
|
|
|
vertical-align: top
|
|
|
|
> *
|
|
vertical-align: top
|
|
|
|
td:first-child
|
|
padding-right: 0.5rem
|
|
|
|
width: 50%
|
|
|
|
overflow: hidden
|
|
text-overflow: ellipsis
|
|
white-space: nowrap
|
|
td:last-child
|
|
width: 50%
|
|
|
|
white-space: normal
|
|
word-break: break-word
|
|
|
|
tr:last-of-type td
|
|
padding-bottom: 0
|
|
|
|
&[open]
|
|
summary
|
|
margin-bottom: 0.5rem
|
|
|
|
> i.collapse-indicator
|
|
transform: rotate(90deg)
|
|
|
|
&:last-of-type
|
|
margin-bottom: 0
|
|
|
|
.img-colours
|
|
width: 100%
|
|
|
|
display: flex
|
|
gap: 0.5rem
|
|
|
|
button
|
|
margin: 0
|
|
padding: 0
|
|
|
|
width: 1.6rem
|
|
height: 1.6rem
|
|
|
|
display: flex
|
|
justify-content: center
|
|
align-items: center
|
|
|
|
border-radius: calc(var(--rad) / 2)
|
|
border: none
|
|
|
|
i
|
|
font-size: 1rem
|
|
opacity: 0
|
|
transition: opacity 0.15s ease-in-out
|
|
|
|
&:hover i
|
|
opacity: 1
|
|
|
|
.img-groups
|
|
width: 100%
|
|
display: flex
|
|
flex-wrap: wrap
|
|
gap: 0.5rem
|
|
|
|
.image-container
|
|
padding: 0.5rem
|
|
position: absolute
|
|
top: 0
|
|
left: 27rem
|
|
right: 0
|
|
bottom: 0
|
|
z-index: 2
|
|
transition: left 0.3s cubic-bezier(0.76, 0, 0.17, 1), padding 0.3s cubic-bezier(0.76, 0, 0.17, 1)
|
|
|
|
picture
|
|
margin: auto
|
|
width: 100%
|
|
height: 100%
|
|
display: flex
|
|
overflow: hidden
|
|
|
|
img
|
|
margin: auto
|
|
padding: 0
|
|
width: auto
|
|
height: auto
|
|
max-width: 100%
|
|
max-height: 100%
|
|
object-fit: contain
|
|
object-position: center
|
|
border-radius: var(--rad)
|
|
|
|
transition: border-radius 0.3s cubic-bezier(0.76, 0, 0.17, 1)
|
|
|
|
&.collapsed
|
|
padding: 0
|
|
left: 0
|
|
|
|
picture img
|
|
border-radius: 0
|
|
@media (max-width: 1100px)
|
|
.image-container
|
|
padding: 0 0 0.5rem 0
|
|
position: relative
|
|
left: 0
|
|
|
|
picture
|
|
margin: 0 auto
|
|
max-height: 69vh
|
|
|
|
img
|
|
max-height: 69vh
|
|
|
|
&.collapsed
|
|
padding: 0 0 0.5rem 0
|
|
left: 0
|
|
|
|
picture img
|
|
border-radius: var(--rad)
|
|
|
|
.background
|
|
position: absolute
|
|
inset: 0
|
|
background-color: var(--background-300)
|
|
background-image: linear-gradient(to right, var(--background-400) 15%, var(--background-200) 35%, var(--background-400) 50%)
|
|
background-size: 1000px 640px
|
|
animation: imgLoading 1.8s linear infinite forwards
|
|
user-select: none
|
|
overflow: hidden
|
|
z-index: 1
|
|
|
|
img
|
|
position: absolute
|
|
inset: 0
|
|
width: 100%
|
|
height: 100%
|
|
background-color: var(--foreground-white)
|
|
filter: blur(3rem) saturate(1.2) brightness(0.7)
|
|
transform: scale(1.1)
|
|
object-fit: cover
|
|
object-position: center center
|
|
|
|
&::after
|
|
content: ''
|
|
position: absolute
|
|
inset: 0
|
|
width: 100%
|
|
height: 100%
|
|
z-index: +1
|
|
|
|
@media (max-width: 1100px)
|
|
#fullscreenImage
|
|
display: none |