Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/schollz/onetwothree.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZack Scholl <zack.scholl@gmail.com>2017-12-05 16:02:48 +0300
committerZack Scholl <zack.scholl@gmail.com>2017-12-05 16:02:48 +0300
commit344b099e477b720bfef756b1bfe062fba3621366 (patch)
tree5e78c5d6e38bfb844b82b0d38fbb7f14bb472b14
parentad9bdf524604c3fff0c32bccd847f9f8045dc93f (diff)
Update CSS
-rw-r--r--layouts/partials/middle.html8
-rw-r--r--static/css/style.css157
2 files changed, 113 insertions, 52 deletions
diff --git a/layouts/partials/middle.html b/layouts/partials/middle.html
index 4e9cb9d..8bc1cfe 100644
--- a/layouts/partials/middle.html
+++ b/layouts/partials/middle.html
@@ -1,8 +1,8 @@
<header>
-<a href="/">/posts</a>
+<strong><a href="/" style="color:black;">/posts</a></strong>
{{ range $.Site.Params.navigation }}{{ with $.Site.GetPage "page" . }}
-&nbsp;·&nbsp;&nbsp;<a href="{{ lower .Permalink }}" style="color:black;">/{{ .Title }}</a>
+&nbsp;·&nbsp;&nbsp;<a href="{{ lower .Permalink }}" style="color:black;"><strong>/{{ lower .Title }}</strong></a>
{{ end }}{{ end }}
{{ if .Draft }}
@@ -15,11 +15,11 @@ DRAFT
{{ if eq .Type "post"}}
<p>
<aside>{{ .Date.Format "January 2, 2006"}}
- {{ if .Params.tags }}
+ <!--{{ if .Params.tags }}
/// <em>{{ range $i, $e := .Params.tags }}{{ if $i }}, {{ end }}<a href="/tags/{{$e}}/">{{ $e }}</a>{{ end }}
</em>
- {{ end }}
+ {{ end }}-->
</aside>
<a href="{{ .Permalink }}">{{ .Title }}</a>
</p>
diff --git a/static/css/style.css b/static/css/style.css
index 3432a17..db39082 100644
--- a/static/css/style.css
+++ b/static/css/style.css
@@ -1,78 +1,139 @@
body {
-font-family:0 next,avenir,helvetica neue,helvetica,ubuntu,roboto,noto,segoe ui,arial,sans-serif;
-line-height:1.15;
-max-width:30em;
-padding:4rem;
+ font-family: -apple-system,BlinkMacSystemFont,avenir next,avenir,helvetica neue,helvetica,ubuntu,roboto,noto,segoe ui,arial,sans-serif;
+ line-height: 1.15;
+ padding: 4rem;
+ box-sizing: border-box;
+ display: block;
}
h1 {
-font-size:2.25rem;
+ font-size: 3rem;
+ max-width: 34rem;
}
aside {
-letter-spacing:.05em;
-text-transform:uppercase;
-font-size:.875rem;
-color:#777;
+ letter-spacing: -0.05em;
+ text-transform: uppercase;
+ font-size: .875rem;
+ color: #777;
}
code {
--moz-hyphens:none;
--webkit-hyphens:none;
--o-hyphens:none;
--ms-hyphens:none;
-hyphens:none;
+ -moz-hyphens: none;
+ -webkit-hyphens: none;
+ -o-hyphens: none;
+ -ms-hyphens: none;
+ hyphens: none;
+ white-space: pre-wrap;
+
+ /* css-3 */
+ white-space: -moz-pre-wrap;
+
+ /* Mozilla, since 1999 */
+ white-space: -pre-wrap;
+
+ /* Opera 4-6 */
+ white-space: -o-pre-wrap;
+
+ /* Opera 7 */
+ word-wrap: break-word;
+
+ /* Internet Explorer 5.5+ */
}
pre {
-background:#f5f7f9;
-margin-bottom:20px;
-vertical-align:text-bottom;
-white-space:0;
-word-wrap:break-word;
-padding:1em;
+ background: #f5f7f9;
+ margin-bottom: 20px;
+ vertical-align: text-bottom;
+ white-space: pre-wrap;
+
+ /* css-3 */
+ white-space: -moz-pre-wrap;
+
+ /* Mozilla, since 1999 */
+ white-space: -pre-wrap;
+
+ /* Opera 4-6 */
+ white-space: -o-pre-wrap;
+
+ /* Opera 7 */
+ word-wrap: break-word;
+
+ /* Internet Explorer 5.5+ */
+ padding: 1em;
+ max-width: 44em;
+}
+
+a, a:visited {
+ text-decoration: none;
+ color: #357edd;
}
-a {
-text-decoration:none;
+a:hover {
+ color: #777;
+}
+
+a:focus {
+ color: #777;
}
img {
-width:100%;
-text-align:center;
+ width: 100%;
+ display: block;
+ vertical-align: top;
+ text-align: center;
}
figcaption {
-color:#777;
-font-style:italic;
-text-align:center;
+ color: #777;
+ font-style: italic;
+ text-align: center;
}
-figure {
-display:block;
--webkit-margin-before:1em;
--webkit-margin-after:1em;
--webkit-margin-start:0;
--webkit-margin-end:0;
+table {
+ max-width: 30em;
}
-ol,ul,li {
-line-height:1.3;
+ol, ul, li, p {
+ -webkit-margin-before: 1em;
+ -webkit-margin-after: 1em;
+ -webkit-margin-start: 0;
+ -webkit-margin-end: 0;
+ line-height: 1.5;
+ font-size: 1.25rem;
+ max-width: 30rem;
}
-p {
-max-width:30em;
-display:block;
--webkit-margin-before:1em;
--webkit-margin-after:1em;
--webkit-margin-start:0;
--webkit-margin-end:0;
-line-height:1.5;
- font-size: 1.25rem;
-}
+@media screen and (min-width: 30em) and (max-width: 60em) {
+ h1 {
+ font-size: 2.25rem;
+ }
-@media all and (max-width: 30em) {
-body {
-padding:1rem;
+ ol, ul, li, p {
+ font-size: 1.2rem;
+ }
}
+
+@media screen and (min-width: 30em) and (max-width: 40em) {
+ body {
+ padding: 2rem;
+ }
+
+ h1 {
+ font-size: 2.25rem;
+ }
+
+ ol, ul, li, p {
+ font-size: 1.1rem;
+ }
}
+
+@media all and (max-width: 30em) {
+ body {
+ padding: 0.875rem;
+ }
+
+ h1 {
+ font-size: 1.5rem;
+ }
+} \ No newline at end of file