kopia lustrzana https://gitlab.com/soapbox-pub/soapbox
Fix theme-toggle v-align issues
rodzic
c0dc03b3e4
commit
e8288ffdf8
|
@ -98,7 +98,7 @@ class TabsBar extends React.PureComponent {
|
||||||
<SearchContainer openInRoute />
|
<SearchContainer openInRoute />
|
||||||
</div>
|
</div>
|
||||||
{ account &&
|
{ account &&
|
||||||
<div className='flex'>
|
<>
|
||||||
<ThemeToggle />
|
<ThemeToggle />
|
||||||
<div className='tabs-bar__profile'>
|
<div className='tabs-bar__profile'>
|
||||||
<Avatar account={account} />
|
<Avatar account={account} />
|
||||||
|
@ -108,7 +108,7 @@ class TabsBar extends React.PureComponent {
|
||||||
<button className='tabs-bar__button-compose button' onClick={onOpenCompose} aria-label={intl.formatMessage(messages.post)}>
|
<button className='tabs-bar__button-compose button' onClick={onOpenCompose} aria-label={intl.formatMessage(messages.post)}>
|
||||||
<span>{intl.formatMessage(messages.post)}</span>
|
<span>{intl.formatMessage(messages.post)}</span>
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</>
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
!account &&
|
!account &&
|
||||||
|
|
|
@ -52,7 +52,7 @@ class ThemeToggle extends React.PureComponent {
|
||||||
}
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div class='theme-toggle'>
|
<div className='theme-toggle'>
|
||||||
{toggle}
|
{toggle}
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
|
|
|
@ -161,10 +161,6 @@
|
||||||
margin-right: 10px;
|
margin-right: 10px;
|
||||||
}
|
}
|
||||||
|
|
||||||
&.theme-toggle {
|
|
||||||
padding-top: 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
&:hover {
|
&:hover {
|
||||||
&__title {
|
&__title {
|
||||||
color: var(--primary-text-color);
|
color: var(--primary-text-color);
|
||||||
|
|
|
@ -39,7 +39,7 @@
|
||||||
|
|
||||||
&--right {
|
&--right {
|
||||||
margin-left: auto;
|
margin-left: auto;
|
||||||
padding-top: 8px;
|
align-items: center;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -137,21 +137,17 @@
|
||||||
height: 34px;
|
height: 34px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.flex {
|
|
||||||
display: flex;
|
|
||||||
}
|
|
||||||
|
|
||||||
.theme-toggle {
|
.theme-toggle {
|
||||||
@media screen and (max-width: $nav-breakpoint-3) {display: none;}
|
@media screen and (max-width: $nav-breakpoint-3) {display: none;}
|
||||||
|
|
||||||
.setting-toggle {
|
.setting-toggle {
|
||||||
margin-top: 3px;
|
|
||||||
margin-left: 10px;
|
margin-left: 10px;
|
||||||
|
|
||||||
.react-toggle--checked {
|
.react-toggle--checked {
|
||||||
.react-toggle-track {
|
.react-toggle-track {
|
||||||
background-color: var(--accent-color);
|
background-color: var(--accent-color);
|
||||||
}
|
}
|
||||||
|
|
||||||
&:hover:not(.react-toggle--disabled) .react-toggle-track {
|
&:hover:not(.react-toggle--disabled) .react-toggle-track {
|
||||||
background-color: var(--accent-color--bright);
|
background-color: var(--accent-color--bright);
|
||||||
}
|
}
|
||||||
|
|
Ładowanie…
Reference in New Issue