Tabs style fixes

This commit is contained in:
kvakazyambra 2023-06-09 00:53:58 +03:00
parent 4e6d082697
commit 9754a0235d
6 changed files with 25 additions and 53 deletions

View File

@ -151,7 +151,7 @@
"More": "Ещё",
"Most commented": "Комментируемое",
"Most read": "Читаемое",
"My feed": "Моя лента",
"My feed": "Новое",
"My subscriptions": "Подписки",
"Name": "Имя",
"New only": "Только новые",

View File

@ -486,6 +486,10 @@
}
}
}
a {
border: none;
}
}
.shoutCardComments,

View File

@ -20,7 +20,7 @@
}
.item {
margin-right: 2.4rem;
margin-right: 2rem;
&.right {
margin-right: 0;

View File

@ -182,37 +182,38 @@ export const InboxView = () => {
</div>
<Show when={chatsToShow}>
<div class={styles.chatListTypes}>
<ul>
<li
class={clsx({ [styles.selected]: !sortByPerToPer() && !sortByGroup() })}
<ul class="view-switcher">
<li class={clsx({ 'view-switcher__item--selected': !sortByPerToPer() && !sortByGroup() })}>
<button
onClick={() => {
setSortByPerToPer(false)
setSortByGroup(false)
}}
>
<span>{t('All')}</span>
</li>
<li
class={clsx({ [styles.selected]: sortByPerToPer() })}
{t('All')}
</button>
</li>
<li class={clsx({ 'view-switcher__item--selected': sortByPerToPer() })}>
<button
onClick={() => {
setSortByPerToPer(true)
setSortByGroup(false)
}}
>
<span>{t('Personal')}</span>
</li>
<li
class={clsx({ [styles.selected]: sortByGroup() })}
{t('Personal')}
</button>
</li>
<li class={clsx({ 'view-switcher__item--selected': sortByGroup() })}>
<button
onClick={() => {
setSortByGroup(true)
setSortByPerToPer(false)
}}
>
<span>{t('Groups')}</span>
</li>
</ul>
</div>
{t('Groups')}
</button>
</li>
</ul>
</Show>
<div class={styles.holder}>
<div class={styles.dialogs}>

View File

@ -90,35 +90,6 @@ main {
padding: 1em 0;
}
// табы выбора списка
.chatListTypes {
@include font-size(1.7rem);
margin: 16px 0;
ul {
display: flex;
flex-wrap: wrap;
list-style: none;
margin: 0;
padding: 0;
}
li {
margin-right: 1em;
color: #696969;
cursor: pointer;
&.selected {
span {
border-bottom: 3px solid;
font-weight: normal;
color: #000;
}
}
}
}
.conversation {
display: flex;
flex-direction: column;

View File

@ -545,13 +545,12 @@ figure {
figcaption {
@include font-size(1.2rem);
color: #9fa1a7;
}
}
.view-switcher {
@include font-size(1.7rem);
@include font-size(1.4rem);
display: flex;
flex-wrap: wrap;
font-weight: 500;
@ -561,12 +560,9 @@ figure {
li {
display: inline-block;
margin-right: 2.4rem;
margin-right: 2rem;
margin-bottom: 0.6em;
@include media-breakpoint-down(md) {
}
&:last-child {
margin-right: 0;
}