Created
June 25, 2018 13:33
-
-
Save NaserKhoshfetrat/fcddbcfed541ad5301bf49d2c3bbcecb to your computer and use it in GitHub Desktop.
search box
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="break15px">   </div> | |
<div id="content" class="bg_form div_row"> | |
<asp:Button CssClass="button_highlighted" ID="btn_create_event" runat="server" Text="ایجاد پیامک مناسبت" /> | |
<div class="searchWrap div_two_column"> | |
<div class="search"> | |
<input type="text" class="searchTerm" placeholder="جستجو ؟ " /> | |
<button type="submit" class="searchButton"> | |
<i class="fa fa-search"></i> | |
</button> | |
</div> | |
</div> | |
</div> | |
/*#region searchbox */ | |
@import url(https://fonts.googleapis.com/css?family=Open+Sans); | |
serachBody { | |
background: #f2f2f2; | |
font-family: 'Open Sans', sans-serif; | |
} | |
.search { | |
width: 50%; | |
position: relative; | |
float: left; | |
width: 100%; | |
margin-left: 10px; | |
} | |
.searchTerm { | |
float: left; | |
width: 25%; | |
border: 3px solid #00B4CC; | |
padding: 5px; | |
height: 36px; | |
border-radius: 5px; | |
outline: none; | |
color: #6c6c6c; | |
margin-left: 8%; | |
background-color: #90c5d7; | |
} | |
.searchTerm:focus { | |
transition: width 1s; | |
color: #008CBA; | |
width: 100%; | |
} | |
.searchButton { | |
position: absolute; | |
right: 93%; | |
width: 40px; | |
height: 36px; | |
border: 1px solid #00B4CC; | |
background: #00B4CC; | |
text-align: center; | |
my color: #fff; | |
border-radius: 5px; | |
cursor: pointer; | |
font-size: 20px; | |
margin-right: 1px; | |
} | |
/*Resize the wrap to see the search bar change!*/ | |
.serachWrap { | |
width: 30%; | |
position: absolute; | |
top: 50%; | |
left: 50%; | |
transform: translate(-50%, -50%); | |
} | |
/*#endregion */ | |
.div_two_column { | |
float: left; | |
width: 50%; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment