Last active
December 12, 2019 02:34
-
-
Save rikas/b8afa56481329ff43d40c2b0342699bb to your computer and use it in GitHub Desktop.
Giphy Styles
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
#root > div { | |
display: flex; | |
height: 100vh; | |
} | |
.left-scene { | |
flex: 0 0 60%; | |
position: sticky; | |
display: flex; | |
flex-direction: column; | |
} | |
.form-search { | |
padding: 40px; | |
border: none; | |
font-size: 2.6em; | |
border-bottom: 2px solid #ccc; | |
opacity: .6; | |
} | |
.form-search:focus { | |
opacity: 1; | |
outline: none; | |
box-shadow: none; | |
} | |
.selected-gif { | |
text-align: center; | |
display: flex; | |
flex-grow: 1; | |
padding: 100px; | |
align-content: center; | |
justify-content: center; | |
height: calc(100vh - 232px); | |
background-image: url("data:image/svg+xml,%3Csvg width='52' height='26' viewBox='0 0 52 26' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%239C92AC' fill-opacity='0.22'%3E%3Cpath d='M10 10c0-2.21-1.79-4-4-4-3.314 0-6-2.686-6-6h2c0 2.21 1.79 4 4 4 3.314 0 6 2.686 6 6 0 2.21 1.79 4 4 4 3.314 0 6 2.686 6 6 0 2.21 1.79 4 4 4v2c-3.314 0-6-2.686-6-6 0-2.21-1.79-4-4-4-3.314 0-6-2.686-6-6zm25.464-1.95l8.486 8.486-1.414 1.414-8.486-8.486 1.414-1.414z' /%3E%3C/g%3E%3C/g%3E%3C/svg%3E"); | |
} | |
.selected-gif .gif { | |
max-width: 80%; | |
max-height: 80%; | |
margin: auto; | |
} | |
.right-scene { | |
flex: 0 0 40%; | |
background-color: #ecf0f1; | |
overflow: scroll; | |
} | |
.right-scene .gif-list { | |
column-count: 2; | |
column-gap: 5px; | |
padding: 5px; | |
} | |
.gif-list .gif { | |
width: 100%; | |
margin: 5px; | |
cursor: pointer; | |
} | |
.gif-list .gif:hover { | |
opacity: 0.6; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment