Telegram Web K with changes to work inside I2P
https://web.telegram.i2p/
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
189 lines
3.6 KiB
189 lines
3.6 KiB
.menu-horizontal-div { |
|
width: 100%; |
|
display: flex; |
|
justify-content: space-around; |
|
align-items: center; |
|
position: relative; |
|
z-index: 2; |
|
flex-direction: row; |
|
|
|
color: $color-gray; |
|
border-bottom: 1px solid $lightgrey; |
|
position: relative; |
|
|
|
&-item { |
|
display: inline-block; |
|
padding: .75rem 1rem; |
|
cursor: pointer; |
|
text-align: center; |
|
flex: 1 1 auto; |
|
//flex: 0 0 auto; |
|
//overflow: hidden; |
|
user-select: none; |
|
// font-size: 1rem; |
|
font-size: 14px; |
|
font-weight: 500; |
|
position: relative; |
|
border-top-left-radius: 6px; |
|
border-top-right-radius: 6px; |
|
transition: none !important; |
|
|
|
@include hover() { |
|
background-color: transparent; |
|
|
|
&:hover { |
|
background-color: var(--color-gray-hover); |
|
} |
|
} |
|
|
|
/* html.no-touch body:not(.animation-level-0) & { |
|
transition: background-color .15s ease-in-out; |
|
} */ |
|
|
|
> span { |
|
position: relative; |
|
display: inline-flex; |
|
align-items: center; |
|
overflow: visible; |
|
} |
|
|
|
&.active { |
|
color: $color-blue; |
|
|
|
i { |
|
opacity: 1; |
|
} |
|
} |
|
} |
|
|
|
i { |
|
position: absolute; |
|
bottom: calc(-.625rem - 2px); |
|
left: 0; |
|
opacity: 0; |
|
background-color: $color-blue; |
|
height: .1875rem; |
|
width: 100%; |
|
border-radius: .1875rem .1875rem 0 0; |
|
pointer-events: none; |
|
padding-right: .5rem; |
|
margin-left: -.25rem; |
|
box-sizing: content-box; |
|
transform-origin: left; |
|
z-index: 1; |
|
|
|
&.animate { |
|
transition: transform var(--tabs-transition); |
|
} |
|
} |
|
} |
|
|
|
.tabs-container { |
|
min-width: 100%; |
|
width: 100%; |
|
display: grid; |
|
//grid-template-columns: 1fr; |
|
grid-template-columns: 100%; |
|
grid-template-rows: 100%; |
|
|
|
/* @include respond-to(not-handhelds) { |
|
overflow-x: hidden; |
|
} */ |
|
|
|
// &.animated { |
|
// transition: .3s transform; |
|
// } |
|
|
|
> div { |
|
height: 100%; |
|
max-height: 100%; |
|
width: 100%; |
|
max-width: 100%; |
|
display: none; |
|
flex-direction: column; |
|
position: relative; |
|
grid-row-start: 1; |
|
grid-column-start: 1; |
|
background-color: #fff; |
|
//z-index: 1; |
|
|
|
body.animation-level-0 & { |
|
transition: none !important; |
|
} |
|
|
|
//@include respond-to(not-handhelds) { |
|
overflow: hidden; |
|
//} |
|
|
|
&.active { |
|
display: flex; |
|
} |
|
|
|
> div:not(.scroll-padding) { |
|
width: 100%; |
|
max-width: 100%; |
|
//overflow: hidden; |
|
position: relative; |
|
} |
|
} |
|
|
|
/* &[data-animation="tabs"] { |
|
& > div { |
|
--width: 100%; |
|
transition: transform var(--tabs-transition); |
|
transform: translateZ(0); |
|
|
|
&.from { |
|
animation: slide-tabs-from var(--tabs-transition) forwards; |
|
} |
|
|
|
&.to { |
|
transform: translate3d(var(--width), 0, 0); |
|
animation: slide-tabs-to var(--tabs-transition) forwards; |
|
} |
|
} |
|
|
|
&.backwards > div { |
|
&.from { |
|
animation: slide-tabs-backwards-from var(--tabs-transition) forwards; |
|
} |
|
|
|
&.to { |
|
transform: translate3d(calc(var(--width) * -1), 0, 0); |
|
animation: slide-tabs-backwards-to var(--tabs-transition) forwards; |
|
} |
|
} |
|
} */ |
|
|
|
&[data-animation="tabs"] > div { |
|
transition: transform var(--tabs-transition); |
|
} |
|
|
|
&[data-animation="navigation"] > div { |
|
transition: transform var(--tabs-transition), filter var(--tabs-transition); |
|
} |
|
} |
|
|
|
/* @keyframes slide-tabs-from { |
|
to { |
|
transform: translate3d(calc(var(--width) * -1), 0, 0); |
|
} |
|
} |
|
|
|
@keyframes slide-tabs-to { |
|
to { |
|
transform: translateZ(0); |
|
} |
|
} |
|
|
|
@keyframes slide-tabs-backwards-from { |
|
to { |
|
transform: translate3d(var(--width), 0, 0); |
|
} |
|
} |
|
|
|
@keyframes slide-tabs-backwards-to { |
|
to { |
|
transform: translateZ(0); |
|
} |
|
} */
|
|
|