Created
September 7, 2019 17:02
-
-
Save kaikiat/62df79f175b3b32d828d702e01af6bf9 to your computer and use it in GitHub Desktop.
This file contains 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
.searchBox { | |
position: absolute; | |
top: 50%; | |
left: 50%; | |
transform: translate(-50%,50%); | |
background: #2f3640; | |
height: 40px; | |
border-radius: 40px; | |
padding: 10px; | |
} | |
.searchBox:hover > .searchInput { | |
width: 240px; | |
padding: 0 6px; | |
} | |
.searchBox:hover > .searchButton { | |
background: white; | |
color : #2f3640; | |
} | |
.searchButton { | |
color: white; | |
float: right; | |
width: 40px; | |
height: 40px; | |
border-radius: 50%; | |
background: #2f3640; | |
display: flex; | |
justify-content: center; | |
align-items: center; | |
transition: 0.4s; | |
} | |
.searchInput { | |
border:none; | |
background: none; | |
outline:none; | |
float:left; | |
padding: 0; | |
color: white; | |
font-size: 16px; | |
transition: 0.4s; | |
line-height: 40px; | |
width: 0px; | |
} | |
@media screen and (max-width: 620px) { | |
.searchBox:hover > .searchInput { | |
width: 150px; | |
padding: 0 6px; | |
} | |
} | |
#myVideo { | |
position: fixed; | |
right: 0; | |
bottom: 0; | |
min-width: 100%; | |
min-height: 100%; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment