mirror of
https://github.com/muerwre/vault-frontend.git
synced 2025-04-25 04:46:40 +07:00
#23 fixed lab shadows
This commit is contained in:
parent
b761849432
commit
10729de375
8 changed files with 40 additions and 7 deletions
|
@ -1,6 +1,8 @@
|
||||||
@import "~/styles/variables.scss";
|
@import "~/styles/variables.scss";
|
||||||
|
|
||||||
.wrap {
|
.wrap {
|
||||||
|
@include lab_shadow;
|
||||||
|
|
||||||
background: linear-gradient(darken($dark_blue, 0%), darken($blue, 30%));
|
background: linear-gradient(darken($dark_blue, 0%), darken($blue, 30%));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -9,7 +9,7 @@ import { Grid } from '~/components/containers/Grid';
|
||||||
interface IProps {}
|
interface IProps {}
|
||||||
|
|
||||||
const LabHead: FC<IProps> = () => (
|
const LabHead: FC<IProps> = () => (
|
||||||
<Card className={styles.wrap}>
|
<div className={styles.wrap}>
|
||||||
<div className={styles.group}>
|
<div className={styles.group}>
|
||||||
<Group horizontal style={{ flex: '0 0 auto' }}>
|
<Group horizontal style={{ flex: '0 0 auto' }}>
|
||||||
<Placeholder width="32px" height={32} />
|
<Placeholder width="32px" height={32} />
|
||||||
|
@ -28,7 +28,7 @@ const LabHead: FC<IProps> = () => (
|
||||||
|
|
||||||
<Filler />
|
<Filler />
|
||||||
</div>
|
</div>
|
||||||
</Card>
|
</div>
|
||||||
);
|
);
|
||||||
|
|
||||||
export { LabHead };
|
export { LabHead };
|
||||||
|
|
|
@ -1,5 +1,13 @@
|
||||||
@import "~/styles/variables.scss";
|
@import "~/styles/variables.scss";
|
||||||
|
|
||||||
|
.wrap {
|
||||||
|
@include lab_shadow;
|
||||||
|
|
||||||
|
border-radius: $radius;
|
||||||
|
background-color: $content_bg;
|
||||||
|
padding: $gap;
|
||||||
|
}
|
||||||
|
|
||||||
.group {
|
.group {
|
||||||
display: flex;
|
display: flex;
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,8 @@
|
||||||
@import "~/styles/variables.scss";
|
@import "~/styles/variables.scss";
|
||||||
|
|
||||||
.wrap {
|
.wrap {
|
||||||
box-shadow: transparentize(black, 0.5) 0 0 0 1px, inset transparentize(white, 0.9) 0 1px, lighten(black, 10%) 0 4px;
|
@include lab_shadow;
|
||||||
|
|
||||||
background-color: $lab_post_bg;
|
background-color: $lab_post_bg;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
|
|
||||||
|
|
|
@ -26,7 +26,7 @@ const LabStats: FC<IProps> = () => {
|
||||||
<Group>
|
<Group>
|
||||||
<LabBanner />
|
<LabBanner />
|
||||||
|
|
||||||
<Card>
|
<div className={styles.card}>
|
||||||
<Group>
|
<Group>
|
||||||
{isLoading ? (
|
{isLoading ? (
|
||||||
<Placeholder height={14} width="100px" />
|
<Placeholder height={14} width="100px" />
|
||||||
|
@ -52,7 +52,7 @@ const LabStats: FC<IProps> = () => {
|
||||||
<LabHeroes nodes={heroes} isLoading={isLoading} />
|
<LabHeroes nodes={heroes} isLoading={isLoading} />
|
||||||
</div>
|
</div>
|
||||||
</Group>
|
</Group>
|
||||||
</Card>
|
</div>
|
||||||
</Group>
|
</Group>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
|
@ -15,3 +15,11 @@
|
||||||
.heroes {
|
.heroes {
|
||||||
margin-top: -$gap;
|
margin-top: -$gap;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.card {
|
||||||
|
@include lab_shadow;
|
||||||
|
|
||||||
|
border-radius: $radius;
|
||||||
|
background-color: $comment_bg;
|
||||||
|
padding: $gap;
|
||||||
|
}
|
||||||
|
|
|
@ -91,8 +91,16 @@ export type INodeComponents = Record<ValueOf<typeof NODE_TYPES>, FC<INodeCompone
|
||||||
export const LAB_PREVIEW_LAYOUT: Record<string, FC<INodeComponentProps>[]> = {
|
export const LAB_PREVIEW_LAYOUT: Record<string, FC<INodeComponentProps>[]> = {
|
||||||
[NODE_TYPES.IMAGE]: [LabImage, LabPad, LabNodeTitle, LabBottomPanel],
|
[NODE_TYPES.IMAGE]: [LabImage, LabPad, LabNodeTitle, LabBottomPanel],
|
||||||
[NODE_TYPES.VIDEO]: [NodeVideoBlock, LabPad, LabNodeTitle, LabBottomPanel],
|
[NODE_TYPES.VIDEO]: [NodeVideoBlock, LabPad, LabNodeTitle, LabBottomPanel],
|
||||||
[NODE_TYPES.AUDIO]: [LabPad, LabNodeTitle, NodeAudioImageBlock, NodeAudioBlock, LabBottomPanel],
|
[NODE_TYPES.AUDIO]: [
|
||||||
[NODE_TYPES.TEXT]: [LabPad, LabNodeTitle, LabText, LabBottomPanel],
|
LabPad,
|
||||||
|
LabNodeTitle,
|
||||||
|
LabPad,
|
||||||
|
NodeAudioImageBlock,
|
||||||
|
NodeAudioBlock,
|
||||||
|
LabPad,
|
||||||
|
LabBottomPanel,
|
||||||
|
],
|
||||||
|
[NODE_TYPES.TEXT]: [LabPad, LabNodeTitle, LabPad, LabText, LabPad, LabBottomPanel],
|
||||||
};
|
};
|
||||||
|
|
||||||
export const NODE_HEADS: INodeComponents = {
|
export const NODE_HEADS: INodeComponents = {
|
||||||
|
|
|
@ -219,3 +219,9 @@ $sidebar_border: transparentize(white, 0.95);
|
||||||
border-radius: $radius;
|
border-radius: $radius;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@mixin lab_shadow {
|
||||||
|
box-shadow: transparentize(black, 0.5) 0 0 0 1px,
|
||||||
|
inset transparentize(white, 0.9) 0 1px,
|
||||||
|
lighten(black, 10%) 0 4px;
|
||||||
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue