mirror of
https://github.com/muerwre/vault-frontend.git
synced 2025-04-24 20:36:40 +07:00
fixed test cells
This commit is contained in:
parent
ad517a9bfe
commit
a4c771a664
4 changed files with 47 additions and 19 deletions
|
@ -23,7 +23,7 @@ const Cell: FC<IProps> = ({
|
||||||
<div
|
<div
|
||||||
className={
|
className={
|
||||||
classNames(
|
classNames(
|
||||||
styles.cell,
|
styles.cell,
|
||||||
`vert-${height}`,
|
`vert-${height}`,
|
||||||
`hor-${width}`,
|
`hor-${width}`,
|
||||||
{ is_text },
|
{ is_text },
|
||||||
|
@ -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>
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
|
@ -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 {
|
||||||
|
|
|
@ -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 {
|
||||||
|
|
|
@ -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}>
|
||||||
<Modal />
|
|
||||||
<Sprites />
|
|
||||||
|
|
||||||
<Switch>
|
|
||||||
|
|
||||||
|
|
||||||
<MainLayout>
|
<MainLayout>
|
||||||
|
<Modal />
|
||||||
|
<Sprites />
|
||||||
|
|
||||||
<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>
|
||||||
);
|
);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue