This tries to force all websites to use responsive design a.k.a. "reflow" mode at zoom levels higher than 100%.
Force Responsive Design (a.k.a. "Reflow") mode by donnyblack
Details
Authordonnyblack
LicenseMIT License Copyright (c) 2023 Donny Black. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Category*://*/*
Created
Updated
Size706 B
Statistics
Learn how we calculate statistics in the FAQ.
Failed to fetch stats.
Description
Notes
Credit to Anthropic and OpenAI, as I bounced the script between Claude+ and GPT-4 to get it where it is now.
Source code
/* ==UserStyle==
@name Catch-All Responsive Design
@namespace @ISO-Dommy-Mommy@lemmy.genysis.xyz
@version 1.0.0
==/UserStyle== */
@viewport {
width: device-width;
}
html {
font-size: 100%;
}
body {
width: 100%;
height: 100%;
margin: 0;
padding: 0;
font-size: 1em;
line-height: 1.5;
}
.container {
max-width: 100%;
margin: 0 auto;
padding: 0 1em;
}
img, embed, object, video {
max-width: 100%;
height: auto;
}
@media (min-width: 576px) {
html {
font-size: 125%;
}
}
@media (min-width: 768px) {
html {
font-size: 150%;
}
}
@media (min-width: 992px) {
html {
font-size: 175%;
}
}