1
0
Fork 0
mirror of https://github.com/safing/web synced 2025-04-16 17:09:09 +00:00

Add layout and styling for legal pages

This commit is contained in:
davegson 2020-05-12 16:22:05 +02:00
parent 6a99002028
commit e24d91872c
6 changed files with 67 additions and 8 deletions

19
_layouts/legal_page.html Normal file
View file

@ -0,0 +1,19 @@
---
layout: page
---
<section style="padding-top: 10rem; padding-bottom: 10rem;" id="legal-page">
<div class="items-center h-full">
<div class="container mx-auto px-8 sm:px-0 flex">
<div class="max-w-screen-lg mx-auto px-4 sm:px-6 lg:flex">
<div class="py-12 bg-white">
<div class="max-w-screen-xl mx-auto px-4 sm:px-6 lg:px-8">
<content>
{{ content }}
</content>
</div>
</div>
</div>
</div>
</div>
</section>

View file

@ -1,6 +0,0 @@
---
layout: page_column
---
<span class="markdownpage">
{{ content }}
</span>

45
_sass/_legal_pages.scss Normal file
View file

@ -0,0 +1,45 @@
#legal-page content {
p {
padding-top: 1.8rem;
color: #898989;
}
strong {
color: black;
}
a:hover {
opacity: .5;
transition-duration: 150ms;
transition-timing-function: cubic-bezier(.4, 0, .2, 1);
}
a {
--text-opacity: 1;
color: #667eea;
color: rgba(102, 126, 234, var(--text-opacity));
text-decoration: inherit;
background-color: transparent;
transition-property: background-color, border-color, color, fill, stroke, opacity, box-shadow, transform;
}
a strong {
--text-opacity: 1;
color: #667eea;
color: rgba(102, 126, 234, var(--text-opacity));
}
h2 {
padding-top: 4rem;
font-weight: 800;
font-size: 1.875rem;
}
ul {
padding-top: 2rem;
}
ul li {
padding-top: 0.4rem;
}
}

View file

@ -2,3 +2,4 @@
---
@import "global";
@import "legal_pages";

View file

@ -1,5 +1,5 @@
---
layout: page_markdown
layout: legal_page
title: Privacy Policy
heading: Privacy Policy
---

View file

@ -1,5 +1,5 @@
---
layout: page_markdown
layout: legal_page
title: Terms of Service
heading: Terms of Service
---