Skip to content

Commit 0edb78b

Browse files
namespace page content in app layout
1 parent b294142 commit 0edb78b

File tree

5 files changed

+28
-28
lines changed

5 files changed

+28
-28
lines changed

src/layouts/app.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
<body>
3131
<app-header></app-header>
3232

33-
<main>
33+
<main class="page-content">
3434
<page-outlet></page-outlet>
3535
</main>
3636

src/layouts/blog.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
</head>
88

99
<body>
10-
<article class="blog-post-content-container">
10+
<article>
1111
<content-outlet></content-outlet>
1212
</article>
1313
</body>

src/pages/blog/release/v0-26-0.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ layout: blog
1515
After a lot of hard work, the Greenwood team is eager to share our first round of enhancements related to our [SSR work](/blog/release/v0-24-0/). By fully leaning into Web Components as a standard API for server rendered pages, we have finally realized something we've been chasing since the early days of the project; all made possible through a new library we've started developing called [**Web Components Compiler (WCC)**](https://github.com/ProjectEvergreen/wcc)! 📣
1616

1717
<style>
18-
.blog-post-content-container img {
18+
.page-content img {
1919
width: 60%!important;
2020
margin-left: 20%;
2121
}

src/pages/blog/release/v0-27-0.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ Innovations in the industry like with [serverless and edge platforms](https://gi
1717
![Full Stack Web Components](/assets/blog/full-stack-web-components.webp) Greenwood is ecstatic to embrace this future for the web, in which there is a world where dynamic can be just as practical as static, and the web can be all around you. With this release, Greenwood is able to deliver another step towards making sure it's just as easy to write a Web Component on the server, as it is in the browser; introducing _**Full Stack Web Components**_! ✨
1818

1919
<style>
20-
.blog-post-content-container img {
20+
.page-content img {
2121
width: 30%!important;
2222
margin-left: 2%;
2323
float: right;

src/styles/blog.css

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,55 +1,55 @@
11
/* would be nice to have CSS nesting here... */
2-
.blog-post-content-container {
2+
.page-content {
33
max-width: 100ch;
44
padding: 0 var(--font-size-1);
55
}
66

7-
.blog-post-content-container h1 {
7+
.page-content h1 {
88
font-size: var(--font-size-5);
99
margin: var(--size-4) 0 0;
1010
}
1111

12-
.blog-post-content-container h2 {
12+
.page-content h2 {
1313
font-size: var(--font-size-4);
1414
font-weight: bold;
1515
line-height: 1.8rem;
1616
margin: var(--size-4) 0 var(--size-2);
1717
}
1818

19-
.blog-post-content-container h3 {
19+
.page-content h3 {
2020
font-size: var(--font-size-2);
2121
margin: var(--size-3) 0;
2222
}
2323

24-
.blog-post-content-container p,
25-
.blog-post-content-container em,
26-
.blog-post-content-container a,
27-
.blog-post-content-container strong,
28-
.blog-post-content-container code,
29-
.blog-post-content-container li {
24+
.page-content p,
25+
.page-content em,
26+
.page-content a,
27+
.page-content strong,
28+
.page-content code,
29+
.page-content li {
3030
font-size: var(--font-size-1);
3131
}
3232

33-
.blog-post-content-container p {
33+
.page-content p {
3434
margin: var(--size-4) 0 var(--size-3);
3535
line-height: var(--font-lineheight-2);
3636
}
3737

38-
.blog-post-content-container img {
38+
.page-content img {
3939
width: 100%;
4040
margin: var(--size-2) 0;
4141
}
4242

43-
.blog-post-content-container ol,
44-
.blog-post-content-container ul {
43+
.page-content ol,
44+
.page-content ul {
4545
padding-left: var(--size-4);
4646
}
4747

48-
.blog-post-content-container li {
48+
.page-content li {
4949
padding: var(--size-1);
5050
}
5151

52-
.blog-post-content-container blockquote {
52+
.page-content blockquote {
5353
padding: var(--size-1);
5454
background-color: var(--color-accent) !important;
5555
border-left: var(--size-1) solid var(--color-secondary);
@@ -62,25 +62,25 @@
6262
font-style: italic;
6363
}
6464

65-
.blog-post-content-container code[class*="language-"],
66-
.blog-post-content-container pre[class*="language-"],
67-
.blog-post-content-container .token {
65+
.page-content code[class*="language-"],
66+
.page-content pre[class*="language-"],
67+
.page-content .token {
6868
font-size: 0.9rem;
6969
}
7070

7171
@media (min-width: 768px) {
72-
.blog-post-content-container {
72+
.page-content {
7373
max-width: 65ch;
7474
margin: var(--size-2) auto var(--size-4);
7575
}
7676

77-
.blog-post-content-container code[class*="language-"],
78-
.blog-post-content-container pre[class*="language-"],
79-
.blog-post-content-container .token {
77+
.page-content code[class*="language-"],
78+
.page-content pre[class*="language-"],
79+
.page-content .token {
8080
font-size: 1rem;
8181
}
8282

83-
.blog-post-content-container blockquote {
83+
.page-content blockquote {
8484
margin: var(--size-1);
8585
padding: var(--size-2);
8686
}

0 commit comments

Comments
 (0)