1
0
Fork 0
mirror of https://github.com/muerwre/vault-frontend.git synced 2025-04-25 12:56:41 +07:00

title appearance fixed

This commit is contained in:
Fedor Katurov 2020-04-08 12:19:56 +07:00
parent a517eca37d
commit 4ebeed76aa
7 changed files with 37 additions and 48 deletions

View file

@ -8,10 +8,6 @@
flex-direction: column; flex-direction: column;
min-height: 100vh; min-height: 100vh;
@include tablet {
padding-top: 72px + $gap;
}
&.is_blurred { &.is_blurred {
filter: blur(15px); filter: blur(15px);

View file

@ -35,8 +35,6 @@ const NodeComments: FC<IProps> = memo(({ comments, comment_data, user, onDelete,
onEdit={onEdit} onEdit={onEdit}
/> />
))} ))}
<Filler />
</div> </div>
); );
}); });

View file

@ -1,23 +1,21 @@
import React, { FC } from "react"; import React, { FC } from 'react';
import * as styles from "./styles.scss"; import * as styles from './styles.scss';
import { Group } from "~/components/containers/Group"; import { Group } from '~/components/containers/Group';
import classNames from "classnames"; import classNames from 'classnames';
import { Filler } from "~/components/containers/Filler"; import { Filler } from '~/components/containers/Filler';
import { ERRORS } from "~/constants/errors"; import { ERRORS } from '~/constants/errors';
import { t } from "~/utils/trans"; import { t } from '~/utils/trans';
interface IProps { interface IProps {
is_loading?: boolean; is_loading?: boolean;
} }
const NodeNoComments: FC<IProps> = ({ is_loading = false }) => ( const NodeNoComments: FC<IProps> = ({ is_loading = false }) => (
<> <Group className={classNames(styles.wrap, { is_loading })}>
<Group className={classNames(styles.wrap, { is_loading })}> <div className={styles.card} />
<div className={styles.card} /> <div className={styles.card}>{!is_loading && t(ERRORS.NO_COMMENTS)}</div>
<div className={styles.card}>{!is_loading && t(ERRORS.NO_COMMENTS)}</div> <div className={styles.card} />
<div className={styles.card} /> </Group>
</Group>
</>
); );
export { NodeNoComments }; export { NodeNoComments };

View file

@ -1,18 +1,20 @@
@keyframes fade {
0% {
// opacity: 0.25;
}
100% {
// opacity: 0.1;
}
}
.wrap { .wrap {
user-select: none; user-select: none;
height: 300px; // height: 300px;
overflow: hidden; overflow: hidden;
position: relative; position: relative;
flex: 0 0 auto;
// @include after_shade($node_bg); &::after {
content: ' ';
position: absolute;
background: linear-gradient(transparentize($node_bg, 1), $node_bg);
border-radius: 0 0 $radius $radius;
height: 100px;
width: 100%;
left: 0;
bottom: 0;
}
&:global(.is_loading) { &:global(.is_loading) {
opacity: 1; opacity: 1;
@ -22,6 +24,10 @@
animation: fade 0.5s infinite alternate; animation: fade 0.5s infinite alternate;
} }
} }
@include tablet {
display: none;
}
} }
.card { .card {
@ -36,14 +42,4 @@
font: $font_18_semibold; font: $font_18_semibold;
color: transparentize(white, 0.5); color: transparentize(white, 0.5);
flex: 0 0 $comment_height; flex: 0 0 $comment_height;
// @include outer_shadow();
&:nth-child(2) {
// animation-delay: -300ms !important;
}
&:nth-child(3) {
// animation-delay: -600ms !important;
}
} }

View file

@ -24,18 +24,19 @@
.content { .content {
flex: 0 1 $content_width; flex: 0 1 $content_width;
display: flex; display: flex;
align-items: flex-start; align-items: center;
justify-content: stretch; justify-content: stretch;
border-radius: $radius $radius 0 0; border-radius: $radius $radius 0 0;
box-sizing: border-box; box-sizing: border-box;
padding: $gap; padding: $gap;
background: $node_bg; background: $node_bg;
// height: 72px;
@include outer_shadow(); @include outer_shadow();
@include tablet { @include tablet {
border-radius: 0; border-radius: 0;
flex-direction: column;
align-items: flex-start;
} }
@include can_backdrop { @include can_backdrop {
@ -51,7 +52,7 @@
padding-bottom: 6px; padding-bottom: 6px;
@include tablet { @include tablet {
font-size: 16px; // font-size: 16px;
word-break: break-word; word-break: break-word;
padding-bottom: 0; padding-bottom: 0;
padding-top: 10px; padding-top: 10px;
@ -84,7 +85,6 @@
flex-direction: row; flex-direction: row;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
margin-top: 10px;
& > * { & > * {
margin: 0 $gap; margin: 0 $gap;
@ -125,6 +125,11 @@
} }
} }
} }
@include tablet {
margin-top: $gap * 2;
align-self: center;
}
} }
.mark { .mark {

View file

@ -50,6 +50,4 @@
flex: 1; flex: 1;
border-radius: $panel_radius; border-radius: $panel_radius;
box-shadow: $comment_shadow; box-shadow: $comment_shadow;
//position: relative;
//top: -64px
} }

View file

@ -1,8 +1,6 @@
.wrap { .wrap {
justify-content: flex-start; justify-content: flex-start;
align-items: flex-start !important; align-items: flex-start !important;
// min-height: 64px;
// padding: $gap;
box-sizing: border-box; box-sizing: border-box;
position: relative; position: relative;
} }