Created
November 29, 2019 12:50
-
-
Save prof3ssorSt3v3/1dd151e1e6a16ec0cba2f43857e94091 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
* { | |
padding: 0; | |
margin: 0; | |
box-sizing: border-box; | |
} | |
html { | |
font-size: 20px; | |
line-height: 1.7; | |
} | |
body { | |
padding: 0; | |
margin: 0; | |
min-height: 100vh; | |
font-family: sans-serif; | |
} | |
header h1 { | |
font-size: 10rem; | |
color: #ddd; | |
line-height: 1; | |
writing-mode: vertical-lr; | |
text-transform: capitalize; | |
position: fixed; | |
} | |
main { | |
width: 100vw; | |
min-height: 100vh; | |
margin: 0; | |
padding: 0; | |
} | |
.page { | |
box-sizing: border-box; | |
min-height: 100vh; | |
width: 100vw; | |
position: absolute; | |
top: 0; | |
left: 0; | |
overflow: hidden; | |
display: flex; | |
flex-direction: column; | |
justify-content: center; | |
align-items: center; | |
font-size: 2rem; | |
opacity: 0; | |
z-index: 1; | |
transition: opacity 0.4s linear; | |
} | |
.page:last-child { | |
border: none; | |
} | |
.page.active { | |
opacity: 1; | |
z-index: 100; | |
} | |
#txtSearch { | |
font-size: 3rem; | |
height: 5rem; | |
line-height: 1; | |
margin: 1rem 0 1rem 1rem; | |
display: inline-block; | |
width: 80%; | |
padding: 0.5rem 2rem; | |
border: 1px solid cornflowerblue; | |
} | |
input:active, | |
input:focus, | |
button:active, | |
button:focus { | |
outline: none; | |
} | |
#btnSearch { | |
height: 5rem; | |
margin: 1rem 1rem 1rem 0; | |
padding: 0.5rem 2rem; | |
display: inline-block; | |
background-color: #eee; | |
border: 1px solid cornflowerblue; | |
} | |
#btnSearch img { | |
height: 80%; | |
} | |
#search .content { | |
flex-direction: row; | |
justify-content: center; | |
align-items: center; | |
} | |
.content { | |
width: 90vw; | |
display: flex; | |
flex-direction: column; | |
justify-content: flex-start; | |
align-items: center; | |
} | |
.content div { | |
border-bottom: 2px solid #aaa; | |
cursor: pointer; | |
margin: 2rem 0; | |
flex-basis: 100%; | |
} | |
.content h2 { | |
font-size: 2rem; | |
color: cornflowerblue; | |
} | |
.content div p { | |
text-align: center; | |
font-weight: 300; | |
font-size: 1rem; | |
} | |
.content span.name { | |
color: #333; | |
} | |
.content span.char { | |
color: #777; | |
} | |
#search .content.done { | |
transform: translateY(-200vh); | |
transition: transform 0.5s linear; | |
} | |
p.avatar span { | |
vertical-align: top; | |
} | |
p.avatar img { | |
border-radius: 50%; | |
object-fit: contain; | |
width: 100px; | |
height: 100px; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment