tweb/src/scss/partials/_emojiDropdown.scss
morethanwords 1322ad9079 Fix gifs blinking
Fix SW registration path
Some prealoders
Fix forwarded by channel to channel
2020-08-25 19:26:49 +03:00

355 lines
5.6 KiB
SCSS

.emoji-dropdown {
display: flex;
flex-direction: column;
width: 100%;
height: 282px;
background: #fff;
display: flex;
overflow: hidden;
flex: 0 0 auto;
@include respond-to(not-handhelds) {
position: absolute !important;
left: 0;
bottom: calc(85px);
width: 420px !important;
height: 420px;
box-shadow: 0px 5px 10px 5px rgba(16, 35, 47, 0.14);
z-index: 3;
border-radius: 10px;
transition: all 0.2s ease-out;
transform: scale(0);
transform-origin: 0 100%;
&.active {
transition: all 0.2s ease-in;
transform: scale(1);
}
}
> .menu-horizontal {
//font-weight: 500;
margin-top: 2px;
border: none;
}
.emoji-container {
width: 100%;
max-width: 100%;
overflow: hidden;
height: 100%;
}
.btn-icon {
color: #8d969c;
}
.emoji-tabs {
ul {
justify-content: center;
}
&-search {
position: absolute;
left: 0;
margin-left: 4px !important;
}
&-delete {
position: absolute;
right: 0;
margin-right: 4px !important;
}
}
.tabs-container {
/* width: 300%; */
height: 100%;
.category-title {
//position: sticky;
top: 0;
//font-size: .85rem;
font-size: 14px;
font-weight: 500;
color: $color-gray;
//background: linear-gradient(to bottom,#fff 0,rgba(255,255,255,.9) 60%,rgba(255,255,255,0) 100%);
z-index: 2;
//padding: .53333rem 6PX .66667rem;
padding: 12px 6px 6px 6px;
width: 100%;
}
.emoji-category {
//padding-top: 1px;
position: relative;
.category-items {
display: grid;
grid-column-gap: 2.44px;
grid-template-columns: repeat(9, 1fr);
font-size: 2.25rem;
line-height: 2.25rem;
> span {
margin: 0;
padding: 4px 4px;
line-height: inherit;
border-radius: 8px;
cursor: pointer;
user-select: none;
width: 42px;
height: 42px;
.emoji {
width: 100%;
height: 100%;
vertical-align: unset;
}
html.no-touch &:hover {
background-color: rgba(112, 117, 121, 0.08);
}
}
}
&:first-child {
//padding-top: 5px;
}
/* &::after {
content: "";
flex: auto;
} */
}
.sticker-category {
position: relative;
&::after {
content: "";
flex: auto;
}
/* &.not-full::after {
content: "";
flex: auto;
} */
.category-items {
width: 100%;
display: grid;
grid-template-columns: repeat(5, 1fr);
grid-column-gap: 1px;
> div {
width: 80px;
height: 80px;
display: flex;
align-items: center;
/* overflow: hidden; */
cursor: pointer;
user-select: none;
/* margin: 3.5px 0;
margin-right: 6.25px; */
padding: 1px 2.5px;
justify-content: center;
border-radius: 12px;
padding: 0;
@include respond-to(handhelds) {
// width: 64px;
//height: 64px;
height: 75px;
justify-self: center;
padding: 0;
min-width: 64px;
width: 100%;
}
html.no-touch &:hover {
background-color: rgba(112, 117, 121, 0.08);
}
/* &:nth-child(5n+5) {
margin-right: 0;
} */
> img {
max-width: 100%;
max-height: 100%;
animation: fadeIn .2s ease forwards;
}
}
}
}
> div {
min-height: 100%;
/* display: flex; */
flex-direction: column;
height: 100%;
}
.emoticons-content {
flex: 1;
padding: 0;
}
.scrollable {
padding: 0 10px;
}
}
.emoji-padding.active {
@include respond-to(handhelds) {
.menu-horizontal li {
flex: unset;
padding: 0;
}
.category-items > span {
width: 40px;
height: 40px;
justify-self: center;
}
.category-title {
padding: 12px 6px 6px 10px;
}
.scrollable {
padding: 0;
}
.emoji-category .category-items {
grid-column-gap: unset;
grid-template-columns: repeat(8, 1fr);
}
}
}
.emoji-padding, .stickers-padding {
.menu-horizontal {
height: 48px;
border-bottom: none;
padding: 2px 2px 2px 2px;
width: 100%;
box-shadow: 0px 1px 5px -1px rgba(0, 0, 0, 0.21);
z-index: 4;
li {
margin: 0;
}
}
}
.menu-horizontal {
li {
border-radius: 50%;
}
}
#content-stickers {
.scrollable {
padding: 0px 5px 0;
}
}
.menu-horizontal {
width: 100%;
height: 48px;
box-shadow: 0px -2px 5px -1px rgba(0, 0, 0, 0.21);
li {
font-size: 1.5rem;
margin: 0 12px;
width: 48px;
height: 48px;
line-height: 48px;
display: flex;
align-items: center;
flex: 0 0 auto;
}
}
.stickers-padding {
&.active {
.scrollable {
padding: 0;
box-shadow: 0px 1px 5px -1px rgba(0, 0, 0, 0.21);
}
.menu-horizontal {
box-shadow: none;
& li {
height: 48px;
width: 48px;
padding: 0;
margin-right: 1px;
margin-left: 1px;
}
}
}
.menu-wrapper {
padding: 0;
height: 48px;
max-width: 100%;
//border-top: 1px solid $lightgrey;
}
li {
/* width: calc(100% / 7); */
flex: 0 0 auto;
&.active {
&:not(.tgico-recent) {
background-color: rgba(112, 117, 121, 0.08);
}
}
> canvas, > img {
//padding: .75rem;
padding: 8px;
max-width: 100%;
max-height: 100%;
width: 100%;
height: 100%;
}
}
}
#content-gifs {
.gifs-masonry {
display: flex;
flex-wrap: wrap;
> .gif {
flex: 1 0 auto;
max-width: 100%;
height: 100px;
margin: 2.5px;
cursor: pointer;
//background: #000;
position: relative;
video, img {
object-fit: cover;
width: 100%;
height: 100%;
}
img {
position: absolute;
left: 0;
top: 0;
}
}
}
}
}