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

fixed paddings on tablet for Lab

This commit is contained in:
Fedor Katurov 2021-09-30 10:34:20 +07:00
parent 4d73f18843
commit 6b06d46067
6 changed files with 21 additions and 7 deletions

View file

@ -7,8 +7,6 @@ interface IProps {
} }
const LabHead: FC<IProps> = ({ isLoading }) => { const LabHead: FC<IProps> = ({ isLoading }) => {
return null;
return ( return (
<div className={styles.wrap}> <div className={styles.wrap}>
<div className={styles.group}> <div className={styles.group}>

View file

@ -13,10 +13,7 @@
} }
&.active { &.active {
color: $blue; color: $wisegreen;
background-color: lighten($content_bg, 6%);
border-radius: $radius;
padding: 0 $gap;
} }
} }

View file

@ -11,6 +11,10 @@ div.wrap {
box-sizing: border-box; box-sizing: border-box;
padding: 0 $gap / 2; padding: 0 $gap / 2;
@include tablet {
padding: 0;
}
& > div { & > div {
margin-bottom: $gap; margin-bottom: $gap;
} }

View file

@ -32,7 +32,10 @@ const LabLayout: FC<IProps> = () => {
<div className={styles.container}> <div className={styles.container}>
<div className={styles.wrap}> <div className={styles.wrap}>
<Group className={styles.content}> <Group className={styles.content}>
<LabHead isLoading={is_loading} /> <div className={styles.head}>
<LabHead isLoading={is_loading} />
</div>
<LabGrid /> <LabGrid />
</Group> </Group>

View file

@ -40,4 +40,15 @@
.content { .content {
min-width: 0; min-width: 0;
margin-left: -$gap / 2;
@include tablet {
margin-left: 0;
padding-bottom: $gap / 2;
}
}
.head {
padding: 0 $gap / 2;
display: none;
} }

View file

@ -162,6 +162,7 @@ $sidebar_border: transparentize(white, 0.95);
@content; @content;
} }
} }
@mixin desktop { @mixin desktop {
@media (max-width: $content_width) { @media (max-width: $content_width) {
@content; @content;