Skip to content

Instantly share code, notes, and snippets.

@julienborrel
Created January 14, 2015 21:21
Show Gist options
  • Save julienborrel/a529f9224631476eeeda to your computer and use it in GitHub Desktop.
Save julienborrel/a529f9224631476eeeda to your computer and use it in GitHub Desktop.
The first commented line is your dabblet’s title
/**
* The first commented line is your dabblet’s title
*/
#pop:checked + .popos{
display: block;
}
.popos {
display: none;
height: 200px;
width: 300px;
background: salmon;
position: absolute;
top: calc(50% - 100px);
left: calc(50% - 150px);
}
.popos:before {
content:"";
position: fixed;
top: 0;
left: 0;
height: 100%;
width: 100%;
background: rgba(0,0,0,0.2);
z-index: -1;
}
<input id="pop" type="checkbox">
<div class="popos"></div>
// alert('Hello world!');
{"view":"split","fontsize":"100","seethrough":"","prefixfree":"1","page":"all"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment