body { margin: 0; padding: 1em; font-family: 'Roboto Slab', serif; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; background-color: #5978fb; } a { color: #FFF; text-decoration: none; } .effects { overflow: hidden; line-height: 24px; font-size: 16px; color: #FFF; } .effects-do { float: left; margin-top: 1em; width: 360px; } .effects-do button { width: 60px; } .effects-do button:active { position: relative; top: 3px; -webkit-box-shadow: none; box-shadow: none; } .effects-do select { width: 200px; } .effects-text { float: left; margin-top: 1em; width: 420px; } .effects-text h3, .effects-text h4 { margin: 0; font-size: 18px; } .effects-text h4 { font-weight: normal; font-size: 12px; } .effects-text p { margin: 1em 0; } .effects-text p:last-child { margin-bottom: 0; } .button { display: inline-block; margin-right: 0.5em; padding: 0 0.5em; line-height: 2; vertical-align: middle; color: #fff; text-decoration: none; border: 1px solid #fff; border-radius: 3px; transition: background-color 0.3s, color 0.3s; } .button:hover { color: #5978fb; background-color: #FFF; } /** * select style * Copy from http://cssdeck.com/labs/styling-select-box-with-css3 */ .effects-do button, select { padding: 3px 10px; margin: 0; -webkit-border-radius:4px; -moz-border-radius:4px; border-radius:4px; -webkit-box-shadow: 0 3px 0 #ccc, 0 -1px #fff inset; -moz-box-shadow: 0 3px 0 #ccc, 0 -1px #fff inset; box-shadow: 0 3px 0 #ccc, 0 -1px #fff inset; background: #f8f8f8; color:#888; border:none; outline:none; display: inline-block; -webkit-appearance:none; -moz-appearance:none; appearance:none; cursor:pointer; font-size: 18px; } /* Targetting Webkit browsers only. FF will show the dropdown arrow with so much padding. */ @media screen and (-webkit-min-device-pixel-ratio:0) { select {padding-right:18px} } label { position:relative; } label:after { content:'<>'; font:11px "Consolas", monospace; color:#aaa; -webkit-transform:rotate(90deg); -moz-transform:rotate(90deg); -ms-transform:rotate(90deg); transform:rotate(90deg); right:8px; top:2px; padding:0 0 2px; border-bottom:1px solid #ddd; position:absolute; pointer-events:none; } label:before { content:''; right:6px; top:0px; width:20px; height:20px; background:#f8f8f8; position:absolute; pointer-events:none; display:block; }