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:
parent
4d73f18843
commit
6b06d46067
6 changed files with 21 additions and 7 deletions
|
@ -7,8 +7,6 @@ interface IProps {
|
|||
}
|
||||
|
||||
const LabHead: FC<IProps> = ({ isLoading }) => {
|
||||
return null;
|
||||
|
||||
return (
|
||||
<div className={styles.wrap}>
|
||||
<div className={styles.group}>
|
||||
|
|
|
@ -13,10 +13,7 @@
|
|||
}
|
||||
|
||||
&.active {
|
||||
color: $blue;
|
||||
background-color: lighten($content_bg, 6%);
|
||||
border-radius: $radius;
|
||||
padding: 0 $gap;
|
||||
color: $wisegreen;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -11,6 +11,10 @@ div.wrap {
|
|||
box-sizing: border-box;
|
||||
padding: 0 $gap / 2;
|
||||
|
||||
@include tablet {
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
& > div {
|
||||
margin-bottom: $gap;
|
||||
}
|
||||
|
|
|
@ -32,7 +32,10 @@ const LabLayout: FC<IProps> = () => {
|
|||
<div className={styles.container}>
|
||||
<div className={styles.wrap}>
|
||||
<Group className={styles.content}>
|
||||
<LabHead isLoading={is_loading} />
|
||||
<div className={styles.head}>
|
||||
<LabHead isLoading={is_loading} />
|
||||
</div>
|
||||
|
||||
<LabGrid />
|
||||
</Group>
|
||||
|
||||
|
|
|
@ -40,4 +40,15 @@
|
|||
|
||||
.content {
|
||||
min-width: 0;
|
||||
margin-left: -$gap / 2;
|
||||
|
||||
@include tablet {
|
||||
margin-left: 0;
|
||||
padding-bottom: $gap / 2;
|
||||
}
|
||||
}
|
||||
|
||||
.head {
|
||||
padding: 0 $gap / 2;
|
||||
display: none;
|
||||
}
|
||||
|
|
|
@ -162,6 +162,7 @@ $sidebar_border: transparentize(white, 0.95);
|
|||
@content;
|
||||
}
|
||||
}
|
||||
|
||||
@mixin desktop {
|
||||
@media (max-width: $content_width) {
|
||||
@content;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue