Skip to content

Instantly share code, notes, and snippets.

@jemgold
Created February 8, 2012 16:01
Show Gist options
  • Save jemgold/1770684 to your computer and use it in GitHub Desktop.
Save jemgold/1770684 to your computer and use it in GitHub Desktop.
Untitled
body {
font-family:"Helvetica Neue", Helvetica, Arial, sans-serif;
font-size:13px;
color:#333;
}
#mask {
position:absolute;
background:black;
width:100%;
height:100%;
opacity:.6;
z-index:10;
}
#popup {
position:relative;
background:#fff;
z-index:50;
width:460px;
padding:20px;
margin:auto;
top:50px;
box-shadow: 0px 1px 10px rgba(0,0,0,.25);
}
input {
font-family:Helvetica Neue;
color:#333;
font-size:16px;
background:#f5f5f5;
padding:10px;
width:220px;
border-radius: 2px;
box-shadow: inset 0px 2px 3px rgba(0,0,0,.2);
outline: 0;
-webkit-appearance: none;
border:1px solid #ccc;
}
button {
border-radius:2px;
border:0;
padding:10px 20px;
font-family:Helvetica Neue;
font-weight:700;
font-size:13px;
background:#e6e6e6;
color:#333;
transition:.3s ease margin;
}
button:active {
position:relative;
top:1px;
margin-top:3px;
}
button.primary {
background-color:#e54040;
color:#fff;
}
<!-- content to be placed inside <body>…</body> --><div id="mask"></div>
<div id="popup" class="animated">
<header>Header</header>
<input type="text" />
<button class="primary">Primary</button>
<button class="secondary">Secondary</button>
</div>
{"view":"split-vertical","prefixfree":"1","page":"css"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment