Skip to content

Commit

Permalink
fixed styles
Browse files Browse the repository at this point in the history
  • Loading branch information
thescientist13 committed Mar 20, 2021
1 parent 08da600 commit a5ee592
Show file tree
Hide file tree
Showing 4 changed files with 46 additions and 1 deletion.
26 changes: 26 additions & 0 deletions src/styles/post-details.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
p {
width: 60%;
margin: 10px auto;
padding: 10px;
}

img {
display: block;
width: 70%;
margin: 0 auto;
}

ul {
list-style-type: none;
width: 70%;
margin: 0 auto;
padding: 0;
text-align: center;
}

pre {
width: 400px;
display: block;
margin: 0 auto;
text-align: left;
}
7 changes: 7 additions & 0 deletions src/styles/theme.css
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,11 @@ h4,
h5,
h6 {
line-height: 1.4;
}

p {
text-align: center;
width: 50%;
margin: 20px auto;
font-size: 1.1em;
}
1 change: 1 addition & 0 deletions src/templates/post.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@

<head>
<script type="module" src="/templates/post.js"></script>
<link rel="stylesheet" href="/styles/post-details.css"></script>
</head>

<body>
Expand Down
13 changes: 12 additions & 1 deletion src/templates/post.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { css, html, LitElement } from 'lit-element';
import client from '@greenwood/plugin-graphql/core/client';
import GraphQuery from '../queries/graph.gql';
import '../components/blog-post-details/blog-post-details.js';
// import '../components/blog-post-details/blog-post-details.js';

class BlogPostComponent extends LitElement {

Expand All @@ -27,6 +27,17 @@ class BlogPostComponent extends LitElement {

static get styles() {
return css`
:host .header {
background-repeat: no-repeat;
background-position: center;
line-height: 125px;
height: 200px;
}
:host .header h1, :host .header h5 {
text-align: center;
}
p {
width: 60%;
margin: 10px auto;
Expand Down

0 comments on commit a5ee592

Please sign in to comment.