create audio - hide actions (#243)

This commit is contained in:
Ilya Y 2023-09-29 09:46:15 +03:00 committed by GitHub
parent 6ae1bb70dc
commit 18ec665bb2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
7 changed files with 25 additions and 25 deletions

View File

@ -205,7 +205,6 @@ export const Editor = (props: Props) => {
placement: 'top', placement: 'top',
getReferenceClientRect: () => { getReferenceClientRect: () => {
const selectedElement = editor().view.dom.querySelector('.has-focus') const selectedElement = editor().view.dom.querySelector('.has-focus')
console.log('!!! selectedElement (blockquoteBubbleMenu):', selectedElement)
if (selectedElement) { if (selectedElement) {
return selectedElement.getBoundingClientRect() return selectedElement.getBoundingClientRect()
} }
@ -225,7 +224,6 @@ export const Editor = (props: Props) => {
placement: 'top', placement: 'top',
getReferenceClientRect: () => { getReferenceClientRect: () => {
const selectedElement = editor().view.dom.querySelector('.has-focus') const selectedElement = editor().view.dom.querySelector('.has-focus')
console.log('!!! selectedElement (incutBubbleMenu):', selectedElement)
if (selectedElement) { if (selectedElement) {
return selectedElement.getBoundingClientRect() return selectedElement.getBoundingClientRect()
} }

View File

@ -185,7 +185,7 @@
} }
@include media-breakpoint-up(md) { @include media-breakpoint-up(md) {
a, span,
button { button {
padding: 0 0.4rem; padding: 0 0.4rem;
} }
@ -250,8 +250,8 @@
} }
.mainNavigationItemActive { .mainNavigationItemActive {
background: #000; background: var(--link-hover-background);
color: #fff !important; color: var(--link-hover-color);
} }
.headerWithTitle.headerScrolledBottom { .headerWithTitle.headerScrolledBottom {
@ -306,7 +306,9 @@
&::after, &::after,
&::before { &::before {
transform-origin: center !important; transform-origin: center !important;
transition: top 0.3s, transform 0.3s; transition:
top 0.3s,
transform 0.3s;
} }
&::after { &::after {
@ -338,7 +340,9 @@
.articleHeader, .articleHeader,
.articleControls { .articleControls {
opacity: 0; opacity: 0;
transition: opacity 0.3s, z-index 0s 0.3s; transition:
opacity 0.3s,
z-index 0s 0.3s;
z-index: -1; z-index: -1;
.headerScrolledBottom & { .headerScrolledBottom & {
@ -435,7 +439,9 @@
z-index: 1; z-index: 1;
.headerWithTitle.headerScrolledBottom & { .headerWithTitle.headerScrolledBottom & {
transition: opacity 0.3s, z-index 0s 0.3s; transition:
opacity 0.3s,
z-index 0s 0.3s;
opacity: 0; opacity: 0;
z-index: -1; z-index: -1;
} }
@ -590,7 +596,7 @@
} }
a:hover { a:hover {
background-color: var(--link-hover-background) !important; //background-color: var(--link-hover-background) !important;
} }
} }

View File

@ -184,16 +184,13 @@ export const Header = (props: Props) => {
</Show> </Show>
<div class={clsx(styles.mainNavigation, { [styles.fixed]: fixed() })}> <div class={clsx(styles.mainNavigation, { [styles.fixed]: fixed() })}>
<ul class="view-switcher"> <ul class="view-switcher">
<li classList={{ 'view-switcher__item--selected': page().route === 'home' }}> <Link
<a
classList={{ [styles.mainNavigationItemActive]: isZineVisible() }}
onMouseOver={() => toggleSubnavigation(true, setIsZineVisible)} onMouseOver={() => toggleSubnavigation(true, setIsZineVisible)}
onMouseOut={hideSubnavigation} onMouseOut={() => hideSubnavigation}
href={getPagePath(router, 'home')} routeName="home"
> active={isZineVisible()}
{t('zine')} body={t('zine')}
</a> />
</li>
<Link <Link
onMouseOver={() => toggleSubnavigation(true, setIsFeedVisible)} onMouseOver={() => toggleSubnavigation(true, setIsFeedVisible)}
onMouseOut={() => hideSubnavigation} onMouseOut={() => hideSubnavigation}

View File

@ -16,13 +16,13 @@ export const Link = (props: Props) => {
const { page } = useRouter() const { page } = useRouter()
const isSelected = page().route === props.routeName const isSelected = page().route === props.routeName
return ( return (
<li classList={{ 'view-switcher__item--selected': isSelected }}> <li classList={{ 'view-switcher__item--selected': page().route === props.routeName }}>
<ConditionalWrapper <ConditionalWrapper
condition={!isSelected && Boolean(props.routeName)} condition={!isSelected && Boolean(props.routeName)}
wrapper={(children) => <a href={getPagePath(router, props.routeName)}>{children}</a>} wrapper={(children) => <a href={getPagePath(router, props.routeName)}>{children}</a>}
> >
<span <span
class={clsx('cursorPointer', { [styles.mainNavigationItemActive]: props.active })} class={clsx('cursorPointer linkReplacement', { [styles.mainNavigationItemActive]: props.active })}
onMouseOver={props.onMouseOver} onMouseOver={props.onMouseOver}
onMouseOut={props.onMouseOut} onMouseOut={props.onMouseOut}
> >

View File

@ -231,9 +231,6 @@ export const EditView = (props: Props) => {
setIsLeadVisible(true) setIsLeadVisible(true)
} }
createEffect(() => {
console.log("!!! props.shout.layout !== 'audio':", props.shout.layout)
})
return ( return (
<> <>
<div class={styles.container}> <div class={styles.container}>

View File

@ -91,7 +91,7 @@ export const FeedView = () => {
options.order_by = orderBy options.order_by = orderBy
} }
if (routesWithAuthGuard.has(page().route) && isAuthenticated()) { if (isAuthenticated()) {
return loadMyFeed(options) return loadMyFeed(options)
} }

View File

@ -619,6 +619,7 @@ figure {
} }
a, a,
.linkReplacement,
button { button {
border-bottom: 2px solid #fff; border-bottom: 2px solid #fff;
color: var(--link-color); color: var(--link-color);
@ -635,6 +636,7 @@ figure {
font-weight: bold; font-weight: bold;
a, a,
.linkReplacement,
button { button {
border-bottom: 2px solid #000; border-bottom: 2px solid #000;
color: #000; color: #000;