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 and YUMmy_Bacon5 like this
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;
}
Edited by the author 1 year ago
CyanWes, YUMmy_Bacon5, and Walgrey like this
Canada

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

CyanWes and YUMmy_Bacon5 like this
Estonia

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

#app :is(.object-cover) {object-fit: contain;}
CyanWes and YUMmy_Bacon5 like this
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.)

Edited by the author 1 year ago
YUMmy_Bacon5 and CyanWes like this
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, and YUMmy_Bacon5 like this
Canada

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

Indrek, CyanWes, and YUMmy_Bacon5 like this
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.

Edited by the author 1 year ago
CyanWes, Walgrey, and YUMmy_Bacon5 like this
Estonia

Can you give a user pfps example?

Finland

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

YUMmy_Bacon5 likes this