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

fixed test cells

This commit is contained in:
muerwre 2019-08-20 21:08:28 +07:00
parent ad517a9bfe
commit a4c771a664
4 changed files with 47 additions and 19 deletions

View file

@ -33,8 +33,11 @@ const Cell: FC<IProps> = ({
// gridColumnEnd: `span ${width}`, // gridColumnEnd: `span ${width}`,
}} }}
> >
{is_text && <div className={styles.text}>{TEXTS.LOREM_IPSUM}</div>} {is_text && <div className={styles.text}>
{ title && <div className={styles.title}>{title}</div> } <div className={styles.text_title}>{title}</div>
{TEXTS.LOREM_IPSUM}
</div>}
{title && <div className={styles.title}>{title}</div>}
</div> </div>
); );

View file

@ -14,34 +14,64 @@
} }
} }
&:global(.is_text) {
.title {
display: none;
}
}
@include outer_shadow(); @include outer_shadow();
} }
.text { .text {
line-height: 1.6em; font: $font_16_regular;
font-size: 18px; line-height: 1.3em;
font: $font_18_regular; letter-spacing: 0.5px;
position: absolute; position: absolute;
top: 0; top: 0;
left: 0; left: 0;
padding: $gap; padding: $gap;
background: $content_bg;
height: 100%;
overflow: hidden;
&::after {
content: ' ';
position: absolute;
bottom: 0;
left: 0;
width: 100%;
height: 100px;
pointer-events: none;
touch-action: none;
background: linear-gradient(transparentize($content_bg, 1), $content_bg 70px);
z-index: 1;
border-radius: 0 0 $radius $radius;
}
} }
.title { .title, .text_title {
font: $font_cell_title; font: $font_cell_title;
text-transform: uppercase; text-transform: uppercase;
height: 1em;
overflow: hidden; overflow: hidden;
text-overflow: ellipsis; text-overflow: ellipsis;
white-space: nowrap; white-space: nowrap;
padding: 0 $gap;
box-sizing: border-box;
}
.title {
padding: 0 $gap;
position: absolute; position: absolute;
bottom: $gap; bottom: $gap;
left: 0; left: 0;
width: 100%; width: 100%;
box-sizing: border-box; }
.text_title {
margin-bottom: $gap / 2;
} }
:global { :global {

View file

@ -3,8 +3,7 @@
align-items: center; align-items: center;
justify-content: flex-end; justify-content: flex-end;
font-weight: 500; font-weight: 500;
height: 96px; height: 80px;
margin-top: -20px;
} }
.spacer { .spacer {

View file

@ -23,13 +23,10 @@ type IProps = typeof mapDispatchToProps & ReturnType<typeof mapStateToProps> & {
const Component: FC<IProps> = ({ is_shown }) => ( const Component: FC<IProps> = ({ is_shown }) => (
<ConnectedRouter history={history}> <ConnectedRouter history={history}>
<BlurWrapper is_blurred={is_shown}> <BlurWrapper is_blurred={is_shown}>
<MainLayout>
<Modal /> <Modal />
<Sprites /> <Sprites />
<Switch>
<MainLayout>
<Switch> <Switch>
<Route exact path={URLS.BASE} component={FlowLayout} /> <Route exact path={URLS.BASE} component={FlowLayout} />
<Route path={URLS.EXAMPLES.IMAGE} component={ImageExample} /> <Route path={URLS.EXAMPLES.IMAGE} component={ImageExample} />
@ -39,7 +36,6 @@ const Component: FC<IProps> = ({ is_shown }) => (
<Redirect to="/" /> <Redirect to="/" />
</Switch> </Switch>
</MainLayout> </MainLayout>
</Switch>
</BlurWrapper> </BlurWrapper>
</ConnectedRouter> </ConnectedRouter>
); );