Skip to content

Commit

Permalink
Fix privacy policy on mobile
Browse files Browse the repository at this point in the history
  • Loading branch information
RikudouSage committed Jun 4, 2024
1 parent 8a5da5a commit dd71b91
Show file tree
Hide file tree
Showing 6 changed files with 23 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/app/pages/privacy/privacy.component.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
@if (policyItems()) {
<section class="bg-gray-50 dark:bg-gray-800">
<section class="bg-gray-50 dark:bg-gray-800 pt-12 lg:pt-0">
<div class="max-w-screen-xl px-4 py-8 mx-auto space-y-12 lg:space-y-20 lg:py-24 lg:px-6">
<div class="items-center gap-8 lg:grid xl:gap-16">
<div class="text-gray-500 sm:text-lg dark:text-gray-400">
Expand Down
1 change: 0 additions & 1 deletion src/styles.scss
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
@import "styles/additional_pieces";
@import "styles/md";
@import "styles/landwind";
@import "styles/colors";

Expand Down
8 changes: 8 additions & 0 deletions src/styles/_additional_pieces.scss
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@
}
}

.pt-12 {
@include pt(12);
}

.mt-8 {
@include mt(8);

Expand All @@ -27,3 +31,7 @@
.space-y-2 > :not([hidden]) ~ :not([hidden]) {
@include spaceY(2);
}


@import "md";
@import "lg";
1 change: 1 addition & 0 deletions src/styles/_breakpoints.scss
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
$md: 768px;
$lg: 1024px;
9 changes: 9 additions & 0 deletions src/styles/_lg.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
@import "breakpoints";

@media screen and (min-width: $lg) {
.lg {
&\:pt-0 {
padding-top: 0;
}
}
}
4 changes: 4 additions & 0 deletions src/styles/_mixins.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@
margin-top: 0.25rem * $amount;
}

@mixin pt($amount) {
padding-top: 0.25rem * $amount;
}

@mixin spaceY($amount) {
$num: 0.25rem * $amount;
--tw-space-y-reverse: 0;
Expand Down

0 comments on commit dd71b91

Please sign in to comment.