mirror of
https://github.com/muerwre/vault-frontend.git
synced 2025-04-24 20:36:40 +07:00
fixed paddings on some devices
This commit is contained in:
parent
b228878207
commit
955b5927ca
4 changed files with 18 additions and 15 deletions
|
@ -14,7 +14,7 @@
|
|||
|
||||
@include desktop {
|
||||
height: 64px;
|
||||
padding: 0 $gap;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
&.is_scrolled {
|
||||
|
@ -28,7 +28,8 @@
|
|||
justify-content: flex-end;
|
||||
font-weight: 500;
|
||||
box-sizing: border-box;
|
||||
flex: 0 1 $content_width;
|
||||
|
||||
@include container;
|
||||
}
|
||||
|
||||
.spacer {
|
||||
|
|
|
@ -1,15 +1,5 @@
|
|||
@import "~/styles/variables.scss";
|
||||
|
||||
.container {
|
||||
width: 100%;
|
||||
max-width: $content_width;
|
||||
box-sizing: border-box;
|
||||
|
||||
@include tablet {
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
@media (max-width: $content_width + $gap * 4) {
|
||||
padding: 0;
|
||||
}
|
||||
@include container;
|
||||
}
|
||||
|
|
|
@ -10,8 +10,7 @@
|
|||
$cols: $content_width / $cell;
|
||||
|
||||
.container {
|
||||
max-width: $content_width;
|
||||
width: 100%;
|
||||
@include container;
|
||||
}
|
||||
|
||||
.grid {
|
||||
|
|
|
@ -319,3 +319,16 @@ $sidebar_border: transparentize(white, 0.95);
|
|||
|
||||
animation: __appear 0.25s forwards;
|
||||
}
|
||||
|
||||
@mixin container {
|
||||
max-width: $content_width + $gap * 8;
|
||||
width: 100%;
|
||||
|
||||
padding-left: $gap * 4;
|
||||
padding-right: $gap * 4;
|
||||
|
||||
@include tablet {
|
||||
padding-left: $gap;
|
||||
padding-right: $gap;
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue