There doesn’t appear to be a way to figure out the aspect ratio of the viewport in CSS. (CSS `calc()` divisions require a number as right-hand argument, so I can’t just divide two lengths like 1vw and 1vh).
Gotta resort to JavaScript, sigh.
There doesn’t appear to be a way to figure out the aspect ratio of the viewport in CSS. (CSS `calc()` divisions require a number as right-hand argument, so I can’t just divide two lengths like 1vw and 1vh).
Gotta resort to JavaScript, sigh.
GNU social JP is a social network, courtesy of GNU social JP管理人. It runs on GNU social, version 2.0.2-dev, available under the GNU Affero General Public License.
All GNU social JP content and data are available under the Creative Commons Attribution 3.0 license.