revises styles and layouts

This commit is contained in:
Huy Tran 2018-07-22 21:34:01 +10:00
parent 1082ce5593
commit c360289608
6 changed files with 99 additions and 107 deletions

View file

@ -1,3 +1,3 @@
<span style="color:red">
{{ printf "%#v" . }}
{{ printf "%#v" . }} <br/>
</span>

View file

@ -2,7 +2,7 @@
<ul class="post__nav">
<li class="post__nav--next">
{{ with .NextInSection -}}
<a href="{{ .RelPermalink }}">
<a href="{{ .RelPermalink }}">
<span class="next__heading">NEXT</span>
<span>{{ .Title }}</span>
</a>
@ -11,9 +11,9 @@
</li>
<li class="post__nav--previous">
{{ with .PrevInSection -}}
<span class="previous__heading">PREVIOUS</span>
<i class="fas fa-chevron-left"></i>
<a href="{{ .RelPermalink }}">
<span class="previous__heading">PREVIOUS</span>
<a href="{{ .RelPermalink }}">
<span class="previous__title">{{ .Title }}</span>
</a>
{{- end }}

View file

@ -43,6 +43,19 @@
}
}
%link-hover {
color: $link-hover-color;
border-bottom: 1px dotted $gray-4;
text-decoration: none;
background: transparent;
background-color: transparent;
word-wrap: break-word;
}
%link-no-decoration {
border-style: none;
text-decoration: none;
}
.sidebar {
background-color: $sidebar-color;
color: rgb(255, 255, 255);
@ -53,12 +66,10 @@
color: $gray-1;
border: none;
&:hover {
text-decoration: none;
border: none;
@extend %link-no-decoration;
}
&:focus {
text-decoration: none;
border: none;
@extend %link-no-decoration;
}
}
}
@ -85,39 +96,26 @@ a {
word-wrap: break-word;
&.sidebar-nav-item {
&:hover {
text-decoration: none;
@extend %link-no-decoration;
}
&:focus {
text-decoration: none;
@extend %link-no-decoration;
}
}
&:focus {
color: $link-hover-color;
border-bottom: 1px dotted $gray-4;
text-decoration: none;
background: transparent;
background-color: transparent;
word-wrap: break-word;
@extend %link-hover;
&.tag {
border-bottom-style: none;
text-decoration: none;
@extend %link-no-decoration;
}
}
&:hover {
color: $link-hover-color;
border-bottom: 1px dotted $gray-4;
text-decoration: none;
background: transparent;
background-color: transparent;
word-wrap: break-word;
@extend %link-hover;
&.tag {
border-bottom-style: none;
text-decoration: none;
@extend %link-no-decoration;
}
}
&.tag {
border-bottom-style: none;
text-decoration: none;
@extend %link-no-decoration;
}
}
@ -170,28 +168,37 @@ h4 {
font-size: $h4-font-size;
}
blockquote {
%quotebox {
padding: .8889rem;
color: #7a7a7a;
background-color: #fafafa;
border-left: 6px solid #e6e6e6;
border-right: 6px solid transparent;
border-radius: 6px;
margin-top: 1.4em;
margin-left: 0px;
margin-right: 0px;
border-radius: 6px;
border-left-width: 6px;
border-left-style: solid;
border-right: 6px solid transparent;
border-right-width: 6px;
border-right-style: solid;
border-right-color: rgba(0, 0, 0, 0) transparent;
color: #7a7a7a;
}
blockquote {
background-color: #fafafa;
border-left-color: #e6e6e6;
@extend %quotebox;
}
.important {
background-color: #fbf8e8;
border-left-color: #fee450;
@extend %quotebox;
}
.warning {
padding: .8889rem;
color: #7a7a7a;
background-color: #f2dbdc;
border-left: 6px solid #e6e6e6;
border-right: 6px solid transparent;
border-radius: 6px;
margin-top: 1.4em;
margin-left: 0px;
margin-right: 0px;
border-left-color: #ae272f;
@extend %quotebox;
}
.img--circle {
@ -243,15 +250,19 @@ pre {
}
}
code {
font-family: $code-font-family;
%code-in-box {
border-radius: 3px;
padding: 2px 4px;
color: $code-color;
background-color: $code-background-color;
}
code {
font-family: $code-font-family;
white-space: pre-wrap;
font-size: $code-font-size;
line-height: $code-line-height;
color: $code-color;
background-color: $code-background-color;
@extend %code-in-box;
}
li code {
@ -392,7 +403,6 @@ kbd {
border: 1px solid $gray-2;
font-size: 0.8em;
line-height: 1.4;
font-family: $root-font-family;
background-color: #fafbfc;
color: $gray-9;
box-shadow: 0 1px 0 rgba(0, 0, 0, 0.2), 0 0 0 2px $white inset;
@ -406,7 +416,6 @@ kbd {
// highlight.js
.hljs {
white-space: pre;
font-size: $code-fence-font-size;
}
#references~ol {

View file

@ -30,9 +30,9 @@ $large-breakpoint: 38em;
$large-font-size: 20px;
// https://www.client9.com/css-system-font-stack-monospace-v2
$code-font-family: "SFMono-Regular", Menlo, Monaco, Consolas, "Liberation Mono", "Roboto Mono", "Ubuntu Mono", "Courier New", Courier, monospace;
$code-font-size: .84rem;
$code-fence-font-size: .8rem;
$code-font-family: "SF-Mono", "SFMono-Regular", Menlo, Monaco, Consolas, "Liberation Mono", "Roboto Mono", "Ubuntu Mono", "Courier New", Courier, monospace;
$code-font-size: .9rem;
$code-fence-font-size: .7rem;
$code-color: #bf616a;
$code-background-color: #f9f2f4;
$code-line-height: 1.4;

View file

@ -331,6 +331,18 @@ footer {
font-weight: 400;
line-height: 1.611em; } }
a:focus, a:hover {
color: #515151;
border-bottom: 1px dotted #ccc;
text-decoration: none;
background: transparent;
background-color: transparent;
word-wrap: break-word; }
.sidebar a:hover, .sidebar a:focus, a.sidebar-nav-item:hover, a.sidebar-nav-item:focus, a.tag:focus, a.tag:hover, a.tag {
border-style: none;
text-decoration: none; }
.sidebar {
background-color: #300030;
color: white;
@ -340,12 +352,6 @@ footer {
.sidebar a {
color: #f9f9f9;
border: none; }
.sidebar a:hover {
text-decoration: none;
border: none; }
.sidebar a:focus {
text-decoration: none;
border: none; }
.sidebar-nav {
list-style: none;
@ -363,33 +369,6 @@ a {
color: #268bd2;
text-decoration: none;
word-wrap: break-word; }
a.sidebar-nav-item:hover {
text-decoration: none; }
a.sidebar-nav-item:focus {
text-decoration: none; }
a:focus {
color: #515151;
border-bottom: 1px dotted #ccc;
text-decoration: none;
background: transparent;
background-color: transparent;
word-wrap: break-word; }
a:focus.tag {
border-bottom-style: none;
text-decoration: none; }
a:hover {
color: #515151;
border-bottom: 1px dotted #ccc;
text-decoration: none;
background: transparent;
background-color: transparent;
word-wrap: break-word; }
a:hover.tag {
border-bottom-style: none;
text-decoration: none; }
a.tag {
border-bottom-style: none;
text-decoration: none; }
.content {
padding-bottom: 2rem;
@ -429,27 +408,31 @@ h3 {
h4 {
font-size: 1.3rem; }
blockquote {
blockquote, .important, .warning {
padding: .8889rem;
color: #7a7a7a;
background-color: #fafafa;
border-left: 6px solid #e6e6e6;
border-right: 6px solid transparent;
border-radius: 6px;
margin-top: 1.4em;
margin-left: 0px;
margin-right: 0px; }
margin-right: 0px;
border-radius: 6px;
border-left-width: 6px;
border-left-style: solid;
border-right: 6px solid transparent;
border-right-width: 6px;
border-right-style: solid;
border-right-color: rgba(0, 0, 0, 0) transparent;
color: #7a7a7a; }
blockquote {
background-color: #fafafa;
border-left-color: #e6e6e6; }
.important {
background-color: #fbf8e8;
border-left-color: #fee450; }
.warning {
padding: .8889rem;
color: #7a7a7a;
background-color: #f2dbdc;
border-left: 6px solid #e6e6e6;
border-right: 6px solid transparent;
border-radius: 6px;
margin-top: 1.4em;
margin-left: 0px;
margin-right: 0px; }
border-left-color: #ae272f; }
.img--circle {
border-radius: 50%; }
@ -489,15 +472,17 @@ pre {
white-space: pre-wrap; }
code {
font-family: "SFMono-Regular", Menlo, Monaco, Consolas, "Liberation Mono", "Roboto Mono", "Ubuntu Mono", "Courier New", Courier, monospace;
border-radius: 3px;
padding: 2px 4px;
white-space: pre-wrap;
font-size: 0.84rem;
line-height: 1.4;
color: #bf616a;
background-color: #f9f2f4; }
code {
font-family: "SF-Mono", "SFMono-Regular", Menlo, Monaco, Consolas, "Liberation Mono", "Roboto Mono", "Ubuntu Mono", "Courier New", Courier, monospace;
white-space: pre-wrap;
font-size: 0.9rem;
line-height: 1.4; }
li code {
border-radius: 4px;
padding: 2px 4px;
@ -610,7 +595,6 @@ kbd {
border: 1px solid #eee;
font-size: 0.8em;
line-height: 1.4;
font-family: system, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Droid Sans", "Ubuntu", "Helvetica Neue", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
background-color: #fafbfc;
color: #313131;
box-shadow: 0 1px 0 rgba(0, 0, 0, 0.2), 0 0 0 2px #fff inset;
@ -621,8 +605,7 @@ kbd {
white-space: nowrap; }
.hljs {
white-space: pre;
font-size: 0.8rem; }
white-space: pre; }
#references ~ ol {
font-size: .9rem; }

File diff suppressed because one or more lines are too long