From 20ccf46473787c422b52690b6df6dae65581f170 Mon Sep 17 00:00:00 2001 From: wes Date: Thu, 6 Jul 2017 18:43:50 -0400 Subject: [PATCH] route from / to /posts --- src/scripts/app.tag | 1 + src/styles/riotblog.scss | 19 +++++++++++++++++++ 2 files changed, 20 insertions(+) diff --git a/src/scripts/app.tag b/src/scripts/app.tag index f0850f9..0d56bd9 100644 --- a/src/scripts/app.tag +++ b/src/scripts/app.tag @@ -98,6 +98,7 @@ to(name) { }).bind(this); } +this.route("/", self.to("posts")); this.route("posts/*", posts); this.route("posts", (() => {posts(self.state.pid)})); this.route("projects", projects); diff --git a/src/styles/riotblog.scss b/src/styles/riotblog.scss index f561b4d..357b695 100644 --- a/src/styles/riotblog.scss +++ b/src/styles/riotblog.scss @@ -133,6 +133,25 @@ p, h6, h4 { } } +img, code { + margin: auto; + max-width: 85%; + @media (max-width: 1000px) { + max-width: 90%; + } + @media (max-width: 800px) { + max-width: 100%; + } +} + +pre { + white-space: pre-wrap; /* Since CSS 2.1 */ + 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+ */ +} + .projects-content { margin: auto; max-width: 30%;