Skip to content

Instantly share code, notes, and snippets.

@codebubb
Created November 5, 2020 20:56
Show Gist options
  • Save codebubb/f38205875ed98e3f982f6cca9e03f8a3 to your computer and use it in GitHub Desktop.
Save codebubb/f38205875ed98e3f982f6cca9e03f8a3 to your computer and use it in GitHub Desktop.
React YouTube Viewer
body {
font-family: "Commissioner", sans-serif;
font: "Commissioner", sans-serif;
}
.app-container {
padding: 50px;
}
.search {
input {
padding: 10px;
font-family: "Commissioner", sans-serif;
border-radius: 0;
border: 1px solid rgb(228, 10, 10);
width: 200px;
&:focus {
outline: 1px solid rgb(179, 2, 2);
}
}
button {
padding: 10px;
margin-left: 10px;
background-color: rgb(228, 10, 10);
color: white;
border: 0;
cursor: pointer;
font-family: "Commissioner", sans-serif;
&:hover,
&:disabled {
background-color: rgb(179, 2, 2);
}
}
&__errors {
margin-top: 10px;
color: rgb(228, 10, 10);
}
}
.videos {
display: flex;
flex-wrap: wrap;
&__item {
width: 200px;
margin: 10px;
transition: transform 0.3s ease;
box-shadow: 0 0 16px 4px rgba(0, 0, 0, 0.2);
&:hover {
transform: scale(1.02) rotate(3deg);
}
&:nth-child(odd):hover {
transform: scale(1.02) rotate(-3deg);
}
}
}
.video {
&__image {
a {
display: block;
width: 100%;
height: 100%;
}
img {
width: 100%;
height: 100%;
}
}
&__footer {
display: flex;
align-items: center;
font-size: 12px;
padding: 10px;
height: 50px;
p {
margin: 0;
font-weight: 800;
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment