/***************************************\ USER CUSTOM SEARCH FIELD STYLE \***************************************/ .search-field { display: block; width: 100%; height: 40px; padding: 0 10px; border: 1px solid lightgrey; border-radius: 5px; outline:0; } @media only screen and (min-device-width : 700px) { .search-field { width: inherit; } } /**************************************************************\ DEMO STYLE ONLY \**************************************************************/ /** * * { Box-sizing: Border-box } FTW * http://www.paulirish.com/2012/box-sizing-border-box-ftw/ * apply a natural box layout model to all elements, but allowing components to change */ html { box-sizing: border-box; } *, *:before, *:after { box-sizing: inherit; } body { padding: 40px 0 0 0; } input { font-size: 16px; background: lightyellow; } p { line-height: 1.2em; } li { margin-top: 5px; text-align: left; } hr { margin: 25px 0; } .wrapper { max-width: 1200px; margin: auto; padding: 0 5px; font-family: sans-serif; font-size: 16px; } @media only screen and (min-device-width : 700px) { .wrapper { padding: 0 20px; } } .table { border-color: #d1d1d1; text-align: center; } .table th, .table td { width: 500px; padding: 10px 5px; } .target { background: aliceblue; padding: 20px 10px; margin: 25px 0 50px; border-radius: 10px; } @media screen and (min-width: 700px) { .target { padding: 50px 100px; } } .option-title { width: 100%; height: 30px; margin: 1em 0; line-height: 30px; float: left; } @media only screen and (min-device-width : 700px) { .option-title { width: auto; } } .switch-wrap { position: relative; width: 100%; height: 30px; margin: 1em 0; float: left; } @media only screen and (min-device-width : 700px) { .switch-wrap { width: 185px; } } .switch { border: none; position: absolute; top: 0; width: 55px; height: 30px; left: -27.5px; margin-left: 50%; border-radius: 15px; box-shadow: 0px 0px 0px 1px lightgrey; background: transparent; color: lightgrey; outline:none; -webkit-transition: all 0.2s ease; -moz-transition: all 0.2s ease; -ms-transition: all 0.2s ease; -o-transition: all 0.2s ease; transition: all 0.2s ease; } .switch:before { content: 'OFF'; position: absolute; width: 35px; height: 30px; top: 0; left: -45px; line-height: 30px; text-align: right; } .switch:after { content: 'ON'; position: absolute; width: 35px; height: 30px; top: 0; right: -45px; line-height: 30px; text-align: left; } .switch.activeColr { background: #4CD964; box-shadow: 0px 0px 0px 1px #4CD964; -webkit-transition: all 0.2s ease; -moz-transition: all 0.2s ease; -ms-transition: all 0.2s ease; -o-transition: all 0.2s ease; transition: all 0.2s ease; } .gitHub { position: absolute; width: 75px; height: 75px; top: 0; right: 0; border: 0; } @media screen and (min-width: 700px) { .gitHub { width: 149px; height: 149px; } } .btn { display: block; position: absolute; width: 30px; height: 30px; top: 0px; left: 0px; border-radius: 15px; background: white; box-shadow: 0px 0px 0px 1px lightgrey, 1px 4px 5px 1px grey; -webkit-transition: all 0.2s ease; -moz-transition: all 0.2s ease; -ms-transition: all 0.2s ease; -o-transition: all 0.2s ease; transition: all 0.2s ease; } .btn.translateH { left: 25px !important; box-shadow: 0px 0px 0px 1px #4CD964, 1px 4px 5px 1px grey; -webkit-transition: all 0.2s ease; -moz-transition: all 0.2s ease; -ms-transition: all 0.2s ease; -o-transition: all 0.2s ease; transition: all 0.2s ease; } /* Code Styles */ pre { white-space: pre-wrap; white-space: -moz-pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word; overflow: auto; word-wrap: normal; white-space: pre; } code { font-family: Courier, 'New Courier', monospace; font-size: 12px; } .code { border-radius: 5px; -moz-border-radius: 5px; -webkit-border-radius: 5px; margin: 1em 0; } .code { background-color: #FFFFFF; color: grey; } /* * HTML5 Boilerplate helper class * * Clearfix: contain floats * * For modern browsers * 1. The space content is one way to avoid an Opera bug when the * `contenteditable` attribute is included anywhere else in the document. * Otherwise it causes space to appear at the top and bottom of elements * that receive the `clearfix` class. * 2. The use of `table` rather than `block` is only necessary if using * `:before` to contain the top-margins of child elements. */ .clearfix:before, .clearfix:after { content: " "; /* 1 */ display: table; /* 2 */ } .clearfix:after { clear: both; } /* * HTML5 Boilerplate helper class * * Hide visually and from screenreaders, but maintain layout */ .invisible { visibility: hidden; }