UNPKG

lightmeter

Version:

A simple LightMeter UI widget for pinhole cameras

96 lines (78 loc) 1.1 kB
@import 'normalize.css/normalize'; body { font-family: sans-serif; margin: 0; padding: 0; color: #fff; background: #333; } .ui-container, .ui { height: 100vh; width: 100vw; } .component { box-sizing: border-box; font-size: 4rem; height: 30vh; line-height: 30vh; padding: 2vh; text-align: center; } .msg { font-size: 4rem; } .unit { font-size: 2rem; } .component > * { display: inline-block; vertical-align: middle; } .icon-timer { width: 10vw; height: 10vw; fill: #fff; } .iso { transform: rotate(-90deg); } .bar { display: block; position: relative; margin: 0 10vw; height: 1vh; } .bar-outer, .bar-inner { position: absolute; left: 0; top: 0; height: 100%; } .bar-outer { width: 100%; background: rgba(0, 0, 0, 0.3); text-align: left; } .bar-inner { width: 100%; background: #fff; } button { border: none; background: none; } .credits { display: none; } .visuallyhidden { border: 0; clip: rect(0 0 0 0); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; width: 1px; }