Skip to content

pr0gramm.com - fixed height images and videos by NotJ3st3r

Screenshot of pr0gramm.com - fixed height images and videos

Details

AuthorNotJ3st3r

LicenseGNU General Public License v3.0

Categorypr0gramm.com

Created

Updated

Size895 B

Statistics

Learn how we calculate statistics in the FAQ.

Failed to fetch stats.

Description

Changes the variable height of images and videos to a fixed height of 80% screen height.

Notes

Please raise any issues and improvement suggestions in the GitHub repository.

Source code

/* ==UserStyle==
@name         pr0gramm.com - fixed height images and videos
@version      20230601.11.56
@namespace    userstyles.world/user/NotJ3st3r
@description  Changes the variable height of images and videos to a fixed height of 80% screen height.
@author       NotJ3st3r
@license      GNU General Public License v3.0
==/UserStyle== */

@-moz-document domain("pr0gramm.com") {
:root{
    --height: 80vh;
}

.item-image-wrapper{
    display: grid !important;
    grid-template-columns: 1fr auto 1fr;
}

.item-image{
    max-height: var(--height) !important;
    grid-column: 2 / span 1 !important;
    width: auto !important;
}

.item-image-actual{
    max-height: var(--height) !important;
    position: static !important;
}

img, video{
    width: auto !important;
}

.video-controls{
    grid-column: 2 / span 1 !important;    
    width: 100% !important;
    justify-self: stretch;
}
}

Reviews

No reviews yet.