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 }) => {
|
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}>
|
||||||
|
|
|
@ -13,10 +13,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
&.active {
|
&.active {
|
||||||
color: $blue;
|
color: $wisegreen;
|
||||||
background-color: lighten($content_bg, 6%);
|
|
||||||
border-radius: $radius;
|
|
||||||
padding: 0 $gap;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
|
@ -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>
|
||||||
|
|
||||||
|
|
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
|
@ -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;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue