Skip to content

Instantly share code, notes, and snippets.

@magnificode
Created December 6, 2012 14:45
Show Gist options
  • Select an option

  • Save magnificode/4224922 to your computer and use it in GitHub Desktop.

Select an option

Save magnificode/4224922 to your computer and use it in GitHub Desktop.
A CodePen by dominicmagnifico. Search Pretty - searchbar rebound
<body>
<p>Rebound of <a href="http://dribbble.com/shots/845017-Searchbar?list=popular&offset=529" target="_blank">Searchbar </a> by <a href="http://dribbble.com/taurean" target="_blank">taurean</a>
<div class="wrapper">
<input type="text" placeholder="Is it me you're looking for?"/>
<div class="search">
<input type="submit" value="" />
<div class="icon"></div>
</div>
</div>
</body>
@import "compass";
body {
@include background-image(radial-gradient(145px 145px, #89ccf2 10px, #3aaae8 30px));
}
p {
color:#fefefe;
font: {
family: Helvetica, sans-serif;
}
}
a {
color:#2b2b2b;
font: {
family: Helvetica, sans-serif;
}
}
.wrapper {
margin:20px auto;
width:400px;
display:block;
input[type="text"] {
@include border-radius(5px);
@include box-shadow(rgba(47,47,47,.3) 0 0 15px inset);
border:3px solid #fff;
float:left;
font: {
family:Helvetica, sans-serif;
size:1em;
}
outline:none;
padding:20px 10px;
width:300px;
}
.search {
@include border-radius(0px 5px 5px 0px);
border:3px solid #fff;
float:left;
width:60px;height:58px;
margin:2px 0 0 -4px;
@include background-image(linear-gradient(#1dc9f0, #2692dd));
input {
@include border-radius(3px); background:url(http://dommagnifi.co/images/search.png) center no-repeat;
border:1px solid #2692dd;
display:block;
overflow:hidden;
float:left;
margin:0px 0 0 1px;
width:59px;height:58px;
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment