Skip to content

Commit

Permalink
Design
Browse files Browse the repository at this point in the history
  • Loading branch information
benmerckx committed Jun 10, 2022
1 parent c70d9df commit 92ded2a
Show file tree
Hide file tree
Showing 7 changed files with 26 additions and 8 deletions.
2 changes: 1 addition & 1 deletion apps/web/src/view/DocPage.module.scss
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
.root {
&-nav {
margin-top: auto;
padding-top: 40px;
padding-top: 30px;

&-link {
display: block;
Expand Down
2 changes: 1 addition & 1 deletion apps/web/src/view/DocPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export function DocPage({
<Layout.Scrollable>
<Breadcrumbs parents={parents.concat(doc)} />
<Blocks blocks={blocks} />
<HStack center gap={20} className={styles.root.nav()}>
<HStack gap={20} className={styles.root.nav()}>
{prev && (
<Link href={prev.url} passHref>
<a className={styles.root.nav.link()}>
Expand Down
6 changes: 5 additions & 1 deletion apps/web/src/view/layout/Footer.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,12 @@

.root {
position: relative;
padding: 80px 0;
background: var(--web-background-variant);
padding: 30px 0;

@include ml {
padding: 80px 0;
}

&-bg {
position: absolute;
Expand Down
2 changes: 1 addition & 1 deletion apps/web/src/view/layout/Footer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export function Footer({footer}: FooterProps) {
<nav>
{section.links.map(link => {
return (
<Link href={link.url}>
<Link key={link.id} href={link.url}>
<a key={link.id}>{link.label}</a>
</Link>
)
Expand Down
2 changes: 0 additions & 2 deletions apps/web/src/view/layout/Header.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
.root {
--bg-faded: hsla(var(--web-header-background-hsl), 0.9);
--bg: var(--web-header-background);

position: sticky;
top: 0;
color: var(--web-foreground-faded);
Expand All @@ -12,7 +11,6 @@
background-color: var(--bg-faded);
backdrop-filter: blur(12px);
flex-shrink: 0;
// box-shadow: 0 2px 4px rgb(0 0 0 / 2%), inset 0 -1px 0 rgb(0 0 0 / 6%);
border-bottom: 1px solid hsla(var(--web-negative-hsl), 0.09);

&.is-transparent {
Expand Down
12 changes: 11 additions & 1 deletion apps/web/src/view/layout/Layout.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,17 @@
flex: 1 0 0;
display: flex;
flex-direction: column;
padding: 20px 45px 45px 45px;
padding-top: 20px;
padding-bottom: 45px;
min-width: 0;

@media (min-width: 980px) {
padding-left: 20px;
}

@include l {
padding-left: 45px;
}

&-inner {
width: 100%;
Expand Down
8 changes: 7 additions & 1 deletion apps/web/src/view/layout/WebTypo.module.scss
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
@import '@alinea/web/src/style.scss';

.hyphenate {
overflow-wrap: break-word;
word-wrap: break-word;
Expand All @@ -11,14 +13,18 @@
min-width: 0;
font-size: 45px;
font-weight: 700;
line-height: 1.25;
line-height: 1;
margin: 35px 0 20px 0;
white-space: pre-line;
text-rendering: optimizeLegibility;
@extend .hyphenate;
&.is-flat {
margin: 0;
}

@include s {
font-size: 30px;
}
}

.h2 {
Expand Down

0 comments on commit 92ded2a

Please sign in to comment.