Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Viewport Trickery (v1.1)
Search
Sponsored
·
SiteGround - Reliable hosting with speed, security, and support you can count on.
→
Jessica Stokes
September 09, 2015
Programming
350
0
Share
Viewport Trickery (v1.1)
Putting responsive UIs atop desktop-only sites.
Presented at MelbJS on 09/09/2015
Jessica Stokes
September 09, 2015
More Decks by Jessica Stokes
See All by Jessica Stokes
Viewport Trickery (v1.0)
ticky
0
61
Other Decks in Programming
See All in Programming
cloudnative conference 2026 flyle
azihsoyn
0
130
Agent Skills を社内で育てる仕組み作り
jackchuka
1
1.6k
tRPCの概要と少しだけパフォーマンス
misoton665
2
270
属人化しないコード品質の作り方_2026.04.07.pdf
muraaano
0
320
〜バイブコーディングを超えて〜 チームで実験し続けたAI駆動開発
tigertora7571
0
200
The Past, Present, and Future of Enterprise Java
ivargrimstad
0
200
Firefoxにコントリビューションして得られた学び
ken7253
2
160
AI-DLC Deep Dive
yuukiyo
9
5.6k
AI時代のエンジニアリングの原則 / Engineering Principles in the AI Era
haru860
0
1.1k
空間オーディオの活用
objectiveaudio
0
140
Cache-moi si tu peux : patterns et pièges du cache en production - Devoxx France 2026 - Conférence
slecache
0
340
アクセシビリティ試験の"その後"を仕組み化する
yuuumiravy
1
200
Featured
See All Featured
Groundhog Day: Seeking Process in Gaming for Health
codingconduct
0
170
Design of three-dimensional binary manipulators for pick-and-place task avoiding obstacles (IECON2024)
konakalab
0
420
The Pragmatic Product Professional
lauravandoore
37
7.3k
The Straight Up "How To Draw Better" Workshop
denniskardys
239
140k
Why Mistakes Are the Best Teachers: Turning Failure into a Pathway for Growth
auna
0
130
Unlocking the hidden potential of vector embeddings in international SEO
frankvandijk
0
790
HDC tutorial
michielstock
2
650
Mobile First: as difficult as doing things right
swwweet
225
10k
Raft: Consensus for Rubyists
vanstee
141
7.4k
Paper Plane (Part 1)
katiecoart
PRO
0
7.2k
Prompt Engineering for Job Search
mfonobong
0
300
Efficient Content Optimization with Google Search Console & Apps Script
katarinadahlin
PRO
1
540
Transcript
Viewport Trickery or, putting responsive UIs atop desktop-only sites v1.1
Jessica Stokes Cybersorceress jessicastokes.net | @ticky
None
Photo by Patrick Lauke (CC-BY-NC-ND; Cropped) https://flic.kr/p/bTt6P8
Bugherd • Point-and-click bug tracker • Lives inside other peoples’
websites • Needs to work on desktop and mobile sites • Responsive or not • On any device
Mobile browsers are liars! • …for kinda reasonable reasons •
position: fixed; // more-or-less useless on mobile
BugHerd Classic • Sidebar-based • Never handled mobile devices
None
New Bugherd • Simple layer over Stack, our task management
product • Just buttons and an issue report UI • Mobile-compatible, day 1
None
Solution? • Detect real zoom level and viewport position •
Scale and position the whole UI to suit
Viewporter • Tools for working with all sorts of browser
viewports • getScaleFactor getMobileScaleFactor for zoom detection • getViewportCoordinates for viewport location • Demo at https://macropodhq.github.io/viewporter https://github.com/macropodhq/viewporter | https://git.io/vOlJ9
PostCSS px to em • Makes your UI scalable •
Pixel measurements become ems • Base font size, 16px by default • Designers developers work in pixels for precision https://github.com/macropodhq/postcss-px-to-em | https://git.io/vOlUr
Jessica Stokes Cybersorceress jessicastokes.net | @ticky • Viewporter is available
at https://git.io/vOlJ9 • PostCSS px to em is available at https://git.io/vOlUr • Go make something cool with them!