Skip to content

Commit

Permalink
Merge pull request #36 from CodeMyst/improvement/paste-page
Browse files Browse the repository at this point in the history
Restyled the paste page
  • Loading branch information
CodeMyst authored Nov 19, 2018
2 parents 08116f2 + 99ed8ed commit eb149c5
Show file tree
Hide file tree
Showing 4 changed files with 60 additions and 9 deletions.
22 changes: 22 additions & 0 deletions public/style/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,21 @@ select {
font-weight: bold;
letter-spacing: 0.2rem; }

.page-title {
background-color: #222222;
display: block;
border-radius: 0.3rem;
border-bottom-left-radius: 0;
border-bottom-right-radius: 0;
margin: 0 .2rem;
padding-left: 3.2rem;
padding-top: 1rem;
text-decoration: underline; }

.page-nav {
border-top-left-radius: 0;
border-top-right-radius: 0; }

code.hljs {
background-color: #222222;
font-family: "Ubuntu Mono", monospace; }
Expand Down Expand Up @@ -109,6 +124,13 @@ table.http-body {
padding-left: 1rem;
border: none; }

.pastemyst-content {
margin-top: 6rem;
margin-bottom: 6rem; }
.pastemyst-content code {
border: 2px solid #ee720d;
box-sizing: border-box; }

footer {
margin: 3rem 0; }
footer p {
Expand Down
31 changes: 31 additions & 0 deletions public/style/source/index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,25 @@ select
}
}

.page-title
{
background-color: #222222;
display: block;
border-radius: 0.3rem;
border-bottom-left-radius: 0;
border-bottom-right-radius: 0;
margin: 0 .2rem;
padding-left: 3.2rem;
padding-top: 1rem;
text-decoration: underline;
}

.page-nav
{
border-top-left-radius: 0;
border-top-right-radius: 0;
}

code.hljs
{
background-color: $color-nanolight;
Expand Down Expand Up @@ -186,6 +205,18 @@ table.http-body
}
}

.pastemyst-content
{
margin-top: 6rem;
margin-bottom: 6rem;

code
{
border: 2px solid $color-range;
box-sizing: border-box;
}
}

footer
{
margin: 3rem 0;
Expand Down
8 changes: 3 additions & 5 deletions views/layout.dt
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,9 @@ html(lang="en")
body
div.container
pre.codeblock-text
code.hljs.plaintext
h1 #[a(href="/") PasteMyst]

pre.codeblock-text
code.hljs.d.
a(href="/", class="page-title") #[h1 PasteMyst]

code.hljs.d.page-nav.
string #[a(href="/") home] => "/";
string #[a(href="https://github.com/codemyst/pastemyst", target="_blank") github] => "github.com/codemyst/pastemyst";
string #[a(href="/api-docs") api-docs] => "/api-docs";
Expand Down
8 changes: 4 additions & 4 deletions views/paste.dt
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
extends layout

block body
pre.pastemyst-content
code
|= code

pre.codeblock-text
code.hljs.d.
string #[a id] => "#[b= id]";
DateTime #[a createdAt] => new DateTime ("#[b= createdAt] UTC");

pre
code
|= code

0 comments on commit eb149c5

Please sign in to comment.