Co-authored-by: Dmitry Kabanov <dmitrykabanovdev@gmail.com> Co-authored-by: Dmitry Kabanov <153344039+dmitrykabanovdev@users.noreply.github.com>
113 lines
2.2 KiB
SCSS
113 lines
2.2 KiB
SCSS
.Tab {
|
|
display: flex;
|
|
justify-content: center;
|
|
flex: 1 1 auto;
|
|
appearance: none;
|
|
background: none;
|
|
width: auto;
|
|
margin: 0;
|
|
border: none;
|
|
padding: 0.625rem 1.125rem;
|
|
font-weight: var(--font-weight-semibold);
|
|
color: var(--color-text-secondary);
|
|
border-top-left-radius: var(--border-radius-messages-small);
|
|
border-top-right-radius: var(--border-radius-messages-small);
|
|
|
|
&,
|
|
&:active,
|
|
&:focus {
|
|
outline: none;
|
|
}
|
|
|
|
&--interactive {
|
|
cursor: var(--custom-cursor, pointer);
|
|
|
|
@media (hover: hover) {
|
|
&:not(&--active):hover {
|
|
background: var(--color-interactive-element-hover);
|
|
}
|
|
}
|
|
|
|
@media (max-width: 600px) {
|
|
&:not(&--active):active {
|
|
background: var(--color-interactive-element-hover);
|
|
}
|
|
}
|
|
}
|
|
|
|
&--active {
|
|
cursor: var(--custom-cursor, default);
|
|
color: var(--color-primary);
|
|
|
|
.platform {
|
|
opacity: 1 !important;
|
|
}
|
|
}
|
|
|
|
.Tab_inner {
|
|
position: relative;
|
|
display: flex;
|
|
align-items: center;
|
|
white-space: nowrap;
|
|
gap: 1px; // Prevent custom emoji sticking to the text
|
|
}
|
|
|
|
.badge {
|
|
min-width: 1.25rem;
|
|
height: 1.25rem;
|
|
margin-inline-start: 0.5rem;
|
|
background: var(--color-gray);
|
|
border-radius: 0.75rem;
|
|
padding: 0 0.3125rem;
|
|
color: white;
|
|
font-size: 0.875rem;
|
|
line-height: 1.3125rem;
|
|
font-weight: var(--font-weight-medium);
|
|
text-align: center;
|
|
flex-shrink: 0;
|
|
|
|
body.is-ios &,
|
|
body.is-macos & {
|
|
line-height: 1.25rem;
|
|
}
|
|
}
|
|
|
|
&__badge--active {
|
|
background: var(--color-primary) !important;
|
|
}
|
|
|
|
.blocked {
|
|
position: absolute;
|
|
bottom: -0.625rem;
|
|
left: 50%;
|
|
transform: translateX(-50%);
|
|
font-size: 0.75rem;
|
|
}
|
|
|
|
.platform {
|
|
position: absolute;
|
|
bottom: -0.625rem;
|
|
left: -0.5rem;
|
|
right: -0.5rem;
|
|
opacity: 0;
|
|
background-color: var(--color-primary);
|
|
height: 0.1875rem;
|
|
border-radius: 0.1875rem 0.1875rem 0 0;
|
|
pointer-events: none;
|
|
box-sizing: content-box;
|
|
transform-origin: left;
|
|
|
|
&.animate {
|
|
transition: transform var(--slide-transition);
|
|
|
|
body.no-page-transitions & {
|
|
transition: none !important;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
.Tab-context-menu {
|
|
position: absolute;
|
|
}
|