Custom CSS for the new site update?
1 year ago
Canada

Was wondering if anyone has any CSS I could use for the new site update. Everything is mostly fine, I'm just sick of the the forced rectangular game covers and was wondering if anyone had anything to get revert that.

CyanWes 그리고 YUMmy_Bacon5 이것을 좋아함
Finland

i tried but i couldnt figure out how to have the the images container to get its height and width automatically.

for the image its just

.object-cover {
  width: 144px !important;
  height: auto !important;
  max-height: 204px !important;
  aspect-ratio: auto;
}

i found that the following line applied for ".aspect-cover" controls the size of the container but if i made it "auto" it just makes the height 0px so the whole image disappears and even if i then made the height manually be auto (:D) its still 0px.

aspect-ratio: 32/45;

though i use the following to unround the dumb rounded pfps

a.rounded-full, .x-focus-outline-offset.relative.block.aspect-square.overflow-hidden.rounded-full.shadow-sm.shadow-black\/20.h-8.w-8 {
  border-radius: 0px;
}
편집한 사람 작성자 1 year ago
CyanWes, YUMmy_Bacon5, 그리고 Walgrey 이것을 좋아함
Canada

Thanks for trying, hopefully there's another solution for this soon. The unrounded pfps work great though

CyanWes 그리고 YUMmy_Bacon5 이것을 좋아함
Estonia

There's one line of CSS that fixes it. :)

#app :is(.object-cover) {object-fit: contain;}
CyanWes 그리고 YUMmy_Bacon5 이것을 좋아함
Finland

There's one line of CSS that fixes it. :)

#app :is(.object-cover) {object-fit: contain;}

that does essentially the same thing my css did. my problem is that i dont like the picture being a different size than the box its in.

(the old way of quoting posts was way better.)

편집한 사람 작성자 1 year ago
YUMmy_Bacon5 그리고 CyanWes 이것을 좋아함
Estonia

Maybe this helps getting towards the look you want.

    #app :is(.object-cover) {
        position: unset;
        object-fit: contain;
    }
    #app :is(.aspect-cover) {
        aspect-ratio: unset;
    }
    #app :is(.aspect-cover) > img {
        position: inherit !important;
    }
SioN, CyanWes, 그리고 YUMmy_Bacon5 이것을 좋아함
Canada

THIS IS PERFECT!!! YES!!! Exactly what I've been looking for! Thank you so much!!!!! :D

Indrek, CyanWes, 그리고 YUMmy_Bacon5 이것을 좋아함
Finland

yes thats good. now only if the button the cover and the game info are would be good height instead of having all that empty space it would be perfect.

edit: seems like that css breaks user pfps in the forums.

편집한 사람 작성자 1 year ago
CyanWes, Walgrey, 그리고 YUMmy_Bacon5 이것을 좋아함
Estonia

Can you give a user pfps example?

Finland

only custom css i have active in the screenshots is yours.

YUMmy_Bacon5 이것을 좋아함