Skip to content

Commit

Permalink
feat: update content styles
Browse files Browse the repository at this point in the history
  • Loading branch information
nodejh committed Feb 27, 2021
1 parent a179bc1 commit 4815a95
Show file tree
Hide file tree
Showing 2 changed files with 66 additions and 3 deletions.
14 changes: 13 additions & 1 deletion layouts/_default/_markup/render-link.html
Original file line number Diff line number Diff line change
@@ -1 +1,13 @@
<a href="{{ .Destination | safeURL }}"{{ with .Title}} title="{{ . }}"{{ end }}{{ if strings.HasPrefix .Destination "http" }} target="_blank" rel="noopener"{{ end }}>{{ .Text | safeHTML }}</a>
<a
href="{{ .Destination | safeURL }}"
{{ with .Title}}
title="{{ . }}"
{{ end }}

{{ if strings.HasPrefix .Destination "http" }}
target="_blank"
rel="noopener"
{{ end }}
>
{{ .Text | safeHTML }}
</a>
55 changes: 53 additions & 2 deletions static/css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,53 @@ blockquote {
color: #757575;
}

hr {
display: block;
border: none;
height: 2px;
margin: 40px auto;
background: #eee;
}

table {
width: 100%;
margin: 40px 0;
border-collapse: collapse;
line-height: 1.5em;
}

th, td {
text-align: left;
padding-right: 20px;
vertical-align: top;
}

table td, td {
border-spacing: none;
border-style: solid;
padding: 10px 15px;
border-width: 1px 0 0 0;
}
thead th, th {
text-align: left;
padding: 10px 15px;
height: 20px;
font-size: 13px;
font-weight: bold;
color: #444;
cursor: default;
white-space: nowrap;
border: 1px solid #dadadc;
}

tr>td {
border: 1px solid #dadadc;
}

tr:nth-child(odd)>td {
background: #fcfcfc;
}

h1,
h2,
h3 {
Expand All @@ -36,9 +83,8 @@ p {
}
p,
pre {
white-space: normal;
line-break: anywhere;
word-break: break-word;
word-break: break-all;
}
.markdown-image img {
max-width: 100%;
Expand All @@ -57,6 +103,11 @@ h4:hover a {
.highlight pre {
padding: 7px;
}

.highlight {
max-width: 100%;
overflow-x: auto;
}
p code {
font-family: SFMono-Regular, Consolas, Liberation Mono, Menlo, Courier, monospace;
font-size: inherit;
Expand Down

0 comments on commit 4815a95

Please sign in to comment.