Skip to content

Instantly share code, notes, and snippets.

View halfninja's full-sized avatar
🌶️
spicy code

Nick Howes halfninja

🌶️
spicy code
View GitHub Profile
@halfninja
halfninja / dabblet.css
Created October 20, 2018 18:02 — forked from LeaVerou/dabblet.css
Progress bar that changes width AND color using a CSS variable
/**
* Progress bar that changes width AND color using a CSS variable
*/
div {
display: flex;
height: .8em;
margin: 1em 0;
background: hsl(220,10%,80%);
}
@halfninja
halfninja / dabblet.css
Created October 20, 2018 18:02 — forked from LeaVerou/dabblet.css
Progress bar that changes width AND color using a CSS variable
/**
* Progress bar that changes width AND color using a CSS variable
*/
div {
display: flex;
height: .8em;
margin: 1em 0;
background: hsl(220,10%,80%);
}
@halfninja
halfninja / gist:4037878
Created November 8, 2012 09:55 — forked from ctaylor/gist:4037872
Hide the address bar in a fullscreen iPhone or Android web app
<!DOCTYPE html>
<meta charset=utf-8>
<meta name=viewport content="width=device-width, initial-scale=1, maximum-scale=1">
<meta name=apple-mobile-web-app-capable content=yes>
<meta name=apple-mobile-web-app-status-bar-style content=black>
<title>Test fullscreen</title>
<style>
html, body {
margin: 0;
padding: 0;