chore: Create a resuable component for selecting a channel (#6241)

This commit is contained in:
Pranav Raj S
2023-01-11 21:13:51 -08:00
committed by GitHub
parent ad782e450e
commit 9bbadc2388
17 changed files with 84 additions and 102 deletions

View File

@@ -1,52 +0,0 @@
$channel-hover-color: rgba(0, 0, 0, 0.1);
.channels {
margin-top: $space-medium;
.inactive {
filter: grayscale(100%);
}
.channel {
@include flex;
@include background-white;
@include border-light;
cursor: pointer;
flex-direction: column;
margin: -1px;
padding: $space-normal $zero;
transition: all 0.2s ease-in;
&:last-child {
@include border-light;
}
&:hover {
border: 1px solid $primary-color;
box-shadow: 0 2px 8px $channel-hover-color;
z-index: 999;
}
&.disabled {
opacity: 0.6;
}
img {
margin: $space-normal auto;
width: 50%;
}
.channel__title {
color: $color-body;
font-size: var(--font-size-default);
text-align: center;
text-transform: capitalize;
}
p {
color: $medium-gray;
width: 100%;
}
}
}