Here's an example of how to embed a Gist on GitHub Pages:
{% gist 5555251 %}
All you need to do is copy and paste the Gist's ID from the URL (here 5555251
), and add it to a gist
tag surrounded by {%
and %}
.
body { | |
height: 100%; | |
background: #262626; | |
} | |
.hamburger { | |
position: absolute; | |
top: 50%; | |
left: 50%; | |
margin: auto; | |
width: 60px; |
code, | |
pre { | |
background-color: rgba(0, 0, 0, 0.04); | |
border-radius: 3px; | |
font-family: Consolas, "Liberation Mono", Menlo, Courier, monospace; | |
padding: 3px; | |
} | |
code { | |
white-space: nowrap; |
@import url(http://fonts.googleapis.com/css?family=Open+Sans); | |
html { | |
background: #444; | |
box-sizing: border-box; | |
font-family: "Open Sans", sans-serif; | |
line-height: 1.4; | |
} | |
*, *:before, *:after { | |
box-sizing: inherit; | |
} |
var myString = 'EXAMPLEstring'; | |
var myNewString = myString.replace(/[A-Z]/g, '0'); | |
console.log(myNewString); | |
function replaceFunc (a, b, c) { | |
console.log(a, b, c); | |
return a.toLowerCase(); | |
} | |
var myOtherString = myString.replace(/[A-Z]/g, replaceFunc); |
html, body { | |
height: 100%; | |
margin: 0; | |
} | |
body { | |
-webkit-box-align: center; | |
-ms-flex-align: center; | |
align-items: center; | |
display: -webkit-box; |
/* This has been added to CSS Protips https://github.com/AllThingsSmitty/css-protips */ | |
/* The type font size in a responsive layout should be able to adjust with each viewport. | |
You can calculate the font size based on the viewport height and width using :root */ | |
:root { | |
font-size: calc(1vw + 1vh + .5vmin); | |
} | |
/* Now you can utilize the root em unit based on the value calculated by :root */ | |
body { |
Here's an example of how to embed a Gist on GitHub Pages:
{% gist 5555251 %}
All you need to do is copy and paste the Gist's ID from the URL (here 5555251
), and add it to a gist
tag surrounded by {%
and %}
.
/* base font size + viewport height + viewport width */ | |
h1 { | |
font-size: calc(2rem + 4vh + 4vw); | |
} | |
/* responsive font-size responsive */ | |
html { | |
font-size: calc(100% + .2vh + .2vw); | |
} |
<!-- https://mathiasbynens.be/notes/touch-icons#sizes --> | |
<!-- For the iPad mini and the first- and second-generation iPad (@1× display) on iOS ≤ 6: --> | |
<link rel="apple-touch-icon-precomposed" sizes="72x72" href="apple-touch-icon-72x72-precomposed.png"> | |
<!-- For the iPad mini and the first- and second-generation iPad (@1× display) on iOS ≥ 7: --> | |
<link rel="apple-touch-icon-precomposed" sizes="76x76" href="apple-touch-icon-76x76-precomposed.png"> | |
<!-- For iPhone with @2× display running iOS ≤ 6: --> | |
<link rel="apple-touch-icon-precomposed" sizes="114x114" href="apple-touch-icon-114x114-precomposed.png"> | |
<!-- For iPhone with @2× display running iOS ≥ 7: --> | |
<link rel="apple-touch-icon-precomposed" sizes="120x120" href="apple-touch-icon-120x120-precomposed.png"> |
.modal { | |
padding: 1rem 2rem; | |
max-width: 50%; | |
border-radius: 5px; | |
background-color: rgba(255, 255, 255, 0.95); | |
color: #333; | |
font-family: sans-serif; | |
line-height: 1.5; | |
} | |
.modal a { color: #bf0222; } |